Stable release of v5.0.9

Correct the url encoding to json_encode for none Latin languages. Fix type cast validation on search page.
This commit is contained in:
Robot 2024-03-08 10:08:03 +02:00
parent 3d8e16b84b
commit 23380eda79
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
11 changed files with 58 additions and 30 deletions

View File

@ -1,3 +1,8 @@
# v5.0.9
- Correct the url encoding to json_encode for none Latin languages.
- Fix type cast validation on search page.
# v5.0.8
- Fix wrong class naming.
@ -36,10 +41,12 @@
- Moved to Joomla 4 and 5
# v4.0.8
# v4.0.9
- Restore router functions.
- Correct the url encoding to json_encode for none Latin languages.
- Fix type cast validation on search page.
# v3.0.5
# v3.0.6
- Fix missing token variable in ajax call
- Correct the url encoding to json_encode for none Latin languages.
- Fix type cast validation on search page.

View File

@ -755,7 +755,7 @@ class Com_GetbibleInstallerScript implements InstallerScriptInterface
echo '<div style="background-color: #fff;" class="alert alert-info"><a target="_blank" href="https://getbible.net" title="Get Bible">
<img src="components/com_getbible/assets/images/vdm-component.jpg"/>
</a>
<h3>Upgrade to Version 5.0.8 Was Successful! Let us know if anything is not working as expected.</h3></div>';
<h3>Upgrade to Version 5.0.9 Was Successful! Let us know if anything is not working as expected.</h3></div>';
// Add/Update component in the action logs extensions table.
$this->setActionLogsExtensions();

View File

