r91359 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91358‎ | r91359 | r91360 >
Date:17:27, 2 July 2011
Author:aaron
Status:ok
Tags:
Comment:
Fix for r91344: removed straggling instances of $this->special in item classes
Modified paths:
  • /trunk/phase3/includes/revisiondelete/RevisionDelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/revisiondelete/RevisionDelete.php
@@ -573,8 +573,9 @@
574574 if ( !$this->canViewContent() ) {
575575 $link = $date;
576576 } else {
 577+ $revdelete = SpecialPage::getTitleFor( 'Revisiondelete' );
577578 $link = Linker::link(
578 - $this->special->getTitle(),
 579+ $revdelete,
579580 $date, array(),
580581 array(
581582 'target' => $this->list->title->getPrefixedText(),
@@ -857,8 +858,9 @@
858859 if( !$this->canView() ) {
859860 $action = '<span class="history-deleted">' . wfMsgHtml('rev-deleted-event') . '</span>';
860861 } else {
861 - $action = LogPage::actionText( $this->row->log_type, $this->row->log_action, $title,
862 - $this->special->getSkin(), $paramArray, true, true );
 862+ $skin = $this->list->getUser()->getSkin();
 863+ $action = LogPage::actionText( $this->row->log_type, $this->row->log_action,
 864+ $title, $skin, $paramArray, true, true );
863865 if( $this->row->log_deleted & LogPage::DELETED_ACTION )
864866 $action = '<span class="history-deleted">' . $action . '</span>';
865867 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91344* Added generic Rev_List revision listing class and refactored RevDelete_List...aaron09:04, 2 July 2011

Status & tagging log