]> git.mjollnir.org Git - moodle.git/commitdiff
File header cleanup.
authortjhunt <tjhunt>
Thu, 6 Jul 2006 09:45:02 +0000 (09:45 +0000)
committertjhunt <tjhunt>
Thu, 6 Jul 2006 09:45:02 +0000 (09:45 +0000)
question/question.php

index 4644179d4628c6e5cb5348baadefbac28d864bae..81c7aaceb9611663c54cd685d831cc1c34bf3777 100644 (file)
@@ -1,29 +1,28 @@
-<?php // $Id$
-/*
-* Page for editing questions
-*
-* This page shows the question editing form or processes the following actions:
-* - create new question (category, qtype)
-* - edit question (id, contextquiz (optional))
-* - cancel (cancel)
-*
-* TODO: currently this still treats the quiz as special
-* TODO: question versioning is not currently enabled
-*
-* @version $Id$
-* @author Martin Dougiamas and many others. This has recently been extensively
-*         rewritten by members of the Serving Mathematics project
-*         {@link http://maths.york.ac.uk/serving_maths}
-* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
-* @package question
-*/
-
-    require_once("../config.php");
-    // NOTE - is this correct? This is just about editing screens?
-    require_once( "editlib.php" );
-    require_once($CFG->libdir.'/filelib.php');
-
-    $id = optional_param('id', 0, PARAM_INT);        // question id
+<?php
+/**
+ * Page for editing questions
+ *
+ * This page shows the question editing form or processes the following actions:
+ * - create new question (category, qtype)
+ * - edit question (id, contextquiz (optional))
+ * - cancel (cancel)
+ *
+ * TODO: currently this still treats the quiz as special
+ * TODO: question versioning is not currently enabled
+ *
+ * @version $Id$
+ * @author Martin Dougiamas and many others. This has recently been extensively
+ *         rewritten by members of the Serving Mathematics project
+ *         {@link http://maths.york.ac.uk/serving_maths}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
+ * @package question
+ *//** */
+    require_once(dirname(__FILE__) . '/../config.php');
+    require_once('editlib.php'); // NOTE - is this correct? This is just about editing screens?
+    require_once($CFG->libdir . '/filelib.php');
+
+    $id = optional_param('id', 0, PARAM_INT); // question id
 
     $qtype = optional_param('qtype', '', PARAM_FILE);
     $category = optional_param('category', 0, PARAM_INT);