Refactor API files: replace require with require_once for improved file inclusion
This commit is contained in:
1 parent
9cb50d7d28
commit
b4621fc127
7 files changed
+7
-7
No files matched your search
+1
-1
@@ -6,7 +6,7 @@ if (!isset($internal)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load Main Library
|
// Load Main Library
|
||||||
require API_DIR . "api.php";
|
require_once API_DIR . "api.php";
|
||||||
$api = new gbAPI(true, $internal);
|
$api = new gbAPI(true, $internal);
|
||||||
|
|
||||||
$api->answer(200, [
|
$api->answer(200, [
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ if (!isset($internal)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load API Library
|
// Load API Library
|
||||||
require API_DIR . "api.php";
|
require_once API_DIR . "api.php";
|
||||||
|
|
||||||
$api = new gbAPI(false, $internal);
|
$api = new gbAPI(false, $internal);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ if (!isset($internal)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load Main Library
|
// Load Main Library
|
||||||
require API_DIR . "api.php";
|
require_once API_DIR . "api.php";
|
||||||
|
|
||||||
$api = new gbAPI(false, $internal);
|
$api = new gbAPI(false, $internal);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ if (!isset($internal)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load Main Library
|
// Load Main Library
|
||||||
require API_DIR . "api.php";
|
require_once API_DIR . "api.php";
|
||||||
|
|
||||||
$api = new gbAPI(false, $internal);
|
$api = new gbAPI(false, $internal);
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ if (!isset($internal)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load Main Library
|
// Load Main Library
|
||||||
require API_DIR . "api.php";
|
require_once API_DIR . "api.php";
|
||||||
|
|
||||||
$api = new gbAPI(false, $internal);
|
$api = new gbAPI(false, $internal);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ if (!isset($internal)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load Main Libary
|
// Load Main Libary
|
||||||
require API_DIR . "api.php";
|
require_once API_DIR . "api.php";
|
||||||
|
|
||||||
$api = new gbAPI(false, $internal);
|
$api = new gbAPI(false, $internal);
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ if (!isset($internal)) {
|
|||||||
define("API_DIR", "../");
|
define("API_DIR", "../");
|
||||||
}
|
}
|
||||||
// Load Main Library
|
// Load Main Library
|
||||||
require API_DIR . "api.php";
|
require_once API_DIR . "api.php";
|
||||||
$api = new gbAPI(false, $internal);
|
$api = new gbAPI(false, $internal);
|
||||||
|
|
||||||
// Get Template
|
// Get Template
|
||||||
|
|||||||
Reference in new issue
Block a user