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:
6138f4f
)
Fix fatal on every move over redirect, from r53659
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Tue, 18 Aug 2009 10:43:22 +0000
(10:43 +0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Tue, 18 Aug 2009 10:43:22 +0000
(10:43 +0000)
Best not to call methods on variables until after you initialize them.
:)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
5e0e539
..
bf02a6f
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-2857,12
+2857,13
@@
class Title {
$newid = $nt->getArticleID();
$oldid = $this->getArticleID();
$latest = $this->getLatestRevID();
+
+ $dbw = wfGetDB( DB_MASTER );
+
$rcts = $dbw->timestamp( $nt->getEarliestRevTime() );
$newns = $nt->getNamespace();
$newdbk = $nt->getDBkey();
- $dbw = wfGetDB( DB_MASTER );
-
# Delete the old redirect. We don't save it to history since
# by definition if we've got here it's rather uninteresting.
# We have to remove it so that the next step doesn't trigger