Skip to content

Commit d421971

Browse files
committed
fix: restore compatibility with plugin News (alerts)
1 parent 0f46555 commit d421971

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inc/common.class.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
*/
3131

3232
use Gregwar\Captcha\CaptchaBuilder;
33+
use Glpi\Plugin\Hooks;
3334

3435
if (!defined('GLPI_ROOT')) {
3536
die("Sorry. You can't access this file directly");
@@ -833,6 +834,9 @@ public static function hookRedefineMenu($menus) {
833834
* @return void
834835
*/
835836
public static function showMiniDashboard(): void {
837+
838+
Plugin::doHook(Hooks::DISPLAY_CENTRAL);
839+
836840
if (PluginFormcreatorEntityconfig::getUsedConfig('is_dashboard_visible', Session::getActiveEntity()) == PluginFormcreatorEntityconfig::CONFIG_DASHBOARD_VISIBLE) {
837841
$dashboard = new Glpi\Dashboard\Grid('plugin_formcreator_issue_counters', 33, 0, 'mini_core');
838842
$dashboard->show(true);

0 commit comments

Comments
 (0)