diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-11-24 21:25:33 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-11-24 21:25:33 +0100 |
commit | e9208eb1391a5ee473590be354dd6a117b9fcd1f (patch) | |
tree | 7094f68aba77280af9ab5d962ecfe8d6099d418b | |
parent | 26253932587af037544fef125aaebc71b2efdcbd (diff) | |
download | rpg-e9208eb1391a5ee473590be354dd6a117b9fcd1f.tar.gz rpg-e9208eb1391a5ee473590be354dd6a117b9fcd1f.tar.bz2 |
fixed paths in getVersion
darcs-hash:20061124202533-7ad00-316002eeb9a829a7f8d9f4f984a892af7a59bfc8.gz
-rw-r--r-- | inc/infoutils.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php index 780a46891..7ca45efeb 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -50,14 +50,14 @@ function checkUpdateMessages(){ */ function getVersion(){ //import version string - if(@file_exists('VERSION')){ + if(@file_exists(DOKU_INC.'VERSION')){ //official release - return 'Release '.trim(io_readfile(DOKU_INC.'/VERSION')); - }elseif(is_dir('_darcs')){ + return 'Release '.trim(io_readfile(DOKU_INC.'VERSION')); + }elseif(is_dir(DOKU_INC.'_darcs')){ //darcs checkout - read last 2000 bytes of inventory - $sz = filesize('_darcs/inventory'); + $sz = filesize(DOKU_INC.'_darcs/inventory'); $seek = max(0,$sz-2000); - $fh = fopen('_darcs/inventory','rb'); + $fh = fopen(DOKU_INC.'_darcs/inventory','rb'); fseek($fh,$seek); $chunk = fread($fh,2000); fclose($fh); |