cvs: pear /Text_Wiki/Text Wiki.php

From: Date: Tue, 10 Oct 2006 19:34:38 +0000
Subject: cvs: pear /Text_Wiki/Text Wiki.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42483@lists.php.net to get a copy of this message
justinpatrin Tue Oct 10 19:34:38 2006 UTC Modified files: /pear/Text_Wiki/Text Wiki.php Log: Set up a configuration variable (temporarily) to switch renderer algorithms http://cvs.php.net/viewvc.cgi/pear/Text_Wiki/Text/Wiki.php?r1=1.47&r2=1.48&diff_format=u Index: pear/Text_Wiki/Text/Wiki.php diff -u pear/Text_Wiki/Text/Wiki.php:1.47 pear/Text_Wiki/Text/Wiki.php:1.48 --- pear/Text_Wiki/Text/Wiki.php:1.47 Sun Mar 5 06:50:13 2006 +++ pear/Text_Wiki/Text/Wiki.php Tue Oct 10 19:34:38 2006 @@ -9,7 +9,7 @@ * @package Text_Wiki * @author Paul M. Jones <pmjones@php.net> * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 - * @version CVS: $Id: Wiki.php,v 1.47 2006/03/05 06:50:13 justinpatrin Exp $ + * @version CVS: $Id: Wiki.php,v 1.48 2006/10/10 19:34:38 justinpatrin Exp $ * @link http://pear.php.net/package/Text_Wiki */ @@ -335,6 +335,10 @@ var $_dirSep = DIRECTORY_SEPARATOR; + /** + * Temporary configuration variable + */ + var $renderingType = 'preg'; /** * @@ -969,7 +973,7 @@ $this->loadRenderObj($format, $rule); } - if (isset($this->newRendering)) { + if ($this->renderingType == 'preg') { $output = preg_replace_callback('/'.$this->delim.'(\d+)'.$this->delim.'/', array(&$this, '_renderToken'), $this->source);

« previous php.pear.cvs (#42483) next »