* Added $wgArticleRobotPolicies
* (bug 10076) Additional parameter $7 added to MediaWiki:Blockedtext
containing, the ip, ip range, or username whose block is affecting the
+* (bug 7691) Deletion log now shown when creating a new article, following
+ MediaWiki:Noarticletext(anon) or MediaWiki:Newarticletext(anon).
current user.
== Bugfixes since 1.10 ==
);
}
+ /**
+ * If it's a non-existant page, stick the deletion log before the "noarticle" message.
+ * This won't appear when editing a new page, but will when viewing a nonexistant one.
+ */
+ if ( 0 == $this->getID() ) {
+ $this->showLogExtract( $wgOut );
+ }
+
# Trackbacks
if ($wgUseTrackbacks)
$this->addTrackbacks();
$wgOut->addWikiText( wfMsg( 'newarticletext' ) );
else
$wgOut->addWikiText( wfMsg( 'newarticletextanon' ) );
+ // Show deletion log when editing new article.
+ $this->mArticle->showLogExtract( $wgOut );
}
}
* @access private
*/
function showLogExtract( &$out ) {
- # Show relevant lines from the deletion log:
+ # Show relevant lines from the protection log:
$out->addHTML( "<h2>" . htmlspecialchars( LogPage::logName( 'protect' ) ) . "</h2>\n" );
$logViewer = new LogViewer(
new LogReader(