Skip to content

Commit 2aefdb3

Browse files
committed
fix(CarbonIntensitySource_Zone): update ajax link for GLPI 11
1 parent 8883e7b commit 2aefdb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CarbonIntensitySource_Zone.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public static function showForSource(CommonDBTM $item)
191191
// At least 1 entry then add JS to toggle the state of zones
192192
echo Html::scriptBlock('
193193
var plugin_carbon_toggleZone = function (id) {
194-
fetch(CFG_GLPI["root_doc"] + "/" + GLPI_PLUGINS_PATH.carbon + "/ajax/toggleZoneDownload.php?id=" + id).then(response => {
194+
fetch(CFG_GLPI["root_doc"] + "/plugins/carbon/ajax/toggleZoneDownload.php?id=" + id).then(response => {
195195
if (response.status === 200) {
196196
reloadTab();
197197
}
@@ -284,7 +284,7 @@ public static function showForZone(CommonDBTM $item)
284284
// At least 1 entry then add JS to toggle the state of zones
285285
echo Html::scriptBlock('
286286
var plugin_carbon_toggleZone = function (id) {
287-
fetch(CFG_GLPI["root_doc"] + "/" + GLPI_PLUGINS_PATH.carbon + "/ajax/toggleZoneDownload.php?id=" + id).then(response => {
287+
fetch(CFG_GLPI["root_doc"] + "/plugins/carbon/ajax/toggleZoneDownload.php?id=" + id).then(response => {
288288
if (response.status === 200) {
289289
reloadTab();
290290
}

0 commit comments

Comments
 (0)