Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -545,7 +545,7 @@ |
546 | 546 | if ( $this->userCanExecute( $this->getUser() ) ) { |
547 | 547 | $func = $this->mFunction; |
548 | 548 | // only load file if the function does not exist |
549 | | - if(!is_callable($func) and $this->mFile) { |
| 549 | + if( !is_callable($func) && $this->mFile ) { |
550 | 550 | require_once( $this->mFile ); |
551 | 551 | } |
552 | 552 | $this->outputHeader(); |
Index: trunk/phase3/includes/api/ApiParamInfo.php |
— | — | @@ -123,6 +123,9 @@ |
124 | 124 | $result->setIndexedTagName( $retval['helpurls'], 'helpurl' ); |
125 | 125 | |
126 | 126 | $retval['allexamples'] = $examples; |
| 127 | + if ( isset( $retval['allexamples'][0] ) && $retval['allexamples'][0] === false ) { |
| 128 | + $retval['allexamples'] = array(); |
| 129 | + } |
127 | 130 | $result->setIndexedTagName( $retval['allexamples'], 'example' ); |
128 | 131 | |
129 | 132 | $retval['parameters'] = array(); |