r23464 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23463‎ | r23464 | r23465 >
Date:08:38, 27 June 2007
Author:robchurch
Status:old
Tags:
Comment:
Update
Modified paths:
  • /branches/robchurch/logs/includes/LogPage.php (modified) (history)

Diff [purge]

Index: branches/robchurch/logs/includes/LogPage.php
@@ -112,14 +112,6 @@
113113 $titleLink = $skin->makeLinkObj( $title, $title->getPrefixedText(), 'redirect=no' );
114114 $params[0] = $skin->makeLinkObj( Title::newFromText( $params[0] ), $params[0] );
115115 break;
116 - case 'block':
117 - if( substr( $title->getText(), 0, 1 ) == '#' ) {
118 - $titleLink = $title->getText();
119 - } else {
120 - $titleLink = $skin->makeLinkObj( $title, $title->getText() );
121 - $titleLink .= ' (' . $skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Contributions', $title->getDBkey() ), wfMsg( 'contribslink' ) ) . ')';
122 - }
123 - break;
124116 case 'rights':
125117 $text = $wgContLang->ucfirst( $title->getText() );
126118 $titleLink = $skin->makeLinkObj( Title::makeTitle( NS_USER, $text ) );
@@ -150,14 +142,6 @@
151143 }
152144 } else {
153145 array_unshift( $params, $titleLink );
154 - if ( $key == 'block/block' ) {
155 - if ( $translate ) {
156 - $params[1] = $wgLang->translateBlockExpiry( $params[1] );
157 - }
158 - $params[2] = isset( $params[2] )
159 - ? self::formatBlockFlags( $params[2] )
160 - : '';
161 - }
162146 $rv = wfMsgReal( $wgLogActions[$key], $params, true, !$skin );
163147 }
164148 }

Status & tagging log