From: Victor Vasiliev Date: Tue, 29 Apr 2008 14:55:47 +0000 (+0000) Subject: * Hide edit section links on Special:Undelete X-Git-Tag: 1.31.0-rc.0~48012 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=0e1cef21464acd09353c06a6c54ab60785f7e9b8;p=lhc%2Fweb%2Fwiklou.git * Hide edit section links on Special:Undelete --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 445ac50a30..858a2e1077 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -221,6 +221,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13824) AJAX search suggestion now works with non-SkinTemplate skins * Added 'application/x-dia-diagram' MediaWiki's known MIME types * (bug 13866) skins/common/shared.css - invalid attribute fixing +* Hide edit section links on Special:Undelete === API changes in 1.13 === diff --git a/includes/SpecialUndelete.php b/includes/SpecialUndelete.php index 9a0baa0148..706dab309e 100644 --- a/includes/SpecialUndelete.php +++ b/includes/SpecialUndelete.php @@ -770,6 +770,11 @@ class UndeleteForm { if( $this->mPreview ) { $wgOut->addHtml( "
\n" ); + + //Hide [edit]s + $popts = $wgOut->parserOptions(); + $popts->setEditSection( false ); + $wgOut->parserOptions( $popts ); $wgOut->addWikiTextTitleTidy( $rev->revText(), $this->mTargetObj, false ); }