cvs: pear /Text_Wiki/Text/Wiki Cowiki.php Doku.php
| From: | Justin Patrin | Date: | Wed, 01 Mar 2006 16:33:05 +0000 |
| Subject: | cvs: pear /Text_Wiki/Text/Wiki Cowiki.php Doku.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38796@lists.php.net to get a copy of this message | ||
justinpatrin Wed Mar 1 16:33:05 2006 UTC
Modified files:
/pear/Text_Wiki/Text/Wiki Cowiki.php Doku.php
Log:
Replace preg_replace with str_replace, fix variable names
http://cvs.php.net/viewcvs.cgi/pear/Text_Wiki/Text/Wiki/Cowiki.php?r1=1.1&r2=1.2&diff_format=u
Index: pear/Text_Wiki/Text/Wiki/Cowiki.php
diff -u pear/Text_Wiki/Text/Wiki/Cowiki.php:1.1 pear/Text_Wiki/Text/Wiki/Cowiki.php:1.2
--- pear/Text_Wiki/Text/Wiki/Cowiki.php:1.1 Wed Feb 15 12:04:50 2006
+++ pear/Text_Wiki/Text/Wiki/Cowiki.php Wed Mar 1 16:33:05 2006
@@ -12,7 +12,7 @@
* @author Bertrand Gugger <bertrand@toggg.com>
* @author Paul M. Jones <pmjones@php.net>
* @license http://www.gnu.org/copyleft/lesser.html LGPL
License 2.1
- * @version CVS: $Id: Cowiki.php,v 1.1 2006/02/15 12:04:50 toggg Exp $
+ * @version CVS: $Id: Cowiki.php,v 1.2 2006/03/01 16:33:05 justinpatrin Exp $
* @link http://pear.php.net/package/Text_Wiki
*/
@@ -37,7 +37,7 @@
function Text_Wiki_Cowiki() {
parent::Text_Wiki();
- $pathes = $this->getPath('parse');
- $this->addPath('parse', preg_replace('#Default#',
'Cowiki', $pathes[0]));
+ $paths = $this->getPath('parse');
+ $this->addPath('parse', str_replace('Default', 'Cowiki',
$paths[0]));
}
}
http://cvs.php.net/viewcvs.cgi/pear/Text_Wiki/Text/Wiki/Doku.php?r1=1.1&r2=1.2&diff_format=u
Index: pear/Text_Wiki/Text/Wiki/Doku.php
diff -u pear/Text_Wiki/Text/Wiki/Doku.php:1.1 pear/Text_Wiki/Text/Wiki/Doku.php:1.2
--- pear/Text_Wiki/Text/Wiki/Doku.php:1.1 Wed Feb 15 12:04:50 2006
+++ pear/Text_Wiki/Text/Wiki/Doku.php Wed Mar 1 16:33:05 2006
@@ -12,7 +12,7 @@
* @author Bertrand Gugger <bertrand@toggg.com>
* @author Paul M. Jones <pmjones@php.net>
* @license http://www.gnu.org/copyleft/lesser.html LGPL
License 2.1
- * @version CVS: $Id: Doku.php,v 1.1 2006/02/15 12:04:50 toggg Exp $
+ * @version CVS: $Id: Doku.php,v 1.2 2006/03/01 16:33:05 justinpatrin Exp $
* @link http://pear.php.net/package/Text_Wiki
*/
@@ -37,7 +37,7 @@
function Text_Wiki_Doku($rules = null) {
parent::Text_Wiki($rules);
- $pathes = $this->getPath('parse');
- $this->addPath('parse', preg_replace('#Default#', 'Doku',
$pathes[0]));
+ $paths = $this->getPath('parse');
+ $this->addPath('parse', str_replace('Default', 'Doku',
$paths[0]));
}
}