Index: trunk/extensions/Translate/scripts/languageeditstats.php |
— | — | @@ -32,22 +32,27 @@ |
33 | 33 | |
34 | 34 | /** Process command line parameters |
35 | 35 | */ |
36 | | -if ( isset( $options['help'] ) ) showUsage(); |
| 36 | +if ( isset( $options['help'] ) ) { |
| 37 | + showUsage(); |
| 38 | +} |
37 | 39 | |
38 | | -if ( isset( $options['days'] ) ) |
39 | | - $hours = $options['days'] * 24; // no day change cutoff |
40 | | -else |
| 40 | +if ( isset( $options['days'] ) ) { |
| 41 | + $hours = inval( $options['days'] ) * 24; // no day change cutoff |
| 42 | +} else { |
41 | 43 | $hours = 7 * 24; |
| 44 | +} |
42 | 45 | |
43 | | -if ( isset( $options['top'] ) ) |
44 | | - $top = $options['top']; |
45 | | -else |
| 46 | +if ( isset( $options['top'] ) ) { |
| 47 | + $top = intval( $options['top'] ); |
| 48 | +} else { |
46 | 49 | $top = 10; |
| 50 | +} |
47 | 51 | |
48 | | -if ( isset( $options['bots'] ) ) |
| 52 | +if ( isset( $options['bots'] ) ) { |
49 | 53 | $bots = true; |
50 | | -else |
| 54 | +} else { |
51 | 55 | $bots = false; |
| 56 | +} |
52 | 57 | |
53 | 58 | $namespaces = array(); |
54 | 59 | if ( isset( $options['ns'] ) ) { |