From: Alexandre Emsenhuber Date: Thu, 19 Jul 2012 08:04:50 +0000 (+0200) Subject: No need to call parseTitle() directly in MediaWiki::__construct(). X-Git-Tag: 1.31.0-rc.0~22919^2 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=f121e64c185f242af5983a70aa7127a58550e24f;p=lhc%2Fweb%2Fwiklou.git No need to call parseTitle() directly in MediaWiki::__construct(). 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 --- diff --git a/includes/Wiki.php b/includes/Wiki.php index 7efb082755..7a35afb2fd 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -62,7 +62,6 @@ class MediaWiki { } $this->context = $context; - $this->context->setTitle( $this->parseTitle() ); } /**