diff options
Diffstat (limited to 'includes/specials/SpecialDiff.php')
-rw-r--r-- | includes/specials/SpecialDiff.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/includes/specials/SpecialDiff.php b/includes/specials/SpecialDiff.php index 89c1c021..8b5d31a8 100644 --- a/includes/specials/SpecialDiff.php +++ b/includes/specials/SpecialDiff.php @@ -37,12 +37,16 @@ * @since 1.23 */ class SpecialDiff extends RedirectSpecialPage { - function __construct() { + public function __construct() { parent::__construct( 'Diff' ); $this->mAllowedRedirectParams = array(); } - function getRedirect( $subpage ) { + /** + * @param string|null $subpage + * @return Title|bool + */ + public function getRedirect( $subpage ) { $parts = explode( '/', $subpage ); // Try to parse the values given, generating somewhat pretty URLs if possible |