浏览代码

Fix bug 404.php

stany.ferer 3 月之前
父节点
当前提交
3798168780
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public-cms/404.php

+ 1 - 1
public-cms/404.php

@@ -10,7 +10,7 @@ new blacklist;
 if(!blacklist::isValidIPv4()){
     $result = blacklist::execute();
 } else {
-    $result = "La page que vous cherchez n'existe pas.";
+    $result = ["error" => 404, "text" => "La page que vous cherchez n'existe pas."];
 }
 
 http_response_code($result["error"]);