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
Merge "maintenance: Enable gzip in router.php for static files"
[lhc/web/wiklou.git]
/
maintenance
/
edit.php
diff --git
a/maintenance/edit.php
b/maintenance/edit.php
index
eb03b38
..
825e9ca
100644
(file)
--- a/
maintenance/edit.php
+++ b/
maintenance/edit.php
@@
-21,7
+21,7
@@
* @ingroup Maintenance
*/
* @ingroup Maintenance
*/
-use MediaWiki\
Storage
\SlotRecord;
+use MediaWiki\
Revision
\SlotRecord;
require_once __DIR__ . '/Maintenance.php';
require_once __DIR__ . '/Maintenance.php';
@@
-71,7
+71,7
@@
class EditCLI extends Maintenance {
$wgUser->addToDatabase();
}
$wgUser->addToDatabase();
}
- $title = Title::newFromText( $this->getArg() );
+ $title = Title::newFromText( $this->getArg(
0
) );
if ( !$title ) {
$this->fatalError( "Invalid title" );
}
if ( !$title ) {
$this->fatalError( "Invalid title" );
}
@@
-122,7
+122,7
@@
class EditCLI extends Maintenance {
$exit = 1;
}
if ( !$status->isGood() ) {
$exit = 1;
}
if ( !$status->isGood() ) {
- $this->output( $status->get
WikiText( false, false, 'en'
) . "\n" );
+ $this->output( $status->get
Message( false, false, 'en' )->text(
) . "\n" );
}
exit( $exit );
}
}
exit( $exit );
}