From 3cf1692c9613f990fc87235371944577c0a29208 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 21 Dec 2014 13:59:04 +0100 Subject: [PATCH] Possible fix for #2424 --- src/pocketmine/wizard/InstallerLang.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/wizard/InstallerLang.php b/src/pocketmine/wizard/InstallerLang.php index 41b0cfffe..76947c1fe 100644 --- a/src/pocketmine/wizard/InstallerLang.php +++ b/src/pocketmine/wizard/InstallerLang.php @@ -55,7 +55,7 @@ class InstallerLang{ }else{ $files = []; foreach(new \DirectoryIterator(\pocketmine\PATH . "src/pocketmine/lang/Installer/") as $file){ - if($file->getExtension() === "ini"){ + if($file->getExtension() === "ini" and substr($file->getFilename(), 0, 2) === $lang){ $files[$file->getFilename()] = $file->getSize(); } }