No need to call parseTitle() directly in MediaWiki::__construct().
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Thu, 19 Jul 2012 08:04:50 +0000 (10:04 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Thu, 19 Jul 2012 08:04:50 +0000 (10:04 +0200)
We have MediaWiki::getTitle() which will call parseTitle() if needed.
That method will be called in MediaWiki::main() when the Title object
is really needed. This allows to not have to call parseTitle() when
the DB replication lag is higher than the maxlag parameter or on
action=ajax requests.

Change-Id: Iebca2b3029e95879ea7739367b09c8c37502e71c

includes/Wiki.php

index 7efb082..7a35afb 100644 (file)
@@ -62,7 +62,6 @@ class MediaWiki {
                }
 
                $this->context = $context;
-               $this->context->setTitle( $this->parseTitle() );
        }
 
        /**