From 8b6db18948dc130de563ba693773bdb57c06d470 Mon Sep 17 00:00:00 2001 From: Bear Date: Sat, 25 Jun 2016 15:51:02 -0500 Subject: [PATCH] issue #8891 fixed typo s/$cachable/$cacheable (#179) Thanks @N6REJ --- .../components/com_weblinks/controller.php | 4 ++-- src/components/com_weblinks/controller.php | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/administrator/components/com_weblinks/controller.php b/src/administrator/components/com_weblinks/controller.php index 50c8d3f..398ec36 100644 --- a/src/administrator/components/com_weblinks/controller.php +++ b/src/administrator/components/com_weblinks/controller.php @@ -19,14 +19,14 @@ class WeblinksController extends JControllerLegacy /** * Method to display a view. * - * @param boolean $cachable If true, the view output will be cached + * @param boolean $cacheable If true, the view output will be cached * @param array $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}. * * @return JControllerLegacy This object to support chaining. * * @since 1.5 */ - public function display($cachable = false, $urlparams = false) + public function display($cacheable = false, $urlparams = false) { require_once JPATH_COMPONENT . '/helpers/weblinks.php'; diff --git a/src/components/com_weblinks/controller.php b/src/components/com_weblinks/controller.php index b98080e..1e232da 100644 --- a/src/components/com_weblinks/controller.php +++ b/src/components/com_weblinks/controller.php @@ -19,7 +19,7 @@ class WeblinksController extends JControllerLegacy /** * Method to display a view. * - * @param boolean $cachable If true, the view output will be cached + * @param boolean $cacheable If true, the view output will be cached * @param array $urlparams An array of safe url parameters and their variable types, * for valid values see {@link JFilterInput::clean()}. * @@ -27,9 +27,9 @@ class WeblinksController extends JControllerLegacy * * @since 1.5 */ - public function display($cachable = false, $urlparams = false) + public function display($cacheable = false, $urlparams = false) { - $cachable = true; // Huh? Why not just put that in the constructor? + $cacheable = true; // Huh? Why not just put that in the constructor? $user = JFactory::getUser(); // Set the default view name and format from the Request. @@ -41,7 +41,7 @@ class WeblinksController extends JControllerLegacy if (JFactory::getUser()->id ||($this->input->getMethod() == 'POST' && $vName = 'categories')) { - $cachable = false; + $cacheable = false; } $safeurlparams = array( @@ -60,6 +60,6 @@ class WeblinksController extends JControllerLegacy return JError::raiseError(403, JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id)); } - return parent::display($cachable, $safeurlparams); + return parent::display($cacheable, $safeurlparams); } }