Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-30409 moodlelib syntax errors 'throw coding_exception'

  • Loading branch information...
commit 3d8138bbd22108f1054ab223117bdf50df3b6020 1 parent 79b0fec
@sammarshallou sammarshallou authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/moodlelib.php
View
6 lib/moodlelib.php
@@ -7690,7 +7690,7 @@ function plugin_callback($type, $name, $feature, $action, $options = null, $defa
$component = clean_param($type . '_' . $name, PARAM_COMPONENT);
if (empty($component)) {
- throw coding_exception('Invalid component used in plugin_callback():' . $type . '_' . $name);
+ throw new coding_exception('Invalid component used in plugin_callback():' . $type . '_' . $name);
}
list($type, $name) = normalize_component($component);
@@ -7701,7 +7701,7 @@ function plugin_callback($type, $name, $feature, $action, $options = null, $defa
$dir = get_component_directory($component);
if (empty($dir)) {
- throw coding_exception('Invalid component used in plugin_callback():' . $type . '_' . $name);
+ throw new coding_exception('Invalid component used in plugin_callback():' . $type . '_' . $name);
}
// Load library and look for function
@@ -7748,7 +7748,7 @@ function plugin_supports($type, $name, $feature, $default = NULL) {
$component = clean_param($type . '_' . $name, PARAM_COMPONENT);
if (empty($component)) {
- throw coding_exception('Invalid component used in plugin_supports():' . $type . '_' . $name);
+ throw new coding_exception('Invalid component used in plugin_supports():' . $type . '_' . $name);
}
$function = null;
Please sign in to comment.
Something went wrong with that request. Please try again.