From: Aaron Schulz Date: Wed, 24 Dec 2008 00:09:19 +0000 (+0000) Subject: Whitespace/line breaks to keep this decent looking X-Git-Tag: 1.31.0-rc.0~43793 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=847a92ac9e034f5b394646f91c84f7a3c376e47f;p=lhc%2Fweb%2Fwiklou.git Whitespace/line breaks to keep this decent looking --- diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 740133a73f..aae44585ab 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -24,7 +24,7 @@ class LogEventsList { private $out; public $flags; - function __construct( $skin, $out, $flags = 0 ) { + public function __construct( $skin, $out, $flags = 0 ) { $this->skin = $skin; $this->out = $out; $this->flags = $flags; @@ -38,8 +38,9 @@ class LogEventsList { private function preCacheMessages() { // Precache various messages if( !isset( $this->message ) ) { - $messages = 'revertmerge protect_change unblocklink change-blocklink revertmove undeletelink revdel-restore rev-delundel hist'; - foreach( explode( ' ', $messages ) as $msg ) { + $messages = array('revertmerge','protect_change','unblocklink','change-blocklink', + 'revertmove','undeletelink','revdel-restore','rev-delundel','hist'); + foreach( $messages as $msg ) { $this->message[$msg] = wfMsgExt( $msg, array( 'escape') ); } } @@ -331,7 +332,8 @@ class LogEventsList { $revert = $this->skin->userToolLinks( 1, $title->getDBkey() ); } if( $time < '20080129000000' ) { - # Suppress $comment from old entries (before 2008-01-29), not needed and can contain incorrect links + # Suppress $comment from old entries (before 2008-01-29), + # not needed and can contain incorrect links $comment = ''; } // Do nothing. The implementation is handled by the hook modifiying the passed-by-ref parameters. @@ -343,7 +345,8 @@ class LogEventsList { if( self::isDeleted($row,LogPage::DELETED_ACTION) ) { $action = '' . wfMsgHtml('rev-deleted-event') . ''; } else { - $action = LogPage::actionText( $row->log_type, $row->log_action, $title, $this->skin, $paramArray, true ); + $action = LogPage::actionText( $row->log_type, $row->log_action, $title, + $this->skin, $paramArray, true ); } if( $revert != '' ) { @@ -496,8 +499,8 @@ class LogPager extends ReverseChronologicalPager { * @param $year Integer * @param $month Integer */ - function __construct( $list, $type = '', $user = '', $title = '', $pattern = '', - $conds = array(), $year = false, $month = false ) + public function __construct( $list, $type = '', $user = '', $title = '', $pattern = '', + $conds = array(), $year = false, $month = false ) { parent::__construct(); $this->mConds = $conds; @@ -701,6 +704,7 @@ class LogReader { */ function __construct( $request ) { global $wgUser, $wgOut; + wfDeprecated(__FUNCTION__); # Get parameters $type = $request->getVal( 'type' ); $user = $request->getText( 'user' ); @@ -747,6 +751,7 @@ class LogViewer { */ function __construct( &$reader, $flags = 0 ) { global $wgUser; + wfDeprecated(__FUNCTION__); $this->reader =& $reader; $this->reader->pager->mLogEventsList->flags = $flags; # Aliases for shorter code...