]> git.mjollnir.org Git - moodle.git/commitdiff
search: fixed mysql-isms - tablenames without prefix and with backticks
authormartinlanghoff <martinlanghoff>
Tue, 26 Sep 2006 05:09:01 +0000 (05:09 +0000)
committermartinlanghoff <martinlanghoff>
Tue, 26 Sep 2006 05:09:01 +0000 (05:09 +0000)
search/documents/resource_document.php

index c65b632236499f32294aebae6fb48f95cb3782a5..bf1f6dd44dc7a011ead033f5cc830ef4ecdc112f 100644 (file)
@@ -39,7 +39,7 @@
     $documents = array();
 
     $resources = get_recordset_sql('SELECT *
-                              FROM `resource`
+                              FROM {$CFG->prefix}resource
                               WHERE alltext NOT LIKE ""
                               AND alltext NOT LIKE " "
                               AND alltext NOT LIKE "&nbsp;"
@@ -61,7 +61,7 @@
   //returns a single resource search document based on a resource_entry id
   function resource_single_document($id) {
     $resources = get_recordset_sql('SELECT *
-                              FROM `resource`
+                              FROM {$CFG->prefix}resource
                               WHERE alltext NOT LIKE ""
                               AND alltext NOT LIKE " "
                               AND alltext NOT LIKE "&nbsp;"