summaryrefslogtreecommitdiff
path: root/it_text.class
diff options
context:
space:
mode:
authorUrban Müller2012-05-16 16:19:14 +0000
committerUrban Müller2012-05-16 16:19:14 +0000
commit4e7764843f21338aa2f9e80c2c16b30bad005108 (patch)
treecdbb7635f687b57de40d95484085f8bccd1a90b7 /it_text.class
parent14f9b743304695c729f4e5e7a5a36fbd4547de41 (diff)
downloaditools-4e7764843f21338aa2f9e80c2c16b30bad005108.tar.gz
itools-4e7764843f21338aa2f9e80c2c16b30bad005108.tar.bz2
itools-4e7764843f21338aa2f9e80c2c16b30bad005108.zip
undefined labels link to editor
Diffstat (limited to 'it_text.class')
-rw-r--r--it_text.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/it_text.class b/it_text.class
index 86e6a75..c73b1bf 100644
--- a/it_text.class
+++ b/it_text.class
@@ -138,11 +138,12 @@ function text($label, $language = null)
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;
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|button|servicedomain/i', $label) && (!$_GET['it_texts_mark'] || $label == $_GET['it_texts_mark']))
+ if ($editlink || $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']))