diff options
author | Urban Müller | 2007-10-01 16:30:35 +0000 |
---|---|---|
committer | Urban Müller | 2007-10-01 16:30:35 +0000 |
commit | e11cbb4456fcd49f4375982a962c72ff10b80934 (patch) | |
tree | e3980f66374c1ecab23eeb29ee63289beea2a96f | |
parent | b4bafc76e02d191ddf6a7282fdc073707844fc23 (diff) | |
download | itools-e11cbb4456fcd49f4375982a962c72ff10b80934.tar.gz itools-e11cbb4456fcd49f4375982a962c72ff10b80934.tar.bz2 itools-e11cbb4456fcd49f4375982a962c72ff10b80934.zip |
enable text() migration to 2 args
-rw-r--r-- | it_text.class | 3 |
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; |