Skip to content

Commit

Permalink
Update on v5.0.0-beta1 (beta for next version)
Browse files Browse the repository at this point in the history
Here's an update on the current version, which includes changes towards the next release still in beta.
  • Loading branch information
aB0T committed Mar 7, 2024
1 parent 806feda commit 907e9b8
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# v5.0.0-beta1

- First release of [[[Component]]] towards Joomla 5
- First release of Sermon Distributor towards Joomla 5

# v3.0.3

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The best way to see all your options is to install this component on you Joomla
+ *Author*: [Llewellyn van der Merwe](mailto:[email protected])
+ *Name*: [Sermon Distributor](https://www.vdm.io/)
+ *First Build*: 22nd October, 2015
+ *Last Build*: 2nd March, 2024
+ *Last Build*: 7th March, 2024
+ *Version*: 5.0.x
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Expand Down
2 changes: 1 addition & 1 deletion admin/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The best way to see all your options is to install this component on you Joomla
+ *Author*: [Llewellyn van der Merwe](mailto:[email protected])
+ *Name*: [Sermon Distributor](https://www.vdm.io/)
+ *First Build*: 22nd October, 2015
+ *Last Build*: 2nd March, 2024
+ *Last Build*: 7th March, 2024
+ *Version*: 5.0.x
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Expand Down
4 changes: 2 additions & 2 deletions admin/src/Model/AjaxModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ public function getCronPath($type)
$result['error'] = '<span style="color: red;">' . Text::sprintf('COM_SERMONDISTRIBUTOR_NO_CRONJOB_PATH_FOUND_FOR_S', $type) . '</span>';
if ($this->hasCurl())
{
$path = '*/15 * * * * curl -s "' .JURI::root() . 'index.php?option=com_sermondistributor&task=api.externalUpdate" >/dev/null 2>&1';
$path = '*/15 * * * * curl -s "' .\JUri::root() . 'index.php?option=com_sermondistributor&task=api.externalUpdate" >/dev/null 2>&1';
}
else
{
$path = '*/15 * * * * wget "' .JURI::root() . 'index.php?option=com_sermondistributor&task=api.externalUpdate" >/dev/null 2>&1';
$path = '*/15 * * * * wget "' .\JUri::root() . 'index.php?option=com_sermondistributor&task=api.externalUpdate" >/dev/null 2>&1';
}
$result['path'] = '<code>' . $path . '</code>';
}
Expand Down
2 changes: 1 addition & 1 deletion admin/tmpl/manual_updater/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class="span12"
</div>
<script>
// token
var token = '<?php echo JSession::getFormToken(); ?>';
var token = '<?php echo \JSession::getFormToken(); ?>';
// nice little dot trick :)
jQuery(document).ready( function($) {
var x=0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ public static function getParams(?string $option = null): Registry
/**
* Set the component option
*
* @param string $option The option
* @param string|null $option The option
*
* @return void
* @since 3.2.0
*/
public static function setOption(string $option): void
public static function setOption(?string $option): void
{
self::$option = $option;
}
Expand All @@ -97,7 +97,7 @@ public static function setOption(string $option): void
* @return string|null A component option
* @since 3.0.11
*/
public static function getOption(string $default = 'empty'): ?string
public static function getOption(?string $default = 'empty'): ?string
{
if (empty(self::$option))
{
Expand Down Expand Up @@ -160,7 +160,7 @@ public static function getCode(?string $option = null, ?string $default = null):
*
* @since 3.0.11
*/
public static function get(string $option = null, string $default = null): ?string
public static function get(?string $option = null, ?string $default = null): ?string
{
// check that we have an option
// and get the code name from it
Expand Down Expand Up @@ -260,7 +260,7 @@ public static function getManifest(?string $option = null): ?object
*
* @since 3.0.11
*/
public static function methodExists(string $method, string $option = null): bool
public static function methodExists(string $method, ?string $option = null): bool
{
// get the helper class
return ($helper = self::get($option, null)) !== null &&
Expand Down
6 changes: 3 additions & 3 deletions sermondistributor.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="4.0" method="upgrade">
<extension type="component" version="5.0" method="upgrade">
<name>COM_SERMONDISTRIBUTOR</name>
<creationDate>2nd March, 2024</creationDate>
<creationDate>7th March, 2024</creationDate>
<author>Llewellyn van der Merwe</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://www.vdm.io/</authorUrl>
Expand Down Expand Up @@ -97,6 +97,6 @@

</administration>
<updateservers>
<server type="extension" enabled="1" element="com_sermondistributor" name="Sermon Distributor">https://git.vdm.dev/christian/Joomla-Sermon-Distributor/raw/branch/5.0/sermondistributor_update_server.xml</server>
<server type="extension" enabled="1" element="com_sermondistributor" name="Sermon Distributor">https://git.vdm.dev/christian/Joomla-Sermon-Distributor/raw/branch/5.x/sermondistributor_update_server.xml</server>
</updateservers>
</extension>
2 changes: 1 addition & 1 deletion site/src/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function externalUpdate()
protected function getApiUser()
{
// get params
$params = JComponentHelper::getParams('com_sermondistributor');
$params = \JComponentHelper::getParams('com_sermondistributor');
// return user object
return Factory::getUser($params->get('api', 0, 'INT'));
}
Expand Down
2 changes: 1 addition & 1 deletion site/tmpl/sermon/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function sermonCounter(key, filename) {
}
<?php if (1 == $this->item->playerKey) : ?>
soundManager.setup({
url: '<?php echo JURI::root(true); ?>/media/com_sermondistributor/soundmanager/swf',
url: '<?php echo \JUri::root(true); ?>/media/com_sermondistributor/soundmanager/swf',
flashVersion: 9,
onready: function() {
// Ready to use; soundManager.createSound() etc. can now be called.
Expand Down

0 comments on commit 907e9b8

Please sign in to comment.