public_html/admin/configuration.php
branchHEAD
changeset 7434 aa322b3c4d3d
parent 7428 df55886043f2
parent 7360 d37545da9eb2
child 7537 795da50ed8b6
child 7540 4f71cb249199
child 8031 8559f11929b4
     1.1 --- a/public_html/admin/configuration.php	Sun Sep 20 11:00:03 2009 +0200
     1.2 +++ b/public_html/admin/configuration.php	Sun Nov 01 09:43:28 2009 +0100
     1.3 @@ -63,16 +63,15 @@
     1.4      $themes = array();
     1.5  
     1.6      $themeFiles = COM_getThemes(true);
     1.7 -    usort($themeFiles,
     1.8 -          create_function('$a,$b', 'return strcasecmp($a,$b);'));
     1.9 +    usort($themeFiles, 'strcasecmp');
    1.10  
    1.11      foreach ($themeFiles as $theme) {
    1.12 -        $words = explode ('_', $theme);
    1.13 -        $bwords = array ();
    1.14 +        $words = explode('_', $theme);
    1.15 +        $bwords = array();
    1.16          foreach ($words as $th) {
    1.17 -            if ((strtolower ($th{0}) == $th{0}) &&
    1.18 -                (strtolower ($th{1}) == $th{1})) {
    1.19 -                $bwords[] = strtoupper ($th{0}) . substr ($th, 1);
    1.20 +            if ((strtolower($th{0}) == $th{0}) &&
    1.21 +                (strtolower($th{1}) == $th{1})) {
    1.22 +                $bwords[] = ucfirst($th);
    1.23              } else {
    1.24                  $bwords[] = $th;
    1.25              }