diff options
author | Urban Müller | 2012-05-22 12:25:23 +0000 |
---|---|---|
committer | Urban Müller | 2012-05-22 12:25:23 +0000 |
commit | 74c2caee39c8bb467e93ad77229382e3480fa067 (patch) | |
tree | 6756456f50a4cab77d33f5e0b098a8e8122edd96 /it_text.class | |
parent | 8b2713167a7dbc6979458a835fa1eb3b0ee43d0b (diff) | |
download | itools-74c2caee39c8bb467e93ad77229382e3480fa067.tar.gz itools-74c2caee39c8bb467e93ad77229382e3480fa067.tar.bz2 itools-74c2caee39c8bb467e93ad77229382e3480fa067.zip |
better performance
Diffstat (limited to 'it_text.class')
-rw-r--r-- | it_text.class | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/it_text.class b/it_text.class index c73b1bf..57dfda5 100644 --- a/it_text.class +++ b/it_text.class @@ -137,13 +137,12 @@ function text($label, $language = null) $text = $this->statictext[$label][$this->p['fallbacklanguage']]; if (!isset($text)) { - $text = "<span style='background:#F88' title='" . Q("$label (" . it_debug::backtrace(array('levels'=>1, 'skipfiles'=>"text|auto_prepend")) . ")") . "'>" . Q($label) . "</span>"; - $editlink = true; + $text = "<span style='background:#F88' title='" . Q("$label (" . it_debug::backtrace(array('levels'=>1, 'skipfiles'=>"text|auto_prepend")) . ")") . "'>" . Q($label) . "</span><a href='/admin.html?edit=$label'>.</a>"; it::error(array('title'=>"unknown label $label language $language - see /tmp/alertdata/alert.log", 'backtraceskip'=>2, 'blockmail'=>21600)); } } - if ($editlink || $GLOBALS['debug_texts'] && !preg_match('/submit|button|servicedomain/i', $label) && (!$_GET['it_texts_mark'] || $label == $_GET['it_texts_mark'])) + if ($GLOBALS['debug_texts'] && !preg_match('/submit|button|servicedomain/i', $label) && (!$_GET['it_texts_mark'] || $label == $_GET['it_texts_mark'])) $text = "<span style='background:#8F8' title='$label (" . it_debug::backtrace(array('levels'=>1, 'skipfiles'=>"text|auto_prepend")) . ")'>" . ($text ? $text : $label) . "</span><a href='/admin.html?edit=$label'>.</a>"; if (isset($GLOBALS['it_text_sampling'])) |