// Fix minor bug on shop urls #PSTEST-911

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13897 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-03-06 15:17:05 +00:00
parent 9adf9bfb01
commit 91ac5e0685
3 changed files with 47 additions and 25 deletions
+6 -1
View File
@@ -74,13 +74,18 @@ class ShopUrlCore extends ObjectModel
return parent::getFields();
}
public function getBaseURI()
{
return $this->physical_uri.$this->virtual_uri;
}
public function getURL($ssl = false)
{
if (!$this->id)
return;
$url = ($ssl) ? 'https://'.$this->domain_ssl : 'http://'.$this->domain;
return $url.$this->physical_uri.$this->virtual_uri;
return $url.$this->getBaseUri();
}
/**