From: arino Date: Wed, 3 Sep 2003 01:35:51 +0000 (+0900) Subject: BugTrack/450: $contentsをキャッシュしないように X-Git-Tag: r1_5_0_rc1~1430 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=371cc7ee96aa4d874dead36993c162edb32ef27e;p=pukiwiki%2Fpukiwiki.git BugTrack/450: $contentsをキャッシュしないように --- diff --git a/convert_html.php b/convert_html.php index 3df180a..3da17dc 100644 --- a/convert_html.php +++ b/convert_html.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: convert_html.php,v 1.52 2003/07/31 08:22:47 arino Exp $ +// $Id: convert_html.php,v 1.53 2003/09/03 01:35:51 arino Exp $ // function convert_html($lines) { @@ -833,15 +833,10 @@ class Body extends Block } function replace_contents($arr) { - static $contents = NULL; - - if (is_null($contents)) - { - $contents = "
\n"; - $contents .= "id}\">"; - $contents .= $this->contents->toString(); - $contents .= "
\n"; - } + $contents = "
\n"; + $contents .= "id}\">"; + $contents .= $this->contents->toString(); + $contents .= "
\n"; array_shift($arr); return ($arr[1] != '') ? $contents.join('',$arr) : $contents; }