Prepend x to section ids not starting with [a-z]
[lhc/web/wiklou.git] / maintenance / dumpBackup.php
index 6590fd4..de7ce65 100644 (file)
@@ -18,7 +18,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  * http://www.gnu.org/copyleft/gpl.html
  *
- * @addtogroup SpecialPage
+ * @file
+ * @ingroup Dump Maintenance
  */
 
 $originalDir = getcwd();
@@ -62,8 +63,10 @@ if( isset( $options['full'] ) ) {
        $dumper->dump( WikiExporter::FULL, $textMode );
 } elseif( isset( $options['current'] ) ) {
        $dumper->dump( WikiExporter::CURRENT, $textMode );
+} elseif( isset( $options['logs'] ) ) {
+       $dumper->dump( WikiExporter::LOGS );
 } else {
-       $dumper->progress( <<<END
+       $dumper->progress( <<<ENDS
 This script dumps the wiki page database into an XML interchange wrapper
 format for export or backup.
 
@@ -73,6 +76,7 @@ Usage: php dumpBackup.php <action> [<options>]
 Actions:
   --full      Dump complete history of every page.
   --current   Includes only the latest revision of each page.
+  --logs      Dump action logs for every page.
 
 Options:
   --quiet     Don't dump status reports to stderr.
@@ -92,7 +96,7 @@ Fancy stuff:
                               <type>s: file, gzip, bzip2, 7zip
   --filter=<type>[:<options>] Add a filter on an output branch
 
-END
+ENDS
 );
 }