Skip to content

Commit

Permalink
Merge pull request #641 from Joomla-Bible-Study/development
Browse files Browse the repository at this point in the history
9.0.1
  • Loading branch information
bcordis authored Jun 18, 2016
2 parents f268b73 + 6d0df1d commit 08dd3a8
Show file tree
Hide file tree
Showing 1,005 changed files with 105,413 additions and 236,097 deletions.
15 changes: 5 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/tests/test.html
/bin
/tests/test.css
# System files #
.gitignore
Expand Down Expand Up @@ -34,18 +36,11 @@ com_biblestudy/admin/views/test/tmpl/index.html

tests/unit/.joomla-cms/

/vendor/
/bin/phing
/bin/pdepend
/bin/phpcpd
/bin/phploc
/bin/phpmd
/bin/phpunit
/bin/phpcs
/vendor
/composer.phar

tests/.joomla-cms

*.phar

tests/test.php

*.html
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ services:
- redis-server

before_script:
- phpenv config-rm xdebug.ini
# Make sure all dev dependencies are installed
- composer install
# Set up Apache
# - ./build/travis/php-apache.sh
# Enable additional PHP extensions
# Enable additional PHP extensions
- if [ "$INSTALL_MEMCACHED" == "yes" ]; then phpenv config-add build/travis/phpenv/memcached.ini; fi
- if [ "$INSTALL_APC" == "yes" ]; then phpenv config-add build/travis/phpenv/apc-$TRAVIS_PHP_VERSION.ini; fi
- if [ "$INSTALL_APCU" == "yes" ]; then printf "\n" | pecl install apcu-4.0.10; fi
Expand All @@ -42,6 +42,7 @@ before_script:
script:
#- libraries/vendor/bin/phpunit --configuration travisci-phpunit.xml
- sh -c "if [ '$TRAVIS_PHP_VERSION' != '7.0' ]; then bin/phpcs --report=full --extensions=php -p --standard=build/phpcs/Joomla .; fi"
- bin/phing -f build.xml phpdoc

branches:
except:
Expand Down
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Joomla-Bible-Study
==================

