diff options
Diffstat (limited to 'it_text.class')
-rw-r--r-- | it_text.class | 6 |
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; |