Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
diddipoeler committed Nov 1, 2023
1 parent 0d889cc commit 4d4846d
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 19 deletions.
2 changes: 1 addition & 1 deletion site/libraries/sportsmanagement/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public function display($tpl = null)
$this->modalheight = ComponentHelper::getParams($this->jinput->getCmd('option'))->get('modal_popup_height', 600);
$this->modalwidth = ComponentHelper::getParams($this->jinput->getCmd('option'))->get('modal_popup_width', 900);

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$this->uri = Uri::getInstance();
}
Expand Down
2 changes: 1 addition & 1 deletion site/models/predictionresults.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ function showClubLogo($clubLogo, $teamName)
$option = $jinput->getCmd('option');
$document = Factory::getDocument();

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$uri = Uri::getInstance();
}
Expand Down
2 changes: 1 addition & 1 deletion site/views/clubinfo/tmpl/default_clubinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

$paramscomponent = ComponentHelper::getParams('com_sportsmanagement');

if (version_compare(JSM_JVERSION, '4', 'eq') || $paramscomponent->get('use_jsmgrid'))
if (version_compare(JVERSION, '4.0.0', 'ge')) || $paramscomponent->get('use_jsmgrid'))
{
$this->divclass = 'p-2 col';
}
Expand Down
8 changes: 1 addition & 7 deletions site/views/editmatch/tmpl/editevents.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,7 @@

</script>
<?php
/*
if (version_compare(JSM_JVERSION, '4', 'eq')) {
$uri = Uri::getInstance();
} else {
$uri = Factory::getURI();
}
*/

?>

<form action="<?php echo $this->uri->toString(); ?>" id='editevents' method='post' name='editevents'>
Expand Down
2 changes: 1 addition & 1 deletion site/views/editmatch/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function init()
$document = Factory::getDocument();
$db = Factory::getDBO();

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$this->uri = Uri::getInstance();
}
Expand Down
2 changes: 1 addition & 1 deletion site/views/hitlist/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
$templatesToLoad = array('globalviews');
sportsmanagementHelper::addTemplatePaths($templatesToLoad, $this);

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$uri = Uri::getInstance();
}
Expand Down
2 changes: 1 addition & 1 deletion site/views/imagehandler/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function display($tpl = null)
$app = Factory::getApplication();
$document = Factory::getDocument();

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$uri = Uri::getInstance();
}
Expand Down
2 changes: 1 addition & 1 deletion site/views/predictionuser/tmpl/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

//HTMLHelper::_('behavior.tooltip');

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$uri = Uri::getInstance();
}
Expand Down
2 changes: 1 addition & 1 deletion site/views/ranking/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
echo $this->loadTemplate('jsm_tips');
echo $this->loadTemplate('jsm_notes');

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
echo $this->loadTemplate('joomla_vier');
}
Expand Down
2 changes: 1 addition & 1 deletion site/views/results/tmpl/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
$saveshortall = $user->authorise('editmatch.saveshortall', 'com_sportsmanagement');
$saveshortresults = $user->authorise('editmatch.saveshortresults', 'com_sportsmanagement');

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$uri = Uri::getInstance();
}
Expand Down
2 changes: 1 addition & 1 deletion site/views/results/tmpl/form_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
$this->divclassrest = '';
$this->columns = 12;

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$uri = Uri::getInstance();
}
Expand Down
2 changes: 1 addition & 1 deletion site/views/results/tmpl/form_dfcday.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Factory;

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$uri = Uri::getInstance();
}
Expand Down
2 changes: 1 addition & 1 deletion site/views/teaminfo/tmpl/default_history_leagues.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
/** welche bootstrap version */
$params = ComponentHelper::getParams('com_sportsmanagement');

if (version_compare(JSM_JVERSION, '4', 'eq') || $params->get('use_jsmgrid'))
if (version_compare(JVERSION, '4.0.0', 'ge')) || $params->get('use_jsmgrid'))
{
$this->divclass = 'col p-2';
}
Expand Down

0 comments on commit 4d4846d

Please sign in to comment.