Permalink
Browse files

ForumNG: Added missing requires in advancedsearchlib.php #3734

  • Loading branch information...
sammarshallou committed May 30, 2012
1 parent 3f8c104 commit 53f532d72775faec6f11e7a7d44210f1fbc2a073
Showing with 3 additions and 0 deletions.
  1. +3 −0 advancedsearchlib.php
View
@@ -69,6 +69,8 @@ function forumng_get_results_for_this_forum($forum, $groupid, $author=null, $dat
$before = microtime(true);
global $CFG, $DB, $USER;
+ require_once($CFG->dirroot . '/mod/forumng/mod_forumng.php');
+
$forumngid = $forum->get_id();
$context = $forum->get_context();
$params = array();
@@ -151,6 +153,7 @@ function forumng_get_results_for_all_forums($course, $author=null, $daterangefro
$before = microtime(true);
global $CFG, $DB, $USER;
+ require_once($CFG->dirroot . '/mod/forumng/mod_forumng.php');
// Get all forums
$modinfo = get_fast_modinfo($course);

0 comments on commit 53f532d

Please sign in to comment.