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 57a7c99b13..d66caa1b29 100755
--- a/utils/rockbox_api/functions.php
+++ b/utils/rockbox_api/functions.php
@@ -13,7 +13,10 @@ function get_newest()
13{ 13{
14 global $svn; 14 global $svn;
15 15
16 $text = file_get_contents("../../apps/plugin.h"); 16 $mypath = $_SERVER['SCRIPT_FILENAME'];
17 $mypath = substr($mypath, 0, strrpos($mypath, "/"))."/";
18
19 $text = file_get_contents($mypath."../../apps/plugin.h");
17 20
18 $text = str_replace(array("\r\n", "\r"), "\n", $text); 21 $text = str_replace(array("\r\n", "\r"), "\n", $text);
19 22