Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -604,8 +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 | + // Show deletion log when editing new article. |
| 609 | + $this->mArticle->showLogExtract( $wgOut, 'create' ); |
610 | 610 | } |
611 | 611 | } |
612 | 612 | |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -857,7 +857,7 @@ |
858 | 858 | * This won't appear when editing a new page, but will when viewing a nonexistant one. |
859 | 859 | */ |
860 | 860 | if ( 0 == $this->getID() ) { |
861 | | - $this->showLogExtract( $wgOut ); |
| 861 | + $this->showLogExtract( $wgOut, 'view' ); |
862 | 862 | } |
863 | 863 | |
864 | 864 | # Trackbacks |
— | — | @@ -2006,22 +2006,23 @@ |
2007 | 2007 | |
2008 | 2008 | $wgOut->returnToMain( false ); |
2009 | 2009 | |
2010 | | - $this->showLogExtract( $wgOut ); |
| 2010 | + $this->showLogExtract( $wgOut, 'delete' ); |
2011 | 2011 | } |
2012 | 2012 | |
2013 | 2013 | |
2014 | 2014 | /** |
2015 | 2015 | * Fetch deletion log |
2016 | 2016 | */ |
2017 | | - function showLogExtract( &$out ) { |
| 2017 | + function showLogExtract( &$out, $type = '' ) { |
2018 | 2018 | # Show relevant lines from the deletion log: |
2019 | | - $out->addHTML( "<h2>" . htmlspecialchars( LogPage::logName( 'delete' ) ) . "</h2>\n" ); |
| 2019 | + $out->addHTML( "<div id='mw-article-$type-deletionlog'><h2>" . htmlspecialchars( LogPage::logName( 'delete' ) ) . "</h2>\n" ); |
2020 | 2020 | $logViewer = new LogViewer( |
2021 | 2021 | new LogReader( |
2022 | 2022 | new FauxRequest( |
2023 | 2023 | array( 'page' => $this->mTitle->getPrefixedText(), |
2024 | 2024 | 'type' => 'delete' ) ) ) ); |
2025 | 2025 | $logViewer->showList( $out ); |
| 2026 | + $out->addHTML( "</div>" ); |
2026 | 2027 | } |
2027 | 2028 | |
2028 | 2029 | |