cvs: pear /Text_Wiki/Text Wiki.php
| From: | Paul Jones | Date: | Sun, 29 May 2005 19:31:03 +0000 |
| Subject: | cvs: pear /Text_Wiki/Text Wiki.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-32234@lists.php.net to get a copy of this message | ||
pmjones Sun May 29 15:31:03 2005 EDT
Modified files:
/pear/Text_Wiki/Text Wiki.php
Log:
* applied feature request 4436 "Add option to getTokens to get original token indices"
-- now the return array from getTokens() is keyed to the original token index number.
http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki.php?r1=1.30&r2=1.31&ty=u
Index: pear/Text_Wiki/Text/Wiki.php
diff -u pear/Text_Wiki/Text/Wiki.php:1.30 pear/Text_Wiki/Text/Wiki.php:1.31
--- pear/Text_Wiki/Text/Wiki.php:1.30 Sun May 29 15:17:42 2005
+++ pear/Text_Wiki/Text/Wiki.php Sun May 29 15:31:00 2005
@@ -12,7 +12,7 @@
*
* @license LGPL
*
-* @version $Id: Wiki.php,v 1.30 2005/05/29 19:17:42 pmjones Exp $
+* @version $Id: Wiki.php,v 1.31 2005/05/29 19:31:00 pmjones Exp $
*
*/
@@ -980,7 +980,7 @@
$result = array();
foreach ($this->tokens as $key => $val) {
if (in_array($val[0], $rules)) {
- $result[] = $val;
+ $result[$key] = $val;
}
}
return $result;