Skip to content

Commit

Permalink
Merge remote-tracking branch 'prolic/filter'
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDotPro committed May 27, 2012
2 parents 8ae51d9 + 657429b commit 2211622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Filter/PregReplace.php
Expand Up @@ -163,7 +163,7 @@ public function getReplacement()
public function filter($value)
{
if ($this->_matchPattern == null) {
throw new Exception\RuntimeException(get_class($this) . ' does not have a valid MatchPattern set.');
throw new Exception\RuntimeException(get_called_class() . ' does not have a valid MatchPattern set.');
}

return preg_replace($this->_matchPattern, $this->_replacement, $value);
Expand Down

0 comments on commit 2211622

Please sign in to comment.