Follow-up on r56284: LogEventsList::showLogExtract gets associative array for additio...
[lhc/web/wiklou.git] / includes / HistoryPage.php
index 9e8988e..81ab58b 100644 (file)
@@ -105,7 +105,13 @@ class HistoryPage {
                 */
                if( !$this->title->exists() ) {
                        $wgOut->addWikiMsg( 'nohistory' );
-                       $this->article->showLogs(); // show deletion/move log if there is an entry
+                       # show deletion/move log if there is an entry
+                       LogEventsList::showLogExtract( $wgOut, array( 'delete', 'move' ), $this->title->getPrefixedText(), '',
+                               array(  'lim' => 10,
+                                       'conds' => array( "log_action != 'revision'" ),
+                                       'showIfEmpty' => false,
+                                       'msgKey' => array( 'moveddeleted-notice' ) ) 
+                       );
                        wfProfileOut( __METHOD__ );
                        return;
                }