r23463 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23462‎ | r23463 | r23464 >
Date:08:37, 27 June 2007
Author:robchurch
Status:old
Tags:
Comment:
* Restore behaviour when blockee name starts with a hash, indicating an autoblock
* Comment out LogPage::actionText() [using as a reference]
Modified paths:
  • /branches/robchurch/logs/includes/BlockLogFormatter.php (modified) (history)
  • /branches/robchurch/logs/includes/LogPage.php (modified) (history)

Diff [purge]

Index: branches/robchurch/logs/includes/BlockLogFormatter.php
@@ -50,6 +50,9 @@
5151 global $wgUser;
5252 $skin = $wgUser->getSkin();
5353
 54+ if( substr( $target->getText(), 0, 1 ) == '#' )
 55+ return $target->getText();
 56+
5457 $tools[] = $skin->makeLinkObj( $target->getTalkPage(), wfMsgHtml( 'talkpagelinktext' ) );
5558 $tools[] = $skin->makeKnownLinkObj(
5659 SpecialPage::getTitleFor( 'Contributions', $target->getText() ), wfMsgHtml( 'contribslink' ) );
Index: branches/robchurch/logs/includes/LogPage.php
@@ -91,9 +91,8 @@
9292 return wfMsg( $wgLogHeaders[$type] );
9393 }
9494
 95+
9596 /**
96 - * @static
97 - */
9897 static function actionText( $type, $action, $title = NULL, $skin = NULL, $params = array(), $filterWikilinks=false, $translate=false ) {
9998 global $wgLang, $wgContLang, $wgLogActions;
10099
@@ -171,7 +170,7 @@
172171 $rv = str_replace( "]]", "", $rv );
173172 }
174173 return $rv;
175 - }
 174+ }*/
176175
177176 /**
178177 * Insert a new log row, updating recent changes if

Status & tagging log