[dokuwiki] patch: call io_readWikiPage() instead of io_readfile() on page load

Hello,

Seems like my previous attempt to send a patch to the list just
silently failed. :(

A patch to call IO_READ_WIKIPAGE properly (at least I think it should
work this way) is attached to this message.  Without this patch any
plugin which wants to intercept IO_READ_WIKIPAGE will catch almost
nothing.

-- 
(GM)
--- dokuwiki-2008-04-07/inc/parserutils.php     2008-03-29 13:04:13 -0700
+++ dokuwiki-obfuscate/inc/parserutils.php      2008-04-06 22:07:09 -0700
@@ -33,7 +33,7 @@ function p_wiki_xhtml($id, $rev='', $exc
 
   if($rev){
     if(@file_exists($file)){
-      $ret = p_render('xhtml',p_get_instructions(io_readfile($file)),$info); 
//no caching on old revisions
+      $ret = 
p_render('xhtml',p_get_instructions(io_readWikiPage($file,$id,$rev)),$info); 
//no caching on old revisions
     }elseif($excuse){
       $ret = p_locale_xhtml('norev');
     }
@@ -75,7 +75,7 @@ function p_wiki_xhtml_summary($id, &$tit
   if($rev){
     if(@file_exists($file)){
       //no caching on old revisions
-      $ins = p_get_instructions(io_readfile($file));
+      $ins = p_get_instructions(io_readWikiPage($file,$id,$rev));
     }elseif($excuse){
       $ret = p_locale_xhtml('norev');
       //restore ID (just in case)
@@ -182,7 +182,7 @@ function p_cached_instructions($file,$ca
     return $cache->retrieveCache();
   } else if (@file_exists($file)) {
     // no cache - do some work
-    $ins = p_get_instructions(io_readfile($file));
+    $ins = p_get_instructions(io_readWikiPage($file,$id));
     if ($cache->storeCache($ins)) {
       $run[$file] = true; // we won't rebuild these instructions in the same 
run again
     } else {

Other related posts: