Skip to content

Commit

Permalink
Fix typo in saveWikiText that could lead to wrong changelog entries
Browse files Browse the repository at this point in the history
This fixes saving the actually saved timestamp for deleted revisions in
the change log. Before this, the change log got 0  as timestamp and
therefore used the current time - which might be wrong if the current
second changed in between touching the page and adding the entry to the
changelog.
  • Loading branch information
michitux committed Jan 1, 2017
1 parent f413b7a commit 2d69eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/common.php
Expand Up @@ -1324,7 +1324,7 @@ function saveWikiText($id, $text, $summary, $minor = false) {
// pre-save deleted revision
@touch($svdta['file']);
clearstatcache();
$data['newRevision'] = saveOldRevision($id);
$svdta['newRevision'] = saveOldRevision($id);
// remove empty file
@unlink($svdta['file']);
$filesize_new = 0;
Expand Down

0 comments on commit 2d69eb4

Please sign in to comment.