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 e845af4 commit afbcd54
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion admin/libraries/sportsmanagement/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ protected function addToolbar()
ToolbarHelper::cancel($this->view . '.cancel', 'JTOOLBAR_CLOSE');
}

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
ToolbarHelper::saveGroup(
$toolbarButtons,
Expand Down
2 changes: 1 addition & 1 deletion admin/models/joomleagueimports.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function check_database()
* zuerst noch überprüfen, ob der user
* überhaupt den zugriff auf die datenbank hat.
*/
if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
//$jl_access = JDatabaseDriver::getInstance($option);
$db = JDatabaseDriver::getInstance($option);
Expand Down
2 changes: 1 addition & 1 deletion admin/models/jsmgcalendarimport.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function import()
);
$client->setAccessType("offline");

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 admin/models/match.php
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ function insertgooglecalendar()
);
$client->setAccessType("offline");

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 admin/views/fieldsets/tmpl/default_editdata.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Log\Log;

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$wa = $this->document->getWebAssetManager();
$wa->useScript('showon');
Expand Down
4 changes: 2 additions & 2 deletions admin/views/jlxmlimports/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function init($tpl = null)
$this->title = Text::_('COM_SPORTSMANAGEMENT_ADMIN_XML_IMPORT_TITLE_1_3');
$this->icon = 'xmlimports';

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$uri = Uri::getInstance();
}
Expand Down Expand Up @@ -340,7 +340,7 @@ private function _displaySelectpage($tpl)
$jinput = $app->input;
$option = $jinput->getCmd('option');
$db = sportsmanagementHelper::getDBConnection();
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 admin/views/matches/tmpl/default_4_matches.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class="element-invisible"><?php echo Text::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC
echo sportsmanagementHelper::getBootstrapModalImage('matchdetails' . $row->id, Uri::root() . 'administrator/components/com_sportsmanagement/assets/images/edit.png', Text::_('COM_SPORTSMANAGEMENT_ADMIN_MATCHES_EDIT_DETAILS'), '20', Uri::base() . 'index.php?option=com_sportsmanagement&tmpl=component&view=match&layout=edit&id=' . $row->id, $this->modalwidth, $this->modalheight);
endif;

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$pcture_link = 'index.php?option=com_media&tmpl=component&path=local-images:/com_sportsmanagement/database/matchreport/' . $row->id;
}
Expand Down
2 changes: 1 addition & 1 deletion admin/views/matches/tmpl/default_matches.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class="element-invisible"><?php echo Text::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC
echo sportsmanagementHelper::getBootstrapModalImage('matchdetails' . $row->id, Uri::root() . 'administrator/components/com_sportsmanagement/assets/images/edit.png', Text::_('COM_SPORTSMANAGEMENT_ADMIN_MATCHES_EDIT_DETAILS'), '20', Uri::base() . 'index.php?option=com_sportsmanagement&tmpl=component&view=match&layout=edit&id=' . $row->id, $this->modalwidth, $this->modalheight);
endif;

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$pcture_link = 'index.php?option=com_media&tmpl=component&path=local-images:/com_sportsmanagement/database/matchreport/' . $row->id;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class="element-invisible"><?php echo Text::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC
echo sportsmanagementHelper::getBootstrapModalImage('matchdetails' . $row->id, Uri::root() . 'administrator/components/com_sportsmanagement/assets/images/edit.png', Text::_('COM_SPORTSMANAGEMENT_ADMIN_MATCHES_EDIT_DETAILS'), '20', Uri::base() . 'index.php?option=com_sportsmanagement&tmpl=component&view=match&layout=edit&id=' . $row->id, $this->modalwidth, $this->modalheight);
endif;

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$pcture_link = 'index.php?option=com_media&tmpl=component&path=local-images:/com_sportsmanagement/database/matchreport/' . $row->id;
}
Expand Down
2 changes: 1 addition & 1 deletion admin/views/playground/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function init()

$this->extended = sportsmanagementHelper::getExtended($this->item->extended, 'playground');

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$this->document->addScript(Uri::base() . 'components/' . $this->option . '/assets/js/editgeocode.js');
}
Expand Down
2 changes: 1 addition & 1 deletion admin/views/updates/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function init()

$db = sportsmanagementHelper::getDBConnection();

if (version_compare(JSM_JVERSION, '4', 'eq'))
if (version_compare(JVERSION, '4.0.0', 'ge'))
{
$uri = Uri::getInstance();
}
Expand Down

0 comments on commit afbcd54

Please sign in to comment.