Skip to content

Commit

Permalink
krsort
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Dec 2, 2021
1 parent 4f575ab commit d21e215
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/editors/tinymce/tinymce.php
Expand Up @@ -186,9 +186,11 @@ public function onDisplay(
$extraOptionsAll = (array) $this->params->get('configuration.setoptions', array());
$toolbarParamsAll = (array) $this->params->get('configuration.toolbars', array());

// Get configuration depend from User group
// Reverse the array, so the items with lowest access level goes first
foreach (array_reverse($extraOptionsAll, true) as $set => $val)
krsort($extraOptionsAll);

// Get configuration depend from User group
foreach ($extraOptionsAll as $set => $val)
{
$val = (object) $val;
$val->access = empty($val->access) ? array() : $val->access;
Expand Down

0 comments on commit d21e215

Please sign in to comment.