From: defacer Date: Tue, 1 Feb 2005 07:39:21 +0000 (+0000) Subject: I need those constants a bit more easily accessible. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8bd3fad3037377fb7b3d8fb9cdfd2d0bef507d21;p=moodle.git I need those constants a bit more easily accessible. --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 221b5adb75..177282dc01 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -106,6 +106,12 @@ define('PARAM_URL', 0x0080); define('PARAM_LOCALURL',0x0180); // NOT orthogonal to the others! Implies PARAM_URL! define('PARAM_CLEANFILE',0x0200); +/** + * Definition of page types + */ +define('PAGE_COURSE_VIEW', 'course-view'); +define('PAGE_QUIZ_VIEW', 'mod-quiz-view'); + /// PARAMETER HANDLING //////////////////////////////////////////////////// /** diff --git a/lib/pagelib.php b/lib/pagelib.php index 228a2c919b..eee0dd9c46 100644 --- a/lib/pagelib.php +++ b/lib/pagelib.php @@ -19,14 +19,6 @@ if(record_exists('block_instance', 'pagetype', 'course')) { } // End of dirty compatibility hack -- remove this before 1.5 goes gold -/// Constants - -/** - * Definition of course page type. - */ -define('PAGE_COURSE_VIEW', 'course-view'); -define('PAGE_QUIZ_VIEW', 'mod-quiz-view'); - /** * Factory function page_create_object(). Called with a pagetype identifier and possibly with * its numeric ID. Returns a fully constructed page_base subclass you can work with.