commit 9c02eec203aedd7f5a9ecfcb3d82aa66d29c9fb0
parent 20b4fa4f1d22fdc7f30694a06dbd74e5fcfb99fe
Author: MTRNord <mtrnord1@gmail.com>
Date: Tue, 3 Feb 2015 12:58:55 +0100
now it should work correct
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'];
- $Api = substr($request, strrpos($request, 'v1/') + 1);
+ $Api = substr($request, strrpos($request, 'v1/') + 3);
echo $request;
echo "</br>";
echo $Api;