forgot to make the base path settable
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 15 Aug 2006 05:44:18 +0000 (05:44 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 15 Aug 2006 05:44:18 +0000 (05:44 +0000)
maintenance/dumpUploads.php

index e82515e..8ba4e87 100644 (file)
@@ -13,6 +13,10 @@ class UploadDumper {
                if( isset( $args['help'] ) ) {
                        $this->mAction = 'help';
                }
+               
+               if( isset( $args['base'] ) ) {
+                       $this->mBasePath = $args['base'];
+               }
        }
        
        function run() {
@@ -29,12 +33,14 @@ Usage:
 php dumpUploads.php [options] > list-o-files.txt
 
 Options:
+--base=<path>  Set base relative path instead of wiki include root
+
+FIXME: other options not implemented yet ;)
+
 --local        List all local files, used or not. No shared files included.
 --used         Skip local images that are not used
 --shared       Include images used from shared repository
 
-FIXME: options not implemented yet ;)
-
 END;
        }