commit a3875348074845f71a5e9c0b7ae2d8538f0f1f31
parent f713c8e33415d2faa910eec0536b7ac1241c4f54
Author: MTRNord <mtrnord1@gmail.com>
Date: Tue, 3 Feb 2015 12:48:30 +0100
why isn't it working?
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/api.php b/api.php
@@ -8,7 +8,7 @@ if (!file_exists('core/config/connect.db.inc.php')) {
header("Location:".$root."install/index.php");
}else{
$request = $_SERVER['REQUEST_URI'];
- if (($pos = strpos($request, "api/v1/")) !== FALSE) {
+ if (($pos = strpos($request, "/")) !== FALSE) {
$Api = substr($request, $pos+1);
}
echo $request;