From 3eda0882bf31b2f799bfbf3ad70ba4881e14ab33 Mon Sep 17 00:00:00 2001 From: rurban Date: Mon, 5 Jun 2006 08:10:19 +0000 Subject: [PATCH] stylistic fixup: clarify request argument git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@5077 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/WikiToHtml.php | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/lib/WikiToHtml.php b/lib/WikiToHtml.php index 7a0b6586e..9da0e8a0f 100644 --- a/lib/WikiToHtml.php +++ b/lib/WikiToHtml.php @@ -1,4 +1,5 @@ _wikitext = $wikitext; + $this->_request =& $request; $this->_html = ""; $this->html_content = ""; - $this->_this = &$_this; } function send() { @@ -37,8 +37,9 @@ class WikiToHtml { function convert() { require_once("lib/BlockParser.php"); - $xmlcontent = TransformText($this->_wikitext, 2.0, $GLOBALS['request']->getArg('pagename')); + $xmlcontent = TransformText($this->_wikitext, 2.0, $this->_request->getArg('pagename')); $this->_html = $xmlcontent->AsXML(); + $this->replace_inside_html(); } @@ -53,8 +54,8 @@ class WikiToHtml { $this->html_content = $this->_html; } - // Draft function to replace Richtable - //by a html table + // Draft function to replace RichTable + // by a html table // Works only on one plugin for the moment function replace_known_plugins() { // If match a plugin @@ -125,8 +126,7 @@ class WikiToHtml { } } -// This is called to replace -// Richtable plugin by an html table +// This is called to replace the RichTable plugin by an html table // $matched contains html

tags so // they are deleted before the conversion. function replace_rich_table($matched) { @@ -136,7 +136,7 @@ function replace_rich_table($matched) { // if the plugin contains one of the options bellow // it won't be converted - if( preg_match($unknown_options,$plugin) ) + if (preg_match($unknown_options,$plugin)) return $matched[0]."\n"; else { //Replace unused @@ -162,4 +162,7 @@ function replace_rich_table($matched) { return $xmlcontent->AsXML(); } } + +// $Log: not supported by cvs2svn $ + ?> \ No newline at end of file -- 2.45.0