@ -1,4 +1,4 @@
# Get Bible (5.0.8)
# Get Bible (5.0.9)
![Get Bible image](https://git.vdm.dev/getBible/joomla-component/raw/branch/5.0/admin/assets/images/vdm-component.jpg "GetBible")
@ -18,8 +18,8 @@ In essence, The Bible for Joomla is designed to transform how the Word of God is
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Get Bible](https://getbible.net)
+ *First Build*: 3rd December, 2015
+ *Last Build*: 7th March, 2024
+ *Version*: 5.0.8
+ *Last Build*: 8th March, 2024
+ *Version*: 5.0.9
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
@ -31,8 +31,8 @@ due to [Automated Component Builder](https://www.joomlacomponentbuilder.com))
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
> never making one mistake or taking any coffee break.)
+ *Line count*: **207577**
+ *File count*: **1727**
+ *Line count*: **207605**
+ *File count*: **1728**
+ *Folder count*: **189**
**382 Hours** or **48 Eight Hour Days** (the actual time the author spent)

View File

@ -1,4 +1,4 @@
# Get Bible (5.0.8)
# Get Bible (5.0.9)
![Get Bible image](https://git.vdm.dev/getBible/joomla-component/raw/branch/5.0/admin/assets/images/vdm-component.jpg "GetBible")
@ -18,8 +18,8 @@ In essence, The Bible for Joomla is designed to transform how the Word of God is
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Get Bible](https://getbible.net)
+ *First Build*: 3rd December, 2015
+ *Last Build*: 7th March, 2024
+ *Version*: 5.0.8
+ *Last Build*: 8th March, 2024
+ *Version*: 5.0.9
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
@ -31,8 +31,8 @@ due to [Automated Component Builder](https://www.joomlacomponentbuilder.com))
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
> never making one mistake or taking any coffee break.)
+ *Line count*: **207577**
+ *File count*: **1727**
+ *Line count*: **207605**
+ *File count*: **1728**
+ *Folder count*: **189**
**382 Hours** or **48 Eight Hour Days** (the actual time the author spent)

View File

@ -0,0 +1 @@

View File

@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="5.0" method="upgrade">
<name>COM_GETBIBLE</name>
<creationDate>7th March, 2024</creationDate>
<creationDate>8th March, 2024</creationDate>
<author>Llewellyn van der Merwe</author>
<authorEmail>joomla@vdm.io</authorEmail>
<authorUrl>https://getbible.net</authorUrl>
<copyright>Copyright (C) 2015. All Rights Reserved</copyright>
<license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license>
<version>5.0.8</version>
<version>5.0.9</version>
<description><![CDATA[
<h1>Get Bible (v.5.0.8)</h1>
<h1>Get Bible (v.5.0.9)</h1>
<div style="clear: both;"></div>
<p>Welcome to the next level of scripture engagement - The Bible for Joomla! Our purpose is to bring the Word of God to every person, in their native language, entirely free. This isn't just a typical extension; it's a groundbreaking tool developed to span language divides and deliver a rich, customizable Bible study experience to users worldwide.

View File

@ -306,12 +306,13 @@ class HtmlView extends BaseHtmlView
*/
public function getReturnUrlBook(): int
{
if (empty($this->url_return_query))
if (empty($this->url_return_query) || !is_array($this->url_return_query))
{
$this->setReturnUrl();
}
return (int) $this->url_return_query['book'] ?? 0;
$book = $this->url_return_query['book'] ?? 0;
return (int) $book;
}
/**
@ -322,12 +323,13 @@ class HtmlView extends BaseHtmlView
*/
public function getReturnUrlChapter(): int
{
if (empty($this->url_return_query))
if (empty($this->url_return_query) || !is_array($this->url_return_query))
{
$this->setReturnUrl();
}
return (int) $this->url_return_query['chapter'] ?? 0;
$chapter = $this->url_return_query['chapter'] ?? 0;
return (int) $chapter;
}
/**

View File

@ -25,11 +25,11 @@ defined('_JEXEC') or die;
?>
<script type="text/javascript">
// set global values
const getbible_active_translation = '<?php echo $this->chapter->abbreviation; ?>';
const getbible_active_translation = <?php echo json_encode($this->chapter->abbreviation); ?>;
const getbible_verses = <?php echo json_encode($this->chapter->verses); ?>;
const getbible_book_nr = <?php echo $this->chapter->book_nr; ?>;
const getbible_chapter_nr = <?php echo $this->chapter->chapter; ?>;
const getbible_page_url = '<?php echo $this->getBaseUrl(); ?>/';
const getbible_book_nr = <?php echo (int) $this->chapter->book_nr; ?>;
const getbible_chapter_nr = <?php echo (int) $this->chapter->chapter; ?>;
const getbible_page_url = <?php echo json_encode($this->getBaseUrl() . '/'); ?>;
var triggerGetBibleReload = false;
</script>
<div class="uk-section-default uk-section">

View File

@ -5,10 +5,10 @@
<element>pkg_getbible</element>
<type>package</type>
<client>site</client>
<version>3.0.5</version>
<version>3.0.6</version>
<infourl title="Get Bible!">https://getbible.net</infourl>
<downloads>
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/getBible/joomla-pkg/archive/v3.0.5.zip</downloadurl>
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/getBible/joomla-pkg/archive/v3.0.6.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
@ -23,10 +23,10 @@
<element>pkg_getbible</element>
<type>package</type>
<client>site</client>
<version>4.0.8</version>
<version>4.0.9</version>
<infourl title="Get Bible!">https://getbible.net</infourl>
<downloads>
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/getBible/joomla-pkg/archive/v4.0.8.zip</downloadurl>
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/getBible/joomla-pkg/archive/v4.0.9.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
@ -197,4 +197,22 @@
<maintainerurl>https://getbible.net</maintainerurl>
<targetplatform name="joomla" version="5\.[01]"/>
</update>
<update>
<name>Get Bible</name>
<description>The Bible for Joomla</description>
<element>pkg_getbible</element>
<type>package</type>
<client>site</client>
<version>5.0.9</version>
<infourl title="Get Bible!">https://getbible.net</infourl>
<downloads>
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/getBible/joomla-pkg/archive/v5.0.9.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
</tags>
<maintainer>Llewellyn van der Merwe</maintainer>
<maintainerurl>https://getbible.net</maintainerurl>
<targetplatform name="joomla" version="5\.[01]"/>
</update>
</updates>