From: <var...@us...> - 2014-06-24 14:35:28
|
Revision: 8931 http://sourceforge.net/p/phpwiki/code/8931 Author: vargenau Date: 2014-06-24 14:35:20 +0000 (Tue, 24 Jun 2014) Log Message: ----------- Sort menus Modified Paths: -------------- trunk/themes/default/templates/userprefs.tmpl Modified: trunk/themes/default/templates/userprefs.tmpl =================================================================== --- trunk/themes/default/templates/userprefs.tmpl 2014-06-23 13:16:31 UTC (rev 8930) +++ trunk/themes/default/templates/userprefs.tmpl 2014-06-24 14:35:20 UTC (rev 8931) @@ -65,6 +65,7 @@ if ($isForm) { $SelectOptions = HTML(); if (!empty($available_themes) and is_array($available_themes)) { + sort(&$available_themes); if (!$pref->get('theme') or $pref->get('theme') == THEME) { $SelectOptions->pushContent(selectedOption("",_("<system theme>"))); } else { @@ -87,6 +88,7 @@ $SelectOptions = HTML(); if (!empty($available_languages) and is_array($available_languages)) { + sort(&$available_languages); if (!$pref->get('lang') or $pref->get('lang') == DEFAULT_LANGUAGE) { $SelectOptions->pushContent(selectedOption("",_("<system language>"))); } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |