From e11cbb4456fcd49f4375982a962c72ff10b80934 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 1 Oct 2007 16:30:35 +0000 Subject: enable text() migration to 2 args --- it_text.class | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3