瀏覽代碼

Update LandingController, fix configonfig variable names

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

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

@@ -26,14 +26,14 @@ class LandingController extends Controller
     		return redirect('/');
     	}
 
-    	abort_if(config_cache('landing.show_explore_feed') != 1, 404);
+    	abort_if(config('instance.landing.show_explore') == false, 404);
 
     	return view('site.index');
     }
 
     public function getDirectoryApi(Request $request)
     {
-    	abort_if(config_cache('landing.show_directory') != 1, 404);
+    	abort_if(config('instance.landing.show_directory') == false, 404);
 
     	return DirectoryProfile::collection(
     		Profile::whereNull('domain')