Followup r99116, didn't notice $lang was used lower down
[lhc/web/wiklou.git] / includes / specials / SpecialProtectedtitles.php
index bfce8d1..0b77755 100644 (file)
@@ -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',