Index: trunk/phase3/includes/ProtectionForm.php |
— | — | @@ -360,7 +360,7 @@ |
361 | 361 | * @access private |
362 | 362 | */ |
363 | 363 | function showLogExtract( &$out ) { |
364 | | - # Show relevant lines from the deletion log: |
| 364 | + # Show relevant lines from the protection log: |
365 | 365 | $out->addHTML( "<h2>" . htmlspecialchars( LogPage::logName( 'protect' ) ) . "</h2>\n" ); |
366 | 366 | $logViewer = new LogViewer( |
367 | 367 | new LogReader( |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -852,6 +852,14 @@ |
853 | 853 | ); |
854 | 854 | } |
855 | 855 | |
| 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 | + |
856 | 864 | # Trackbacks |
857 | 865 | if ($wgUseTrackbacks) |
858 | 866 | $this->addTrackbacks(); |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -604,6 +604,8 @@ |
605 | 605 | $wgOut->addWikiText( wfMsg( 'newarticletext' ) ); |
606 | 606 | else |
607 | 607 | $wgOut->addWikiText( wfMsg( 'newarticletextanon' ) ); |
| 608 | + // Show deletion log when editing new article. |
| 609 | + $this->mArticle->showLogExtract( $wgOut ); |
608 | 610 | } |
609 | 611 | } |
610 | 612 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -51,6 +51,8 @@ |
52 | 52 | * Added $wgArticleRobotPolicies |
53 | 53 | * (bug 10076) Additional parameter $7 added to MediaWiki:Blockedtext |
54 | 54 | 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). |
55 | 57 | current user. |
56 | 58 | |
57 | 59 | == Bugfixes since 1.10 == |