Merge pull request #11161 from hregis/develop_bug

NEW add "printBucktrackInfo" hook, an external module can add info
This commit is contained in:
Laurent Destailleur 2019-06-20 03:48:24 +02:00 committed by GitHub
commit 4a101a8e9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2046,6 +2046,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('bugbaseurl'=>$bugbaseurl);
$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">';