Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -455,6 +455,16 @@ |
456 | 456 | $wgOut->addWikiMsg( 'talkpagetext' ); |
457 | 457 | } |
458 | 458 | |
| 459 | + # Optional notices on a per-namespace and per-page basis |
| 460 | + $editnotice_ns = 'editnotice-'.Sanitizer::escapeClass( 'ns-'.$this->mTitle->getNamespace() ); |
| 461 | + $editnotice_page = 'editnotice-'.Sanitizer::escapeClass( 'page-'.$this->mTitle->getPrefixedText() ); |
| 462 | + if ( !wfEmptyMsg( $editnotice_ns, wfMsgForContent( $editnotice_ns ) ) ) { |
| 463 | + $wgOut->addWikiMsg( $editnotice_ns ); |
| 464 | + } |
| 465 | + if ( !wfEmptyMsg( $editnotice_page, wfMsgForContent( $editnotice_page ) ) ) { |
| 466 | + $wgOut->addWikiMsg( $editnotice_page ); |
| 467 | + } |
| 468 | + |
459 | 469 | # Attempt submission here. This will check for edit conflicts, |
460 | 470 | # and redundantly check for locked database, blocked IPs, etc. |
461 | 471 | # that edit() already checked just in case someone tries to sneak |