Guest User

patch

a guest
Feb 25th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. protected function showCustomIntro() {
  2. if ( $this->editintro ) {
  3. $title = Title::newFromText( $this->editintro );
  4. if ( $title instanceof Title && $title->exists() && $title->userCan( 'read' ) ) {
  5. global $wgOut;
  6. // Added using template syntax, to take <noinclude>'s into account.
  7. $wgOut->addWikiTextTitleTidy( <div class="mw-editintro">'{{:' . $title->getFullText() . '}}', $this->mTitle</div> );
  8. return true;
  9. }
  10. }
  11. return false;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment