mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-05 09:23:40 -04:00
Refactor PHP.
This commit is contained in:
parent
6b071fc1e7
commit
48b788eaef
3 changed files with 10 additions and 10 deletions
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
define("BASE_PATH", preg_replace("#[\\\\/]+#", "/", dirname(__FILE__)));
|
||||
$basepath = preg_replace("#[\\\\/]+#", "/", dirname(__FILE__));
|
||||
|
||||
require_once(BASE_PATH . "/inc/version-check.php");
|
||||
require_once(BASE_PATH . "/inc/class-bootstrap.php");
|
||||
require_once($basepath . "/inc/version-check.php");
|
||||
require_once($basepath . "/inc/class-bootstrap.php");
|
||||
|
||||
(new Bootstrap(BASE_PATH))->run();
|
||||
(new Bootstrap($basepath))->run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue