Restructured the languages directory, to avoid problems when people untar MW 1.8...
[lhc/web/wiklou.git] / config / index.php
index b13e9c3..815d217 100644 (file)
@@ -1528,10 +1528,10 @@ function getLanguageList() {
 
        $codes = array();
 
-       $d = opendir( "../languages" );
+       $d = opendir( "../languages/messages" );
        /* In case we are called from the root directory */
        if (!$d)
-               $d = opendir( "languages");
+               $d = opendir( "languages/messages");
        while( false !== ($f = readdir( $d ) ) ) {
                $m = array();
                if( preg_match( '/Messages([A-Z][a-z_]+)\.php$/', $f, $m ) ) {