X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2FImport.php;h=9ebc34c91b941ac7e349ef9f2c13a1ea32ba6aa6;hb=6ffe70604441f3bdbaeaecce53ee2ae54b40c0fb;hp=607d878b592596946001d33668c88e2bce7f3d88;hpb=179e0b4d9c21343300abb5d46e59eeac807fd389;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Import.php b/includes/Import.php index 607d878b59..9ebc34c91b 100644 --- a/includes/Import.php +++ b/includes/Import.php @@ -786,7 +786,9 @@ class WikiImporter { $origTitle = Title::newFromText( $workTitle ); if( !is_null( $this->mTargetNamespace ) && !is_null( $origTitle ) ) { - $title = Title::makeTitle( $this->mTargetNamespace, + # makeTitleSafe, because $origTitle can have a interwiki (different setting of interwiki map) + # and than dbKey can begin with a lowercase char + $title = Title::makeTitleSafe( $this->mTargetNamespace, $origTitle->getDBkey() ); } else { $title = Title::newFromText( $workTitle );