From 4e7764843f21338aa2f9e80c2c16b30bad005108 Mon Sep 17 00:00:00 2001
From: Urban Müller
Date: Wed, 16 May 2012 16:19:14 +0000
Subject: undefined labels link to editor
---
it_text.class | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'it_text.class')
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 = "1, 'skipfiles'=>"text|auto_prepend")) . ")") . "'>" . Q($label) . "";
+ $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 = "1, 'skipfiles'=>"text|auto_prepend")) . ")'>" . ($text ? $text : $label) . ".";
if (isset($GLOBALS['it_text_sampling']))
--
cgit v1.2.3