diff options
author | Andreas Gohr <andi@splitbrain.org> | 2010-03-22 21:51:00 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2010-03-22 21:51:00 +0100 |
commit | dfd343c40d85231f23176cfc6683eaccc0580a6d (patch) | |
tree | 5213330fc119b24d54a93130a7316ca0233c47dd /inc/search.php | |
parent | 9d706dd2a380574a0f89b771c7b3fd9a77de9dc7 (diff) | |
download | rpg-dfd343c40d85231f23176cfc6683eaccc0580a6d.tar.gz rpg-dfd343c40d85231f23176cfc6683eaccc0580a6d.tar.bz2 |
fixed hashing in mediaSearch()
The hash option did not hash the correct content for the
found media files. This causes troubles in the sync plugin
http://github.com/splitbrain/dokuwiki-plugin-sync/issues#issue/1
Diffstat (limited to 'inc/search.php')
-rw-r--r-- | inc/search.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/search.php b/inc/search.php index 9e0964404..322c53e25 100644 --- a/inc/search.php +++ b/inc/search.php @@ -199,7 +199,7 @@ function search_media(&$data,$base,$file,$type,$lvl,$opts){ $info['isimg'] = false; } if($opts['hash']){ - $info['hash'] = md5(io_readFile(wikiFN($info['id']),false)); + $info['hash'] = md5(io_readFile(mediaFN($info['id']),false)); } $data[] = $info; |