From: diml Date: Mon, 31 Mar 2008 22:23:02 +0000 (+0000) Subject: code review for packaging and code cleaning X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5abb2ac2f7cf3f5e0190baa89c184cf816d7f78b;p=moodle.git code review for packaging and code cleaning fixes minor bug (variable misnamed) --- diff --git a/search/documents/techproject_document.php b/search/documents/techproject_document.php index 2eeb30de72..6b36ddcf92 100644 --- a/search/documents/techproject_document.php +++ b/search/documents/techproject_document.php @@ -1,13 +1,20 @@ 1.8 +* @date 2008/03/31 +* @license http://www.gnu.org/copyleft/gpl.html GNU Public License * * document handling for techproject activity module */ -/* see wiki_document.php for descriptions */ +/** +* requires and includes +*/ require_once("$CFG->dirroot/search/documents/document.php"); require_once("$CFG->dirroot/mod/techproject/lib.php"); @@ -136,7 +143,7 @@ function techproject_single_document($id, $itemtype) { break; } } - $techprojet_course = get_field('techproject', 'course', 'id', $entry->projectid); + $techproject_course = get_field('techproject', 'course', 'id', $entry->projectid); $coursemodule = get_field('modules', 'id', 'name', 'techproject'); $cm = get_record('course_modules', 'course', $techproject_course, 'module', $coursemodule, 'instance', $entry->projectid); $context = get_context_instance(CONTEXT_MODULE, $cm->id);