From 2bfd2e654439695e2a6b3739e49381f93ad991fa Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 30 Jun 2007 00:10:49 +0000 Subject: [PATCH] *Use NS_SPECIAL constant to be formal --- includes/Wiki.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1