From: Aaron Schulz Date: Sat, 30 Jun 2007 00:10:49 +0000 (+0000) Subject: *Use NS_SPECIAL constant to be formal X-Git-Tag: 1.31.0-rc.0~52315 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=2bfd2e654439695e2a6b3739e49381f93ad991fa;p=lhc%2Fweb%2Fwiklou.git *Use NS_SPECIAL constant to be formal --- diff --git a/includes/Wiki.php b/includes/Wiki.php index a67ec12bb3..924a977905 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -98,7 +98,7 @@ class MediaWiki { $lang->findVariantLink( $title, $ret ); } - if ( $ret->getNamespace() != -1 && $oldid = $request->getInt( 'oldid' ) ) { + if ( $ret->getNamespace() != NS_SPECIAL && $oldid = $request->getInt( 'oldid' ) ) { // Allow oldid to override a changed or missing title. $rev = Revision::newFromId( $oldid ); if( $rev ) {