Index: trunk/phase3/includes/Article.php |
— | — | @@ -1265,11 +1265,12 @@ |
1266 | 1266 | } |
1267 | 1267 | |
1268 | 1268 | /** |
| 1269 | + * @param $section empty/null/false or a section number (0, 1, 2, T1, T2...) |
1269 | 1270 | * @return string Complete article text, or null if error |
1270 | 1271 | */ |
1271 | 1272 | public function replaceSection( $section, $text, $summary = '', $edittime = NULL ) { |
1272 | 1273 | wfProfileIn( __METHOD__ ); |
1273 | | - if( $section == '' ) { |
| 1274 | + if( strval( $section ) == '' ) { |
1274 | 1275 | // Whole-page edit; let the whole text through |
1275 | 1276 | } else { |
1276 | 1277 | if( is_null($edittime) ) { |