dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe80acc
)
Fix regression caused by the namespace check on oldid override.
author
Brion Vibber
<brion@users.mediawiki.org>
Tue, 10 Jul 2007 19:37:12 +0000
(19:37 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Tue, 10 Jul 2007 19:37:12 +0000
(19:37 +0000)
Don't die if we don't have a valid title yet!
includes/Wiki.php
patch
|
blob
|
history
diff --git
a/includes/Wiki.php
b/includes/Wiki.php
index
897a2d4
..
31ecd89
100644
(file)
--- a/
includes/Wiki.php
+++ b/
includes/Wiki.php
@@
-102,7
+102,8
@@
class MediaWiki {
$lang->findVariantLink( $title, $ret );
}
- if ( $ret->getNamespace() != NS_SPECIAL && $oldid = $request->getInt( 'oldid' ) ) {
+ if ( $oldid = $request->getInt( 'oldid' )
+ && ( is_null( $ret ) || $ret->getNamespace() != NS_SPECIAL ) ) {
// Allow oldid to override a changed or missing title.
$rev = Revision::newFromId( $oldid );
if( $rev ) {