Index: trunk/phase3/includes/Article.php |
— | — | @@ -1264,7 +1264,7 @@ |
1265 | 1265 | /** |
1266 | 1266 | * @return string Complete article text, or null if error |
1267 | 1267 | */ |
1268 | | - function replaceSection( $section, $text, $summary = '', $edittime = NULL ) { |
| 1268 | + public function replaceSection( $section, $text, $summary = '', $edittime = NULL ) { |
1269 | 1269 | wfProfileIn( __METHOD__ ); |
1270 | 1270 | if( $section === '' ) { |
1271 | 1271 | // Whole-page edit; let the whole text through |
— | — | @@ -1347,7 +1347,7 @@ |
1348 | 1348 | } |
1349 | 1349 | |
1350 | 1350 | $dbw = wfGetDB( DB_MASTER ); |
1351 | | - if($watchthis) { |
| 1351 | + if( $watchthis ) { |
1352 | 1352 | if(!$this->mTitle->userIsWatching()) { |
1353 | 1353 | $dbw->begin(); |
1354 | 1354 | $this->doWatch(); |
— | — | @@ -2294,18 +2294,7 @@ |
2295 | 2295 | LogEventsList::showLogExtract( $wgOut, 'delete', $this->mTitle->getPrefixedText() ); |
2296 | 2296 | } |
2297 | 2297 | |
2298 | | - |
2299 | 2298 | /** |
2300 | | - * Show relevant lines from the deletion log |
2301 | | - */ |
2302 | | - public function showLogExtract( $out ) { |
2303 | | - wfDeprecated( __METHOD__ ); |
2304 | | - $out->addHTML( Xml::element( 'h2', null, LogPage::logName( 'delete' ) ) ); |
2305 | | - LogEventsList::showLogExtract( $out, 'delete', $this->mTitle->getPrefixedText() ); |
2306 | | - } |
2307 | | - |
2308 | | - |
2309 | | - /** |
2310 | 2299 | * Perform a deletion and output success or failure messages |
2311 | 2300 | */ |
2312 | 2301 | public function doDelete( $reason, $suppress = false ) { |