Skip to content
Snippets Groups Projects
Commit 3ff5e7de authored by llaffont's avatar llaffont
Browse files

Correction fusion sous PHP 5.3

parent 17ec0da8
No related merge requests found
......@@ -88,7 +88,10 @@ class Class_ModeleFusion extends Storm_Model_Abstract {
public function htmlize($value) {
return htmlentities($value, ENT_COMPAT | ENT_HTML5, 'UTF-8');
//php 5.4 - 5.2 compat
if (!$in_utf8 = htmlentities($value, ENT_QUOTES, 'UTF-8'))
return htmlentities($value, ENT_QUOTES);
return $in_utf8;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment