summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2007-10-04 15:17:55 +0000
committerUrban Müller2007-10-04 15:17:55 +0000
commit4373a118b81d5265a2c5b0a828eb8dbd5d335d83 (patch)
tree782283c745c1491d49e3e2c9a45f0593ae94243c
parent06a0ba8f47505caf42cf1b65a890fac10b545edc (diff)
downloaditools-4373a118b81d5265a2c5b0a828eb8dbd5d335d83.tar.gz
itools-4373a118b81d5265a2c5b0a828eb8dbd5d335d83.tar.bz2
itools-4373a118b81d5265a2c5b0a828eb8dbd5d335d83.zip
new T() params
-rw-r--r--it_text.class6
1 files changed, 3 insertions, 3 deletions
diff --git a/it_text.class b/it_text.class
index de3fe52..3d1ac69 100644
--- a/it_text.class
+++ b/it_text.class
@@ -94,10 +94,10 @@ function init()
/**
* INTERNAL function for T(): : Return translated text in the selected language
*/
-function text($label, $raw = null, $language = null)
+function text($label, $language = null, $buggy = false)
{
- if (is_string($raw) && $raw && !$language)
- $language = $raw; # migration: $language will be 2nd arg
+ if ($buggy || (isset($language) && !is_string($language)))
+ it::error('deprecated usage of it_text::text()');
if ($this->p['debug'] === 'label')
return $label;