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 <?php
/* /*
* Sports Manager (C) 2006-2020, Sven Nickel * Sports Manager (C) 2006-2020, Sven Nickel
*/ */
// Check to ensure this file is included in Joomla! // Check to ensure this file is included in Joomla!
defined('_JEXEC') or die(); defined('_JEXEC') or die();
jimport('joomla.application.component.controller'); jimport('joomla.application.component.controller');
/** /**
* Auto Component Controller * Auto Component Controller
*/ */
class SportsManagerController extends JControllerLegacy class SportsManagerController extends JControllerLegacy
{ {
function display() public function display($cachable = false, $urlparams = false)
{ {
// Setzt einen Standard view // Setzt einen Standard view
if ( ! JRequest::getCmd( 'view' ) ) { if ( ! JRequest::getCmd( 'view' ) ) {
JRequest::setVar('view', 'categories' ); JRequest::setVar('view', 'categories' );
} }
parent::display(); return parent::display($cachable, $urlparams);
} }
} }