X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fimport%2FWikiImporter.php;h=4d7210245fb05dcd038a2e10f536d2379cdee783;hb=c1175ece78d0ca0dd36a4f93dfe3adb1b0ff2cb8;hp=00a7b52992cbaffd3eab9c027ebec2bd1ca46f9d;hpb=84662b72f073f2df3aa8e8e209da0bc568b91716;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/import/WikiImporter.php b/includes/import/WikiImporter.php index 00a7b52992..4d7210245f 100644 --- a/includes/import/WikiImporter.php +++ b/includes/import/WikiImporter.php @@ -536,7 +536,7 @@ class WikiImporter { * Fetches text contents of the current element, assuming * no sub-elements or such scary things. * @return string - * @access private + * @private */ public function nodeContents() { if ( $this->reader->isEmptyElement ) { @@ -914,11 +914,7 @@ class WikiImporter { $revision->setText( $text ); } - if ( isset( $revisionInfo['timestamp'] ) ) { - $revision->setTimestamp( $revisionInfo['timestamp'] ); - } else { - $revision->setTimestamp( wfTimestampNow() ); - } + $revision->setTimestamp( $revisionInfo['timestamp'] ?? wfTimestampNow() ); if ( isset( $revisionInfo['comment'] ) ) { $revision->setComment( $revisionInfo['comment'] );