Permalink
Browse files

ForumNG: replace hard coded references to mdl_modules table #4704

  • Loading branch information...
1 parent 849d0ab commit 57c0625d146a9f2ed7f151f5801341f50ad610db Derek Woolhead committed with sammarshallou Oct 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod_forumng_mail_list.php
@@ -321,13 +321,13 @@ protected function get_query_from() {
INNER JOIN {forumng_posts} discussionpost ON fd.postid = discussionpost.id
INNER JOIN {forumng} f ON fd.forumngid = f.id
INNER JOIN {course_modules} cm ON f.id = cm.instance
- AND cm.module = (SELECT id FROM mdl_modules WHERE name='forumng')
+ AND cm.module = (SELECT id FROM {modules} WHERE name='forumng')
INNER JOIN {context} x ON x.instanceid = cm.id
INNER JOIN {course} c ON c.id = f.course
INNER JOIN {forumng} clonef
ON (clonef.originalcmid = cm.id OR (f.originalcmid IS NULL AND clonef.id = f.id))
INNER JOIN {course_modules} clonecm ON clonef.id = clonecm.instance
- AND clonecm.module = (SELECT id FROM mdl_modules WHERE name='forumng')";
+ AND clonecm.module = (SELECT id FROM {modules} WHERE name='forumng')";
}
protected function get_query_where($time) {

0 comments on commit 57c0625

Please sign in to comment.