@@ 1304-1309 (lines=6) @@ | ||
1301 | // assumes $botMax >= $max |
|
1302 | if ( !is_null( $max ) && $value > $max ) { |
|
1303 | if ( !is_null( $botMax ) && $this->getMain()->canApiHighLimits() ) { |
|
1304 | if ( $value > $botMax ) { |
|
1305 | $msg = $this->encodeParamName( $paramName ) . |
|
1306 | " may not be over $botMax (set to $value) for bots or sysops"; |
|
1307 | $this->warnOrDie( $msg, $enforceLimits ); |
|
1308 | $value = $botMax; |
|
1309 | } |
|
1310 | } else { |
|
1311 | $msg = $this->encodeParamName( $paramName ) . " may not be over $max (set to $value) for users"; |
|
1312 | $this->warnOrDie( $msg, $enforceLimits ); |
|
@@ 1310-1314 (lines=5) @@ | ||
1307 | $this->warnOrDie( $msg, $enforceLimits ); |
|
1308 | $value = $botMax; |
|
1309 | } |
|
1310 | } else { |
|
1311 | $msg = $this->encodeParamName( $paramName ) . " may not be over $max (set to $value) for users"; |
|
1312 | $this->warnOrDie( $msg, $enforceLimits ); |
|
1313 | $value = $max; |
|
1314 | } |
|
1315 | } |
|
1316 | } |
|
1317 |