r69973 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69972‎ | r69973 | r69974 >
Date:21:40, 26 July 2010
Author:reedy
Status:ok
Tags:
Comment:
Define $this->sk = $wgUser->getSkin() due to multiple usages of $this->sk in code
Modified paths:
  • /trunk/extensions/CheckUser/CheckUser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/CheckUser_body.php
@@ -16,6 +16,9 @@
1717 } else {
1818 parent::__construct( 'CheckUser', 'checkuser-log' );
1919 }
 20+
 21+ $this->sk = $wgUser->getSkin();
 22+
2023 wfLoadExtensionMessages( 'CheckUser' );
2124 }
2225
@@ -1063,6 +1066,7 @@
10641067 */
10651068 protected function getLinksFromRow( $row ) {
10661069 // Log items (old format) and events to logs
 1070+
10671071 if ( $row->cuc_type == RC_LOG && $row->cuc_namespace == NS_SPECIAL ) {
10681072 list( $specialName, $logtype ) = SpecialPage::resolveAliasWithSubpage( $row->cuc_title );
10691073 $logname = LogPage::logName( $logtype );

Status & tagging log