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:
@ -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)
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user