$protect_description = '';
foreach( $limit as $action => $restrictions ) {
$encodedExpiry[$action] = Block::encodeExpiry($expiry[$action], $dbw );
- if ($restrictions != '') {
+ if( $restrictions != '' ) {
$protect_description .= "[$action=$restrictions] (";
if( $encodedExpiry[$action] != 'infinity' ) {
$protect_description .= wfMsgForContent( 'protect-expiring',
} else {
$protect_description .= wfMsgForContent( 'protect-expiry-indefinite' );
}
- $protect_description .= ')';
+ $protect_description .= ') ';
}
}
+ $protect_description = trim($protect_description);
if( $protect_description && $protect )
$editComment .= " ($protect_description)";