Upgraded to JCB v2.12.8
This commit is contained in:
parent
85490b1a3d
commit
deec751e77
17
README.md
17
README.md
|
@ -8,26 +8,13 @@ A component to keep track of release checking.
|
||||||
+ *Author*: [Joomla! Project](mailto:admin@joomla.org)
|
+ *Author*: [Joomla! Project](mailto:admin@joomla.org)
|
||||||
+ *Name*: [Track Release Checking](http://www.joomla.org)
|
+ *Name*: [Track Release Checking](http://www.joomla.org)
|
||||||
+ *First Build*: 29th July, 2020
|
+ *First Build*: 29th July, 2020
|
||||||
+ *Last Build*: 10th December, 2020
|
+ *Last Build*: 8th March, 2021
|
||||||
+ *Version*: 1.0.x
|
+ *Version*: 1.0.x
|
||||||
+ *Copyright*: (C) 2020 Open Source Matters, Inc.
|
+ *Copyright*: (C) 2020 Open Source Matters, Inc.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
|
|
||||||
## Some Fun Numbers
|
## Some Fun Numbers
|
||||||
|
|
||||||
+ *Line count*: **21121**
|
+ *Line count*: **21151**
|
||||||
+ *File count*: **200**
|
+ *File count*: **200**
|
||||||
+ *Folder count*: **56**
|
+ *Folder count*: **56**
|
||||||
|
|
||||||
**59 Hours** or **7 Eight Hour Days** (actual time the author saved -
|
|
||||||
due to [Automated Component Builder](http://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.)
|
|
||||||
|
|
||||||
## Maintenance of the Source Code
|
|
||||||
|
|
||||||
The [Joomla! Component Builder](http://joomlacomponentbuilder.com) project will be used to facilitate the maintenance of the source code of this component.
|
|
||||||
|
|
||||||
More details, with tutorials to follow.
|
|
||||||
|
|
||||||
|
|
|
@ -8,26 +8,13 @@ A component to keep track of release checking.
|
||||||
+ *Author*: [Joomla! Project](mailto:admin@joomla.org)
|
+ *Author*: [Joomla! Project](mailto:admin@joomla.org)
|
||||||
+ *Name*: [Track Release Checking](http://www.joomla.org)
|
+ *Name*: [Track Release Checking](http://www.joomla.org)
|
||||||
+ *First Build*: 29th July, 2020
|
+ *First Build*: 29th July, 2020
|
||||||
+ *Last Build*: 10th December, 2020
|
+ *Last Build*: 8th March, 2021
|
||||||
+ *Version*: 1.0.x
|
+ *Version*: 1.0.x
|
||||||
+ *Copyright*: (C) 2020 Open Source Matters, Inc.
|
+ *Copyright*: (C) 2020 Open Source Matters, Inc.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
|
|
||||||
## Some Fun Numbers
|
## Some Fun Numbers
|
||||||
|
|
||||||
+ *Line count*: **21121**
|
+ *Line count*: **21151**
|
||||||
+ *File count*: **200**
|
+ *File count*: **200**
|
||||||
+ *Folder count*: **56**
|
+ *Folder count*: **56**
|
||||||
|
|
||||||
**59 Hours** or **7 Eight Hour Days** (actual time the author saved -
|
|
||||||
due to [Automated Component Builder](http://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.)
|
|
||||||
|
|
||||||
## Maintenance of the Source Code
|
|
||||||
|
|
||||||
The [Joomla! Component Builder](http://joomlacomponentbuilder.com) project will be used to facilitate the maintenance of the source code of this component.
|
|
||||||
|
|
||||||
More details, with tutorials to follow.
|
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
use Joomla\CMS\Filesystem\File;
|
||||||
use Joomla\CMS\Language\Language;
|
use Joomla\CMS\Language\Language;
|
||||||
use Joomla\Registry\Registry;
|
use Joomla\Registry\Registry;
|
||||||
use Joomla\String\StringHelper;
|
use Joomla\String\StringHelper;
|
||||||
|
@ -152,7 +153,7 @@ abstract class Release_checkingHelper
|
||||||
/**
|
/**
|
||||||
* Prepares the xml document
|
* Prepares the xml document
|
||||||
*/
|
*/
|
||||||
public static function xls($rows, $fileName = null, $title = null, $subjectTab = null, $creator = 'Joomla Component Builder', $description = null, $category = null,$keywords = null, $modified = null)
|
public static function xls($rows, $fileName = null, $title = null, $subjectTab = null, $creator = 'Open Source Matters', $description = null, $category = null,$keywords = null, $modified = null)
|
||||||
{
|
{
|
||||||
// set the user
|
// set the user
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
|
@ -186,7 +187,7 @@ abstract class Release_checkingHelper
|
||||||
// Set document properties
|
// Set document properties
|
||||||
$spreadsheet->getProperties()
|
$spreadsheet->getProperties()
|
||||||
->setCreator($creator)
|
->setCreator($creator)
|
||||||
->setCompany('Joomla Component Builder')
|
->setCompany('Open Source Matters')
|
||||||
->setLastModifiedBy($modified)
|
->setLastModifiedBy($modified)
|
||||||
->setTitle($title)
|
->setTitle($title)
|
||||||
->setSubject($subjectTab);
|
->setSubject($subjectTab);
|
||||||
|
@ -803,12 +804,12 @@ abstract class Release_checkingHelper
|
||||||
$filePath = $path . '/' . $name . '.php';
|
$filePath = $path . '/' . $name . '.php';
|
||||||
$fullPathModel = $fullPathModels . '/' . $name . '.php';
|
$fullPathModel = $fullPathModels . '/' . $name . '.php';
|
||||||
// check if it exists
|
// check if it exists
|
||||||
if (JFile::exists($filePath))
|
if (File::exists($filePath))
|
||||||
{
|
{
|
||||||
// get the file
|
// get the file
|
||||||
require_once $filePath;
|
require_once $filePath;
|
||||||
}
|
}
|
||||||
elseif (JFile::exists($fullPathModel))
|
elseif (File::exists($fullPathModel))
|
||||||
{
|
{
|
||||||
// get the file
|
// get the file
|
||||||
require_once $fullPathModel;
|
require_once $fullPathModel;
|
||||||
|
|
|
@ -32,17 +32,14 @@ COM_RELEASE_CHECKING_ACTIONS_N_ITEMS_UNFEATURED="%s Actions unfeatured."
|
||||||
COM_RELEASE_CHECKING_ACTIONS_N_ITEMS_UNFEATURED_1="%s Action unfeatured."
|
COM_RELEASE_CHECKING_ACTIONS_N_ITEMS_UNFEATURED_1="%s Action unfeatured."
|
||||||
COM_RELEASE_CHECKING_ACTIONS_N_ITEMS_UNPUBLISHED="%s Actions unpublished."
|
COM_RELEASE_CHECKING_ACTIONS_N_ITEMS_UNPUBLISHED="%s Actions unpublished."
|
||||||
COM_RELEASE_CHECKING_ACTIONS_N_ITEMS_UNPUBLISHED_1="%s Action unpublished."
|
COM_RELEASE_CHECKING_ACTIONS_N_ITEMS_UNPUBLISHED_1="%s Action unpublished."
|
||||||
COM_RELEASE_CHECKING_ACTION_ALIAS="Alias"
|
|
||||||
COM_RELEASE_CHECKING_ACTION_ALIAS_HINT="Auto-generated from name"
|
COM_RELEASE_CHECKING_ACTION_ALIAS_HINT="Auto-generated from name"
|
||||||
COM_RELEASE_CHECKING_ACTION_ALIAS_LABEL="Alias"
|
COM_RELEASE_CHECKING_ACTION_ALIAS_LABEL="Alias"
|
||||||
COM_RELEASE_CHECKING_ACTION_CONTEXT="Context"
|
|
||||||
COM_RELEASE_CHECKING_ACTION_CONTEXT_DESCRIPTION="Select the context."
|
COM_RELEASE_CHECKING_ACTION_CONTEXT_DESCRIPTION="Select the context."
|
||||||
COM_RELEASE_CHECKING_ACTION_CONTEXT_LABEL="Context"
|
COM_RELEASE_CHECKING_ACTION_CONTEXT_LABEL="Context"
|
||||||
COM_RELEASE_CHECKING_ACTION_CREATED_BY_DESC="The user that created this Action."
|
COM_RELEASE_CHECKING_ACTION_CREATED_BY_DESC="The user that created this Action."
|
||||||
COM_RELEASE_CHECKING_ACTION_CREATED_BY_LABEL="Created By"
|
COM_RELEASE_CHECKING_ACTION_CREATED_BY_LABEL="Created By"
|
||||||
COM_RELEASE_CHECKING_ACTION_CREATED_DATE_DESC="The date this Action was created."
|
COM_RELEASE_CHECKING_ACTION_CREATED_DATE_DESC="The date this Action was created."
|
||||||
COM_RELEASE_CHECKING_ACTION_CREATED_DATE_LABEL="Created Date"
|
COM_RELEASE_CHECKING_ACTION_CREATED_DATE_LABEL="Created Date"
|
||||||
COM_RELEASE_CHECKING_ACTION_DESCRIPTION="Description"
|
|
||||||
COM_RELEASE_CHECKING_ACTION_DESCRIPTION_DESCRIPTION="Add Description Here"
|
COM_RELEASE_CHECKING_ACTION_DESCRIPTION_DESCRIPTION="Add Description Here"
|
||||||
COM_RELEASE_CHECKING_ACTION_DESCRIPTION_HINT="Add Description Here"
|
COM_RELEASE_CHECKING_ACTION_DESCRIPTION_HINT="Add Description Here"
|
||||||
COM_RELEASE_CHECKING_ACTION_DESCRIPTION_LABEL="Description"
|
COM_RELEASE_CHECKING_ACTION_DESCRIPTION_LABEL="Description"
|
||||||
|
@ -54,9 +51,8 @@ COM_RELEASE_CHECKING_ACTION_MODIFIED_BY_DESC="The last user that modified this A
|
||||||
COM_RELEASE_CHECKING_ACTION_MODIFIED_BY_LABEL="Modified By"
|
COM_RELEASE_CHECKING_ACTION_MODIFIED_BY_LABEL="Modified By"
|
||||||
COM_RELEASE_CHECKING_ACTION_MODIFIED_DATE_DESC="The date this Action was modified."
|
COM_RELEASE_CHECKING_ACTION_MODIFIED_DATE_DESC="The date this Action was modified."
|
||||||
COM_RELEASE_CHECKING_ACTION_MODIFIED_DATE_LABEL="Modified Date"
|
COM_RELEASE_CHECKING_ACTION_MODIFIED_DATE_LABEL="Modified Date"
|
||||||
COM_RELEASE_CHECKING_ACTION_NAME="Name"
|
|
||||||
COM_RELEASE_CHECKING_ACTION_NAME_DESCRIPTION="Enter Name Here"
|
COM_RELEASE_CHECKING_ACTION_NAME_DESCRIPTION="Enter Name Here"
|
||||||
COM_RELEASE_CHECKING_ACTION_NAME_HINT="Name Here"
|
COM_RELEASE_CHECKING_ACTION_NAME_HINT="Name here"
|
||||||
COM_RELEASE_CHECKING_ACTION_NAME_LABEL="Name"
|
COM_RELEASE_CHECKING_ACTION_NAME_LABEL="Name"
|
||||||
COM_RELEASE_CHECKING_ACTION_NAME_MESSAGE="Error! Please add name here."
|
COM_RELEASE_CHECKING_ACTION_NAME_MESSAGE="Error! Please add name here."
|
||||||
COM_RELEASE_CHECKING_ACTION_NEW="A New Action"
|
COM_RELEASE_CHECKING_ACTION_NEW="A New Action"
|
||||||
|
@ -121,7 +117,6 @@ COM_RELEASE_CHECKING_CONTEXTS_N_ITEMS_UNFEATURED="%s Contexts unfeatured."
|
||||||
COM_RELEASE_CHECKING_CONTEXTS_N_ITEMS_UNFEATURED_1="%s Context unfeatured."
|
COM_RELEASE_CHECKING_CONTEXTS_N_ITEMS_UNFEATURED_1="%s Context unfeatured."
|
||||||
COM_RELEASE_CHECKING_CONTEXTS_N_ITEMS_UNPUBLISHED="%s Contexts unpublished."
|
COM_RELEASE_CHECKING_CONTEXTS_N_ITEMS_UNPUBLISHED="%s Contexts unpublished."
|
||||||
COM_RELEASE_CHECKING_CONTEXTS_N_ITEMS_UNPUBLISHED_1="%s Context unpublished."
|
COM_RELEASE_CHECKING_CONTEXTS_N_ITEMS_UNPUBLISHED_1="%s Context unpublished."
|
||||||
COM_RELEASE_CHECKING_CONTEXT_ALIAS="Alias"
|
|
||||||
COM_RELEASE_CHECKING_CONTEXT_ALIAS_HINT="Auto-generated from name"
|
COM_RELEASE_CHECKING_CONTEXT_ALIAS_HINT="Auto-generated from name"
|
||||||
COM_RELEASE_CHECKING_CONTEXT_ALIAS_LABEL="Alias"
|
COM_RELEASE_CHECKING_CONTEXT_ALIAS_LABEL="Alias"
|
||||||
COM_RELEASE_CHECKING_CONTEXT_CREATED_BY_DESC="The user that created this Context."
|
COM_RELEASE_CHECKING_CONTEXT_CREATED_BY_DESC="The user that created this Context."
|
||||||
|
@ -136,9 +131,8 @@ COM_RELEASE_CHECKING_CONTEXT_MODIFIED_BY_DESC="The last user that modified this
|
||||||
COM_RELEASE_CHECKING_CONTEXT_MODIFIED_BY_LABEL="Modified By"
|
COM_RELEASE_CHECKING_CONTEXT_MODIFIED_BY_LABEL="Modified By"
|
||||||
COM_RELEASE_CHECKING_CONTEXT_MODIFIED_DATE_DESC="The date this Context was modified."
|
COM_RELEASE_CHECKING_CONTEXT_MODIFIED_DATE_DESC="The date this Context was modified."
|
||||||
COM_RELEASE_CHECKING_CONTEXT_MODIFIED_DATE_LABEL="Modified Date"
|
COM_RELEASE_CHECKING_CONTEXT_MODIFIED_DATE_LABEL="Modified Date"
|
||||||
COM_RELEASE_CHECKING_CONTEXT_NAME="Name"
|
|
||||||
COM_RELEASE_CHECKING_CONTEXT_NAME_DESCRIPTION="Enter Name Here"
|
COM_RELEASE_CHECKING_CONTEXT_NAME_DESCRIPTION="Enter Name Here"
|
||||||
COM_RELEASE_CHECKING_CONTEXT_NAME_HINT="Name Here"
|
COM_RELEASE_CHECKING_CONTEXT_NAME_HINT="Name here"
|
||||||
COM_RELEASE_CHECKING_CONTEXT_NAME_LABEL="Name"
|
COM_RELEASE_CHECKING_CONTEXT_NAME_LABEL="Name"
|
||||||
COM_RELEASE_CHECKING_CONTEXT_NAME_MESSAGE="Error! Please add name here."
|
COM_RELEASE_CHECKING_CONTEXT_NAME_MESSAGE="Error! Please add name here."
|
||||||
COM_RELEASE_CHECKING_CONTEXT_NEW="A New Context"
|
COM_RELEASE_CHECKING_CONTEXT_NEW="A New Context"
|
||||||
|
@ -271,7 +265,6 @@ COM_RELEASE_CHECKING_JOOMLA_VERSIONS_N_ITEMS_UNPUBLISHED="%s Joomla Versions unp
|
||||||
COM_RELEASE_CHECKING_JOOMLA_VERSIONS_N_ITEMS_UNPUBLISHED_1="%s Joomla Version unpublished."
|
COM_RELEASE_CHECKING_JOOMLA_VERSIONS_N_ITEMS_UNPUBLISHED_1="%s Joomla Version unpublished."
|
||||||
COM_RELEASE_CHECKING_JOOMLA_VERSIONS_SUBMENU="Joomla Versions Submenu"
|
COM_RELEASE_CHECKING_JOOMLA_VERSIONS_SUBMENU="Joomla Versions Submenu"
|
||||||
COM_RELEASE_CHECKING_JOOMLA_VERSIONS_SUBMENU_DESC="Allows the users in this group to submenu of joomla version"
|
COM_RELEASE_CHECKING_JOOMLA_VERSIONS_SUBMENU_DESC="Allows the users in this group to submenu of joomla version"
|
||||||
COM_RELEASE_CHECKING_JOOMLA_VERSION_ALIAS="Alias"
|
|
||||||
COM_RELEASE_CHECKING_JOOMLA_VERSION_ALIAS_HINT="Auto-generated from name"
|
COM_RELEASE_CHECKING_JOOMLA_VERSION_ALIAS_HINT="Auto-generated from name"
|
||||||
COM_RELEASE_CHECKING_JOOMLA_VERSION_ALIAS_LABEL="Alias"
|
COM_RELEASE_CHECKING_JOOMLA_VERSION_ALIAS_LABEL="Alias"
|
||||||
COM_RELEASE_CHECKING_JOOMLA_VERSION_CREATED_BY_DESC="The user that created this Joomla Version."
|
COM_RELEASE_CHECKING_JOOMLA_VERSION_CREATED_BY_DESC="The user that created this Joomla Version."
|
||||||
|
@ -286,9 +279,8 @@ COM_RELEASE_CHECKING_JOOMLA_VERSION_MODIFIED_BY_DESC="The last user that modifie
|
||||||
COM_RELEASE_CHECKING_JOOMLA_VERSION_MODIFIED_BY_LABEL="Modified By"
|
COM_RELEASE_CHECKING_JOOMLA_VERSION_MODIFIED_BY_LABEL="Modified By"
|
||||||
COM_RELEASE_CHECKING_JOOMLA_VERSION_MODIFIED_DATE_DESC="The date this Joomla Version was modified."
|
COM_RELEASE_CHECKING_JOOMLA_VERSION_MODIFIED_DATE_DESC="The date this Joomla Version was modified."
|
||||||
COM_RELEASE_CHECKING_JOOMLA_VERSION_MODIFIED_DATE_LABEL="Modified Date"
|
COM_RELEASE_CHECKING_JOOMLA_VERSION_MODIFIED_DATE_LABEL="Modified Date"
|
||||||
COM_RELEASE_CHECKING_JOOMLA_VERSION_NAME="Name"
|
|
||||||
COM_RELEASE_CHECKING_JOOMLA_VERSION_NAME_DESCRIPTION="Enter Name Here"
|
COM_RELEASE_CHECKING_JOOMLA_VERSION_NAME_DESCRIPTION="Enter Name Here"
|
||||||
COM_RELEASE_CHECKING_JOOMLA_VERSION_NAME_HINT="Name Here"
|
COM_RELEASE_CHECKING_JOOMLA_VERSION_NAME_HINT="Name here"
|
||||||
COM_RELEASE_CHECKING_JOOMLA_VERSION_NAME_LABEL="Name"
|
COM_RELEASE_CHECKING_JOOMLA_VERSION_NAME_LABEL="Name"
|
||||||
COM_RELEASE_CHECKING_JOOMLA_VERSION_NAME_MESSAGE="Error! Please add name here."
|
COM_RELEASE_CHECKING_JOOMLA_VERSION_NAME_MESSAGE="Error! Please add name here."
|
||||||
COM_RELEASE_CHECKING_JOOMLA_VERSION_NEW="A New Joomla Version"
|
COM_RELEASE_CHECKING_JOOMLA_VERSION_NEW="A New Joomla Version"
|
||||||
|
@ -361,14 +353,11 @@ COM_RELEASE_CHECKING_RELEASE_CHECKS_N_ITEMS_UNPUBLISHED="%s Release Checks unpub
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECKS_N_ITEMS_UNPUBLISHED_1="%s Release Check unpublished."
|
COM_RELEASE_CHECKING_RELEASE_CHECKS_N_ITEMS_UNPUBLISHED_1="%s Release Check unpublished."
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECKS_SUBMENU="Release Checks Submenu"
|
COM_RELEASE_CHECKING_RELEASE_CHECKS_SUBMENU="Release Checks Submenu"
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECKS_SUBMENU_DESC="Allows the users in this group to submenu of release check"
|
COM_RELEASE_CHECKING_RELEASE_CHECKS_SUBMENU_DESC="Allows the users in this group to submenu of release check"
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_ACTION="Action"
|
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_ACTION_DESCRIPTION="Please select the action this release_check belongs to."
|
COM_RELEASE_CHECKING_RELEASE_CHECK_ACTION_DESCRIPTION="Please select the action this release_check belongs to."
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_ACTION_LABEL="Action"
|
COM_RELEASE_CHECKING_RELEASE_CHECK_ACTION_LABEL="Action"
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_CHECKING="Checking"
|
COM_RELEASE_CHECKING_RELEASE_CHECK_CHECKING="Checking"
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_CONTEXT="Context"
|
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_CONTEXT_DESCRIPTION="Select the context."
|
COM_RELEASE_CHECKING_RELEASE_CHECK_CONTEXT_DESCRIPTION="Select the context."
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_CONTEXT_LABEL="Context"
|
COM_RELEASE_CHECKING_RELEASE_CHECK_CONTEXT_LABEL="Context"
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_CREATED_BY="Created By"
|
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_CREATED_BY_DESC="The user that created this Release Check."
|
COM_RELEASE_CHECKING_RELEASE_CHECK_CREATED_BY_DESC="The user that created this Release Check."
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_CREATED_BY_DESCRIPTION="The user that created this."
|
COM_RELEASE_CHECKING_RELEASE_CHECK_CREATED_BY_DESCRIPTION="The user that created this."
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_CREATED_BY_LABEL="Created By"
|
COM_RELEASE_CHECKING_RELEASE_CHECK_CREATED_BY_LABEL="Created By"
|
||||||
|
@ -378,7 +367,6 @@ COM_RELEASE_CHECKING_RELEASE_CHECK_EDIT="Editing the Release Check"
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_ERROR_UNIQUE_ALIAS="Another Release Check has the same alias."
|
COM_RELEASE_CHECKING_RELEASE_CHECK_ERROR_UNIQUE_ALIAS="Another Release Check has the same alias."
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_FAILURE="Failure"
|
COM_RELEASE_CHECKING_RELEASE_CHECK_FAILURE="Failure"
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_ID="Id"
|
COM_RELEASE_CHECKING_RELEASE_CHECK_ID="Id"
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_JOOMLA_VERSION="Joomla Version"
|
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_JOOMLA_VERSION_DESCRIPTION="Select the Joomla version being tested"
|
COM_RELEASE_CHECKING_RELEASE_CHECK_JOOMLA_VERSION_DESCRIPTION="Select the Joomla version being tested"
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_JOOMLA_VERSION_LABEL="Joomla Version"
|
COM_RELEASE_CHECKING_RELEASE_CHECK_JOOMLA_VERSION_LABEL="Joomla Version"
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_MODIFIED_BY_DESC="The last user that modified this Release Check."
|
COM_RELEASE_CHECKING_RELEASE_CHECK_MODIFIED_BY_DESC="The last user that modified this Release Check."
|
||||||
|
@ -387,7 +375,6 @@ COM_RELEASE_CHECKING_RELEASE_CHECK_MODIFIED_DATE_DESC="The date this Release Che
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_MODIFIED_DATE_LABEL="Modified Date"
|
COM_RELEASE_CHECKING_RELEASE_CHECK_MODIFIED_DATE_LABEL="Modified Date"
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_NEW="A New Release Check"
|
COM_RELEASE_CHECKING_RELEASE_CHECK_NEW="A New Release Check"
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_ORDERING_LABEL="Ordering"
|
COM_RELEASE_CHECKING_RELEASE_CHECK_ORDERING_LABEL="Ordering"
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_OUTCOME="Outcome"
|
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_OUTCOME_DESCRIPTION="Select the test outcome"
|
COM_RELEASE_CHECKING_RELEASE_CHECK_OUTCOME_DESCRIPTION="Select the test outcome"
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_OUTCOME_LABEL="Outcome"
|
COM_RELEASE_CHECKING_RELEASE_CHECK_OUTCOME_LABEL="Outcome"
|
||||||
COM_RELEASE_CHECKING_RELEASE_CHECK_PERMISSION="Permissions"
|
COM_RELEASE_CHECKING_RELEASE_CHECK_PERMISSION="Permissions"
|
||||||
|
|
|
@ -24,6 +24,7 @@ $fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
// get the fields
|
// get the fields
|
||||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
|
'title',
|
||||||
'created',
|
'created',
|
||||||
'created_by',
|
'created_by',
|
||||||
'modified',
|
'modified',
|
||||||
|
|
|
@ -24,6 +24,7 @@ $fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
// get the fields
|
// get the fields
|
||||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
|
'title',
|
||||||
'created',
|
'created',
|
||||||
'created_by',
|
'created_by',
|
||||||
'modified',
|
'modified',
|
||||||
|
|
|
@ -24,6 +24,7 @@ $fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
// get the fields
|
// get the fields
|
||||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
|
'title',
|
||||||
'created',
|
'created',
|
||||||
'created_by',
|
'created_by',
|
||||||
'modified',
|
'modified',
|
||||||
|
|
|
@ -24,6 +24,7 @@ $fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||||
|
|
||||||
// get the fields
|
// get the fields
|
||||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
|
'title',
|
||||||
'created',
|
'created',
|
||||||
'created_by',
|
'created_by',
|
||||||
'modified',
|
'modified',
|
||||||
|
|
|
@ -359,7 +359,7 @@ class Release_checkingModelActions extends JModelList
|
||||||
{
|
{
|
||||||
$id .= ':' . implode(':', $_access);
|
$id .= ':' . implode(':', $_access);
|
||||||
}
|
}
|
||||||
// Check if this is only an int or string
|
// Check if this is only an number or string
|
||||||
elseif (is_numeric($_access)
|
elseif (is_numeric($_access)
|
||||||
|| Release_checkingHelper::checkString($_access))
|
|| Release_checkingHelper::checkString($_access))
|
||||||
{
|
{
|
||||||
|
|
|
@ -339,7 +339,7 @@ class Release_checkingModelContexts extends JModelList
|
||||||
{
|
{
|
||||||
$id .= ':' . implode(':', $_access);
|
$id .= ':' . implode(':', $_access);
|
||||||
}
|
}
|
||||||
// Check if this is only an int or string
|
// Check if this is only an number or string
|
||||||
elseif (is_numeric($_access)
|
elseif (is_numeric($_access)
|
||||||
|| Release_checkingHelper::checkString($_access))
|
|| Release_checkingHelper::checkString($_access))
|
||||||
{
|
{
|
||||||
|
|
|
@ -84,6 +84,14 @@
|
||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
|
<!-- Was added due to Permissions JS needing a Title field -->
|
||||||
|
<!-- Let us know at gh-629 should this change -->
|
||||||
|
<!-- https://github.com/vdm-io/Joomla-Component-Builder/issues/629#issuecomment-750117235 -->
|
||||||
|
<field
|
||||||
|
name="title"
|
||||||
|
type="hidden"
|
||||||
|
default="release_checking action"
|
||||||
|
/>
|
||||||
<!-- Dynamic Fields. -->
|
<!-- Dynamic Fields. -->
|
||||||
<!-- Name Field. Type: Text. (joomla) -->
|
<!-- Name Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
|
|
|
@ -84,6 +84,14 @@
|
||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
|
<!-- Was added due to Permissions JS needing a Title field -->
|
||||||
|
<!-- Let us know at gh-629 should this change -->
|
||||||
|
<!-- https://github.com/vdm-io/Joomla-Component-Builder/issues/629#issuecomment-750117235 -->
|
||||||
|
<field
|
||||||
|
name="title"
|
||||||
|
type="hidden"
|
||||||
|
default="release_checking context"
|
||||||
|
/>
|
||||||
<!-- Dynamic Fields. -->
|
<!-- Dynamic Fields. -->
|
||||||
<!-- Name Field. Type: Text. (joomla) -->
|
<!-- Name Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
|
|
|
@ -84,6 +84,14 @@
|
||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
|
<!-- Was added due to Permissions JS needing a Title field -->
|
||||||
|
<!-- Let us know at gh-629 should this change -->
|
||||||
|
<!-- https://github.com/vdm-io/Joomla-Component-Builder/issues/629#issuecomment-750117235 -->
|
||||||
|
<field
|
||||||
|
name="title"
|
||||||
|
type="hidden"
|
||||||
|
default="release_checking joomla_version"
|
||||||
|
/>
|
||||||
<!-- Dynamic Fields. -->
|
<!-- Dynamic Fields. -->
|
||||||
<!-- Name Field. Type: Text. (joomla) -->
|
<!-- Name Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
|
|
|
@ -77,6 +77,14 @@
|
||||||
readonly="true"
|
readonly="true"
|
||||||
filter="unset"
|
filter="unset"
|
||||||
/>
|
/>
|
||||||
|
<!-- Was added due to Permissions JS needing a Title field -->
|
||||||
|
<!-- Let us know at gh-629 should this change -->
|
||||||
|
<!-- https://github.com/vdm-io/Joomla-Component-Builder/issues/629#issuecomment-750117235 -->
|
||||||
|
<field
|
||||||
|
name="title"
|
||||||
|
type="hidden"
|
||||||
|
default="release_checking release_check"
|
||||||
|
/>
|
||||||
<!-- Dynamic Fields. -->
|
<!-- Dynamic Fields. -->
|
||||||
<!-- Context Field. Type: Contexts. (custom) -->
|
<!-- Context Field. Type: Contexts. (custom) -->
|
||||||
<field
|
<field
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
use Joomla\CMS\Filesystem\File;
|
||||||
|
use Joomla\CMS\Filesystem\Folder;
|
||||||
use Joomla\Utilities\ArrayHelper;
|
use Joomla\Utilities\ArrayHelper;
|
||||||
use PhpOffice\PhpSpreadsheet\IOFactory;
|
use PhpOffice\PhpSpreadsheet\IOFactory;
|
||||||
|
|
||||||
|
@ -220,7 +222,7 @@ class Release_checkingModelImport extends JModelLegacy
|
||||||
|
|
||||||
// Move uploaded file
|
// Move uploaded file
|
||||||
jimport('joomla.filesystem.file');
|
jimport('joomla.filesystem.file');
|
||||||
$p_file = JFile::upload($tmp_src, $tmp_dest, $this->use_streams, $this->allow_unsafe, $this->safeFileOptions);
|
$p_file = File::upload($tmp_src, $tmp_dest, $this->use_streams, $this->allow_unsafe, $this->safeFileOptions);
|
||||||
|
|
||||||
// Was the package downloaded?
|
// Was the package downloaded?
|
||||||
if (!$p_file)
|
if (!$p_file)
|
||||||
|
@ -398,12 +400,12 @@ class Release_checkingModelImport extends JModelLegacy
|
||||||
// Is the package file a valid file?
|
// Is the package file a valid file?
|
||||||
if (is_file($package))
|
if (is_file($package))
|
||||||
{
|
{
|
||||||
JFile::delete($package);
|
File::delete($package);
|
||||||
}
|
}
|
||||||
elseif (is_file(JPath::clean($package)))
|
elseif (is_file(JPath::clean($package)))
|
||||||
{
|
{
|
||||||
// It might also be just a base filename
|
// It might also be just a base filename
|
||||||
JFile::delete(JPath::clean($package));
|
File::delete(JPath::clean($package));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -322,7 +322,7 @@ class Release_checkingModelJoomla_versions extends JModelList
|
||||||
{
|
{
|
||||||
$id .= ':' . implode(':', $_access);
|
$id .= ':' . implode(':', $_access);
|
||||||
}
|
}
|
||||||
// Check if this is only an int or string
|
// Check if this is only an number or string
|
||||||
elseif (is_numeric($_access)
|
elseif (is_numeric($_access)
|
||||||
|| Release_checkingHelper::checkString($_access))
|
|| Release_checkingHelper::checkString($_access))
|
||||||
{
|
{
|
||||||
|
|
|
@ -649,7 +649,7 @@ class Release_checkingModelRelease_checks extends JModelList
|
||||||
{
|
{
|
||||||
$id .= ':' . implode(':', $_access);
|
$id .= ':' . implode(':', $_access);
|
||||||
}
|
}
|
||||||
// Check if this is only an int or string
|
// Check if this is only an number or string
|
||||||
elseif (is_numeric($_access)
|
elseif (is_numeric($_access)
|
||||||
|| Release_checkingHelper::checkString($_access))
|
|| Release_checkingHelper::checkString($_access))
|
||||||
{
|
{
|
||||||
|
@ -663,7 +663,7 @@ class Release_checkingModelRelease_checks extends JModelList
|
||||||
{
|
{
|
||||||
$id .= ':' . implode(':', $_context);
|
$id .= ':' . implode(':', $_context);
|
||||||
}
|
}
|
||||||
// Check if this is only an int or string
|
// Check if this is only an number or string
|
||||||
elseif (is_numeric($_context)
|
elseif (is_numeric($_context)
|
||||||
|| Release_checkingHelper::checkString($_context))
|
|| Release_checkingHelper::checkString($_context))
|
||||||
{
|
{
|
||||||
|
@ -675,7 +675,7 @@ class Release_checkingModelRelease_checks extends JModelList
|
||||||
{
|
{
|
||||||
$id .= ':' . implode(':', $_action);
|
$id .= ':' . implode(':', $_action);
|
||||||
}
|
}
|
||||||
// Check if this is only an int or string
|
// Check if this is only an number or string
|
||||||
elseif (is_numeric($_action)
|
elseif (is_numeric($_action)
|
||||||
|| Release_checkingHelper::checkString($_action))
|
|| Release_checkingHelper::checkString($_action))
|
||||||
{
|
{
|
||||||
|
@ -687,7 +687,7 @@ class Release_checkingModelRelease_checks extends JModelList
|
||||||
{
|
{
|
||||||
$id .= ':' . implode(':', $_outcome);
|
$id .= ':' . implode(':', $_outcome);
|
||||||
}
|
}
|
||||||
// Check if this is only an int or string
|
// Check if this is only an number or string
|
||||||
elseif (is_numeric($_outcome)
|
elseif (is_numeric($_outcome)
|
||||||
|| Release_checkingHelper::checkString($_outcome))
|
|| Release_checkingHelper::checkString($_outcome))
|
||||||
{
|
{
|
||||||
|
@ -699,7 +699,7 @@ class Release_checkingModelRelease_checks extends JModelList
|
||||||
{
|
{
|
||||||
$id .= ':' . implode(':', $_joomla_version);
|
$id .= ':' . implode(':', $_joomla_version);
|
||||||
}
|
}
|
||||||
// Check if this is only an int or string
|
// Check if this is only an number or string
|
||||||
elseif (is_numeric($_joomla_version)
|
elseif (is_numeric($_joomla_version)
|
||||||
|| Release_checkingHelper::checkString($_joomla_version))
|
|| Release_checkingHelper::checkString($_joomla_version))
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
JHtml::_('behavior.tabstate');
|
JHtml::_('behavior.tabstate');
|
||||||
|
|
||||||
// Access check.
|
// Access check.
|
||||||
|
|
|
@ -278,8 +278,3 @@ INSERT INTO `#__release_checking_action` (`id`, `alias`, `context`, `description
|
||||||
(95, 'make-sure-google-recaptcha-still-works', 35, '', 'Make sure Google recaptcha still works', 1);
|
(95, 'make-sure-google-recaptcha-still-works', 35, '', 'Make sure Google recaptcha still works', 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Always insure this column rules is large enough for all the access control values.
|
|
||||||
--
|
|
||||||
ALTER TABLE `#__assets` CHANGE `rules` `rules` TEXT NOT NULL COMMENT 'JSON encoded access control.';
|
|
||||||
|
|
|
@ -3,8 +3,3 @@ DROP TABLE IF EXISTS `#__release_checking_joomla_version`;
|
||||||
DROP TABLE IF EXISTS `#__release_checking_context`;
|
DROP TABLE IF EXISTS `#__release_checking_context`;
|
||||||
DROP TABLE IF EXISTS `#__release_checking_action`;
|
DROP TABLE IF EXISTS `#__release_checking_action`;
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Always insure this column rules is reversed to Joomla defaults on uninstall. (as on 1st Dec 2020)
|
|
||||||
--
|
|
||||||
ALTER TABLE `#__assets` CHANGE `rules` `rules` varchar(5120) NOT NULL COMMENT 'JSON encoded access control.';
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<extension type="component" version="3.2" method="upgrade">
|
<extension type="component" version="3.2" method="upgrade">
|
||||||
<name>COM_RELEASE_CHECKING</name>
|
<name>COM_RELEASE_CHECKING</name>
|
||||||
<creationDate>10th December, 2020</creationDate>
|
<creationDate>8th March, 2021</creationDate>
|
||||||
<author>Joomla! Project</author>
|
<author>Joomla! Project</author>
|
||||||
<authorEmail>admin@joomla.org</authorEmail>
|
<authorEmail>admin@joomla.org</authorEmail>
|
||||||
<authorUrl>http://www.joomla.org</authorUrl>
|
<authorUrl>http://www.joomla.org</authorUrl>
|
||||||
|
|
55
script.php
55
script.php
|
@ -10,6 +10,8 @@
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
|
use Joomla\CMS\Filesystem\File;
|
||||||
|
use Joomla\CMS\Filesystem\Folder;
|
||||||
JHTML::_('behavior.modal');
|
JHTML::_('behavior.modal');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -409,6 +411,27 @@ class com_release_checkingInstallerScript
|
||||||
$app->enqueueMessage(JText::_('All related items was removed from the <b>#__assets</b> table'));
|
$app->enqueueMessage(JText::_('All related items was removed from the <b>#__assets</b> table'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get the biggest rule column in the assets table at this point.
|
||||||
|
$get_rule_length = "SELECT CHAR_LENGTH(`rules`) as rule_size FROM #__assets ORDER BY rule_size DESC LIMIT 1";
|
||||||
|
$db->setQuery($get_rule_length);
|
||||||
|
if ($db->execute())
|
||||||
|
{
|
||||||
|
$rule_length = $db->loadResult();
|
||||||
|
// Check the size of the rules column
|
||||||
|
if ($rule_length < 5120)
|
||||||
|
{
|
||||||
|
// Revert the assets table rules column back to the default
|
||||||
|
$revert_rule = "ALTER TABLE `#__assets` CHANGE `rules` `rules` varchar(5120) NOT NULL COMMENT 'JSON encoded access control.';";
|
||||||
|
$db->setQuery($revert_rule);
|
||||||
|
$db->execute();
|
||||||
|
$app->enqueueMessage(JText::_('Reverted the <b>#__assets</b> table rules column back to its default size of varchar(5120)'));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
$app->enqueueMessage(JText::_('Could not revert the <b>#__assets</b> table rules column back to its default size of varchar(5120), since there is still one or more components that still requires the column to be larger.'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Set db if not set already.
|
// Set db if not set already.
|
||||||
if (!isset($db))
|
if (!isset($db))
|
||||||
|
@ -584,12 +607,12 @@ class com_release_checkingInstallerScript
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
// check if the PHPExcel stuff is still around
|
// check if the PHPExcel stuff is still around
|
||||||
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_release_checking/helpers/PHPExcel.php'))
|
if (File::exists(JPATH_ADMINISTRATOR . '/components/com_release_checking/helpers/PHPExcel.php'))
|
||||||
{
|
{
|
||||||
// We need to remove this old PHPExcel folder
|
// We need to remove this old PHPExcel folder
|
||||||
$this->removeFolder(JPATH_ADMINISTRATOR . '/components/com_release_checking/helpers/PHPExcel');
|
$this->removeFolder(JPATH_ADMINISTRATOR . '/components/com_release_checking/helpers/PHPExcel');
|
||||||
// We need to remove this old PHPExcel file
|
// We need to remove this old PHPExcel file
|
||||||
JFile::delete(JPATH_ADMINISTRATOR . '/components/com_release_checking/helpers/PHPExcel.php');
|
File::delete(JPATH_ADMINISTRATOR . '/components/com_release_checking/helpers/PHPExcel.php');
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -678,6 +701,22 @@ class com_release_checkingInstallerScript
|
||||||
$db->setQuery($query);
|
$db->setQuery($query);
|
||||||
$allDone = $db->execute();
|
$allDone = $db->execute();
|
||||||
|
|
||||||
|
// Get the biggest rule column in the assets table at this point.
|
||||||
|
$get_rule_length = "SELECT CHAR_LENGTH(`rules`) as rule_size FROM #__assets ORDER BY rule_size DESC LIMIT 1";
|
||||||
|
$db->setQuery($get_rule_length);
|
||||||
|
if ($db->execute())
|
||||||
|
{
|
||||||
|
$rule_length = $db->loadResult();
|
||||||
|
// Check the size of the rules column
|
||||||
|
if ($rule_length <= 6080)
|
||||||
|
{
|
||||||
|
// Fix the assets table rules column size
|
||||||
|
$fix_rules_size = "ALTER TABLE `#__assets` CHANGE `rules` `rules` TEXT NOT NULL COMMENT 'JSON encoded access control. Enlarged to TEXT by JCB';";
|
||||||
|
$db->setQuery($fix_rules_size);
|
||||||
|
$db->execute();
|
||||||
|
$app->enqueueMessage(JText::_('The <b>#__assets</b> table rules column was resized to the TEXT datatype for the components possible large permission rules.'));
|
||||||
|
}
|
||||||
|
}
|
||||||
echo '<a target="_blank" href="http://www.joomla.org" title="Track Release Checking">
|
echo '<a target="_blank" href="http://www.joomla.org" title="Track Release Checking">
|
||||||
<img src="components/com_release_checking/assets/images/vdm-component.jpg"/>
|
<img src="components/com_release_checking/assets/images/vdm-component.jpg"/>
|
||||||
</a>';
|
</a>';
|
||||||
|
@ -1064,7 +1103,7 @@ class com_release_checkingInstallerScript
|
||||||
*/
|
*/
|
||||||
protected function removeFolder($dir, $ignore = false)
|
protected function removeFolder($dir, $ignore = false)
|
||||||
{
|
{
|
||||||
if (JFolder::exists($dir))
|
if (Folder::exists($dir))
|
||||||
{
|
{
|
||||||
$it = new RecursiveDirectoryIterator($dir);
|
$it = new RecursiveDirectoryIterator($dir);
|
||||||
$it = new RecursiveIteratorIterator($it, RecursiveIteratorIterator::CHILD_FIRST);
|
$it = new RecursiveIteratorIterator($it, RecursiveIteratorIterator::CHILD_FIRST);
|
||||||
|
@ -1094,7 +1133,7 @@ class com_release_checkingInstallerScript
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
JFolder::delete($file_dir);
|
Folder::delete($file_dir);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1113,13 +1152,13 @@ class com_release_checkingInstallerScript
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
JFile::delete($file_dir);
|
File::delete($file_dir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// delete the root folder if not ignore found
|
// delete the root folder if not ignore found
|
||||||
if (!$this->checkArray($ignore))
|
if (!$this->checkArray($ignore))
|
||||||
{
|
{
|
||||||
return JFolder::delete($dir);
|
return Folder::delete($dir);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1165,7 +1204,7 @@ class com_release_checkingInstallerScript
|
||||||
$installer = $parent->getParent();
|
$installer = $parent->getParent();
|
||||||
$installPath = $installer->getPath('source');
|
$installPath = $installer->getPath('source');
|
||||||
// get all the folders
|
// get all the folders
|
||||||
$folders = JFolder::folders($installPath);
|
$folders = Folder::folders($installPath);
|
||||||
// check if we have folders we may want to copy
|
// check if we have folders we may want to copy
|
||||||
$doNotCopy = array('media','admin','site'); // Joomla already deals with these
|
$doNotCopy = array('media','admin','site'); // Joomla already deals with these
|
||||||
if (count((array) $folders) > 1)
|
if (count((array) $folders) > 1)
|
||||||
|
@ -1180,7 +1219,7 @@ class com_release_checkingInstallerScript
|
||||||
// set the destination path
|
// set the destination path
|
||||||
$dest = JPATH_ROOT.'/'.$folder;
|
$dest = JPATH_ROOT.'/'.$folder;
|
||||||
// now try to copy the folder
|
// now try to copy the folder
|
||||||
if (!JFolder::copy($src, $dest, '', true))
|
if (!Folder::copy($src, $dest, '', true))
|
||||||
{
|
{
|
||||||
$app->enqueueMessage('Could not copy '.$folder.' folder into place, please make sure destination is writable!', 'error');
|
$app->enqueueMessage('Could not copy '.$folder.' folder into place, please make sure destination is writable!', 'error');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue