r22642 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22641‎ | r22642 | r22643 >
Date:00:41, 2 June 2007
Author:amidaniel
Status:old
Tags:
Comment:
(bug 7691) Show deletion log following noarticletext and newarticletext when creating a new page.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Article.php (modified) (history)
  • /trunk/phase3/includes/EditPage.php (modified) (history)
  • /trunk/phase3/includes/ProtectionForm.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ProtectionForm.php
@@ -360,7 +360,7 @@
361361 * @access private
362362 */
363363 function showLogExtract( &$out ) {
364 - # Show relevant lines from the deletion log:
 364+ # Show relevant lines from the protection log:
365365 $out->addHTML( "<h2>" . htmlspecialchars( LogPage::logName( 'protect' ) ) . "</h2>\n" );
366366 $logViewer = new LogViewer(
367367 new LogReader(
Index: trunk/phase3/includes/Article.php
@@ -852,6 +852,14 @@
853853 );
854854 }
855855
 856+ /**
 857+ * If it's a non-existant page, stick the deletion log before the "noarticle" message.
 858+ * This won't appear when editing a new page, but will when viewing a nonexistant one.
 859+ */
 860+ if ( 0 == $this->getID() ) {
 861+ $this->showLogExtract( $wgOut );
 862+ }
 863+
856864 # Trackbacks
857865 if ($wgUseTrackbacks)
858866 $this->addTrackbacks();
Index: trunk/phase3/includes/EditPage.php
@@ -604,6 +604,8 @@
605605 $wgOut->addWikiText( wfMsg( 'newarticletext' ) );
606606 else
607607 $wgOut->addWikiText( wfMsg( 'newarticletextanon' ) );
 608+ // Show deletion log when editing new article.
 609+ $this->mArticle->showLogExtract( $wgOut );
608610 }
609611 }
610612
Index: trunk/phase3/RELEASE-NOTES
@@ -51,6 +51,8 @@
5252 * Added $wgArticleRobotPolicies
5353 * (bug 10076) Additional parameter $7 added to MediaWiki:Blockedtext
5454 containing, the ip, ip range, or username whose block is affecting the
 55+* (bug 7691) Deletion log now shown when creating a new article, following
 56+ MediaWiki:Noarticletext(anon) or MediaWiki:Newarticletext(anon).
5557 current user.
5658
5759 == Bugfixes since 1.10 ==

Follow-up revisions

RevisionCommit summaryAuthorDate
r22652Merged revisions 22619-22651 via svnmerge from...david06:10, 2 June 2007