Browse Source

Renamed FormHelper::inputRegistry() to FormHelper::widgetRegistry().

ADmad 12 years ago
parent
commit
79dacdbf08
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/View/Helper/FormHelper.php

+ 2 - 2
src/View/Helper/FormHelper.php

@@ -171,7 +171,7 @@ class FormHelper extends Helper {
 		parent::__construct($View, $settings);
 
 		$this->initStringTemplates($this->_defaultTemplates);
-		$this->inputRegistry($settings['registry'], $settings['widgets']);
+		$this->widgetRegistry($settings['registry'], $settings['widgets']);
 		unset($this->settings['widgets'], $this->settings['registry']);
 
 		$this->_addDefaultContextProviders();
@@ -184,7 +184,7 @@ class FormHelper extends Helper {
  * @param array $widgets An array of widgets
  * @return \Cake\View\Widget\WidgetRegistry
  */
-	public function inputRegistry(WidgetRegistry $instance = null, $widgets = []) {
+	public function widgetRegistry(WidgetRegistry $instance = null, $widgets = []) {
 		if ($instance === null) {
 			if ($this->_registry === null) {
 				$this->_registry = new WidgetRegistry($this->_templater, $widgets);