r56565 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56564‎ | r56565 | r56566 >
Date:20:22, 17 September 2009
Author:aaron
Status:ok
Tags:
Comment:
merged r56564: protection log fix
Modified paths:
  • /branches/wmf-deployment/includes/LogPage.php (modified) (history)

Diff [purge]

Index: branches/wmf-deployment/includes/LogPage.php
@@ -218,12 +218,17 @@
219219 self::formatBlockFlags( $params[2], is_null( $skin ) ) : '';
220220 // Page protections
221221 } else if ( $type == 'protect' && count($params) == 3 ) {
 222+ // Restrictions and expiries
 223+ if( $skin ) {
 224+ $details .= htmlspecialchars( " {$params[1]}" );
 225+ } else {
 226+ $details .= " {$params[1]}";
 227+ }
 228+ // Cascading flag...
222229 if( $params[2] ) {
223230 if ( $skin ) {
224 - $details .= htmlspecialchars( " {$params[1]}" ); // restrictions and expiries
225231 $details .= ' ['.wfMsg('protect-summary-cascade').']';
226232 } else {
227 - $details .= " {$params[1]}";
228233 $details .= ' ['.wfMsgForContent('protect-summary-cascade').']';
229234 }
230235 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r56564bug 20701: fixed strange breakage from r53173aaron20:20, 17 September 2009

Status & tagging log