From: Florent Bruneau Date: Sun, 28 Dec 2008 20:46:36 +0000 (+0100) Subject: Assign platal in _run. X-Git-Tag: core/1.0.1~41 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=80d0423e13a1fbf932fa8b27f323af0d504a7873;p=platal.git Assign platal in _run. Signed-off-by: Florent Bruneau --- diff --git a/classes/plpage.php b/classes/plpage.php index 94ea220..ad93c2f 100644 --- a/classes/plpage.php +++ b/classes/plpage.php @@ -108,7 +108,7 @@ abstract class PlPage extends Smarty protected function _run($skin) { - global $globals, $TIME_BEGIN; + global $globals, $platal, $TIME_BEGIN; Platal::session()->close(); @@ -120,6 +120,7 @@ abstract class PlPage extends Smarty $this->assign('pl_triggers', $this->_errors); $this->assign('pl_errors', $this->nb_errs()); $this->assign('pl_failure', $this->_failure); + $this->assign_by_ref('platal', $platal); $this->assign_by_ref('globals', $globals); if (Env::has('json') && count($this->_jsonVars)) { @@ -255,7 +256,6 @@ abstract class PlPage extends Smarty global $platal; - $this->assign('platal', $platal); $this->trigError($msg); $this->_failure = true; $this->run();