试图重定向prestashop上的链接。根据语言设置,链接会有偏见

时间:2015-06-26 15:55:16

标签: php prestashop

http://www.klumklum.com/es/autenticacion?back=category.php%3Fid_category%3D136

http://www.klumklum.com/es/pagina-no-encuentra

我使用了这个public/override/controllers/CategoryController.php代码:

<?php class CategoryController extends CategoryControllerCore
{
    public function displayContent() {
      if(!$this->category->checkAccess((int)(self::$cookie->id_customer))) {
          if(!self::$cookie->isLogged())       
            Tools::redirectLink('authentification?back=category.php?id_category='.$this->category->id); 
          else
            parent::displayContent();

        } else
          self::$smarty->display(_PS_THEME_DIR_.'category.tpl');
     }
}

0 个答案:

没有答案