Reedy has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/260309

Change subject: Fix Fatal on various special pages introduced in 1.26.1
......................................................................

Fix Fatal on various special pages introduced in 1.26.1

Bug: T121892
Change-Id: Ie3d23af7a372fa6a5a23cd861a4d34e42fb08195
---
M RELEASE-NOTES-1.26
M includes/MediaWiki.php
2 files changed, 9 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/09/260309/1

diff --git a/RELEASE-NOTES-1.26 b/RELEASE-NOTES-1.26
index 379c41b..4b90040 100644
--- a/RELEASE-NOTES-1.26
+++ b/RELEASE-NOTES-1.26
@@ -1,6 +1,13 @@
 Security reminder: If you have PHP's register_globals option set, you must
 turn it off. MediaWiki will not work with it enabled.
 
+== MediaWiki 1.26.2 ==
+
+THIS IS NOT A RELEASE YET!
+
+== Changes since 1.26.1 ==
+* (T121892) Fix fatal error on some Special pages, introduced in 1.26.1.
+
 == MediaWiki 1.26.1 ==
 
 This is a maintenance release of the MediaWiki 1.26 branch.
diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php
index 2da2f6c..f3dffe6 100644
--- a/includes/MediaWiki.php
+++ b/includes/MediaWiki.php
@@ -166,7 +166,7 @@
         * @return void
         */
        private function performRequest() {
-               global $wgTitle;
+               global $wgTitle, $wgHideIdentifiableRedirects;
 
                $request = $this->context->getRequest();
                $requestTitle = $title = $this->context->getTitle();
@@ -249,7 +249,7 @@
                        if ( $title->isSpecialPage() ) {
                                $specialPage = SpecialPageFactory::getPage( 
$title->getDBKey() );
                                if ( $specialPage instanceof RedirectSpecialPage
-                                       && $this->config->get( 
'HideIdentifiableRedirects' )
+                                       && $wgHideIdentifiableRedirects
                                        && 
$specialPage->personallyIdentifiableTarget()
                                ) {
                                        list( , $subpage ) = 
SpecialPageFactory::resolveAlias( $title->getDBKey() );

-- 
To view, visit https://gerrit.wikimedia.org/r/260309
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie3d23af7a372fa6a5a23cd861a4d34e42fb08195
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: REL1_26
Gerrit-Owner: Reedy <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to