Browse Source

修复了几个微小的bug

unknown-o 4 years ago
parent
commit
1f1396df62
2 changed files with 1 additions and 4 deletions
  1. 1 1
      index.php
  2. 0 3
      pages/err.php

+ 1 - 1
index.php

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

+ 0 - 3
pages/err.php

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