includes/common.php
changeset 1109 c424a15a1656
parent 1099 73abd46f5148
child 1186 774ae986fded
--- a/includes/common.php	Wed Aug 26 23:25:39 2009 -0400
+++ b/includes/common.php	Fri Sep 11 09:54:32 2009 -0400
@@ -389,8 +389,8 @@
   
   // For special and administration pages, sometimes there is a "preloader" function that must be run
   // before the session manager and/or path manager get the init signal. Call it here.
-  $title = get_title(true);
-  list($page_id, $namespace) = RenderMan::strToPageID($title);
+  $urlname = get_title(true);
+  list($page_id, $namespace) = RenderMan::strToPageID($urlname);
   list($page_id_top) = explode('/', $page_id);
   $fname = "page_{$namespace}_{$page_id_top}_preloader";
   if( ( $namespace == 'Admin' || $namespace == 'Special' ) && function_exists($fname))
@@ -426,7 +426,7 @@
   
   profiler_log('Ran session_started hook');
   
-  $paths->init($title);
+  $paths->init($urlname);
   
   // setup output format
   if ( defined('ENANO_OUTPUT_FORMAT') )