dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle client disconnects in scoped timeout blocks.
[lhc/web/wiklou.git]
/
includes
/
Import.php
diff --git
a/includes/Import.php
b/includes/Import.php
index
607d878
..
9ebc34c
100644
(file)
--- 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 ) ) {
$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 );
$origTitle->getDBkey() );
} else {
$title = Title::newFromText( $workTitle );