Browse Source

Fix macros method.

Taylor Otwell 12 years ago
parent
commit
41e066e2ee
1 changed files with 2 additions and 2 deletions
  1. 2 2
      laravel/form.php

+ 2 - 2
laravel/form.php

@@ -580,9 +580,9 @@ class Form {
 	 */
 	public static function __callStatic($method, $parameters)
 	{
-	    if (isset(static::$inputs[$method]))
+	    if (isset(static::$macros[$method]))
 	    {
-	        return call_user_func_array(static::$inputs[$method], $parameters);
+	        return call_user_func_array(static::$macros[$method], $parameters);
 	    }
 	    
 	    throw new \Exception("Method [$method] does not exist.");