瀏覽代碼

Update LandingController, fix config_cache api check

Daniel Supernault 2 年之前
父節點
當前提交
db2da84bec
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/LandingController.php

+ 1 - 1
app/Http/Controllers/LandingController.php

@@ -33,7 +33,7 @@ class LandingController extends Controller
 
     public function getDirectoryApi(Request $request)
     {
-    	abort_if(config('instance.landing.show_directory') == false, 404);
+    	abort_if(config_cache('instance.landing.show_directory') == false, 404);
 
     	return DirectoryProfile::collection(
     		Profile::whereNull('domain')