// Removed FO call to shop->name instead of PS_SHOP_NAME
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16936 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -1321,19 +1321,6 @@ class AdminControllerCore extends Controller
|
|||||||
'controller_name' => htmlentities(Tools::getValue('controller')),
|
'controller_name' => htmlentities(Tools::getValue('controller')),
|
||||||
'currentIndex' => self::$currentIndex
|
'currentIndex' => self::$currentIndex
|
||||||
));
|
));
|
||||||
|
|
||||||
// Shop context
|
|
||||||
if ($is_multishop)
|
|
||||||
{
|
|
||||||
if (Shop::getContext() == Shop::CONTEXT_SHOP)
|
|
||||||
$shop_name = $this->context->shop->name;
|
|
||||||
else
|
|
||||||
$shop_name = 'PrestaShop';
|
|
||||||
|
|
||||||
$this->context->smarty->assign(array(
|
|
||||||
'shop_name' => $shop_name,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -43,10 +43,7 @@ abstract class HTMLTemplateCore
|
|||||||
*/
|
*/
|
||||||
public function getHeader()
|
public function getHeader()
|
||||||
{
|
{
|
||||||
$shop_name = '';
|
$shop_name = Configuration::get('PS_SHOP_NAME');
|
||||||
if (Validate::isLoadedObject($this->shop))
|
|
||||||
$shop_name = $this->shop->name;
|
|
||||||
|
|
||||||
$path_logo = $this->getLogo();
|
$path_logo = $this->getLogo();
|
||||||
|
|
||||||
$width = 0;
|
$width = 0;
|
||||||
|
|||||||
@@ -122,9 +122,7 @@ class HTMLTemplateSupplyOrderFormCore extends HTMLTemplate
|
|||||||
*/
|
*/
|
||||||
public function getHeader()
|
public function getHeader()
|
||||||
{
|
{
|
||||||
$shop_name = '';
|
$shop_name = Configuration::get('PS_SHOP_NAME');
|
||||||
if (Validate::isLoadedObject($this->shop))
|
|
||||||
$shop_name = $this->shop->name;
|
|
||||||
|
|
||||||
$this->smarty->assign(array(
|
$this->smarty->assign(array(
|
||||||
'logo_path' => $this->getLogo(),
|
'logo_path' => $this->getLogo(),
|
||||||
|
|||||||
Reference in New Issue
Block a user