* Call Linker methods statically
[lhc/web/wiklou.git] / includes / LogPage.php
index aa57929..995c609 100644 (file)
@@ -225,11 +225,6 @@ class LogPage {
 
                $key = "$type/$action";
 
-               # Defer patrol log to PatrolLog class
-               if( $key == 'patrol/patrol' ) {
-                       return PatrolLog::makeActionText( $title, $params, $langObjOrNull );
-               }
-
                if( isset( $wgLogActions[$key] ) ) {
                        if( is_null( $title ) ) {
                                $rv = wfMsgExt( $wgLogActions[$key], array( 'parsemag', 'escape', 'language' => $langObj ) );
@@ -286,23 +281,6 @@ class LogPage {
                                                if( $params[2] ) {
                                                        $details .= ' [' . wfMsgExt( 'protect-summary-cascade', array( 'parsemag', 'language' => $langObj ) ) . ']';
                                                }
-                                       // Page moves
-                                       } elseif ( $type == 'move' && count( $params ) == 3 ) {
-                                               if( $params[2] ) {
-                                                       $details .= ' [' . wfMsgExt( 'move-redirect-suppressed', array( 'parsemag', 'language' => $langObj ) ) . ']';
-                                               }
-                                       // Revision deletion
-                                       } elseif ( preg_match( '/^(delete|suppress)\/revision$/', $key ) && count( $params ) == 5 ) {
-                                               $count = substr_count( $params[2], ',' ) + 1; // revisions
-                                               $ofield = intval( substr( $params[3], 7 ) ); // <ofield=x>
-                                               $nfield = intval( substr( $params[4], 7 ) ); // <nfield=x>
-                                               $details .= ': ' . RevisionDeleter::getLogMessage( $count, $nfield, $ofield, $langObj, false );
-                                       // Log deletion
-                                       } elseif ( preg_match( '/^(delete|suppress)\/event$/', $key ) && count( $params ) == 4 ) {
-                                               $count = substr_count( $params[1], ',' ) + 1; // log items
-                                               $ofield = intval( substr( $params[2], 7 ) ); // <ofield=x>
-                                               $nfield = intval( substr( $params[3], 7 ) ); // <nfield=x>
-                                               $details .= ': ' . RevisionDeleter::getLogMessage( $count, $nfield, $ofield, $langObj, true );
                                        }
 
                                        $rv = wfMsgExt( $wgLogActions[$key], array( 'parsemag', 'escape', 'replaceafter', 'language' => $langObj ), $params ) . $details;