MO: change www to http

This commit is contained in:
Antoine Mille
2017-02-02 10:01:54 +01:00
parent 9d67b88d47
commit 0ce21ed09e
+1 -1
View File
@@ -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];
}
}