From 4373a118b81d5265a2c5b0a828eb8dbd5d335d83 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 4 Oct 2007 15:17:55 +0000 Subject: new T() params --- it_text.class | 6 +++--- 1 file 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; -- cgit v1.2.3