MDL-67115 htmlpurifier: php74 params order for implode()
Passing parameters to implode() in reverse order is deprecated, use implode($glue, $parts) instead of implode($parts, $glue). This commit corresponds to general search of wrong cases.
This commit is contained in:
@@ -43,8 +43,8 @@ class HTMLPurifier_Printer_HTMLDefinition extends HTMLPurifier_Printer
|
||||
$ret .= $this->element('caption', 'Doctype');
|
||||
$ret .= $this->row('Name', $doctype->name);
|
||||
$ret .= $this->row('XML', $doctype->xml ? 'Yes' : 'No');
|
||||
$ret .= $this->row('Default Modules', implode($doctype->modules, ', '));
|
||||
$ret .= $this->row('Default Tidy Modules', implode($doctype->tidyModules, ', '));
|
||||
$ret .= $this->row('Default Modules', implode(', ', $doctype->modules));
|
||||
$ret .= $this->row('Default Tidy Modules', implode(', ', $doctype->tidyModules));
|
||||
$ret .= $this->end('table');
|
||||
return $ret;
|
||||
}
|
||||
|
||||
@@ -21,3 +21,5 @@ Modifications:
|
||||
Check status of https://github.com/ezyang/htmlpurifier/pull/148
|
||||
* MDL-67030 applied https://github.com/ezyang/htmlpurifier/pull/224 towards
|
||||
php74 compatibility.
|
||||
* MDL-67115 applied https://github.com/ezyang/htmlpurifier/pull/243 towards
|
||||
php74 compatibility.
|
||||
|
||||
Reference in New Issue
Block a user