MDL-52279 core_lib: Remove php4 style constructor

filterobject is called from core and as it's
using php4 style constructor, global USER is
not set properly because of deprecation warning
This commit is contained in:
Rajesh Taneja
2015-11-30 11:32:36 +08:00
parent b9c333f5db
commit e634f04355
+1 -1
View File
@@ -464,7 +464,7 @@ class filterobject {
* @param bool $fullmatch
* @param mixed $replacementphrase
*/
function filterobject($phrase, $hreftagbegin = '<span class="highlight">',
public function __construct($phrase, $hreftagbegin = '<span class="highlight">',
$hreftagend = '</span>',
$casesensitive = false,
$fullmatch = false,