Skip to content

Commit

Permalink
Set up a configuration variable (temporarily) to switch renderer algo…
Browse files Browse the repository at this point in the history
…rithms

git-svn-id: https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@221509 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Justin Patrin committed Oct 10, 2006
1 parent 394ebf9 commit 18a032e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Text/Wiki.php
Expand Up @@ -335,6 +335,10 @@ class Text_Wiki {

var $_dirSep = DIRECTORY_SEPARATOR;

/**
* Temporary configuration variable
*/
var $renderingType = 'preg';

/**
*
Expand Down Expand Up @@ -969,7 +973,7 @@ function render($format = 'Xhtml')
$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);
Expand Down

0 comments on commit 18a032e

Please sign in to comment.