// Context part 29

This commit is contained in:
tDidierjean committed 2011-08-08 13:17:12 +00:00
1 parent 2b71b8be68
commit 0310674fe0
40 files changed
+195 -360

No files matched your search

+1 -2
View File
@@ -86,11 +86,10 @@ class Tools extends ToolsCore
{
if (!preg_match('@^https?://@i', $url))
{
global $link;
if (strpos($url, __PS_BASE_URI__) !== FALSE && strpos($url, __PS_BASE_URI__) == 0)
$url = substr($url, strlen(__PS_BASE_URI__));
$explode = explode('?', $url);
$url = $link->getPageLink($explode[0]);
$url = Context::getContext()->link->getPageLink($explode[0]);
if (isset($explode[1]))
$url .= '?'.$explode[1];
}