Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -1243,31 +1243,26 @@ |
1244 | 1244 | * @param string $type |
1245 | 1245 | * @param string $action |
1246 | 1246 | * @param object $title |
1247 | | - * @param array $paramArray |
1248 | | - * @param string $c |
1249 | | - * @param string $r user tool links |
1250 | | - * @param string $t timestamp of the log entry |
| 1247 | + * @param array $params |
1251 | 1248 | * @return bool true |
1252 | 1249 | */ |
1253 | | - public static function reviewLogLine( $type='', $action='', $title=null, |
1254 | | - $paramArray=array(), &$c, &$r ) |
1255 | | - { |
| 1250 | + public static function reviewLogLine( $type='', $action='', $title=null, $params=array() ) { |
1256 | 1251 | $actionsValid = array('approve','approve2','approve-a','approve2-a','unapprove','unapprove2'); |
1257 | 1252 | # Show link to page with oldid=x |
1258 | | - if( $type == 'review' && in_array($action,$actionsValid) && is_object($title) && isset($paramArray[0]) ) { |
| 1253 | + if( $type == 'review' && in_array($action,$actionsValid) && is_object($title) && isset($params[0]) ) { |
1259 | 1254 | global $wgUser; |
1260 | 1255 | # Load required messages |
1261 | 1256 | wfLoadExtensionMessages( 'FlaggedRevs' ); |
1262 | 1257 | # Don't show diff if param missing or rev IDs are the same |
1263 | | - if( !empty($paramArray[1]) && $paramArray[0] != $paramArray[1] ) { |
| 1258 | + if( !empty($params[1]) && $params[0] != $params[1] ) { |
1264 | 1259 | $r = '(' . $wgUser->getSkin()->makeKnownLinkObj( $title, wfMsgHtml('review-logentry-diff'), |
1265 | | - "oldid={$paramArray[1]}&diff={$paramArray[0]}") . ') '; |
| 1260 | + "oldid={$params[1]}&diff={$params[0]}") . ') '; |
1266 | 1261 | } else { |
1267 | 1262 | $r = '(' . wfMsgHtml('review-logentry-diff') . ')'; |
1268 | 1263 | } |
1269 | 1264 | $r .= ' (' . $wgUser->getSkin()->makeKnownLinkObj( $title, |
1270 | | - wfMsgHtml('review-logentry-id',$paramArray[0]), |
1271 | | - "oldid={$paramArray[0]}&diff=prev&diffonly=0") . ')'; |
| 1265 | + wfMsgHtml('review-logentry-id',$params[0]), |
| 1266 | + "oldid={$params[0]}&diff=prev&diffonly=0") . ')'; |
1272 | 1267 | } |
1273 | 1268 | return true; |
1274 | 1269 | } |