Skip to content

Commit

Permalink
Merge pull request #746 from Joomla-Bible-Study/development
Browse files Browse the repository at this point in the history
v9.0.17
  • Loading branch information
bcordis authored May 12, 2017
2 parents 15e46a6 + 13efec5 commit 97c9220
Show file tree
Hide file tree
Showing 21 changed files with 57 additions and 25 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Status
<tr>
<td align="center"><a href="https://travis-ci.org/Joomla-Bible-Study/Joomla-Bible-Study" target="_blank"><img src="https://travis-ci.org/Joomla-Bible-Study/Joomla-Bible-Study.png?branch=master"/></a></td>
<td align="center">Master</td>
<td align="center">9.0.16</td>
<td align="center">9.0.17</td>
<td align="center">May 11, 2017</td>
<td align="center">3.4+</td>
</tr>
Expand Down
Binary file modified build/packages/component/com_biblestudy.zip
Binary file not shown.
Binary file modified build/packages/modules/mod_biblestudy.zip
Binary file not shown.
Binary file modified build/packages/modules/mod_biblestudy_podcast.zip
Binary file not shown.
Binary file modified build/packages/pkg_biblestudy.zip
Binary file not shown.
Binary file modified build/packages/plugins/plg_biblestudy_backup.zip
Binary file not shown.
Binary file modified build/packages/plugins/plg_biblestudy_finder.zip
Binary file not shown.
Binary file modified build/packages/plugins/plg_biblestudy_podcast.zip
Binary file not shown.
Binary file modified build/packages/plugins/plg_biblestudy_search.zip
Binary file not shown.
9 changes: 3 additions & 6 deletions build/pkg_biblestudy_package.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<extension type="package" version="3.3" method="upgrade">
<extension type="package" version="3.4" method="upgrade">
<name>Package Joomla Bible Study</name>
<packagename>biblestudy_package</packagename>
<description>
Expand All @@ -8,18 +8,15 @@
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://www.joomlabiblestudy.org</authorUrl>
<copyright>(C) 2007 - 2017 Joomla Bible Study All rights reserved.</copyright>
<version>9.0.16</version>
<version>9.0.17</version>
<creationDate>May 11, 2017</creationDate>
<license>http://www.gnu.org/licenses/gpl.html</license>
<packager>Tom Fuller</packager>
<packagerurl>https://www.joomlabiblestudy.org</packagerurl>

