Removing MY_MOODLE_FORMAT constant, we just play along with relative paths.

This commit is contained in:
defacer 2005-10-30 01:10:08 +00:00
parent 121d525dfc
commit 044cdea0c6
4 changed files with 4 additions and 8 deletions

View file

@ -34,8 +34,7 @@ class block_activity_modules extends block_list {
} }
function applicable_formats() { function applicable_formats() {
require_once($GLOBALS['CFG']->dirroot.'/my/pagelib.php'); return array('all' => true, 'mod' => false, 'my' => false);
return array('all' => true, 'mod' => false, MY_MOODLE_FORMAT => false);
} }
} }

View file

@ -208,8 +208,7 @@ class block_admin extends block_list {
} }
function applicable_formats() { function applicable_formats() {
require_once($GLOBALS['CFG']->dirroot.'/my/pagelib.php'); return array('all' => true, 'mod' => false, 'my' => false);
return array('all' => true, 'mod' => false, MY_MOODLE_FORMAT => false);
} }
} }

View file

@ -44,8 +44,7 @@ class block_participants extends block_list {
// my moodle can only have SITEID and it's redundant here, so take it away // my moodle can only have SITEID and it's redundant here, so take it away
function applicable_formats() { function applicable_formats() {
require_once($GLOBALS['CFG']->dirroot.'/my/pagelib.php'); return array('all' => true, 'my' => false);
return array('all' => true, MY_MOODLE_FORMAT => false);
} }
} }

View file

@ -33,8 +33,7 @@ class block_recent_activity extends block_base {
} }
function applicable_formats() { function applicable_formats() {
require_once($GLOBALS['CFG']->dirroot.'/my/pagelib.php'); return array('all' => true, 'my' => false);
return array('all' => true, MY_MOODLE_FORMAT => false);
} }
} }
?> ?>