cvs: pear /Text_Wiki/doc test_Text_Wiki.php

From: Date: Mon, 27 Feb 2006 09:19:50 +0000
Subject: cvs: pear /Text_Wiki/doc test_Text_Wiki.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38670@lists.php.net to get a copy of this message
delatbabel Mon Feb 27 09:19:50 2006 UTC Modified files: /pear/Text_Wiki/doc test_Text_Wiki.php Log: Fix for new parameter order in singleton. http://cvs.php.net/viewcvs.cgi/pear/Text_Wiki/doc/test_Text_Wiki.php?r1=1.13&r2=1.14&diff_format=u Index: pear/Text_Wiki/doc/test_Text_Wiki.php diff -u pear/Text_Wiki/doc/test_Text_Wiki.php:1.13 pear/Text_Wiki/doc/test_Text_Wiki.php:1.14 --- pear/Text_Wiki/doc/test_Text_Wiki.php:1.13 Fri Feb 10 17:24:58 2006 +++ pear/Text_Wiki/doc/test_Text_Wiki.php Mon Feb 27 09:19:50 2006 @@ -7,7 +7,7 @@ require_once 'Text/Wiki.php'; /** * Eventually set an include path if all parsers/renderers not installed - * $Id: test_Text_Wiki.php,v 1.13 2006/02/10 17:24:58 toggg Exp $ + * $Id: test_Text_Wiki.php,v 1.14 2006/02/27 09:19:50 delatbabel Exp $ */ $parser = $render = $source = ''; $plist = array('Default', 'BBCode', 'Cowiki', 'Doku', 'Mediawiki', 'Tiki'); @@ -23,7 +23,7 @@ $parser = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : 'BBCode'; $render = isset($_SERVER['argv'][2]) ? $_SERVER['argv'][2] : 'Xhtml'; if (!isset($_SERVER['argv'][3]) or !is_readable($sou = $_SERVER['argv'][3])) { - die("Enter a text file to be processed as 3d argument\n First and second are parser and renderer\n"); + die("Enter a text file to be processed as 3d argument\n First and second are parser and renderer\n"); } $source = file_get_contents ($sou); } else { @@ -53,7 +53,7 @@ } // instantiate a Text_Wiki object from the given class -$wiki = & Text_Wiki::singleton($parser); +$wiki = & Text_Wiki::singleton(null, $parser); // when rendering XHTML, make sure wiki links point to a // specific base URL @@ -161,7 +161,7 @@ while ($subfil = readdir($dh)) { if (!is_dir($subfil) && is_readable($subfil) && (substr($subfil, -4) == '.txt')) { - $ret[] = $subfil; + $ret[] = $subfil; } } closedir($dh);

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