diff --git a/inc/rain.tpl.class.php b/inc/rain.tpl.class.php index b00d511..1446012 100755 --- a/inc/rain.tpl.class.php +++ b/inc/rain.tpl.class.php @@ -738,7 +738,7 @@ protected function path_replace( $html, $tpl_basedir ){ $tags = array_intersect( array( "form" ), self::$path_replace_list ); $exp[] = '/<(' . join( '|', $tags ) . ')(.*?)(action)="(' . $url . ')"/i'; - return preg_replace_callback( $exp, 'self::single_path_replace', $html ); + return preg_replace_callback( $exp, array($this, 'single_path_replace'), $html ); } else