BUGFIX Throwing an InvalidArgumentException without the new keyword results in a Fatal error

This commit is contained in:
Stig Lindqvist 2012-05-10 11:09:57 +12:00
parent f546ab2a70
commit ce5684c776

View File

@ -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)));
}
}