FEATURE: allow enabling of static pages via database
This commit is contained in:
@@ -24,8 +24,9 @@ class StaticPage extends Handler
|
||||
|
||||
public static function getModuleId()
|
||||
{
|
||||
$handler = config('staticpages.handler');
|
||||
$allModules = ModulesHandlerToId::getWithTranslations();
|
||||
$moduleId = $allModules[config('staticpages.handler')];
|
||||
$moduleId = isset($allModules[$handler]) ? $allModules[$handler] : null;
|
||||
|
||||
return $moduleId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user