Index: trunk/extensions/LocalisationUpdate/update.php |
— | — | @@ -4,6 +4,7 @@ |
5 | 5 | ? getenv( 'MW_INSTALL_PATH' ) |
6 | 6 | : realpath( dirname( __FILE__ ) . "/../../" ); |
7 | 7 | |
| 8 | +// TODO: migrate to maintenance class |
8 | 9 | require_once( "$IP/maintenance/commandLine.inc" ); |
9 | 10 | |
10 | 11 | if( isset( $options['help'] ) ) { |
— | — | @@ -17,6 +18,7 @@ |
18 | 19 | print " --skip-extensions Don't fetch any extension files\n"; |
19 | 20 | print " --all Fetch all present extensions, not just those enabled\n"; |
20 | 21 | print " --outdir=<dir> Override output directory for serialized update files\n"; |
| 22 | + print " --svnurl=<url> URL to SVN repository, or path to local SVN checkout. Default: $wgLocalisationUpdateSVNURL\n"; |
21 | 23 | print "\n"; |
22 | 24 | exit( 0 ); |
23 | 25 | } |
Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php |
— | — | @@ -52,7 +52,7 @@ |
53 | 53 | * @return true |
54 | 54 | */ |
55 | 55 | public static function updateMessages( array $options ) { |
56 | | - global $wgLocalisationUpdateDirectory; |
| 56 | + global $wgLocalisationUpdateDirectory, $wgLocalisationUpdateSVNURL; |
57 | 57 | |
58 | 58 | $verbose = !isset( $options['quiet'] ); |
59 | 59 | $all = isset( $options['all'] ); |
— | — | @@ -62,6 +62,11 @@ |
63 | 63 | if( isset( $options['outdir'] ) ) { |
64 | 64 | $wgLocalisationUpdateDirectory = $options['outdir']; |
65 | 65 | } |
| 66 | + |
| 67 | + if ( isset( $options['svnurl['] ) ) { |
| 68 | + // FIXME: Ewwwww. Refactor so this can be done properly |
| 69 | + $wgLocalisationUpdateSVNURL = $options['svnurl']; |
| 70 | + } |
66 | 71 | |
67 | 72 | $result = 0; |
68 | 73 | |