NEW add "printBucktrackInfo" hook, an external module can add info

This commit is contained in:
Regis Houssin 2019-05-10 12:24:02 +02:00
parent c12a45597d
commit 3dbfc08a13
2 changed files with 11 additions and 0 deletions

View File

@ -14,6 +14,7 @@ FIX: Disallow line start date if after end date.
For Developers:
NEW: Module "DebugBar" is available as a stable module.
NEW: add "printBucktrackInfo" hook, an external module can add info
WARNING:

View File

@ -2030,6 +2030,16 @@ function left_menu($menu_array_before, $helppagename = '', $notused = '', $menu_
$bugbaseurl.= urlencode("- **PHP**: " . php_sapi_name() . ' ' . phpversion() . "\n");
$bugbaseurl.= urlencode("- **Database**: " . $db::LABEL . ' ' . $db->getVersion() . "\n");
$bugbaseurl.= urlencode("- **URL**: " . $_SERVER["REQUEST_URI"] . "\n");
// Execute hook printBugtrackInfo
$parameters=array('searchform'=>$searchform);
$reshook=$hookmanager->executeHooks('printBugtrackInfo', $parameters); // Note that $action and $object may have been modified by some hooks
if (empty($reshook))
{
$bugbaseurl.=$hookmanager->resPrint;
}
else $bugbaseurl=$hookmanager->resPrint;
$bugbaseurl.= urlencode("\n");
$bugbaseurl.= urlencode("## Report\n");
print '<div id="blockvmenuhelpbugreport" class="blockvmenuhelp">';