Fixed variable group handling by unsetting right index
[core.git] / inc / classes / main / decorator / template / class_XmlRewriterTemplateDecorator.php
index e2d0f4c4717b0e8bfcc6cc69ae8838ac64a6baec..f8210271481ca3d7d51f05cddb31efcb00b26f98 100644 (file)
@@ -185,11 +185,12 @@ class XmlRewriterTemplateDecorator extends BaseDecorator implements CompileableT
         * Removes a given variable
         *
         * @param       $variableName   The variable we are looking for
+        * @param       $variableGroup  Name of variable group (default: 'general')
         * @return      void
         */
-       public final function removeVariable ($variableName) {
+       public final function removeVariable ($variableName, $variableGroup = 'general') {
                // Call the inner class' method
-               $this->getTemplateInstance()->removeVariable($variableName);
+               $this->getTemplateInstance()->removeVariable($variableName, $variableGroup);
        }
 
        /**