Skip to content

Commit

Permalink
BUGFIX Throwing an InvalidArgumentException without the new keyword r…
Browse files Browse the repository at this point in the history
…esults in a Fatal error
  • Loading branch information
Stig Lindqvist committed May 9, 2012
1 parent f546ab2 commit ce5684c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/GenericTemplateGlobalProvider.php
Expand Up @@ -26,7 +26,7 @@ public static function ModulePath($name) {
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)));
}
}

Expand Down

0 comments on commit ce5684c

Please sign in to comment.