Quellcode durchsuchen

Update Redirect page

Changed option for redirect_delay = 0
Visman vor 5 Jahren
Ursprung
Commit
ff1584ddce
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. 4 1
      app/Models/Pages/Redirect.php

+ 4 - 1
app/Models/Pages/Redirect.php

@@ -80,7 +80,10 @@ class Redirect extends Page
      */
     protected function getHttpHeaders(): array
     {
-        if (null === $this->nameTpl) {
+        if ('0' == $this->c->config->o_redirect_delay) {
+            $this->httpStatus = 302;
+            $this->nameTpl    = null;
+
             $this->header('Location', $this->link);
         }