From: Petr Skoda Date: Mon, 28 Dec 2009 14:53:31 +0000 (+0000) Subject: MDL-21198 fixed legacy PHP4 pass-by-reference notation + added proper param type X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c2c04c6976af0dbd497f966857f05748a90ed6e7;p=moodle.git MDL-21198 fixed legacy PHP4 pass-by-reference notation + added proper param type --- diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 115614a67b..4f03e45a6a 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -170,7 +170,7 @@ class renderer_base { * @param html_component $component * @return void; */ - protected function prepare_event_handlers(&$component) { + protected function prepare_event_handlers(html_component $component) { $actions = $component->get_actions(); if (!empty($actions) && is_array($actions) && $actions[0] instanceof component_action) { foreach ($actions as $action) {