mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-12-26 01:57:30 +00:00
parent
bf118c40df
commit
8b6db18948
@ -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';
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user