Skip to content
Browse files

MDL-28167 fix missing new

And sloppy whitespace.
  • Loading branch information...
1 parent a3fd215 commit 9a49e6004b60a6a48d124ec7f8bbb06ca2490de8 @skodak skodak committed with stronk7
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/navigationlib.php
View
4 lib/navigationlib.php
@@ -995,7 +995,7 @@ public function __construct(moodle_page $page) {
* is an issue explaining why this is a REALLY UGLY HACK thats not
* for you to use!
*
- * @param int $userid userid of profile page that parent wants to navigate around.
+ * @param int $userid userid of profile page that parent wants to navigate around.
*/
public function set_userid_for_parent_checks($userid) {
$this->useridtouseforparentchecks = $userid;
@@ -1459,7 +1459,7 @@ protected function load_all_categories($categoryid = null, $showbasecategories =
} else {
// We should never ever arrive here - if we have then there is a bigger
// problem at hand.
- throw coding_exception('Category path order is incorrect and/or there are missing categories');
+ throw new coding_exception('Category path order is incorrect and/or there are missing categories');
}
}
}

0 comments on commit 9a49e60

Please sign in to comment.
Something went wrong with that request. Please try again.