Merge pull request #11161 from hregis/develop_bug
NEW add "printBucktrackInfo" hook, an external module can add info
This commit is contained in:
commit
4a101a8e9f
@ -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">';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user