diff options
author | andi <andi@splitbrain.org> | 2005-04-17 17:40:42 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-04-17 17:40:42 +0200 |
commit | 6bbae53816f31e7ad2c6536866674c218c63f6a4 (patch) | |
tree | 59e1d2a025dab375d5724137915f1a17f34ed59c /inc/parserutils.php | |
parent | 15cfe3031ce6b583a235b74987e5e6700767fdf1 (diff) | |
download | rpg-6bbae53816f31e7ad2c6536866674c218c63f6a4.tar.gz rpg-6bbae53816f31e7ad2c6536866674c218c63f6a4.tar.bz2 |
fixed preview
darcs-hash:20050417154042-9977f-a599079671a126c53c508de5ac1ea5da734c933d.gz
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r-- | inc/parserutils.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php index efda5c85b..e2b4e9feb 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -30,7 +30,7 @@ function p_wiki_xhtml($id, $rev='', $excuse=true){ if($rev){ if(@file_exists($file)){ - $ret = p_render_xhtml(p_get_instructions($file)); //no caching on old revisions + $ret = p_render_xhtml(p_get_instructions(io_readfile($file))); //no caching on old revisions }elseif($excuse){ $ret = p_locale_xhtml('norev'); } @@ -131,7 +131,7 @@ function p_cached_instructions($file){ return unserialize(io_readfile($cache)); }elseif(@file_exists($file)){ // no cache - do some work - $ins = p_get_instructions($file); + $ins = p_get_instructions(io_readfile($file)); io_savefile($cache,serialize($ins)); return $ins; } @@ -145,11 +145,9 @@ function p_cached_instructions($file){ * @author Harry Fuecks <hfuecks@gmail.com> * @author Andreas Gohr <andi@splitbrain.org> */ -function p_get_instructions($file){ +function p_get_instructions($text){ global $conf; - $text = io_readfile($file); - require_once DOKU_INC . 'inc/parser/parser.php'; // Create the parser |