Index: branches/robchurch/logs/includes/LogPage.php |
— | — | @@ -91,57 +91,7 @@ |
92 | 92 | return wfMsg( $wgLogHeaders[$type] ); |
93 | 93 | } |
94 | 94 | |
95 | | - |
96 | 95 | /** |
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 | | - /** |
146 | 96 | * Insert a new log row, updating recent changes if |
147 | 97 | * we've been asked to do so |
148 | 98 | * |