*Use NS_SPECIAL constant to be formal
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 30 Jun 2007 00:10:49 +0000 (00:10 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 30 Jun 2007 00:10:49 +0000 (00:10 +0000)
includes/Wiki.php

index a67ec12..924a977 100644 (file)
@@ -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 ) {