Commit 0b16c794 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Do not let plugins rename menu sections

Showing with 3 additions and 1 deletion
+3 -1
......@@ -1068,7 +1068,9 @@ class config {
if (isset($plInfo['plMenuProvider']) && $plInfo['plMenuProvider']) {
list($sections, $entries) = $class::getMenuEntries();
foreach ($sections as $section => $infos) {
$this->data['SECTIONS'][$section] = array_change_key_case($infos, CASE_UPPER);
if (!isset($this->data['SECTIONS'][$section])) {
$this->data['SECTIONS'][$section] = array_change_key_case($infos, CASE_UPPER);
}
if (!isset($this->data['MENU'][$section])) {
$this->data['MENU'][$section] = array();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment