Commit fbb35420 authored by Côme Chilliet's avatar Côme Chilliet

Do not let plugins rename menu sections

parent 18c6a26c
......@@ -1039,7 +1039,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();
}
......
Markdown is supported
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