Improve help to allow the help url to be global in the view.

This commit is contained in:
2022-02-09 23:19:08 +02:00
parent c8893d8c94
commit 94c934c436
51 changed files with 147 additions and 147 deletions

View File

@ -150,10 +150,10 @@ class ComponentbuilderViewCustom_code extends JViewLegacy
}
JToolbarHelper::divider();
// set help url for this view if found
$help_url = ComponentbuilderHelper::getHelpUrl('custom_code');
if (ComponentbuilderHelper::checkString($help_url))
$this->help_url = ComponentbuilderHelper::getHelpUrl('custom_code');
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);
}
}