Improve help to allow the help url to be global in all the views. Fixed the zip wrapper to include .htaccess files for library folders.

This commit is contained in:
2022-02-13 00:28:17 +02:00
parent 94c934c436
commit dd3335771c
67 changed files with 193 additions and 193 deletions

View File

@ -2820,8 +2820,8 @@ abstract class ComponentbuilderHelper
// delete an existing zip file (or use an exclusion parameter in Folder::files()
File::delete($filepath);
// get a list of files in the current directory tree
$files = Folder::files('.', '', true, true);
// get a list of files in the current directory tree (also the hidden files)
$files = Folder::files('.', '', true, true, array('.svn', 'CVS', '.DS_Store', '__MACOSX'), array('.*~'));
$zipArray = array();
// setup the zip array
foreach ($files as $file)

View File

@ -88,10 +88,10 @@ class ComponentbuilderViewApi extends JViewLegacy
{
// set help url for this view if found
$help_url = ComponentbuilderHelper::getHelpUrl('api');
if (ComponentbuilderHelper::checkString($help_url))
$this->help_url = ComponentbuilderHelper::getHelpUrl('api');
if (ComponentbuilderHelper::checkString($this->help_url))
{
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $this->help_url);
}
// now initiate the toolbar
$this->toolbar = JToolbar::getInstance();