<!-- Runs on install/uninstall/update; New in 2.5 -->
<scriptfile>script.php</scriptfile>
<updateservers>
<server type="collection"><![CDATA[https://www.joomlabiblestudy.org/index.php?option=com_ars&view=update&task=all&format=xml]]></server>
<server type="extension" priority="2" name="Joomla Bible Study Package"><![CDATA[https://www.joomlabiblestudy.org/index.php?option=com_ars&view=update&task=stream&format=xml&id=12]]></server>
</updateservers>

<files folder="packages">
<file type="module" id="mod_biblestudy" client="site">mod_biblestudy.zip</file>
<file type="module" id="mod_biblestudy_podcast" client="site">mod_biblestudy_podcast.zip</file>
Expand Down
2 changes: 1 addition & 1 deletion com_biblestudy/admin/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
define('JBSM_PROFILER', 0);

// Version information
define('BIBLESTUDY_VERSION', '9.0.16');
define('BIBLESTUDY_VERSION', '9.0.17');
define('BIBLESTUDY_VERSION_UPDATEFILE', 'JBS Version ' . BIBLESTUDY_VERSION);

// Default values
Expand Down
2 changes: 1 addition & 1 deletion com_biblestudy/admin/install/sql/install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CREATE TABLE `#__bsms_update` (

INSERT INTO `#__bsms_update` (`id`, `version`)
VALUES
(1, '9.0.16');
(1, '9.0.17');

-- --------------------------------------------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ CREATE TABLE IF NOT EXISTS `#__bsms_update` (
PRIMARY KEY (id)
) DEFAULT CHARSET=utf8;

INSERT INTO `#__bsms_update` (id, version) VALUES ('29', '9.0.16')
ON DUPLICATE KEY UPDATE version = '9.0.16';
INSERT INTO `#__bsms_update` (id, version) VALUES ('29', '9.0.17')
ON DUPLICATE KEY UPDATE version = '9.0.17';
40 changes: 37 additions & 3 deletions com_biblestudy/admin/models/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -1188,12 +1188,46 @@ private function finish($step)
$this->running = 'Remove Old Update URL\'s';
break;
case 'setupdateurl':
/* Find Extension ID of component */
$query = $this->_db->getQuery(true);
$query
->select($this->_db->q('extension_id'))
->from($this->_db->qn('#__extensions'))
->where($this->_db->qn('name') . ' = ' . $this->_db->q('com_biblestudy'));
$this->_db->setQuery($query);
$eid = $this->_db->loadResult();

$conditions = array(
$this->_db->qn('name') . ' = ' .
$this->_db->q('Joomla Bible Study Package'),
);
$query = $this->_db->getQuery(true);
$query->delete($this->_db->qn('#__update_sites'));
$query->where($conditions, 'OR');
$this->_db->setQuery($query);
$this->_db->execute();

$conditions = array(
$this->_db->qn('extension_id') . ' = ' .
$this->_db->q($eid),
);
$query = $this->_db->getQuery(true);
$query->delete($this->_db->qn('#__update_sites_extensions'));
$query->where($conditions, 'OR');
$this->_db->setQuery($query);
$this->_db->execute();

$updateurl = new stdClass;
$updateurl->name = 'Joomla Bible Study Package';
$updateurl->type = 'collection';
$updateurl->location = 'https://www.joomlabiblestudy.org/index.php?option=com_ars&view=update&task=all&format=xml';
$updateurl->type = 'extension';
$updateurl->location = 'https://www.joomlabiblestudy.org/index.php?option=com_ars&amp;view=update&amp;task=stream&amp;id=2&amp;format=xml';
$updateurl->enabled = '1';
$this->_db->insertObject('#__update_sites', $updateurl);
$lastid = $this->_db->insertid();
$updateurl1 = new stdClass;
$updateurl1->update_site_id = $lastid;
$updateurl1->extension_id = $eid;
$this->_db->insertObject('#__update_sites_extensions', $updateurl1);
$this->running = 'Set New Update URL';
break;
default:
Expand Down Expand Up @@ -1223,7 +1257,7 @@ public function postinstall_messages($message)
->where('`name` = "com_biblestudy"');
$this->_db->setQuery($query);
$eid = $this->_db->loadResult();
$this->biblestudyEid = $eid;
$this->biblestudyEid = $eid;
$message->extension_id = $this->biblestudyEid;
$this->_db->insertObject('#__postinstall_messages', $message);
}
Expand Down
11 changes: 6 additions & 5 deletions com_biblestudy/biblestudy.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.3" method="upgrade">
<extension type="component" version="3.4" method="upgrade">
<!-- Generic Metadata -->
<name>COM_BIBLESTUDY</name>
<author>Joomla Bible Study Team</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://www.joomlabiblestudy.org</authorUrl>
<copyright>(C) 2007 - 2017 Joomla Bible Study All rights reserved.</copyright>
<version>9.0.16</version>
<version>9.0.17</version>
<creationDate>May 11, 2017</creationDate>
<license>http://www.gnu.org/licenses/gpl.html</license>
<description>JBS_INS_XML_DESCRIPTION</description>

<!-- Installer Hooks -->
<scriptfile>biblestudy.script.php</scriptfile>

<updateservers>
<server type="extension" priority="1" name="Joomla Bible Study Package">https://www.joomlabiblestudy.org/index.php?option=com_ars&amp;view=update&amp;task=stream&amp;id=2&amp;format=xml</server>
</updateservers>

<files folder="site">
<filename>biblestudy.php</filename>
<filename>controller.php</filename>
Expand Down Expand Up @@ -81,7 +85,4 @@
<folder>views</folder>
</files>
</administration>
<updateservers>
<server type="extension" priority="1" name="Joomla Bible Study"><![CDATA[https://www.joomlabiblestudy.org/index.php?option=com_ars&view=update&task=stream&format=xml&id=2]]></server>
</updateservers>
</extension>
2 changes: 1 addition & 1 deletion mod_biblestudy/mod_biblestudy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://www.joomlabiblestudy.org</authorUrl>
<copyright>(C) 2007 - 2017 Joomla Bible Study All rights reserved.</copyright>
<version>9.0.16</version>
<version>9.0.17</version>
<creationDate>May 11, 2017</creationDate>
<license>http://www.gnu.org/licenses/gpl.html</license>
<description>JBS_MDL_DESCRIPTION</description>
Expand Down
2 changes: 1 addition & 1 deletion mod_biblestudy_podcast/mod_biblestudy_podcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://www.joomlabiblestudy.org</authorUrl>
<copyright>(C) 2007 - 2017 Joomla Bible Study All rights reserved.</copyright>
<version>9.0.16</version>
<version>9.0.17</version>
<creationDate>May 11, 2017</creationDate>
<license>http://www.gnu.org/licenses/gpl.html</license>
<description>JBS_MDL_PODCAST_XML_DESCRIPTION</description>
Expand Down
2 changes: 1 addition & 1 deletion plg_biblestudy_backup/jbsbackup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://www.joomlabiblestudy.org</authorUrl>
<copyright>(C) 2007 - 2017 Joomla Bible Study All rights reserved.</copyright>
<version>9.0.16</version>
<version>9.0.17</version>
<creationDate>May 11, 2017</creationDate>
<license>http://www.gnu.org/licenses/gpl.html</license>
<description>JBS_PLG_BACKUP_XML_DESCRIPTION</description>
Expand Down
2 changes: 1 addition & 1 deletion plg_biblestudy_finder/biblestudy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://www.joomlabiblestudy.org</authorUrl>
<copyright>(C) 2007 - 2017 Joomla Bible Study All rights reserved.</copyright>
<version>9.0.16</version>
<version>9.0.17</version>
<creationDate>May 11, 2017</creationDate>
<license>http://www.gnu.org/licenses/gpl.html</license>
<description>JBS_PLG_FINDER_XML_DESCRIPTION</description>
Expand Down
2 changes: 1 addition & 1 deletion plg_biblestudy_podcast/jbspodcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://www.joomlabiblestudy.org</authorUrl>
<copyright>(C) 2007 - 2017 Joomla Bible Study All rights reserved.</copyright>
<version>9.0.16</version>
<version>9.0.17</version>
<creationDate>May 11, 2017</creationDate>
<license>http://www.gnu.org/licenses/gpl.html</license>
<description>JBS_PLG_PODCAST_XML_DESCRIPTION</description>
Expand Down
2 changes: 1 addition & 1 deletion plg_biblestudy_search/biblestudysearch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://www.joomlabiblestudy.org</authorUrl>
<copyright>(C) 2007 - 2017 Joomla Bible Study All rights reserved.</copyright>
<version>9.0.16</version>
<version>9.0.17</version>
<creationDate>May 11, 2017</creationDate>
<license>http://www.gnu.org/licenses/gpl.html</license>
<description>JBS_PLG_SEARCH_XML_DESCRIPTION</description>
Expand Down

0 comments on commit 97c9220

Please sign in to comment.