From: Stéphane Jacob Date: Mon, 19 Jul 2010 21:19:57 +0000 (+0200) Subject: Prevents notice in skin templates. X-Git-Tag: core/1.1.1~46 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d58e3be00aaeb9f7210e0ff699daaaf8c20b557a;p=platal.git Prevents notice in skin templates. Signed-off-by: Stéphane Jacob --- diff --git a/classes/plpage.php b/classes/plpage.php index 875981e..6fa26ea 100644 --- a/classes/plpage.php +++ b/classes/plpage.php @@ -134,6 +134,12 @@ abstract class PlPage extends Smarty $this->_page_typ = SKINNED; } + if ($this->_page_type == SIMPLE) { + $this->assign('simple', true); + } else { + $this->assign('simple', false); + } + switch ($this->_page_type) { case NO_SKIN: if (!($globals->debug & DEBUG_SMARTY)) { @@ -143,8 +149,6 @@ abstract class PlPage extends Smarty exit; case SIMPLE: - $this->assign('simple', true); - case SKINNED: $this->register_modifier('escape_html', 'escape_html'); $this->default_modifiers = Array('@escape_html');