* Add FIXME about the bug I found during testing
* Make the only instance of the ParserOptions::getMaxIncludeSize() that doesn't match its method signature match.
This commit is contained in:
parent
2e18112d60
commit
e002df9eca
1 changed files with 2 additions and 1 deletions
|
|
@ -2971,6 +2971,7 @@ class Parser {
|
|||
$originalTitle = $part1;
|
||||
|
||||
# $args is a list of argument nodes, starting from index 0, not including $part1
|
||||
# *** FIXME if piece['parts'] is null then the call to getLength() below won't work b/c this $args isn't an object
|
||||
$args = ( null == $piece['parts'] ) ? array() : $piece['parts'];
|
||||
wfProfileOut( __METHOD__.'-setup' );
|
||||
|
||||
|
|
@ -3566,7 +3567,7 @@ class Parser {
|
|||
* @return Boolean: false if this inclusion would take it over the maximum, true otherwise
|
||||
*/
|
||||
function incrementIncludeSize( $type, $size ) {
|
||||
if ( $this->mIncludeSizes[$type] + $size > $this->mOptions->getMaxIncludeSize( $type ) ) {
|
||||
if ( $this->mIncludeSizes[$type] + $size > $this->mOptions->getMaxIncludeSize() ) {
|
||||
return false;
|
||||
} else {
|
||||
$this->mIncludeSizes[$type] += $size;
|
||||
|
|
|
|||
Loading…
Reference in a new issue