From 0ce21ed09e7d6380516d81127abe328e5a81d209 Mon Sep 17 00:00:00 2001 From: Antoine Mille Date: Thu, 2 Feb 2017 10:01:54 +0100 Subject: [PATCH] MO: change www to http --- ps_menutoplinks.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ps_menutoplinks.class.php b/ps_menutoplinks.class.php index 1a73b38..2172292 100644 --- a/ps_menutoplinks.class.php +++ b/ps_menutoplinks.class.php @@ -70,7 +70,7 @@ class Ps_MenuTopLinks public static function updateUrl($link) { for($i = 1; $i <= count($link); $i++) { - if (substr($link[$i], 0, 4) === "www.") { + if (substr($link[$i], 0, 7) !== "http://" && substr($link[$i], 0, 8) !== "https://") { $link[$i] = "http://" . $link[$i]; } }