2023-04-05 23:22:46 +00:00
|
|
|
<?php
|
2023-07-26 09:21:40 +00:00
|
|
|
/*----------------------------------------------------------------------------------| io.vdm.dev |----/
|
|
|
|
Vast Development Method
|
|
|
|
/-------------------------------------------------------------------------------------------------------/
|
2023-04-05 23:22:46 +00:00
|
|
|
|
2023-07-26 09:21:40 +00:00
|
|
|
@package getBible.net
|
2023-04-05 23:22:46 +00:00
|
|
|
|
2023-07-26 09:21:40 +00:00
|
|
|
@created 3rd December, 2015
|
|
|
|
@author Llewellyn van der Merwe <https://getbible.net>
|
|
|
|
@git Get Bible <https://git.vdm.dev/getBible>
|
|
|
|
@github Get Bible <https://github.com/getBible>
|
|
|
|
@support Get Bible <https://git.vdm.dev/getBible/support>
|
|
|
|
@copyright Copyright (C) 2015. All Rights Reserved
|
|
|
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
2023-04-05 23:22:46 +00:00
|
|
|
|
2023-07-26 09:21:40 +00:00
|
|
|
/------------------------------------------------------------------------------------------------------*/
|
2023-04-05 23:22:46 +00:00
|
|
|
|
|
|
|
// No direct access to this file
|
|
|
|
defined('_JEXEC') or die('Restricted access');
|
|
|
|
|
2023-12-23 16:05:05 +00:00
|
|
|
use Joomla\CMS\Factory;
|
|
|
|
use Joomla\CMS\Language\Text;
|
|
|
|
use Joomla\CMS\Filesystem\File;
|
|
|
|
use Joomla\CMS\Filesystem\Folder;
|
|
|
|
|
2023-04-05 23:22:46 +00:00
|
|
|
/**
|
|
|
|
* Dailyscripture script file.
|
|
|
|
*
|
|
|
|
* @package DailyScripture
|
|
|
|
*/
|
|
|
|
class mod_DailyScriptureInstallerScript
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called before any type of action
|
|
|
|
*
|
|
|
|
* @param string $route Which action is happening (install|uninstall|discover_install|update)
|
|
|
|
* @param Joomla\CMS\Installer\InstallerAdapter $adapter The object responsible for running this script
|
|
|
|
*
|
|
|
|
* @return boolean True on success
|
|
|
|
*/
|
|
|
|
public function preflight($route, $adapter)
|
|
|
|
{
|
|
|
|
// get application
|
2023-12-23 16:05:05 +00:00
|
|
|
$app = Factory::getApplication();
|
2023-04-05 23:22:46 +00:00
|
|
|
|
|
|
|
// the default for both install and update
|
|
|
|
$jversion = new JVersion();
|
|
|
|
if (!$jversion->isCompatible('3.8.0'))
|
|
|
|
{
|
|
|
|
$app->enqueueMessage('Please upgrade to at least Joomla! 3.8.0 before continuing!', 'error');
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ('install' === $route)
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|