From f121e64c185f242af5983a70aa7127a58550e24f Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 19 Jul 2012 10:04:50 +0200 Subject: [PATCH] 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 --- includes/Wiki.php | 1 - 1 file changed, 1 deletion(-) 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() ); } /** -- 2.20.1