OlegT79 Posted July 26, 2018 Share Posted July 26, 2018 I have one language ID:4, and adding new menu point call error. public static function updateUrl($links) { /* for($i = 1; $i <= count($link); $i++) { if (substr($link[$i], 0, 7) !== "http://" && substr($link[$i], 0, 8) !== "https://") { $link[$i] = "http://" . $link[$i]; } } */ foreach ($links as $link){ if (substr($link, 0, 7) !== "http://" && substr($link, 0, 8) !== "https://") { $link = "http://" . $link; } } return $link; } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now