From 74c2caee39c8bb467e93ad77229382e3480fa067 Mon Sep 17 00:00:00 2001
From: Urban Müller
Date: Tue, 22 May 2012 12:25:23 +0000
Subject: better performance
---
it_text.class | 5 ++---
1 file 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 = "1, 'skipfiles'=>"text|auto_prepend")) . ")") . "'>" . Q($label) . "";
- $editlink = true;
+ $text = "1, 'skipfiles'=>"text|auto_prepend")) . ")") . "'>" . Q($label) . ".";
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 = "1, 'skipfiles'=>"text|auto_prepend")) . ")'>" . ($text ? $text : $label) . ".";
if (isset($GLOBALS['it_text_sampling']))
--
cgit v1.2.3