From 479f8dfd6f205973ce73ea07adf1a9144b0bc05f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 19 Sep 2008 13:49:10 +0000 Subject: [PATCH] opps, use trim() instead --- includes/Article.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)"; -- 2.20.1