Fix upstream controller method compatibility

This commit is contained in:
Selamanse
2022-11-20 10:33:29 +01:00
parent 472a19b0cc
commit 6b6d5ba89f
@@ -1,24 +1,24 @@
<?php
/*
* Sports Manager (C) 2006-2020, Sven Nickel
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();
jimport('joomla.application.component.controller');
/**
* Auto Component Controller
*/
class SportsManagerController extends JControllerLegacy
{
function display()
{
// Setzt einen Standard view
if ( ! JRequest::getCmd( 'view' ) ) {
JRequest::setVar('view', 'categories' );
}
parent::display();
}
}
<?php
/*
* Sports Manager (C) 2006-2020, Sven Nickel
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();
jimport('joomla.application.component.controller');
/**
* Auto Component Controller
*/
class SportsManagerController extends JControllerLegacy
{
public function display($cachable = false, $urlparams = false)
{
// Setzt einen Standard view
if ( ! JRequest::getCmd( 'view' ) ) {
JRequest::setVar('view', 'categories' );
}
return parent::display($cachable, $urlparams);
}
}