Skip to content

Commit

Permalink
Alpha order by search strings
Browse files Browse the repository at this point in the history
  • Loading branch information
richard67 committed May 21, 2023
1 parent 162b2a3 commit eaac1e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions administrator/components/com_admin/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -942,15 +942,15 @@ private function migrateTinymceConfiguration(): bool
if (isset($toolbarConfig['menu'])) {
/**
* Replace array values with menu item names ("old name" -> "new name"):
* "blockformats" -> "blocks"
* "fontformats" -> "fontfamily"
* "fontsizes" -> "fontsize"
* "blockformats" -> "blocks"
* "formats" -> "styles"
* "template" -> "jtemplate"
*/
$params['configuration']['toolbars'][$setIdx]['menu'] = str_replace(
['fontformats', 'fontsizes', 'blockformats', 'formats', 'template'],
['fontfamily', 'fontsize', 'blocks', 'styles', 'jtemplate'],
['blockformats', 'fontformats', 'fontsizes', 'formats', 'template'],
['blocks', 'fontfamily', 'fontsize', 'styles', 'jtemplate'],
$toolbarConfig['menu']
);
}
Expand Down

0 comments on commit eaac1e3

Please sign in to comment.