Skip to content

Commit

Permalink
The overwrite of getTokens() was not needed and even dangerous ...
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@207181 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
bertrand Gugger committed Feb 15, 2006
1 parent 5ce1f0d commit e114abb
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions Text/Wiki/Mediawiki.php
Expand Up @@ -88,26 +88,6 @@ function Text_Wiki_Mediawiki($rules = null) {
parent::Text_Wiki($rules);
$this->addPath('parse', $this->fixPath(dirname(__FILE__)).'Parse/Mediawiki');
}

function getTokens($rules = null, $originalIndex = false)
{
if (is_null($rules)) {
return $this->tokens;
} else {
settype($rules, 'array');
$result = array();
foreach ($this->tokens as $key => $val) {
if (in_array($val[0], $rules)) {
if ($originalIndex) {
$result[$key] = $val;
} else {
$result[] = $val;
}
}
}
return $result;
}
}
}

?>

0 comments on commit e114abb

Please sign in to comment.