diff options
| author | Urban Müller | 2010-03-24 19:35:59 +0000 | 
|---|---|---|
| committer | Urban Müller | 2010-03-24 19:35:59 +0000 | 
| commit | 83e7341377553f45af1eedd4a1dc90bdb2b3f506 (patch) | |
| tree | 8b23b8c2a34d0db696287b8cdd7fe9479787dc16 /it_text.class | |
| parent | 28218071669bf2b757c747e32b54f855068a4109 (diff) | |
| download | itools-83e7341377553f45af1eedd4a1dc90bdb2b3f506.tar.gz itools-83e7341377553f45af1eedd4a1dc90bdb2b3f506.tar.bz2 itools-83e7341377553f45af1eedd4a1dc90bdb2b3f506.zip  | |
quote missing label name
Diffstat (limited to 'it_text.class')
| -rw-r--r-- | it_text.class | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/it_text.class b/it_text.class index eb99157..c424dbb 100644 --- a/it_text.class +++ b/it_text.class @@ -137,12 +137,12 @@ function text($label, $language = null)  		$text = $this->statictext[$label][$this->p['fallbacklanguage']];  		if (!isset($text))  		{ -			$text = "<span style='background:#F88' title='$label (" . it_debug::backtrace(array('levels'=>1, 'skipfiles'=>"text|auto_prepend")) . ")'>$label</span'>"; +			$text = "<span style='background:#F88' title='" . Q("$label (" . it_debug::backtrace(array('levels'=>1, 'skipfiles'=>"text|auto_prepend")) . ")") . "'>" . Q($label) . "</span>";  			it::error(array('title'=>"unknown label $label language $language - see /tmp/alertdata/alert.log", 'backtraceskip'=>2, 'blockmail'=>21600));  		}  	} -	if ($GLOBALS['debug_texts'] && !preg_match('/submit|reset|button|_search$|service|claim/i', $label) && (!$_GET['it_texts_mark'] || $label == $_GET['it_texts_mark'])) +	if ($GLOBALS['debug_texts'] && !preg_match('/submit|reset|button/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>";  	if (isset($GLOBALS['it_text_sampling']))  |