r99116 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99115‎ | r99116 | r99117 >
Date:16:33, 6 October 2011
Author:reedy
Status:resolved
Tags:
Comment:
-rakkaus/#mediawiki-i18n- (1 lines skipped) [06-Oct-2011 16:12:26] PHP Fatal error: Call to a member function formatExpiry() on a non-object in /www/w/includes/specials/SpecialProtectedtitles.php on line 93
Modified paths:
  • /trunk/phase3/includes/specials/SpecialProtectedtitles.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialProtectedtitles.php
@@ -90,7 +90,7 @@
9191
9292 $description_items[] = $protType;
9393
94 - $expiry = strlen( $row->pt_expiry ) ? $lang->formatExpiry( $row->pt_expiry, TS_MW ) : $infinity;
 94+ $expiry = strlen( $row->pt_expiry ) ? $this->getLang()->formatExpiry( $row->pt_expiry, TS_MW ) : $infinity;
9595 if( $expiry != $infinity ) {
9696 $expiry_description = wfMsg(
9797 'protect-expiring-local',

Sign-offs

UserFlagDate
Nikerabbitinspected17:49, 6 October 2011

Follow-up revisions

RevisionCommit summaryAuthorDate
r99117Followup r99116, didn't notice $lang was used lower downreedy16:36, 6 October 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r97658* Made IndexPager extend ContextSource...ialex20:00, 20 September 2011

Status & tagging log