Index: trunk/phase3/includes/Article.php |
— | — | @@ -813,7 +813,9 @@ |
814 | 814 | if ($this->getID() == 0) { |
815 | 815 | $loglist = new LogEventsList( $wgUser->getSkin(), $wgOut ); |
816 | 816 | $pager = new LogPager( $loglist, 'delete', false, $this->mTitle->getPrefixedText() ); |
817 | | - if( $pager->getNumRows() > 0 ) { |
| 817 | + $count = $pager->getNumRows(); |
| 818 | + if( $count > 0 ) { |
| 819 | + $pager->mLimit = 10; |
818 | 820 | $wgOut->addHtml( '<div id="mw-deleted-notice">' ); |
819 | 821 | $wgOut->addWikiMsg( 'deleted-notice' ); |
820 | 822 | $wgOut->addHTML( |
— | — | @@ -821,6 +823,15 @@ |
822 | 824 | $pager->getBody() . |
823 | 825 | $loglist->endLogEventsList() |
824 | 826 | ); |
| 827 | + if($count > 10){ |
| 828 | + $wgOut->addHtml( $wgUser->getSkin()->link( |
| 829 | + SpecialPage::getTitleFor( 'Log' ), |
| 830 | + wfMsgHtml( 'deletelog-fulllog' ), |
| 831 | + array(), |
| 832 | + array( |
| 833 | + 'type' => 'delete', |
| 834 | + 'page' => $this->mTitle->getPrefixedText() ) ) ); |
| 835 | + } |
825 | 836 | $wgOut->addHtml( '</div>' ); |
826 | 837 | } |
827 | 838 | } |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -2340,7 +2340,9 @@ |
2341 | 2341 | global $wgUser; |
2342 | 2342 | $loglist = new LogEventsList( $wgUser->getSkin(), $out ); |
2343 | 2343 | $pager = new LogPager( $loglist, 'delete', false, $this->mTitle->getPrefixedText() ); |
2344 | | - if ( $pager->getNumRows() > 0 ) { |
| 2344 | + $count = $pager->getNumRows(); |
| 2345 | + if ( $count > 0 ) { |
| 2346 | + $pager->mLimit = 10; |
2345 | 2347 | $out->addHtml( '<div id="mw-recreate-deleted-warn">' ); |
2346 | 2348 | $out->addWikiMsg( 'recreate-deleted-warn' ); |
2347 | 2349 | $out->addHTML( |
— | — | @@ -2348,9 +2350,19 @@ |
2349 | 2351 | $pager->getBody() . |
2350 | 2352 | $loglist->endLogEventsList() |
2351 | 2353 | ); |
| 2354 | + if($count > 10){ |
| 2355 | + $out->addHtml( $wgUser->getSkin()->link( |
| 2356 | + SpecialPage::getTitleFor( 'Log' ), |
| 2357 | + wfMsgHtml( 'deletelog-fulllog' ), |
| 2358 | + array(), |
| 2359 | + array( |
| 2360 | + 'type' => 'delete', |
| 2361 | + 'page' => $this->mTitle->getPrefixedText() ) ) ); |
| 2362 | + } |
2352 | 2363 | $out->addHtml( '</div>' ); |
2353 | 2364 | return true; |
2354 | 2365 | } |
| 2366 | + |
2355 | 2367 | return false; |
2356 | 2368 | } |
2357 | 2369 | |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1186,6 +1186,7 @@ |
1187 | 1187 | The deletion log for this page is provided here for convenience:", |
1188 | 1188 | 'deleted-notice' => 'This page has been deleted. |
1189 | 1189 | The deletion log for the page is provided below for reference.', |
| 1190 | +'deletelog-fulllog' => 'View full log', |
1190 | 1191 | |
1191 | 1192 | # Parser/template warnings |
1192 | 1193 | 'expensive-parserfunction-warning' => 'Warning: This page contains too many expensive parser function calls. |