Skip to content

Commit

Permalink
Removing MY_MOODLE_FORMAT constant, we just play along with relative …
Browse files Browse the repository at this point in the history
…paths.
  • Loading branch information
defacer committed Oct 30, 2005
1 parent 121d525 commit 044cdea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions blocks/activity_modules/block_activity_modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ function get_content() {
}

function applicable_formats() {
require_once($GLOBALS['CFG']->dirroot.'/my/pagelib.php');
return array('all' => true, 'mod' => false, MY_MOODLE_FORMAT => false);
return array('all' => true, 'mod' => false, 'my' => false);
}
}

Expand Down
3 changes: 1 addition & 2 deletions blocks/admin/block_admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,7 @@ function load_content_for_course() {
}

function applicable_formats() {
require_once($GLOBALS['CFG']->dirroot.'/my/pagelib.php');
return array('all' => true, 'mod' => false, MY_MOODLE_FORMAT => false);
return array('all' => true, 'mod' => false, 'my' => false);
}
}

Expand Down
3 changes: 1 addition & 2 deletions blocks/participants/block_participants.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ function get_content() {

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

}
Expand Down
3 changes: 1 addition & 2 deletions blocks/recent_activity/block_recent_activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ function get_content() {
}

function applicable_formats() {
require_once($GLOBALS['CFG']->dirroot.'/my/pagelib.php');
return array('all' => true, MY_MOODLE_FORMAT => false);
return array('all' => true, 'my' => false);
}
}
?>

0 comments on commit 044cdea

Please sign in to comment.