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 4d4846d commit 56254f1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
5 changes: 2 additions & 3 deletions site/helpers/ranking.php
Original file line number Diff line number Diff line change
Expand Up @@ -678,12 +678,11 @@ function _initData($cfg_which_database = 0,$sports_type_name='')
return false;
}

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$data = self::_cachedGetData($this->_projectid, $this->_division, $cfg_which_database,$sports_type_name);
}

if (version_compare(JSM_JVERSION, '3', 'eq'))
elseif (version_compare(JVERSION, '3.0.0', 'ge'))
{
$data = self::_cachedGetData($this->_projectid, $this->_division, $cfg_which_database,$sports_type_name);
}
Expand Down
2 changes: 1 addition & 1 deletion site/models/results.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public static function getResultsRows($round, $division, &$config, $params = nul
$query->where('m.published = 1');
$query->where('r.project_id = ' . (int) $project->id);

if (version_compare(JSM_JVERSION, '3', 'eq'))
if (version_compare(JVERSION, '3.0.0', 'ge'))
{
$query->group('m.id ');
}
Expand Down
4 changes: 2 additions & 2 deletions site/views/clubinfo/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

$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'))
{
$container = 'container';
}
Expand Down Expand Up @@ -106,7 +106,7 @@
{
if ($this->rssfeeditems)
{
if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$this->output['COM_SPORTSMANAGEMENT_CLUBINFO_RSSFEED'] = 'rssfeed_4';
}
Expand Down
6 changes: 3 additions & 3 deletions site/views/globalviews/tmpl/default_show_slider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
?>
<div class="<?php echo $this->divclassrow; ?>" id="show_slider">
<?php
if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
?>
<?php echo HTMLHelper::_('bootstrap.startAccordion', 'collapseTypes', array('active' => 'collapse0', 'parent' => 'collapseTypes' ));
Expand Down Expand Up @@ -81,7 +81,7 @@
echo HTMLHelper::_('bootstrap.endAccordion');
*/
}
elseif (version_compare(JSM_JVERSION, '3', 'eq'))
elseif (version_compare(JVERSION, '3.0.0', 'ge'))
{
// Joomla! 3.0 code here
$idxTab = 1;
Expand Down Expand Up @@ -114,7 +114,7 @@

echo HTMLHelper::_('bootstrap.endAccordion');
}
elseif (version_compare(JSM_JVERSION, '2', 'eq'))
elseif (version_compare(JVERSION, '2.0.0', 'ge'))
{
// Joomla! 2.5 code here
?>
Expand Down
6 changes: 3 additions & 3 deletions site/views/globalviews/tmpl/default_show_tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}


if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$idxTab = 0;
echo HTMLHelper::_('bootstrap.startTabSet', 'myTab4', array('active' => 'name'));
Expand All @@ -62,7 +62,7 @@

echo HTMLHelper::_('bootstrap.endTabSet');
}
elseif (version_compare(JSM_JVERSION, '3', 'eq'))
elseif (version_compare(JVERSION, '3.0.0', 'ge'))
{
// Joomla! 3.0 code here
$idxTab = 0;
Expand Down Expand Up @@ -149,7 +149,7 @@

echo HTMLHelper::_('bootstrap.endTabSet');
}
elseif (version_compare(JSM_JVERSION, '2', 'eq'))
elseif (version_compare(JVERSION, '2.0.0', 'ge'))
{
// Joomla! 2.5 code here
$view = Factory::getApplication()->input->getCmd('view');
Expand Down

0 comments on commit 56254f1

Please sign in to comment.