Visman 3 лет назад
Родитель
Сommit
c3ed4bf56a
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      app/Models/Pages/Message.php

+ 6 - 4
app/Models/Pages/Message.php

@@ -20,10 +20,12 @@ class Message extends Page
      */
     public function message(/* string|array */ $message, bool $back = true, int $status = 400, array $headers = []): Page
     {
-        $this->nameTpl    = 'message';
-        $this->httpStatus = \max(200, $status);
-        $this->titles     = 'Info';
-        $this->back       = $back;
+        $this->nameTpl      = 'message';
+        $this->onlinePos    = 'info-' . $status;
+        $this->onlineDetail = null;
+        $this->httpStatus   = \max(200, $status);
+        $this->titles       = 'Info';
+        $this->back         = $back;
 
         if (! empty($headers)) {
             foreach ($headers as $header) {