From: web Date: Sat, 7 Oct 2006 08:43:55 +0000 (+0000) Subject: proper fix: there was a bug in assigning platal before the path computation. X-Git-Tag: xorg/0.9.11~23 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d099b7450993d349df4419d63e7b72cdea9ddc77;p=platal.git proper fix: there was a bug in assigning platal before the path computation. git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.11@951 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/classes/Page.php b/classes/Page.php index 60110f0..63add7e 100644 --- a/classes/Page.php +++ b/classes/Page.php @@ -73,14 +73,13 @@ class PlatalPage extends Smarty function _run($skin) { - global $globals, $platal, $TIME_BEGIN; + global $globals, $TIME_BEGIN; session_write_close(); $this->assign("xorg_errors", $this->_errors); $this->assign("xorg_failure", $this->_failure); $this->assign('globals', $globals); - $this->assign('platal', $platal); switch ($this->_page_type) { case NO_SKIN: diff --git a/classes/Platal.php b/classes/Platal.php index a15f80f..8927418 100644 --- a/classes/Platal.php +++ b/classes/Platal.php @@ -131,7 +131,7 @@ class Platal $this->path = 'index'; } - $page->assign_by_ref('platal', $this); + $page->assign('platal', $this); switch ($this->call_hook($page)) { case PL_FORBIDDEN: $this->__mods['core']->handler_403($page); @@ -141,6 +141,8 @@ class Platal $this->__mods['core']->handler_404($page); break; } + + $page->assign('platal', $this); $page->run(); }