Common: renamed global $title to $urlname (it broke the API from non-plugin Enano scripts)
--- 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') )
--- a/plugins/SpecialUserFuncs.php Wed Aug 26 23:25:39 2009 -0400
+++ b/plugins/SpecialUserFuncs.php Fri Sep 11 09:54:32 2009 -0400
@@ -425,7 +425,7 @@
global $lang;
require_once( ENANO_ROOT . '/includes/math.php' );
- $paths->fullpage = $GLOBALS['title'];
+ $paths->fullpage = $GLOBALS['urlname'];
if ( $paths->getParam(0) === 'action.json' )
{
if ( !isset($_POST['r']) )