Normalise classname to remove non alpha chars

This commit is contained in:
Chris
2018-10-29 15:12:47 +00:00
parent 21c1401859
commit 2507cda94c
4 changed files with 21 additions and 7 deletions

View File

@@ -352,7 +352,7 @@ class ItemController extends Controller
$validapps = [];
foreach($list->apps as $app) {
$validapps[] = $app->appid;
if(!file_exists(app_path('SupportedApps/'.$app->name))) {
if(!file_exists(app_path('SupportedApps/'.className($app->name)))) {
SupportedApps::getFiles($app);
$application = new Application;
SupportedApps::saveApp($app, $application);