X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FImport.php;h=60d4a1f8422eb507dda3e201618d591de8c815c0;hb=895af6d03965c4c61498527fcd161eac07e8b269;hp=db4a6b2d2ac0597e19ba589427980e7f690f07ad;hpb=1bda36cd3c2fb28e94395ce085b428f860e4e9ac;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Import.php b/includes/Import.php index db4a6b2d2a..60d4a1f842 100644 --- a/includes/Import.php +++ b/includes/Import.php @@ -265,7 +265,7 @@ class WikiImporter { // No rootpage $this->setImportTitleFactory( new NaiveImportTitleFactory() ); } elseif ( $rootpage !== '' ) { - $rootpage = rtrim( $rootpage, '/' ); //avoid double slashes + $rootpage = rtrim( $rootpage, '/' ); // avoid double slashes $title = Title::newFromText( $rootpage ); if ( !$title || $title->isExternal() ) { @@ -1613,7 +1613,7 @@ class WikiRevision { 'page' => $pageId, 'content_model' => $this->getModel(), 'content_format' => $this->getFormat(), - //XXX: just set 'content' => $this->getContent()? + // XXX: just set 'content' => $this->getContent()? 'text' => $this->getContent()->serialize( $this->getFormat() ), 'comment' => $this->getComment(), 'user' => $userId, @@ -1654,7 +1654,7 @@ class WikiRevision { 'log_namespace' => $this->getTitle()->getNamespace(), 'log_title' => $this->getTitle()->getDBkey(), 'log_comment' => $this->getComment(), - #'log_user_text' => $this->user_text, + # 'log_user_text' => $this->user_text, 'log_params' => $this->params ), __METHOD__ ); @@ -1672,7 +1672,7 @@ class WikiRevision { 'log_action' => $this->action, 'log_timestamp' => $dbw->timestamp( $this->timestamp ), 'log_user' => User::idFromName( $this->user_text ), - #'log_user_text' => $this->user_text, + # 'log_user_text' => $this->user_text, 'log_namespace' => $this->getTitle()->getNamespace(), 'log_title' => $this->getTitle()->getDBkey(), 'log_comment' => $this->getComment(),