fix swithc

This commit is contained in:
Dennis Eichhorn 2020-05-02 10:40:28 +02:00
parent 2c8918904d
commit f94afa7cb1

View File

@ -161,7 +161,7 @@ final class ApiController extends Controller
foreach ($files as $tMedia) {
$lowerPath = \strtolower($tMedia->getPath());
switch ($lowerPath) {
switch (true) {
case StringUtils::endsWith($lowerPath, '.lang.php'):
$tcoll['lang'] = $tMedia;
break;