From: Sam Reed Date: Thu, 6 Oct 2011 16:36:31 +0000 (+0000) Subject: Followup r99116, didn't notice $lang was used lower down X-Git-Tag: 1.31.0-rc.0~27226 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=f4a1024111faec5a8850d20427a510005c59f183;p=lhc%2Fweb%2Fwiklou.git Followup r99116, didn't notice $lang was used lower down --- diff --git a/includes/specials/SpecialProtectedtitles.php b/includes/specials/SpecialProtectedtitles.php index bfce8d1aea..0b77755585 100644 --- a/includes/specials/SpecialProtectedtitles.php +++ b/includes/specials/SpecialProtectedtitles.php @@ -90,7 +90,8 @@ class SpecialProtectedtitles extends SpecialPage { $description_items[] = $protType; - $expiry = strlen( $row->pt_expiry ) ? $this->getLang()->formatExpiry( $row->pt_expiry, TS_MW ) : $infinity; + $lang = $this->getLang(); + $expiry = strlen( $row->pt_expiry ) ? $lang->formatExpiry( $row->pt_expiry, TS_MW ) : $infinity; if( $expiry != $infinity ) { $expiry_description = wfMsg( 'protect-expiring-local',