From 1ac6514e6d4a1f99ca2649a49addc4ca8bcb2099 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 18 Mar 2008 18:58:03 +0000 Subject: [PATCH] Cleanup some log item display for Enhanced RC (thanks to ialex for pointing out code oddness) --- includes/ChangesList.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/includes/ChangesList.php b/includes/ChangesList.php index d118df68f6..39b94a1fe9 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -404,12 +404,13 @@ class EnhancedChangesList extends ChangesList { $showdifflinks = true; # Make article link + // Page moves if( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) { $msg = ( $rc_type == RC_MOVE ) ? "1movedto2" : "1movedto2_redir"; $clink = wfMsg( $msg, $this->skin->makeKnownLinkObj( $rc->getTitle(), '', 'redirect=no' ), $this->skin->makeKnownLinkObj( $rc->getMovedToTitle(), '' ) ); - } elseif( $rc_namespace == NS_SPECIAL ) { // Log entries (old format) and special pages + } elseif( $rc_namespace == NS_SPECIAL ) { list( $specialName, $logtype ) = SpecialPage::resolveAliasWithSubpage( $rc_title ); if ( $specialName == 'Log' ) { # Log updates, etc @@ -419,12 +420,8 @@ class EnhancedChangesList extends ChangesList { wfDebug( "Unexpected special page in recentchanges\n" ); $clink = ''; } - } elseif( $rc_log_type !='' ) { - // Log entries - $logtitle = Title::newFromText( "Log/$rc_log_type", NS_SPECIAL ); - $logname = LogPage::logName( $rc_log_type ); - $clink = '(' . $this->skin->makeKnownLinkObj($logtitle, $logname ) . ')'; - } if( $this->isDeleted($rc,Revision::DELETED_TEXT) ) { + // Page edits or log entries (group these page) + } else if( $this->isDeleted($rc,Revision::DELETED_TEXT) ) { $clink = '' . $this->skin->makeKnownLinkObj( $rc->getTitle(), '' ) . ''; if ( !ChangesList::userCan($rc,Revision::DELETED_TEXT) ) $showdifflinks = false; -- 2.20.1