From feb4aaad35a5dba5eaaad645ca49f12bd5869319 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 5 Feb 2025 17:23:10 +0100 Subject: avoid marking plaintext _txt labels when .text debug param active --- it_text.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_text.class') 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 = "1, 'skipfiles'=>"text|auto_prepend")) . ')">' . ($text ? $text : $label) . " '.'], U(it::replace(['^///' => '/'], '//' . $this->label_to_service[$label] . '/admin/texts'), ['edit' => $label])) . '">.'; } -- cgit v1.2.3