From e7ea23b18025f41d21095ab8983bd3097b4accfb Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Thu, 9 Oct 2008 11:48:26 +0000 Subject: Improve plugin API documentation updater a bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18753 a1c6a512-1295-4272-9138-f99709370657 --- utils/rockbox_api/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils/rockbox_api/functions.php') 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() { 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); -- cgit v1.2.3