From bdaa857d78f68e8788def518c01890a58255d93b Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Thu, 10 Apr 2014 15:15:05 +1200 Subject: [PATCH] MDL-44354 page: fixed ignored property when fetching a renderer --- lib/pagelib.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/pagelib.php b/lib/pagelib.php index d8456f94f9e..94596338d15 100644 --- a/lib/pagelib.php +++ b/lib/pagelib.php @@ -769,7 +769,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