summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_text.class6
1 files changed, 1 insertions, 5 deletions
diff --git a/it_text.class b/it_text.class
index 2f11277..bf52e14 100644
--- a/it_text.class
+++ b/it_text.class
@@ -149,11 +149,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']))
{
- $host = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . preg_replace('/\.texts/', '', $_SERVER['HTTP_HOST']);
- if ($service = $this->label_to_service[$label])
- $host = preg_replace('#//(admin\.)?[^.]*\.#', "//$service.", $host);
-
- $text = "<span style='background:#8F8' title='$label (" . it_debug::backtrace(array('levels'=>1, 'skipfiles'=>"text|auto_prepend")) . ")'>" . ($text ? $text : $label) . "</span><a href='$host/admin/texts.html?edit=$label'>.</a>";
+ $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>";
}
if (isset($GLOBALS['it_text_sampling']))