// fix display AdminLogsController

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10459 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-11-22 17:21:41 +00:00
parent 5532f12d80
commit 5f91af9c4e
2 changed files with 13 additions and 23 deletions
@@ -1,5 +1,5 @@
{*
* 2007-2011 PrestaShop
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
@@ -19,12 +19,15 @@
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision$
* @version Release: $Revision: 9639 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if $list}
{extends file="helper/list/list_header.tpl"}
{block name="override_header"}
<fieldset>
<legend>{l s='Severity levels'}</legend>
<p>{l s='Meaning of severity levels:'}</p>
@@ -34,11 +37,6 @@
<li style="color: orange;">{l s='Error'}</li>
<li style="color: red;">{l s='Major issue (crash)'}</li>
</ol>
</fieldset>
{/if}
</fieldset><br />
{$list}
<br />
<h2>{l s='Logs by e-mail'}</h2>
{$options}
{/block}
+5 -13
View File
@@ -57,27 +57,19 @@ class AdminLogsControllerCore extends AdminController
'cast' => 'intval',
'type' => 'text',
'size' => 5
),
)
),
'submit' => array()
),
)
);
parent::__construct();
}
/**
* Assign smarty variables for all default views, list and form, then call other init functions
*/
public function initContent()
public function initToolbar()
{
$this->context->smarty->assign(array(
'table' => $this->table,
'current' => self::$currentIndex,
'token' => $this->token,
'list' => $this->initList(),
'options' => $this->initOptions()
));
parent::initToolbar();
unset($this->toolbar_btn['new']);
}
}