]> _ Git - cubist_cms-back.git/commitdiff
wait #3805 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 21 Jul 2020 14:18:20 +0000 (16:18 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 21 Jul 2020 14:18:20 +0000 (16:18 +0200)
src/app/Http/Controllers/CubistSEOController.php

index d871549e6ff2f6ba4e603d0e94348d5442867ee9..c1e3090f1b3c6b133936c266e38e349be2c17c54 100644 (file)
@@ -21,14 +21,14 @@ class CubistSEOController extends CubistFrontController
         if (null === $robots) {
             return false;
         }
-        return in_array(env('APP_ENV'), $robots, true);
+        return in_array(config('app.env'), $robots, true);
     }
 
     public function robots(Request $request)
     {
         $response = ['User-agent: *'];
 
-        if (!self::isRobotsEnabled()) {
+        if (!self::isRobotsEnabled(true)) {
             $response[] = 'Disallow: /';
         } else {
             $response[] = 'Disallow: /admin/';