|
@@ 1205-1210 (lines=6) @@
|
| 1202 |
|
// assumes $botMax >= $max |
| 1203 |
|
if ( !is_null( $max ) && $value > $max ) { |
| 1204 |
|
if ( !is_null( $botMax ) && $this->getMain()->canApiHighLimits() ) { |
| 1205 |
|
if ( $value > $botMax ) { |
| 1206 |
|
$msg = $this->encodeParamName( $paramName ) . |
| 1207 |
|
" may not be over $botMax (set to $value) for bots or sysops"; |
| 1208 |
|
$this->warnOrDie( $msg, $enforceLimits ); |
| 1209 |
|
$value = $botMax; |
| 1210 |
|
} |
| 1211 |
|
} else { |
| 1212 |
|
$msg = $this->encodeParamName( $paramName ) . " may not be over $max (set to $value) for users"; |
| 1213 |
|
$this->warnOrDie( $msg, $enforceLimits ); |
|
@@ 1211-1215 (lines=5) @@
|
| 1208 |
|
$this->warnOrDie( $msg, $enforceLimits ); |
| 1209 |
|
$value = $botMax; |
| 1210 |
|
} |
| 1211 |
|
} else { |
| 1212 |
|
$msg = $this->encodeParamName( $paramName ) . " may not be over $max (set to $value) for users"; |
| 1213 |
|
$this->warnOrDie( $msg, $enforceLimits ); |
| 1214 |
|
$value = $max; |
| 1215 |
|
} |
| 1216 |
|
} |
| 1217 |
|
} |
| 1218 |
|
|