summaryrefslogtreecommitdiff
path: root/utils/rockbox_api/functions.php
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-10-09 11:48:26 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-10-09 11:48:26 +0000
commite7ea23b18025f41d21095ab8983bd3097b4accfb (patch)
tree134708a4774c526a601d1f740ca1322f8940f842 /utils/rockbox_api/functions.php
parent486869693c020e032626d3da6cd8dffb01217dbe (diff)
downloadrockbox-e7ea23b18025f41d21095ab8983bd3097b4accfb.zip
rockbox-e7ea23b18025f41d21095ab8983bd3097b4accfb.tar.gz
rockbox-e7ea23b18025f41d21095ab8983bd3097b4accfb.tar.bz2
rockbox-e7ea23b18025f41d21095ab8983bd3097b4accfb.tar.xz
Improve plugin API documentation updater a bit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18753 a1c6a512-1295-4272-9138-f99709370657
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);