From 72ea001942c5811d80a8102e3249049086eb7da9 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 13 Dec 2023 15:13:54 +0100 Subject: Fix and simplify text admin links for OneDomain --- it_text.class | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'it_text.class') 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 = "1, 'skipfiles'=>"text|auto_prepend")) . ")'>" . ($text ? $text : $label) . "."; + $text = "1, 'skipfiles'=>"text|auto_prepend")) . ")'>" . ($text ? $text : $label) . " '.'], U(it::replace(['^///' => '/'], '//' . $this->label_to_service[$label] . '/admin/texts'), ['edit' => $label])) . "'>."; } if (isset($GLOBALS['it_text_sampling'])) -- cgit v1.2.3