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
Add parser method to call parser functions
[lhc/web/wiklou.git]
/
includes
/
Import.php
diff --git
a/includes/Import.php
b/includes/Import.php
index
b5411fc
..
fee636f
100644
(file)
--- a/
includes/Import.php
+++ b/
includes/Import.php
@@
-225,7
+225,7
@@
class WikiImporter {
} else {
// set namespace to 'all', so the namespace check in processTitle() can passed
$this->setTargetNamespace( null );
} else {
// set namespace to 'all', so the namespace check in processTitle() can passed
$this->setTargetNamespace( null );
- $this->mTargetRootPage = $title->getPrefixedDB
K
ey();
+ $this->mTargetRootPage = $title->getPrefixedDB
k
ey();
}
}
}
}
}
}
@@
-1531,7
+1531,7
@@
class WikiRevision {
}
if ( $status->isGood() ) {
}
if ( $status->isGood() ) {
- wfDebug( __METHOD__ . ": Succesful\n" );
+ wfDebug( __METHOD__ . ": Succes
s
ful\n" );
return true;
} else {
wfDebug( __METHOD__ . ': failed: ' . $status->getXml() . "\n" );
return true;
} else {
wfDebug( __METHOD__ . ': failed: ' . $status->getXml() . "\n" );
@@
-1646,7
+1646,7
@@
class ImportStreamSource {
static function newFromUpload( $fieldname = "xmlimport" ) {
$upload =& $_FILES[$fieldname];
static function newFromUpload( $fieldname = "xmlimport" ) {
$upload =& $_FILES[$fieldname];
- if(
!isset( $upload )
|| !$upload['name'] ) {
+ if(
$upload === null
|| !$upload['name'] ) {
return Status::newFatal( 'importnofile' );
}
if( !empty( $upload['error'] ) ) {
return Status::newFatal( 'importnofile' );
}
if( !empty( $upload['error'] ) ) {