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:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user