]> git.mjollnir.org Git - moodle.git/commitdiff
I need those constants a bit more easily accessible.
authordefacer <defacer>
Tue, 1 Feb 2005 07:39:21 +0000 (07:39 +0000)
committerdefacer <defacer>
Tue, 1 Feb 2005 07:39:21 +0000 (07:39 +0000)
lib/moodlelib.php
lib/pagelib.php

index 221b5adb75b3ac839a85c5c49dc805ee84a543e2..177282dc011886e00afc79903897d9ba0283354e 100644 (file)
@@ -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 ////////////////////////////////////////////////////
 
 /**
index 228a2c919ba03ccf37c947802f5f2af798aa1d7c..eee0dd9c4643971030bb6a1e4a3e022c1d37e195 100644 (file)
@@ -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.