MDL-59362 core: ensure we use 'new' when throwing exceptions
This commit is contained in:
@@ -303,7 +303,7 @@ class core_tag_collection {
|
||||
public static function change_sortorder($tagcoll, $direction) {
|
||||
global $DB;
|
||||
if ($direction != -1 && $direction != 1) {
|
||||
throw coding_exception('Second argument in tag_coll_change_sortorder() can be only 1 or -1');
|
||||
throw new coding_exception('Second argument in tag_coll_change_sortorder() can be only 1 or -1');
|
||||
}
|
||||
$tagcolls = self::get_collections();
|
||||
$keys = array_keys($tagcolls);
|
||||
|
||||
Reference in New Issue
Block a user