mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-02-06 16:38:41 +00:00
fix swithc
This commit is contained in:
parent
2c8918904d
commit
f94afa7cb1
|
|
@ -161,7 +161,7 @@ final class ApiController extends Controller
|
||||||
foreach ($files as $tMedia) {
|
foreach ($files as $tMedia) {
|
||||||
$lowerPath = \strtolower($tMedia->getPath());
|
$lowerPath = \strtolower($tMedia->getPath());
|
||||||
|
|
||||||
switch ($lowerPath) {
|
switch (true) {
|
||||||
case StringUtils::endsWith($lowerPath, '.lang.php'):
|
case StringUtils::endsWith($lowerPath, '.lang.php'):
|
||||||
$tcoll['lang'] = $tMedia;
|
$tcoll['lang'] = $tMedia;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user