// Hide "my shop" in quick select if no url created for shop
This commit is contained in:
@@ -1182,7 +1182,15 @@ class AdminControllerCore extends Controller
|
|||||||
foreach ($quick_access as $index => $quick)
|
foreach ($quick_access as $index => $quick)
|
||||||
{
|
{
|
||||||
if ($quick['link'] == '../' && Shop::getContext() == Shop::CONTEXT_SHOP)
|
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
|
else
|
||||||
{
|
{
|
||||||
preg_match('/controller=(.+)(&.+)?$/', $quick['link'], $admin_tab);
|
preg_match('/controller=(.+)(&.+)?$/', $quick['link'], $admin_tab);
|
||||||
|
|||||||
Reference in New Issue
Block a user