Index: trunk/phase3/includes/Wiki.php |
— | — | @@ -102,7 +102,8 @@ |
103 | 103 | $lang->findVariantLink( $title, $ret ); |
104 | 104 | |
105 | 105 | } |
106 | | - if ( $ret->getNamespace() != NS_SPECIAL && $oldid = $request->getInt( 'oldid' ) ) { |
| 106 | + if ( $oldid = $request->getInt( 'oldid' ) |
| 107 | + && ( is_null( $ret ) || $ret->getNamespace() != NS_SPECIAL ) ) { |
107 | 108 | // Allow oldid to override a changed or missing title. |
108 | 109 | $rev = Revision::newFromId( $oldid ); |
109 | 110 | if( $rev ) { |