[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Joomla-Bible-Study/Joomla-Bible-Study?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Status
-----------
<table>
Expand All @@ -16,15 +14,15 @@ Status
<tr>
<td><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=development"/></a></td>
<td>Development</td>
<td>9.0.0-beta5</td>
<td>March 25, 2016</td>
<td>9.0.2</td>
<td>June 29, 2016</td>
<td align="center">3.4+</td>
</tr>
<tr>
<td><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>Master</td>
<td>9.0.0-beta4</td>
<td>March 6, 2016</td>
<td>9.0.1</td>
<td>June 19, 2016</td>
<td align="center">3.4+</td>
</tr>
</table>
Expand Down Expand Up @@ -60,7 +58,6 @@ We appreciate contributions in varioius capacities, below are some ways that you
Please **make sure to make specific contributions** when submitting pull requests. For example, if fixing bugs across multiple features of the component, create a branch for each fix, and submit a separate pull request for each fix separately, instead of fixing everything in `master`, and then just trying to pull your `master` branch into `Joomla-Bible-Study:master`.



###Translation
The language files periodically need to be updated as the component matures. To submit changes ot add new languages, follow the same procedures as above in order to submit a [pull][pr] request.

Expand Down
1 change: 1 addition & 0 deletions bin/dbunit
3 changes: 2 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
</target>

<!-- Creates API documentation -->
<target name="apidoc" depends="init" description="Generate project API documentation">
<target name="phpdoc" depends="init" description="Generate project API documentation">
<phpdoc2 title="${project.name} API" destdir="${basedir}/docs" template="responsive">
<fileset refid="distributed_files"/>
</phpdoc2>
Expand Down Expand Up @@ -117,6 +117,7 @@
<copy todir="${basedir}/build/packages/_tmp">
<fileset dir="${basedir}/build">
<include name="pkg_biblestudy_package.xml"/>
<include name="script.php"/>
</fileset>
</copy>

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 added 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: 6 additions & 3 deletions build/pkg_biblestudy_package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
<name>Package Joomla Bible Study</name>
<packagename>biblestudy_package</packagename>
<description>
<![CDATA[Joomla Bible Study is one of the most popular Bible Study System available today. <a href='index.php?option=com_biblestudy'>Next to Finish install</a>]]></description>
<![CDATA[Joomla Bible Study is one of the most popular Bible Study System available today. <a href='index.php?option=com_biblestudy&view=install&task=install.browse&scanstate=start'>Next to Finish install</a>]]></description>
<author>Joomla Bible Study Team</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>http://www.joomlabiblestudy.org</authorUrl>
<copyright>(C) 2007 - 2016 Joomla Bible Study All rights reserved.</copyright>
<version>9.0.0-beta4</version>
<creationDate>March 6, 2016</creationDate>
<version>9.0.1</version>
<creationDate>April 8, 2016</creationDate>
<license>http://www.gnu.org/licenses/gpl.html</license>
<packager>Tom Fuller</packager>
<packagerurl>http://www.joomlabiblestudy.org</packagerurl>

<!-- Runs on install/uninstall/update; New in 2.5 -->
<scriptfile>script.php</scriptfile>
<updateservers>
<server type="collection"><![CDATA[http://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[http://www.joomlabiblestudy.org/index.php?option=com_ars&view=update&task=stream&format=xml&id=12]]></server>
Expand Down
64 changes: 32 additions & 32 deletions build/reports/cpd-code.xml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
<file path="/Users/Tom/Documents/JBS/Joomla-Bible-Study/com_biblestudy/admin/models/fields/locationslist.php" line="38"/>
<codefragment> protected function getOptions()
{
$db = JFactory::getDBO();
$db = JFactory::getDbo();
$query = $db-&gt;getQuery(true);
$query-&gt;select('id,location_text');
$query-&gt;from('#__bsms_locations');
Expand Down Expand Up @@ -3258,7 +3258,7 @@ class Com_BiblestudyInstallerScript
$this-&gt;_release = $parent-&gt;get("manifest")-&gt;version;

// Start DB factory
$db = JFactory::getDBO();
$db = JFactory::getDbo();

// Set the #__schemas version_id to the correct number so the update will occur if out of sequence.
$query = $db-&gt;getQuery(true);
Expand Down Expand Up @@ -3323,7 +3323,7 @@ class Com_BiblestudyInstallerScript
*/
public function install($parent)
{
$db = JFactory::getDBO();
$db = JFactory::getDbo();
$buffer = file_get_contents(JPATH_ADMINISTRATOR . '/components/com_biblestudy/install/sql/install-defaults.sql');

if ($buffer === false)
Expand Down Expand Up @@ -3368,7 +3368,7 @@ class Com_BiblestudyInstallerScript

if ($dbhelper-&gt;checkIfTable('#__bsms_admin'))
{
$db = JFactory::getDBO();
$db = JFactory::getDbo();
$query = $db-&gt;getQuery(true);
$query-&gt;select('*')
-&gt;from('#__bsms_admin')
Expand All @@ -3381,7 +3381,7 @@ class Com_BiblestudyInstallerScript
if ($drop_tables &gt; 0)
{
// We must remove the assets manually each time
$db = JFactory::getDBO();
$db = JFactory::getDbo();
$query = $db-&gt;getQuery(true);
$query-&gt;select('id')
-&gt;from('#__assets')
Expand Down Expand Up @@ -3464,7 +3464,7 @@ class Com_BiblestudyInstallerScript
public function postflight($type, $parent)
{
// Set the #__schemas version_id to the correct number for error from 7.0.0
$db = JFactory::getDBO();
$db = JFactory::getDbo();
$query = $db-&gt;getQuery(true);
$query-&gt;select('extension_id')
-&gt;from('#__extensions')
Expand Down Expand Up @@ -3509,7 +3509,7 @@ class Com_BiblestudyInstallerScript
$db-&gt;execute();

// An redirect to a new location after the install is completed.
$parent-&gt;getParent()-&gt;set('redirect_url', JURI::base() . 'index.php?option=com_biblestudy');
$parent-&gt;getParent()-&gt;set('redirect_url', JUri::base() . 'index.php?option=com_biblestudy');
}

/**
Expand Down Expand Up @@ -3891,7 +3891,7 @@ class Com_BiblestudyInstallerScript
*/
public function fixMenus()
{
$db = JFactory::getDBO();
$db = JFactory::getDbo();
$query = $db-&gt;getQuery(true);
$query-&gt;select('*')
-&gt;from('#__menu')
Expand Down Expand Up @@ -3926,7 +3926,7 @@ class Com_BiblestudyInstallerScript
*/
public function fixImagePaths()
{
$db = JFactory::getDBO();
$db = JFactory::getDbo();
$query = $db-&gt;getQuery(true);
$query-&gt;select('*')
-&gt;from('#__bsms_media');
Expand Down Expand Up @@ -3994,7 +3994,7 @@ class Com_BiblestudyInstallerScript
// Correct blank records
foreach ($tables as $table)
{
$db = JFactory::getDBO();
$db = JFactory::getDbo();
$query = $db-&gt;getQuery(true);
$query-&gt;update($table['table'])
-&gt;set('language = ' . $db-&gt;q('*'))
Expand Down Expand Up @@ -4031,7 +4031,7 @@ class Com_BiblestudyInstallerScript
);

// Get Public id
$db = JFactory::getDBO();
$db = JFactory::getDbo();
$query = $db-&gt;getQuery(true);
$query-&gt;select('id')
-&gt;from('#__viewlevels')
Expand Down Expand Up @@ -4343,7 +4343,7 @@ class BiblestudyControllerTeachers extends JControllerLegacy
{
if ($cd-&gt;mid &gt; 0)
{
$src = JURI::base() . $cd-&gt;media_image_path;
$src = JUri::base() . $cd-&gt;media_image_path;

if ($imagew)
{
Expand All @@ -4365,7 +4365,7 @@ class BiblestudyControllerTeachers extends JControllerLegacy
{
$i_path = 'media/com_biblestudy/images/textfile24.png';
$textimage = $images-&gt;getImagePath($i_path);
$src = JURI::base() . $textimage-&gt;path;
$src = JUri::base() . $textimage-&gt;path;
$height = $textimage-&gt;height;
</codefragment>
</duplication>
Expand Down Expand Up @@ -4517,7 +4517,7 @@ class BiblestudyControllerTeachers extends JControllerLegacy

case 2: // This plays the video inline
$mediacode = $this-&gt;getAVmediacode($media-&gt;mediacode, $media);
$playercode = JHTML::_('content.prepare', $mediacode);
$playercode = JHtml::_('content.prepare', $mediacode);
break;
}

Expand Down Expand Up @@ -4585,7 +4585,7 @@ class BiblestudyControllerTeachers extends JControllerLegacy
*/
public function hitPlay($id)
{
$db = JFactory::getDBO();
$db = JFactory::getDbo();
$query = $db-&gt;getQuery(true);
$query-&gt;update('#__bsms_mediafiles')
-&gt;set('plays = plays + 1')
Expand Down Expand Up @@ -4621,7 +4621,7 @@ class BiblestudyControllerTeachers extends JControllerLegacy
$downloadlink = null;

// Here we get the administration row from the component, and determine the download image to use
$db = JFactory::getDBO();
$db = JFactory::getDbo();
$query = $db-&gt;getQuery(true);
$query-&gt;select('*')-&gt;from('#__bsms_admin');
$db-&gt;setQuery($query);
Expand Down Expand Up @@ -4734,7 +4734,7 @@ class BiblestudyControllerTeachers extends JControllerLegacy
*/
public function getMediaid($id)
{
$db = JFactory::getDBO();
$db = JFactory::getDbo();
$query = $db-&gt;getQuery(true);
$query-&gt;select('m.id as mid, m.study_id, s.id as sid')
-&gt;from('#__bsms_mediafiles AS m')
Expand All @@ -4758,7 +4758,7 @@ class BiblestudyControllerTeachers extends JControllerLegacy
{
return false;
}
$db = JFactory::getDBO();
$db = JFactory::getDbo();
$query = $db-&gt;getQuery(true);
$query-&gt;select('#__bsms_mediafiles.*, #__bsms_servers.id AS ssid, #__bsms_servers.server_path AS spath, #__bsms_folders.id AS fid,'
. ' #__bsms_folders.folderpath AS fpath, #__bsms_media.id AS mid, #__bsms_media.media_image_path AS impath, '
Expand Down Expand Up @@ -4807,7 +4807,7 @@ class BiblestudyControllerTeachers extends JControllerLegacy
public function getMediaRows2($id)
{
// We use this for the popup view because it relies on the media file's id rather than the study_id field above
$db = JFactory::getDBO();
$db = JFactory::getDbo();
$query = $db-&gt;getQuery(true);
$query-&gt;select('#__bsms_mediafiles.*, #__bsms_servers.id AS ssid, #__bsms_servers.server_path AS spath, #__bsms_folders.id AS fid,'
. ' #__bsms_folders.folderpath AS fpath, #__bsms_media.id AS mid, #__bsms_media.media_image_path AS impath,'
Expand Down Expand Up @@ -4990,25 +4990,25 @@ class BiblestudyControllerTeachers extends JControllerLegacy
<codefragment>function getstudyDate($params, $studydate) {&#13;
switch ($params-&gt;get('date_format')) {&#13;
case 0:&#13;
$date = JHTML::_('date', $studydate, "M j, Y");&#13;
$date = JHtml::_('date', $studydate, "M j, Y");&#13;
break;&#13;
case 1:&#13;
$date = JHTML::_('date', $studydate, "M J");&#13;
$date = JHtml::_('date', $studydate, "M J");&#13;
break;&#13;
case 2:&#13;
$date = JHTML::_('date', $studydate, "n/j/Y");&#13;
$date = JHtml::_('date', $studydate, "n/j/Y");&#13;
break;&#13;
case 3:&#13;
$date = JHTML::_('date', $studydate, "n/j");&#13;
$date = JHtml::_('date', $studydate, "n/j");&#13;
break;&#13;
case 4:&#13;
$date = JHTML::_('date', $studydate, "l, F j, Y");&#13;
$date = JHtml::_('date', $studydate, "l, F j, Y");&#13;
break;&#13;
case 5:&#13;
$date = JHTML::_('date', $studydate, "F j, Y");&#13;
$date = JHtml::_('date', $studydate, "F j, Y");&#13;
break;&#13;
case 6:&#13;
$date = JHTML::_('date', $studydate, "j F Y");&#13;
$date = JHtml::_('date', $studydate, "j F Y");&#13;
break;&#13;
</codefragment>
</duplication>
Expand Down Expand Up @@ -5154,7 +5154,7 @@ class JFormFieldFilesize extends JFormField
<file path="/Users/Tom/Documents/JBS/Joomla-Bible-Study/com_biblestudy/site/models/fields/topicslist.php" line="39"/>
<codefragment> protected function getOptions()
{
$db = JFactory::getDBO();
$db = JFactory::getDbo();
$query = $db-&gt;getQuery(true);
$query-&gt;select('id, topic_text, params AS topic_params')-&gt;from('#__bsms_topics')-&gt;where('published = ' . 1)-&gt;order('topic_text asc');
$db-&gt;setQuery((string) $query);
Expand Down Expand Up @@ -5221,7 +5221,7 @@ class JFormFieldVirtuemart extends JFormFieldList
{
return JText::_('JBS_CMN_VIRTUEMART_NOT_INSTALLED');
}
$db = JFactory::getDBO();
$db = JFactory::getDbo();
$query = $db-&gt;getQuery(true);
$query-&gt;select('v.virtuemart_product_id, v.product_name');
$query-&gt;from('#__virtuemart_products_' . VMLANG . ' AS v');
Expand Down Expand Up @@ -5757,8 +5757,8 @@ $published = $this-&gt;state-&gt;get('filter.published');
<file path="/Users/Tom/Documents/JBS/Joomla-Bible-Study/com_biblestudy/site/views/commentsedit/view.html.php" line="57"/>
<file path="/Users/Tom/Documents/JBS/Joomla-Bible-Study/com_biblestudy/site/views/commentslist/view.html.php" line="58"/>
<codefragment> $document = JFactory::getDocument();&#13;
$document-&gt;addStyleSheet(JURI::base() . 'administrator/templates/system/css/system.css');&#13;
$document-&gt;addStyleSheet(JURI::base() . 'administrator/templates/bluestork/css/template.css');&#13;
$document-&gt;addStyleSheet(JUri::base() . 'administrator/templates/system/css/system.css');&#13;
$document-&gt;addStyleSheet(JUri::base() . 'administrator/templates/bluestork/css/template.css');&#13;
//Load the Admin settings&#13;
$this-&gt;loadHelper('params');&#13;
$this-&gt;admin = BsmHelper::getAdmin($issite = true);&#13;
Expand Down Expand Up @@ -6313,8 +6313,8 @@ else
;&#13;
$db-&gt;setQuery($query);&#13;
$options = $db-&gt;loadObjectList();&#13;
array_unshift($options, JHTML::_('select.option', '0', '- ' . JText::_('Select a Menu Item') . ' -', 'id', 'text'));&#13;
return JHTML::_('select.genericlist', $options, '' . $control_name . '[' . $name . ']', 'class="inputbox"', 'id', 'text', $value, $control_name . $name);&#13;
array_unshift($options, JHtml::_('select.option', '0', '- ' . JText::_('Select a Menu Item') . ' -', 'id', 'text'));&#13;
return JHtml::_('select.genericlist', $options, '' . $control_name . '[' . $name . ']', 'class="inputbox"', 'id', 'text', $value, $control_name . $name);&#13;
</codefragment>
</duplication>
<duplication lines="64" tokens="173">
Expand Down
Loading

0 comments on commit 08dd3a8

Please sign in to comment.