diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e1922e..7157c94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# v4.0.9 + +- Correct the url encoding to json_encode for none Latin languages. +- Fix type cast validation on search page. + # v4.0.8 - Restore router functions. @@ -36,6 +41,7 @@ - Moved to Joomla 4 -# v3.0.5 +# v3.0.6 -- Fix missing token variable in ajax call \ No newline at end of file +- Correct the url encoding to json_encode for none Latin languages. +- Fix type cast validation on search page. \ No newline at end of file diff --git a/GetbibleInstallerScript.php b/GetbibleInstallerScript.php index bf7b217..0f64a7c 100644 --- a/GetbibleInstallerScript.php +++ b/GetbibleInstallerScript.php @@ -755,7 +755,7 @@ class Com_GetbibleInstallerScript implements InstallerScriptInterface echo '
'; +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. diff --git a/site/src/View/Search/HtmlView.php b/site/src/View/Search/HtmlView.php index 8bf46e1..eb01f46 100644 --- a/site/src/View/Search/HtmlView.php +++ b/site/src/View/Search/HtmlView.php @@ -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; } /** diff --git a/site/tmpl/app/default_getbibleapp.php b/site/tmpl/app/default_getbibleapp.php index 1f158eb..b06bb32 100644 --- a/site/tmpl/app/default_getbibleapp.php +++ b/site/tmpl/app/default_getbibleapp.php @@ -25,11 +25,11 @@ defined('_JEXEC') or die; ?>