# HG changeset patch # User Dan # Date 1252677272 14400 # Node ID c424a15a1656704a086b03b8abc38febd4c957cb # Parent c1be67a50d8180917d7732d750bcd8ef818e8a76 Common: renamed global $title to $urlname (it broke the API from non-plugin Enano scripts) diff -r c1be67a50d81 -r c424a15a1656 includes/common.php --- 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') ) diff -r c1be67a50d81 -r c424a15a1656 plugins/SpecialUserFuncs.php --- 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']) )