summaryrefslogtreecommitdiff
path: root/utils/rockbox_api/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'utils/rockbox_api/functions.php')
-rwxr-xr-xutils/rockbox_api/functions.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/rockbox_api/functions.php b/utils/rockbox_api/functions.php
index 57a7c99..d66caa1 100755
--- a/utils/rockbox_api/functions.php
+++ b/utils/rockbox_api/functions.php
@@ -13,7 +13,10 @@ function get_newest()
{
global $svn;
- $text = file_get_contents("../../apps/plugin.h");
+ $mypath = $_SERVER['SCRIPT_FILENAME'];
+ $mypath = substr($mypath, 0, strrpos($mypath, "/"))."/";
+
+ $text = file_get_contents($mypath."../../apps/plugin.h");
$text = str_replace(array("\r\n", "\r"), "\n", $text);