浏览代码

[Form] Fixed calls to ThemeRenderer::renderPart()

Bernhard Schussek 14 年之前
父节点
当前提交
e7df781c34
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/Symfony/Component/Form/Renderer/ThemeRenderer.php

+ 6 - 6
src/Symfony/Component/Form/Renderer/ThemeRenderer.php

@@ -124,24 +124,24 @@ class ThemeRenderer implements ThemeRendererInterface, \ArrayAccess, \IteratorAg
     {
         $this->rendered = true;
 
-        return $this->render('widget', $vars);
+        return $this->renderPart('widget', $vars);
     }
 
     public function getErrors(array $vars = array())
     {
-        return $this->render('errors', $vars);
+        return $this->renderPart('errors', $vars);
     }
 
     public function getRow(array $vars = array())
     {
         $this->rendered = true;
 
-        return $this->render('row', $vars);
+        return $this->renderPart('row', $vars);
     }
 
     public function getRest(array $vars = array())
     {
-        return $this->render('rest', $vars);
+        return $this->renderPart('rest', $vars);
     }
 
     /**
@@ -156,12 +156,12 @@ class ThemeRenderer implements ThemeRendererInterface, \ArrayAccess, \IteratorAg
             $vars['label'] = $label;
         }
 
-        return $this->render('label', $vars);
+        return $this->renderPart('label', $vars);
     }
 
     public function getEnctype()
     {
-        return $this->render('enctype', $this->vars);
+        return $this->renderPart('enctype', $this->vars);
     }
 
     protected function renderPart($part, array $vars = array())