From: Aaron Schulz Date: Sat, 30 Jun 2007 00:08:58 +0000 (+0000) Subject: *Don't fuck over special pages with oldid param X-Git-Tag: 1.31.0-rc.0~52316 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=861f5a0f32f6b87063eb2c2f97b1706cf26f272a;p=lhc%2Fweb%2Fwiklou.git *Don't fuck over special pages with oldid param --- diff --git a/includes/Wiki.php b/includes/Wiki.php index 2e0332494b..a67ec12bb3 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -98,7 +98,7 @@ class MediaWiki { $lang->findVariantLink( $title, $ret ); } - if ( $oldid = $request->getInt( 'oldid' ) ) { + if ( $ret->getNamespace() != -1 && $oldid = $request->getInt( 'oldid' ) ) { // Allow oldid to override a changed or missing title. $rev = Revision::newFromId( $oldid ); if( $rev ) {