r23468 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23467‎ | r23468 | r23469 >
Date:09:02, 27 June 2007
Author:robchurch
Status:old
Tags:
Comment:
Ding, dong, LogPage::actionText() is dead!
Modified paths:
  • /branches/robchurch/logs/includes/LogPage.php (modified) (history)

Diff [purge]

Index: branches/robchurch/logs/includes/LogPage.php
@@ -91,57 +91,7 @@
9292 return wfMsg( $wgLogHeaders[$type] );
9393 }
9494
95 -
9695 /**
97 - static function actionText( $type, $action, $title = NULL, $skin = NULL, $params = array(), $filterWikilinks=false, $translate=false ) {
98 - global $wgLang, $wgContLang, $wgLogActions;
99 -
100 - $key = "$type/$action";
101 -
102 - if( $key == 'patrol/patrol' )
103 - return PatrolLog::makeActionText( $title, $params, $skin );
104 -
105 - if( isset( $wgLogActions[$key] ) ) {
106 - if( is_null( $title ) ) {
107 - $rv=wfMsg( $wgLogActions[$key] );
108 - } else {
109 - if( $skin ) {
110 -
111 - switch( $type ) {
112 - case 'move':
113 - $titleLink = $skin->makeLinkObj( $title, $title->getPrefixedText(), 'redirect=no' );
114 - $params[0] = $skin->makeLinkObj( Title::newFromText( $params[0] ), $params[0] );
115 - break;
116 - default:
117 - $titleLink = $skin->makeLinkObj( $title );
118 - }
119 -
120 - } else {
121 - $titleLink = $title->getPrefixedText();
122 - }
123 - if( count( $params ) == 0 ) {
124 - if ( $skin ) {
125 - $rv = wfMsg( $wgLogActions[$key], $titleLink );
126 - } else {
127 - $rv = wfMsgForContent( $wgLogActions[$key], $titleLink );
128 - }
129 - } else {
130 - array_unshift( $params, $titleLink );
131 - $rv = wfMsgReal( $wgLogActions[$key], $params, true, !$skin );
132 - }
133 - }
134 - } else {
135 - wfDebug( "LogPage::actionText - unknown action $key\n" );
136 - $rv = "$action";
137 - }
138 - if( $filterWikilinks ) {
139 - $rv = str_replace( "[[", "", $rv );
140 - $rv = str_replace( "]]", "", $rv );
141 - }
142 - return $rv;
143 - }*/
144 -
145 - /**
14696 * Insert a new log row, updating recent changes if
14797 * we've been asked to do so
14898 *

Status & tagging log