Browse Source

Update LandingController, fix config_cache api check

Daniel Supernault 2 năm trước cách đây
mục cha
commit
db2da84bec
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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')