From: Aaron Schulz Date: Fri, 19 Sep 2008 13:49:10 +0000 (+0000) Subject: opps, use trim() instead X-Git-Tag: 1.31.0-rc.0~45217 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=479f8dfd6f205973ce73ea07adf1a9144b0bc05f;p=lhc%2Fweb%2Fwiklou.git opps, use trim() instead --- diff --git a/includes/Article.php b/includes/Article.php index 1b6acc22df..e1190bafd9 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1870,7 +1870,7 @@ class Article { $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', @@ -1878,9 +1878,10 @@ class Article { } else { $protect_description .= wfMsgForContent( 'protect-expiry-indefinite' ); } - $protect_description .= ')'; + $protect_description .= ') '; } } + $protect_description = trim($protect_description); if( $protect_description && $protect ) $editComment .= " ($protect_description)";