Skip to content

Commit

Permalink
Updating deprecated function
Browse files Browse the repository at this point in the history
Replacing deprecated function ereg_replace() by str_replace()
  • Loading branch information
lvincesl committed Sep 21, 2015
1 parent fa5946a commit 04aa59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lvincesl/html/Html_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 04aa59b

Please sign in to comment.