81 $title = Title::makeTitleSafe( $row->pt_namespace, $row->pt_title );
83 return Html::rawElement(
88 [
'class' =>
'mw-invalidtitle' ],
89 Linker::getInvalidTitleDescription(
100 $description = $this->
msg(
'restriction-level-' . $row->pt_create_perm )->escaped();
102 $expiry = strlen( $row->pt_expiry ) ?
103 $lang->formatExpiry( $row->pt_expiry, TS_MW ) :
106 if ( $expiry !==
'infinity' ) {
108 $description .= $this->
msg(
'comma-separator' )->escaped() . $this->
msg(
109 'protect-expiring-local',
110 $lang->userTimeAndDate( $expiry, $user ),
111 $lang->userDate( $expiry, $user ),
112 $lang->userTime( $expiry, $user )
116 return '<li>' . $lang->specialList( $link, $description ) .
"</li>\n";