roelmann / moodle-theme_flexibase

NOTE - Versions from the Moodle plugins database will be found in the STABLE branches of this repository. The Master branch is development work and not guaranteed at any point - It should only ever be used on a development/test environment. The MASTER branch is now being developed on Mdl3.1 and while testing will be maintained on 3.0 prior to any updated releases in the plugins database, the MASTER branch cannot be guaranteed at any stage. PLEASE ALWAYS USE STABLE BRANCHES FOR PRODUCTION siTES
7 stars 7 forks source link

Recible Bin #79

Closed Kritik77 closed 8 years ago

Kritik77 commented 8 years ago

Same problem that in other older cases, now in section Course Administration > Recicle Bin shows following message:

[MAIN CONTENT GOES HERE

roelmann commented 8 years ago

OK - there appear to be a number of situations where an incourse page is not providing a course->id Therefore currently 2 solutions

  1. Remove the Teacher custom region entirely (comment out or delete https://github.com/roelmann/moodle-theme_flexibase/blob/master/layout/includes/footer.php#L34-47)
  2. Make the teacher block only available on main course pages by changing https://github.com/roelmann/moodle-theme_flexibase/blob/master/layout/includes/footer.php#L34 to be if ($PAGE->pagelayout == 'course') {
roelmann commented 8 years ago

Solution 1 used