r76305 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76304‎ | r76305 | r76306 >
Date:14:54, 8 November 2010
Author:yaron
Status:deferred
Tags:
Comment:
Changed log type in LogPager call from an array to a string - works better for pre-1.16 MW versions
Modified paths:
  • /trunk/extensions/ApprovedRevs/SpecialApprovedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ApprovedRevs/SpecialApprovedRevs.php
@@ -171,7 +171,7 @@
172172 // 'approval' log, and display it if it's there.
173173 $sk = $wgUser->getSkin();
174174 $loglist = new LogEventsList( $sk, $wgOut );
175 - $pager = new LogPager( $loglist, array( 'approval' ), '', $title->getText() );
 175+ $pager = new LogPager( $loglist, 'approval', '', $title->getText() );
176176 $pager->mLimit = 1;
177177 $pager->doQuery();
178178 $row = $pager->mResult->fetchObject();

Status & tagging log