From 1c5b203b105b0789ca83c2c0ebed7a8a06059622 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 28 Mar 2013 08:42:10 +0100 Subject: [PATCH] Use get_class( $this ) instead of __CLASS__ in RedirectSpecialPage::execute() So that it returns the subclass name and not always "RedirectSpecialPage". Change-Id: Ibee18bc75e423e8874f9254da7cec59839ba15af --- includes/SpecialPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 38b7d3ecc5..46d4304820 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -1100,7 +1100,7 @@ abstract class RedirectSpecialPage extends UnlistedSpecialPage { $this->getOutput()->redirect( $url ); return $redirect; } else { - $class = __CLASS__; + $class = get_class( $this ); throw new MWException( "RedirectSpecialPage $class doesn't redirect!" ); } } -- 2.20.1