@@ 75-81 (lines=7) @@ | ||
72 | } |
|
73 | ||
74 | if ( $mode == 'user' ) { |
|
75 | foreach ( [ 'from', 'to', 'prefix', 'excludeuser' ] as $param ) { |
|
76 | if ( !is_null( $params[$param] ) ) { |
|
77 | $p = $this->getModulePrefix(); |
|
78 | $this->dieUsage( "The '{$p}{$param}' parameter cannot be used with '{$p}user'", |
|
79 | 'badparams' ); |
|
80 | } |
|
81 | } |
|
82 | } else { |
|
83 | foreach ( [ 'start', 'end' ] as $param ) { |
|
84 | if ( !is_null( $params[$param] ) ) { |
|
@@ 83-89 (lines=7) @@ | ||
80 | } |
|
81 | } |
|
82 | } else { |
|
83 | foreach ( [ 'start', 'end' ] as $param ) { |
|
84 | if ( !is_null( $params[$param] ) ) { |
|
85 | $p = $this->getModulePrefix(); |
|
86 | $this->dieUsage( "The '{$p}{$param}' parameter may only be used with '{$p}user'", |
|
87 | 'badparams' ); |
|
88 | } |
|
89 | } |
|
90 | } |
|
91 | ||
92 | // If we're generating titles only, we can use DISTINCT for a better |