Get app regardless of if it's enhanced (might be a search provider)

This commit is contained in:
KodeStar 2022-03-17 12:56:51 +00:00
parent 41c2983312
commit 18001fbdd0

View file

@ -358,9 +358,10 @@ class ItemController extends Controller
$app = Application::single($appid); $app = Application::single($appid);
$output = (array)$app; $output = (array)$app;
$appdetails = Application::getApp($appid);
if((boolean)$app->enhanced === true) { if((boolean)$app->enhanced === true) {
// if(!isset($app->config)) { // class based config // if(!isset($app->config)) { // class based config
$appdetails = Application::getApp($appid);
$output['custom'] = className($appdetails->name).'.config'; $output['custom'] = className($appdetails->name).'.config';
// } // }
} }