summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2007-10-01 16:30:35 +0000
committerUrban Müller2007-10-01 16:30:35 +0000
commite11cbb4456fcd49f4375982a962c72ff10b80934 (patch)
treee3980f66374c1ecab23eeb29ee63289beea2a96f
parentb4bafc76e02d191ddf6a7282fdc073707844fc23 (diff)
downloaditools-e11cbb4456fcd49f4375982a962c72ff10b80934.tar.gz
itools-e11cbb4456fcd49f4375982a962c72ff10b80934.tar.bz2
itools-e11cbb4456fcd49f4375982a962c72ff10b80934.zip
enable text() migration to 2 args
-rw-r--r--it_text.class3
1 files changed, 3 insertions, 0 deletions
diff --git a/it_text.class b/it_text.class
index 1a4d54f..76e8aed 100644
--- a/it_text.class
+++ b/it_text.class
@@ -96,6 +96,9 @@ function init()
*/
function text($label, $raw = null, $language = null)
{
+ if (is_string($raw) && $raw && !$language)
+ $language = $raw; # migration: $language will be 2nd arg
+
if ($this->p['debug'] === 'label')
return $label;