Explorar o código

修复了几个微小的bug

unknown-o %!s(int64=4) %!d(string=hai) anos
pai
achega
1f1396df62
Modificáronse 2 ficheiros con 1 adicións e 4 borrados
  1. 1 1
      index.php
  2. 0 3
      pages/err.php

+ 1 - 1
index.php

@@ -53,8 +53,8 @@ switch ($pageName) {
         }
         }
         break;
         break;
     default:
     default:
-        hideSomethings();
         include('./pages/404.php');
         include('./pages/404.php');
+        hideSomethings();
 
 
 }
 }
 echo titleChange();
 echo titleChange();

+ 0 - 3
pages/err.php

@@ -1,8 +1,5 @@
 <?php
 <?php
 header('HTTP/1.1 500 Internal Server Error');
 header('HTTP/1.1 500 Internal Server Error');
-if ($templateMode) {
-    include('./includes/header.php');
-}
 ?>
 ?>
 <!DOCTYPE html>
 <!DOCTYPE html>
 <html lang="zh-CN">
 <html lang="zh-CN">