Merge branch '44354-27' of git://github.com/samhemelryk/moodle

This commit is contained in:
Dan Poltawski
2014-04-15 10:26:06 +08:00
-1
View File
@@ -803,7 +803,6 @@ class moodle_page {
* @return renderer_base
*/
public function get_renderer($component, $subtype = null, $target = null) {
$target = null;
if ($this->pagelayout === 'maintenance') {
// If the page is using the maintenance layout then we're going to force target to maintenance.
// This leads to a special core renderer that is designed to block access to API's that are likely unavailable for this