From 04aa59b8120cc368cd38a899eef4b65dc84669b4 Mon Sep 17 00:00:00 2001 From: lvincesl Date: Mon, 21 Sep 2015 07:34:53 -0400 Subject: [PATCH] Updating deprecated function Replacing deprecated function ereg_replace() by str_replace() --- src/lvincesl/html/Html_template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lvincesl/html/Html_template.php b/src/lvincesl/html/Html_template.php index 34243f6..61a730d 100755 --- a/src/lvincesl/html/Html_template.php +++ b/src/lvincesl/html/Html_template.php @@ -33,7 +33,7 @@ public function toString() public function set($name, $value) { - $this->templateContent = ereg_replace("{%".$name."%}", $value, $this->templateContent); + $this->templateContent = str_replace("{%".$name."%}", $value, $this->templateContent); } public function show()