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 "(bug 40154) On action=info show where this page redirects to and whether it...
[lhc/web/wiklou.git]
/
maintenance
/
edit.php
diff --git
a/maintenance/edit.php
b/maintenance/edit.php
index
13b3c49
..
ad4c12f
100644
(file)
--- a/
maintenance/edit.php
+++ b/
maintenance/edit.php
@@
-21,7
+21,7
@@
* @ingroup Maintenance
*/
* @ingroup Maintenance
*/
-require_once(
dirname( __FILE__ )
. '/Maintenance.php' );
+require_once(
__DIR__
. '/Maintenance.php' );
/**
* Maintenance script to make a page edit.
/**
* Maintenance script to make a page edit.
@@
-68,10
+68,11
@@
class EditCLI extends Maintenance {
# Read the text
$text = $this->getStdin( Maintenance::STDIN_ALL );
# Read the text
$text = $this->getStdin( Maintenance::STDIN_ALL );
+ $content = ContentHandler::makeContent( $text, $wgTitle );
# Do the edit
$this->output( "Saving... " );
# Do the edit
$this->output( "Saving... " );
- $status = $page->doEdit
( $tex
t, $summary,
+ $status = $page->doEdit
Content( $conten
t, $summary,
( $minor ? EDIT_MINOR : 0 ) |
( $bot ? EDIT_FORCE_BOT : 0 ) |
( $autoSummary ? EDIT_AUTOSUMMARY : 0 ) |
( $minor ? EDIT_MINOR : 0 ) |
( $bot ? EDIT_FORCE_BOT : 0 ) |
( $autoSummary ? EDIT_AUTOSUMMARY : 0 ) |