Ver código fonte

fix: adapt for php web server.

Tony Chen 4 anos atrás
pai
commit
a0c3a1966e
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      public/router.php

+ 1 - 0
public/router.php

@@ -13,5 +13,6 @@
 if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["REQUEST_URI"])) {
     return false;
 } else {
+    $_SERVER['PATH_INFO'] = $_SERVER['PHP_SELF'];
     require __DIR__ . "/index.php";
 }