Index: /MediaWiki/trunk/extensions/FCKeditor/FCKeditor.body.php
===================================================================
--- /MediaWiki/trunk/extensions/FCKeditor/FCKeditor.body.php	(revision 521)
+++ /MediaWiki/trunk/extensions/FCKeditor/FCKeditor.body.php	(revision 522)
@@ -417,5 +417,5 @@
     }       
     function replaceVariables( $text, $args = array(), $argsOnly = false ) {
-        return preg_replace("/\{\{([^}]+)\}\}(\}+)/", '<span class="fck_template">{{$1}}$2</span>', $text);
+        return preg_replace("/\{\{([^}]+)\}\}(\}*)/", '<span class="fck_template">{{$1}}$2</span>', $text);
     }
 }
