summaryrefslogtreecommitdiff
path: root/it_text.class
diff options
context:
space:
mode:
authorUrban Müller2025-02-05 17:23:10 +0100
committerUrban Müller2025-02-05 17:23:10 +0100
commitfeb4aaad35a5dba5eaaad645ca49f12bd5869319 (patch)
tree8e203019a2dbc1026d07c00c88502f2b6ca1cccd /it_text.class
parenta6ef2345f3d2b168a4b278ca3bd1f37b9637fc4a (diff)
downloaditools-feb4aaad35a5dba5eaaad645ca49f12bd5869319.tar.gz
itools-feb4aaad35a5dba5eaaad645ca49f12bd5869319.tar.bz2
itools-feb4aaad35a5dba5eaaad645ca49f12bd5869319.zip
avoid marking plaintext _txt labels when .text debug param active
Diffstat (limited to 'it_text.class')
-rw-r--r--it_text.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_text.class b/it_text.class
index 78df85b..a63b961 100644
--- a/it_text.class
+++ b/it_text.class
@@ -147,7 +147,7 @@ function text($label, $language = null)
}
}
- if ($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|_txt/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=\"" . it::replace(['\.texts\.' => '.'], U(it::replace(['^///' => '/'], '//' . $this->label_to_service[$label] . '/admin/texts'), ['edit' => $label])) . '">.</a>';
}