issue #8891 fixed typo s/$cachable/$cacheable (#179)

Thanks @N6REJ
This commit is contained in:
Bear 2016-06-25 15:51:02 -05:00 committed by Chris Davenport
parent bf118c40df
commit 8b6db18948
2 changed files with 7 additions and 7 deletions

View File

@ -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';

View File

@ -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);
}
}