mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Removing MY_MOODLE_FORMAT constant, we just play along with relative paths.
This commit is contained in:
parent
121d525dfc
commit
044cdea0c6
4 changed files with 4 additions and 8 deletions
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue