// Hide "my shop" in quick select if no url created for shop

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15162 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-05-10 10:04:44 +00:00
parent d1ed1818eb
commit a54244de89
+9 -1
View File
@@ -1182,7 +1182,15 @@ class AdminControllerCore extends Controller
foreach ($quick_access as $index => $quick)
{
if ($quick['link'] == '../' && Shop::getContext() == Shop::CONTEXT_SHOP)
$quick_access[$index]['link'] = $this->context->shop->getBaseURL();
{
$url = $this->context->shop->getBaseURL();
if (!$url)
{
unset($quick_access[$index]);
continue;
}
$quick_access[$index]['link'] = $url;
}
else
{
preg_match('/controller=(.+)(&.+)?$/', $quick['link'], $admin_tab);