From: Brion Vibber Date: Tue, 15 Aug 2006 05:44:18 +0000 (+0000) Subject: forgot to make the base path settable X-Git-Tag: 1.31.0-rc.0~55986 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=0427a0f0a46f107975ccdaee72e093e2695a1753;p=lhc%2Fweb%2Fwiklou.git forgot to make the base path settable --- diff --git a/maintenance/dumpUploads.php b/maintenance/dumpUploads.php index e82515ef5f..8ba4e87bf2 100644 --- a/maintenance/dumpUploads.php +++ b/maintenance/dumpUploads.php @@ -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= 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; }