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:
fbf3db9
)
[Title] In moveToInternal(), just use getParentId() on the null revision object as...
author
Aaron Schulz
<aaron@users.mediawiki.org>
Sat, 3 Mar 2012 12:46:58 +0000
(12:46 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Sat, 3 Mar 2012 12:46:58 +0000
(12:46 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
a2a3fa4
..
218ac2f
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-3595,7
+3595,6
@@
class Title {
$comment = $wgContLang->truncate( $comment, 255 );
$oldid = $this->getArticleID();
- $latest = $this->getLatestRevID();
$dbw = wfGetDB( DB_MASTER );
@@
-3636,7
+3635,7
@@
class Title {
$newpage->updateRevisionOn( $dbw, $nullRevision );
wfRunHooks( 'NewRevisionFromEditComplete',
- array( $newpage, $nullRevision, $
latest
, $wgUser ) );
+ array( $newpage, $nullRevision, $
nullRevision->getParentId()
, $wgUser ) );
$newpage->doEditUpdates( $nullRevision, $wgUser, array( 'changed' => false ) );