From ce5684c7766aedf0f2053e68e5845bd280143fa2 Mon Sep 17 00:00:00 2001 From: Stig Lindqvist Date: Thu, 10 May 2012 11:09:57 +1200 Subject: [PATCH] BUGFIX Throwing an InvalidArgumentException without the new keyword results in a Fatal error --- view/GenericTemplateGlobalProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/GenericTemplateGlobalProvider.php b/view/GenericTemplateGlobalProvider.php index 422f82c8c..bc4c1281f 100644 --- a/view/GenericTemplateGlobalProvider.php +++ b/view/GenericTemplateGlobalProvider.php @@ -26,7 +26,7 @@ class GenericTemplateGlobalProvider implements TemplateGlobalProvider { if(isset(self::$modules[$name])) { return self::$modules[$name]; } else { - throw InvalidArgumentException(sprintf('%s is not a supported argument. Possible values: %s', $name, implode(', ', self::$modules))); + throw new InvalidArgumentException(sprintf('%s is not a supported argument. Possible values: %s', $name, implode(', ', self::$modules))); } }