From 03bf0c8206ffaca54c75973f61718f36b5e68a00 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 3 Jan 2015 12:33:32 +1100 Subject: [PATCH] These are useful helpers, make them public --- modules/cms/classes/Controller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/cms/classes/Controller.php b/modules/cms/classes/Controller.php index c0ac0648c..c39348a8f 100644 --- a/modules/cms/classes/Controller.php +++ b/modules/cms/classes/Controller.php @@ -1025,7 +1025,7 @@ class Controller extends BaseController * Searches the layout and page components by an alias * @return ComponentBase The component object, if found */ - protected function findComponentByName($name) + public function findComponentByName($name) { if (isset($this->page->components[$name])) { return $this->page->components[$name]; @@ -1047,7 +1047,7 @@ class Controller extends BaseController * Searches the layout and page components by an AJAX handler * @return ComponentBase The component object, if found */ - protected function findComponentByHandler($handler) + public function findComponentByHandler($handler) { foreach ($this->page->components as $component) { if (method_exists($component, $handler)) { @@ -1068,7 +1068,7 @@ class Controller extends BaseController * Searches the layout and page components by a partial file * @return ComponentBase The component object, if found */ - protected function findComponentByPartial($partial) + public function findComponentByPartial($partial) { foreach ($this->page->components as $component) { $fileName = ComponentPartial::getFilePath($component, $partial);