(bug 18891) Deprecated Article::insertNewArticle still used in core
[lhc/web/wiklou.git] / docs / maintenance.txt
index d46d12e..039c71c 100644 (file)
@@ -22,6 +22,9 @@ The following parameters are available to all maintenance scripts
 --quiet  : Quiet non-error output
 --dbuser : The database user to use for the script (if needed)
 --dbpass : Same as above (if needed)
+--conf   : Location of LocalSettings.php, if not default
+--wiki   : For specifying the wiki ID
+--batch-size : If the script supports batch operations, do this many per batch
 
 3. HOW TO WRITE YOUR OWN
 Make a file in the maintenance directory called myScript.php or something.
@@ -39,7 +42,7 @@ class DemoMaint extends Maintenance {
     parent::__construct();
   }
 
-  protected function execute() {
+  public function execute() {
   }
 }
 
@@ -51,4 +54,4 @@ require_once( DO_MAINTENANCE );
 That's it. In the execute() method, you have access to all of the normal
 MediaWiki functions, so you can get a DB connection, use the cache, etc.
 For full docs on the Maintenance class, see the auto-generated docs at
-http://svn.wikimedia.org/doc/classMaintenance.html
\ No newline at end of file
+http://svn.wikimedia.org/doc/classMaintenance.html