Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | private $out; |
26 | 26 | public $flags; |
27 | 27 | |
28 | | - function __construct( $skin, $out, $flags = 0 ) { |
| 28 | + public function __construct( $skin, $out, $flags = 0 ) { |
29 | 29 | $this->skin = $skin; |
30 | 30 | $this->out = $out; |
31 | 31 | $this->flags = $flags; |
— | — | @@ -38,8 +38,9 @@ |
39 | 39 | private function preCacheMessages() { |
40 | 40 | // Precache various messages |
41 | 41 | if( !isset( $this->message ) ) { |
42 | | - $messages = 'revertmerge protect_change unblocklink change-blocklink revertmove undeletelink revdel-restore rev-delundel hist'; |
43 | | - foreach( explode( ' ', $messages ) as $msg ) { |
| 42 | + $messages = array('revertmerge','protect_change','unblocklink','change-blocklink', |
| 43 | + 'revertmove','undeletelink','revdel-restore','rev-delundel','hist'); |
| 44 | + foreach( $messages as $msg ) { |
44 | 45 | $this->message[$msg] = wfMsgExt( $msg, array( 'escape') ); |
45 | 46 | } |
46 | 47 | } |
— | — | @@ -331,7 +332,8 @@ |
332 | 333 | $revert = $this->skin->userToolLinks( 1, $title->getDBkey() ); |
333 | 334 | } |
334 | 335 | if( $time < '20080129000000' ) { |
335 | | - # Suppress $comment from old entries (before 2008-01-29), not needed and can contain incorrect links |
| 336 | + # Suppress $comment from old entries (before 2008-01-29), |
| 337 | + # not needed and can contain incorrect links |
336 | 338 | $comment = ''; |
337 | 339 | } |
338 | 340 | // Do nothing. The implementation is handled by the hook modifiying the passed-by-ref parameters. |
— | — | @@ -343,7 +345,8 @@ |
344 | 346 | if( self::isDeleted($row,LogPage::DELETED_ACTION) ) { |
345 | 347 | $action = '<span class="history-deleted">' . wfMsgHtml('rev-deleted-event') . '</span>'; |
346 | 348 | } else { |
347 | | - $action = LogPage::actionText( $row->log_type, $row->log_action, $title, $this->skin, $paramArray, true ); |
| 349 | + $action = LogPage::actionText( $row->log_type, $row->log_action, $title, |
| 350 | + $this->skin, $paramArray, true ); |
348 | 351 | } |
349 | 352 | |
350 | 353 | if( $revert != '' ) { |
— | — | @@ -496,8 +499,8 @@ |
497 | 500 | * @param $year Integer |
498 | 501 | * @param $month Integer |
499 | 502 | */ |
500 | | - function __construct( $list, $type = '', $user = '', $title = '', $pattern = '', |
501 | | - $conds = array(), $year = false, $month = false ) |
| 503 | + public function __construct( $list, $type = '', $user = '', $title = '', $pattern = '', |
| 504 | + $conds = array(), $year = false, $month = false ) |
502 | 505 | { |
503 | 506 | parent::__construct(); |
504 | 507 | $this->mConds = $conds; |
— | — | @@ -701,6 +704,7 @@ |
702 | 705 | */ |
703 | 706 | function __construct( $request ) { |
704 | 707 | global $wgUser, $wgOut; |
| 708 | + wfDeprecated(__FUNCTION__); |
705 | 709 | # Get parameters |
706 | 710 | $type = $request->getVal( 'type' ); |
707 | 711 | $user = $request->getText( 'user' ); |
— | — | @@ -747,6 +751,7 @@ |
748 | 752 | */ |
749 | 753 | function __construct( &$reader, $flags = 0 ) { |
750 | 754 | global $wgUser; |
| 755 | + wfDeprecated(__FUNCTION__); |
751 | 756 | $this->reader =& $reader; |
752 | 757 | $this->reader->pager->mLogEventsList->flags = $flags; |
753 | 758 | # Aliases for shorter code... |