Stable release of v5.0.8

Fix wrong class naming.
This commit is contained in:
Robot 2024-03-07 18:40:43 +02:00
parent 02ec6142d7
commit 3d8e16b84b
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
20 changed files with 92 additions and 69 deletions

View File

@ -1,3 +1,7 @@
# v5.0.8
- Fix wrong class naming.
# v5.0.7
- Fix missing token variable in ajax call
@ -32,9 +36,9 @@
- Moved to Joomla 4 and 5
# v4.0.7
# v4.0.8
- Fix missing token variable in ajax call
- Restore router functions.
# v3.0.5

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.7 Was Successful! Let us know if anything is not working as expected.</h3></div>';
<h3>Upgrade to Version 5.0.8 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.7)
# Get Bible (5.0.8)
![Get Bible image](https://git.vdm.dev/getBible/joomla-component/raw/branch/5.0/admin/assets/images/vdm-component.jpg "GetBible")
@ -19,7 +19,7 @@ In essence, The Bible for Joomla is designed to transform how the Word of God is
+ *Name*: [Get Bible](https://getbible.net)
+ *First Build*: 3rd December, 2015
+ *Last Build*: 7th March, 2024
+ *Version*: 5.0.7
+ *Version*: 5.0.8
+ *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*: **207554**
+ *File count*: **1726**
+ *Line count*: **207577**
+ *File count*: **1727**
+ *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.7)
# Get Bible (5.0.8)
![Get Bible image](https://git.vdm.dev/getBible/joomla-component/raw/branch/5.0/admin/assets/images/vdm-component.jpg "GetBible")
@ -19,7 +19,7 @@ In essence, The Bible for Joomla is designed to transform how the Word of God is
+ *Name*: [Get Bible](https://getbible.net)
+ *First Build*: 3rd December, 2015
+ *Last Build*: 7th March, 2024
+ *Version*: 5.0.7
+ *Version*: 5.0.8
+ *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*: **207554**
+ *File count*: **1726**
+ *Line count*: **207577**
+ *File count*: **1727**
+ *Folder count*: **189**
**382 Hours** or **48 Eight Hour Days** (the actual time the author spent)

View File

@ -0,0 +1 @@

View File

@ -155,9 +155,9 @@ class LinkersField extends ListField
protected function getOptions()
{
// Get the user object.
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
// Get the databse object.
$db = JFactory::getDBO();
$db = Factory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.guid','a.name'),array('guid','linker_name')));
$query->from($db->quoteName('#__getbible_linker', 'a'));
@ -180,11 +180,11 @@ class LinkersField extends ListField
{
if ($this->multiple === false)
{
$options[] = JHtml::_('select.option', '', JText::_('COM_GETBIBLE_SELECT_AN_OPTION'));
$options[] = Html::_('select.option', '', Text::_('COM_GETBIBLE_SELECT_AN_OPTION'));
}
foreach($items as $item)
{
$options[] = JHtml::_('select.option', $item->guid, $item->linker_name . ' (' . substr($item->guid, 0, 8) . ')');
$options[] = Html::_('select.option', $item->guid, $item->linker_name . ' (' . substr($item->guid, 0, 8) . ')');
}
}
return $options;

View File

@ -49,9 +49,9 @@ class OpenairesponsesField extends ListField
protected function getOptions()
{
// Get the user object.
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
// Get the databse object.
$db = JFactory::getDBO();
$db = Factory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.response_id','a.response_id'),array('response_id','open_ai_response_response_id')));
$query->from($db->quoteName('#__getbible_open_ai_response', 'a'));
@ -73,11 +73,11 @@ class OpenairesponsesField extends ListField
{
if ($this->multiple === false)
{
$options[] = JHtml::_('select.option', '', JText::_('COM_GETBIBLE_SELECT_AN_OPTION'));
$options[] = Html::_('select.option', '', Text::_('COM_GETBIBLE_SELECT_AN_OPTION'));
}
foreach($items as $item)
{
$options[] = JHtml::_('select.option', $item->response_id, $item->open_ai_response_response_id);
$options[] = Html::_('select.option', $item->response_id, $item->open_ai_response_response_id);
}
}
return $options;

View File

@ -49,9 +49,9 @@ class PromptsField extends ListField
protected function getOptions()
{
// Get the user object.
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
// Get the databse object.
$db = JFactory::getDBO();
$db = Factory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.guid','a.name'),array('guid','prompt_name')));
$query->from($db->quoteName('#__getbible_prompt', 'a'));
@ -73,11 +73,11 @@ class PromptsField extends ListField
{
if ($this->multiple === false)
{
$options[] = JHtml::_('select.option', '', JText::_('COM_GETBIBLE_SELECT_AN_OPTION'));
$options[] = Html::_('select.option', '', Text::_('COM_GETBIBLE_SELECT_AN_OPTION'));
}
foreach($items as $item)
{
$options[] = JHtml::_('select.option', $item->guid, $item->prompt_name . ' (' . $item->guid . ')');
$options[] = Html::_('select.option', $item->guid, $item->prompt_name . ' (' . $item->guid . ')');
}
}
return $options;

View File

@ -155,9 +155,9 @@ class TagersField extends ListField
protected function getOptions()
{
// Get the user object.
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
// Get the databse object.
$db = JFactory::getDBO();
$db = Factory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.guid','a.name'),array('guid','tag_name')));
$query->from($db->quoteName('#__getbible_tag', 'a'));
@ -180,11 +180,11 @@ class TagersField extends ListField
{
if ($this->multiple === false)
{
$options[] = JHtml::_('select.option', '', JText::_('COM_GETBIBLE_SELECT_AN_OPTION'));
$options[] = Html::_('select.option', '', Text::_('COM_GETBIBLE_SELECT_AN_OPTION'));
}
foreach($items as $item)
{
$options[] = JHtml::_('select.option', $item->guid, $item->tag_name . ' (' . substr($item->guid, 0, 8) . ')');
$options[] = Html::_('select.option', $item->guid, $item->tag_name . ' (' . substr($item->guid, 0, 8) . ')');
}
}
return $options;

View File

@ -49,9 +49,9 @@ class TargettranslationsField extends ListField
protected function getOptions()
{
// Get the user object.
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
// Get the databse object.
$db = JFactory::getDBO();
$db = Factory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.abbreviation','a.translation'),array('abbreviation','abbreviation_translation')));
$query->from($db->quoteName('#__getbible_translation', 'a'));
@ -74,12 +74,12 @@ class TargettranslationsField extends ListField
{
if ($this->multiple === false)
{
$options[] = JHtml::_('select.option', '', JText::_('COM_GETBIBLE_SELECT_AN_OPTION'));
$options[] = Html::_('select.option', '', Text::_('COM_GETBIBLE_SELECT_AN_OPTION'));
}
$options[] = JHtml::_('select.option', 'all', JText::_('COM_GETBIBLE_ALL_TRANSLATIONS'));
$options[] = Html::_('select.option', 'all', Text::_('COM_GETBIBLE_ALL_TRANSLATIONS'));
foreach($items as $item)
{
$options[] = JHtml::_('select.option', $item->abbreviation, $item->abbreviation_translation.' (' .$item->abbreviation.')');
$options[] = Html::_('select.option', $item->abbreviation, $item->abbreviation_translation.' (' .$item->abbreviation.')');
}
}
return $options;

View File

@ -49,9 +49,9 @@ class TranslationsField extends ListField
protected function getOptions()
{
// Get the user object.
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
// Get the databse object.
$db = JFactory::getDBO();
$db = Factory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.abbreviation','a.translation'),array('abbreviation','abbreviation_translation')));
$query->from($db->quoteName('#__getbible_translation', 'a'));
@ -74,11 +74,11 @@ class TranslationsField extends ListField
{
if ($this->multiple === false)
{
$options[] = JHtml::_('select.option', '', JText::_('COM_GETBIBLE_SELECT_AN_OPTION'));
$options[] = Html::_('select.option', '', Text::_('COM_GETBIBLE_SELECT_AN_OPTION'));
}
foreach($items as $item)
{
$options[] = JHtml::_('select.option', $item->abbreviation, $item->abbreviation_translation.' (' .$item->abbreviation.')');
$options[] = Html::_('select.option', $item->abbreviation, $item->abbreviation_translation.' (' .$item->abbreviation.')');
}
}
@ -88,9 +88,9 @@ class TranslationsField extends ListField
$options = [];
if ($this->multiple === false)
{
$options[] = JHtml::_('select.option', '', JText::_('COM_GETBIBLE_SELECT_AN_OPTION'));
$options[] = Html::_('select.option', '', Text::_('COM_GETBIBLE_SELECT_AN_OPTION'));
}
$options[] = JHtml::_('select.option', 'kjv', 'King James Version (kjv)'); // this is the default at all times.
$options[] = Html::_('select.option', 'kjv', 'King James Version (kjv)'); // this is the default at all times.
}
return $options;

View File

@ -7,9 +7,9 @@
<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.7</version>
<version>5.0.8</version>
<description><![CDATA[
<h1>Get Bible (v.5.0.7)</h1>
<h1>Get Bible (v.5.0.8)</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

@ -155,9 +155,9 @@ class LinkersField extends ListField
protected function getOptions()
{
// Get the user object.
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
// Get the databse object.
$db = JFactory::getDBO();
$db = Factory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.guid','a.name'),array('guid','linker_name')));
$query->from($db->quoteName('#__getbible_linker', 'a'));
@ -180,11 +180,11 @@ class LinkersField extends ListField
{
if ($this->multiple === false)
{
$options[] = JHtml::_('select.option', '', JText::_('COM_GETBIBLE_SELECT_AN_OPTION'));
$options[] = Html::_('select.option', '', Text::_('COM_GETBIBLE_SELECT_AN_OPTION'));
}
foreach($items as $item)
{
$options[] = JHtml::_('select.option', $item->guid, $item->linker_name . ' (' . substr($item->guid, 0, 8) . ')');
$options[] = Html::_('select.option', $item->guid, $item->linker_name . ' (' . substr($item->guid, 0, 8) . ')');
}
}
return $options;

View File

@ -49,9 +49,9 @@ class OpenairesponsesField extends ListField
protected function getOptions()
{
// Get the user object.
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
// Get the databse object.
$db = JFactory::getDBO();
$db = Factory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.response_id','a.response_id'),array('response_id','open_ai_response_response_id')));
$query->from($db->quoteName('#__getbible_open_ai_response', 'a'));
@ -73,11 +73,11 @@ class OpenairesponsesField extends ListField
{
if ($this->multiple === false)
{
$options[] = JHtml::_('select.option', '', JText::_('COM_GETBIBLE_SELECT_AN_OPTION'));
$options[] = Html::_('select.option', '', Text::_('COM_GETBIBLE_SELECT_AN_OPTION'));
}
foreach($items as $item)
{
$options[] = JHtml::_('select.option', $item->response_id, $item->open_ai_response_response_id);
$options[] = Html::_('select.option', $item->response_id, $item->open_ai_response_response_id);
}
}
return $options;

View File

@ -49,9 +49,9 @@ class PromptsField extends ListField
protected function getOptions()
{
// Get the user object.
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
// Get the databse object.
$db = JFactory::getDBO();
$db = Factory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.guid','a.name'),array('guid','prompt_name')));
$query->from($db->quoteName('#__getbible_prompt', 'a'));
@ -73,11 +73,11 @@ class PromptsField extends ListField
{
if ($this->multiple === false)
{
$options[] = JHtml::_('select.option', '', JText::_('COM_GETBIBLE_SELECT_AN_OPTION'));
$options[] = Html::_('select.option', '', Text::_('COM_GETBIBLE_SELECT_AN_OPTION'));
}
foreach($items as $item)
{
$options[] = JHtml::_('select.option', $item->guid, $item->prompt_name . ' (' . $item->guid . ')');
$options[] = Html::_('select.option', $item->guid, $item->prompt_name . ' (' . $item->guid . ')');
}
}
return $options;

View File

@ -155,9 +155,9 @@ class TagersField extends ListField
protected function getOptions()
{
// Get the user object.
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
// Get the databse object.
$db = JFactory::getDBO();
$db = Factory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.guid','a.name'),array('guid','tag_name')));
$query->from($db->quoteName('#__getbible_tag', 'a'));
@ -180,11 +180,11 @@ class TagersField extends ListField
{
if ($this->multiple === false)
{
$options[] = JHtml::_('select.option', '', JText::_('COM_GETBIBLE_SELECT_AN_OPTION'));
$options[] = Html::_('select.option', '', Text::_('COM_GETBIBLE_SELECT_AN_OPTION'));
}
foreach($items as $item)
{
$options[] = JHtml::_('select.option', $item->guid, $item->tag_name . ' (' . substr($item->guid, 0, 8) . ')');
$options[] = Html::_('select.option', $item->guid, $item->tag_name . ' (' . substr($item->guid, 0, 8) . ')');
}
}
return $options;

View File

@ -49,9 +49,9 @@ class TargettranslationsField extends ListField
protected function getOptions()
{
// Get the user object.
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
// Get the databse object.
$db = JFactory::getDBO();
$db = Factory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.abbreviation','a.translation'),array('abbreviation','abbreviation_translation')));
$query->from($db->quoteName('#__getbible_translation', 'a'));
@ -74,12 +74,12 @@ class TargettranslationsField extends ListField
{
if ($this->multiple === false)
{
$options[] = JHtml::_('select.option', '', JText::_('COM_GETBIBLE_SELECT_AN_OPTION'));
$options[] = Html::_('select.option', '', Text::_('COM_GETBIBLE_SELECT_AN_OPTION'));
}
$options[] = JHtml::_('select.option', 'all', JText::_('COM_GETBIBLE_ALL_TRANSLATIONS'));
$options[] = Html::_('select.option', 'all', Text::_('COM_GETBIBLE_ALL_TRANSLATIONS'));
foreach($items as $item)
{
$options[] = JHtml::_('select.option', $item->abbreviation, $item->abbreviation_translation.' (' .$item->abbreviation.')');
$options[] = Html::_('select.option', $item->abbreviation, $item->abbreviation_translation.' (' .$item->abbreviation.')');
}
}
return $options;

View File

@ -49,9 +49,9 @@ class TranslationsField extends ListField
protected function getOptions()
{
// Get the user object.
$user = JFactory::getUser();
$user = Factory::getApplication()->getIdentity();
// Get the databse object.
$db = JFactory::getDBO();
$db = Factory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.abbreviation','a.translation'),array('abbreviation','abbreviation_translation')));
$query->from($db->quoteName('#__getbible_translation', 'a'));
@ -74,11 +74,11 @@ class TranslationsField extends ListField
{
if ($this->multiple === false)
{
$options[] = JHtml::_('select.option', '', JText::_('COM_GETBIBLE_SELECT_AN_OPTION'));
$options[] = Html::_('select.option', '', Text::_('COM_GETBIBLE_SELECT_AN_OPTION'));
}
foreach($items as $item)
{
$options[] = JHtml::_('select.option', $item->abbreviation, $item->abbreviation_translation.' (' .$item->abbreviation.')');
$options[] = Html::_('select.option', $item->abbreviation, $item->abbreviation_translation.' (' .$item->abbreviation.')');
}
}
@ -88,9 +88,9 @@ class TranslationsField extends ListField
$options = [];
if ($this->multiple === false)
{
$options[] = JHtml::_('select.option', '', JText::_('COM_GETBIBLE_SELECT_AN_OPTION'));
$options[] = Html::_('select.option', '', Text::_('COM_GETBIBLE_SELECT_AN_OPTION'));
}
$options[] = JHtml::_('select.option', 'kjv', 'King James Version (kjv)'); // this is the default at all times.
$options[] = Html::_('select.option', 'kjv', 'King James Version (kjv)'); // this is the default at all times.
}
return $options;

View File

@ -23,10 +23,10 @@
<element>pkg_getbible</element>
<type>package</type>
<client>site</client>
<version>4.0.7</version>
<version>4.0.8</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.7.zip</downloadurl>
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/getBible/joomla-pkg/archive/v4.0.8.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
@ -179,4 +179,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.8</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.8.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>