jenkins-bot has submitted this change and it was merged.

Change subject: Use get_class( $this ) instead of __CLASS__ in 
RedirectSpecialPage::execute()
......................................................................


Use get_class( $this ) instead of __CLASS__ in RedirectSpecialPage::execute()

So that it returns the subclass name and not always "RedirectSpecialPage".

Change-Id: Ibee18bc75e423e8874f9254da7cec59839ba15af
---
M includes/SpecialPage.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Demon: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php
index 38b7d3e..46d4304 100644
--- a/includes/SpecialPage.php
+++ b/includes/SpecialPage.php
@@ -1100,7 +1100,7 @@
                        $this->getOutput()->redirect( $url );
                        return $redirect;
                } else {
-                       $class = __CLASS__;
+                       $class = get_class( $this );
                        throw new MWException( "RedirectSpecialPage $class 
doesn't redirect!" );
                }
        }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibee18bc75e423e8874f9254da7cec59839ba15af
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: IAlex <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Demon <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to