]> source.dussan.org Git - nextcloud-server.git/commitdiff
filter l10n-* files
authorThomas Mueller <thomas.mueller@tmit.eu>
Thu, 14 Feb 2013 16:24:06 +0000 (17:24 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Thu, 14 Feb 2013 16:24:06 +0000 (17:24 +0100)
lib/l10n.php

index e272bcd79f3e7e1c81558fb1b4ad2d47830586fe..1e07a9b9557c1063dbeb229c450998ee3869c419 100644 (file)
@@ -343,7 +343,7 @@ class OC_L10N{
                if(is_dir($dir)) {
                        $files=scandir($dir);
                        foreach($files as $file) {
-                               if(substr($file, -4, 4) == '.php') {
+                               if(substr($file, -4, 4) === '.php' && substr($file, 0, 4) !== 'l10n') {
                                        $i = substr($file, 0, -4);
                                        $available[] = $i;
                                }