Permalink
Browse files

proper way

  • Loading branch information...
1 parent 72a0a86 commit 7b3e8f9ec02255d781fb6c8d85113951a5b71945 @tommyrot committed Dec 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 parser.php
View
@@ -260,7 +260,7 @@
* 2. Pass it on to rebuild_line() and replace the character with an empty string effectively making $line shorter.
* 3. Continue until $line is zero bytes in length.
*/
- $line = preg_replace_callback('/^('.$this->hex_validutf8.'|.)/s', 'self::rebuild_line', $line);
+ $line = preg_replace_callback('/^('.$this->hex_validutf8.'|.)/s', array($this, 'rebuild_line'), $line);
}
/*

0 comments on commit 7b3e8f9

Please sign in to comment.