From c1f9b1f7b1b77776192048005dcc66dcf3df2bfb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 27 Dec 2014 15:41:37 +0100 Subject: Update to MediaWiki 1.24.1 --- includes/specials/SpecialPermanentLink.php | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 includes/specials/SpecialPermanentLink.php (limited to 'includes/specials/SpecialPermanentLink.php') diff --git a/includes/specials/SpecialPermanentLink.php b/includes/specials/SpecialPermanentLink.php new file mode 100644 index 00000000..17115e88 --- /dev/null +++ b/includes/specials/SpecialPermanentLink.php @@ -0,0 +1,45 @@ +mAllowedRedirectParams = array(); + } + + function getRedirect( $subpage ) { + $subpage = intval( $subpage ); + if ( $subpage === 0 ) { + # throw an error page when no subpage was given + throw new ErrorPageError( 'nopagetitle', 'nopagetext' ); + } + $this->mAddedRedirectParams['oldid'] = $subpage; + + return true; + } +} -- cgit v1.2.3-54-g00ecf