index 0e025420105cc363258e026d2c753f2199146e21..6bb735263dbf740e71486335e6bebb4c169d9904 100644 (file)
unset($this->config->data['MENU'][$section][$id]);
}
}
+
+ // Remove empty sections
+ if(count($this->config->data['MENU'][$section]) == 0){
+ unset($this->config->data['MENU'][$section]);
+ }
}
}
- // Remove empty sections
- if(count($this->config->data['MENU'][$section]) == 0){
- unset($this->config->data['MENU'][$section]);
- }
-
$disabledPlugins = $this->config->configRegistry->getDisabledPlugins();
$cfg= $this->config->data['MENU'];
"\n <script language='javascript' type='text/javascript'>".
"\n function openPlugin(id){".
"\n return question(\""._("You are currently editing a database entry. Do you want to discard the changes?")."\",".
- "\n \"main.php?plug=\" + id + \"&reset=1\");".
+ "\n \"main.php?plug=\" + id + \"&reset=1\");".
"\n }".
"\n </script>\n";
}