Index: trunk/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -210,6 +210,10 @@ |
211 | 211 | $this->generateXML = $params['generatexml']; |
212 | 212 | $this->parseContent = $params['parse']; |
213 | 213 | if ( $this->parseContent ) { |
| 214 | + // Must manually initialize unset limit |
| 215 | + if ( is_null( $limit ) ) { |
| 216 | + $limit = 1; |
| 217 | + } |
214 | 218 | // We are only going to parse 1 revision per request |
215 | 219 | $this->validateLimit( 'limit', $limit, 1, 1, 1 ); |
216 | 220 | } |