// 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user