proper fix: there was a bug in assigning platal before the path computation.
authorweb <web@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 7 Oct 2006 08:43:55 +0000 (08:43 +0000)
committerweb <web@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 7 Oct 2006 08:43:55 +0000 (08:43 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.11@951 839d8a87-29fc-0310-9880-83ba4fa771e5

classes/Page.php
classes/Platal.php

index 60110f0..63add7e 100644 (file)
@@ -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:
index a15f80f..8927418 100644 (file)
@@ -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();
     }