From 5abb2ac2f7cf3f5e0190baa89c184cf816d7f78b Mon Sep 17 00:00:00 2001 From: diml Date: Mon, 31 Mar 2008 22:23:02 +0000 Subject: [PATCH] code review for packaging and code cleaning fixes minor bug (variable misnamed) --- search/documents/techproject_document.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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); -- 2.39.5