From 53fae368495b6b7849184e0f9bca8aa2d01ffefe Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 17 Sep 2009 20:20:45 +0000 Subject: [PATCH] bug 20701: fixed strange breakage from r53173 --- includes/LogPage.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/includes/LogPage.php b/includes/LogPage.php index 278e9ba5c4..68e8c8ec45 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -219,12 +219,17 @@ class LogPage { self::formatBlockFlags( $params[2], is_null( $skin ) ) : ''; // Page protections } else if ( $type == 'protect' && count($params) == 3 ) { + // Restrictions and expiries + if( $skin ) { + $details .= htmlspecialchars( " {$params[1]}" ); + } else { + $details .= " {$params[1]}"; + } + // Cascading flag... if( $params[2] ) { if ( $skin ) { - $details .= htmlspecialchars( " {$params[1]}" ); // restrictions and expiries $details .= ' ['.wfMsg('protect-summary-cascade').']'; } else { - $details .= " {$params[1]}"; $details .= ' ['.wfMsgForContent('protect-summary-cascade').']'; } } -- 2.20.1