From: Chad Horohoe Date: Fri, 31 Jul 2009 00:56:50 +0000 (+0000) Subject: Handle todo: Mediawiki::initialize() is now called Mediawiki::performRequestForTitle() X-Git-Tag: 1.31.0-rc.0~40621 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=0e50b04b03381f8d4085d88ede42fba2ef706ee0;p=lhc%2Fweb%2Fwiklou.git Handle todo: Mediawiki::initialize() is now called Mediawiki::performRequestForTitle() --- diff --git a/includes/Wiki.php b/includes/Wiki.php index 0753456310..56225459b7 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -42,7 +42,6 @@ class MediaWiki { /** * Initialization of ... everything * Performs the request too - * FIXME: why is this crap called "initialize" when it performs everything? * * @param $title Title ($wgTitle) * @param $article Article @@ -50,7 +49,7 @@ class MediaWiki { * @param $user User * @param $request WebRequest */ - function initialize( &$title, &$article, &$output, &$user, $request ) { + function performRequestForTitle( &$title, &$article, &$output, &$user, $request ) { wfProfileIn( __METHOD__ ); $output->setTitle( $title ); diff --git a/index.php b/index.php index 1aa59b70a7..4997f73af5 100644 --- a/index.php +++ b/index.php @@ -113,7 +113,7 @@ $mediaWiki->setVal( 'SquidMaxage', $wgSquidMaxage ); $mediaWiki->setVal( 'UseExternalEditor', $wgUseExternalEditor ); $mediaWiki->setVal( 'UsePathInfo', $wgUsePathInfo ); -$mediaWiki->initialize( $wgTitle, $wgArticle, $wgOut, $wgUser, $wgRequest ); +$mediaWiki->performRequestForTitle( $wgTitle, $wgArticle, $wgOut, $wgUser, $wgRequest ); $mediaWiki->finalCleanup( $wgDeferredUpdateList, $wgOut ); # Not sure when $wgPostCommitUpdateList gets set, so I keep this separate from finalCleanup