Merge branch 'wip-MDL-50678-master' of git://github.com/marinaglancy/moodle

This commit is contained in:
Dan Poltawski 2015-07-20 13:53:47 +01:00
commit 641e3c4346

View file

@ -136,14 +136,6 @@ if ( $show ) {
$hook = $show;
$show = '';
}
/// Processing standard security processes
if ($course->id != SITEID) {
require_login($course);
}
if (!$cm->visible and !has_capability('moodle/course:viewhiddenactivities', $context)) {
echo $OUTPUT->header();
notice(get_string("activityiscurrentlyhidden"));
}
/// stablishing flag variables
if ( $sortorder = strtolower($sortorder) ) {