summaryrefslogtreecommitdiff
path: root/it_text.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_text.class')
-rw-r--r--it_text.class15
1 files changed, 5 insertions, 10 deletions
diff --git a/it_text.class b/it_text.class
index dbfda47..f575344 100644
--- a/it_text.class
+++ b/it_text.class
@@ -57,18 +57,13 @@ function __construct($p = array())
# Read and merge texts from php files if none defined yet
foreach ($p['phpfiles'] as $phpfile)
{
- $oldtext = $this->statictext;
- if (is_array($ret = include($phpfile)))
+ $this->statictext += ($ret = include($phpfile));
+
+ if ($GLOBALS['debug_texts'])
{
- $this->statictext += $ret;
- if ($GLOBALS['debug_texts'])
- {
- $service = strpos($phpfile, $GLOBALS['ULTRAHOME']) !== false ? '' : it::match('/www/([^/.]+)', $phpfile);
- $this->label_to_service += array_combine(array_keys($ret), array_fill(0, count($ret), $service));
- }
+ $service = strpos($phpfile, $GLOBALS['ULTRAHOME']) !== false ? '' : it::match('/www/([^/.]+)', $phpfile);
+ $this->label_to_service += array_combine(array_keys($ret), array_fill(0, count($ret), $service));
}
- else
- $this->statictext = $oldtext + $this->statictext; # FIXME: compatibility mode
}
# Get array of supported languages and their names