mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Fix warnings in PHP 8.0 related to editor components
This commit is contained in:
parent
c5ceafc841
commit
c6f728cec6
4 changed files with 14 additions and 14 deletions
|
|
@ -43,17 +43,17 @@ class image_link extends EditorHandler
|
|||
*/
|
||||
function transHTML($xml_obj)
|
||||
{
|
||||
$src = $xml_obj->attrs->src;
|
||||
$width = $xml_obj->attrs->width;
|
||||
$height = $xml_obj->attrs->height;
|
||||
$align = $xml_obj->attrs->align;
|
||||
$alt = $xml_obj->attrs->alt;
|
||||
$title = $xml_obj->attrs->title;
|
||||
$border = (int)$xml_obj->attrs->border;
|
||||
$link_url = $xml_obj->attrs->link_url;
|
||||
$open_window = $xml_obj->attrs->open_window;
|
||||
$style = $xml_obj->attrs->style;
|
||||
$margin = (int)$xml_obj->attrs->margin;
|
||||
$src = $xml_obj->attrs->src ?? null;
|
||||
$width = $xml_obj->attrs->width ?? null;
|
||||
$height = $xml_obj->attrs->height ?? null;
|
||||
$align = $xml_obj->attrs->align ?? null;
|
||||
$alt = $xml_obj->attrs->alt ?? null;
|
||||
$title = $xml_obj->attrs->title ?? null;
|
||||
$border = intval($xml_obj->attrs->border ?? 0);
|
||||
$link_url = $xml_obj->attrs->link_url ?? null;
|
||||
$open_window = $xml_obj->attrs->open_window ?? null;
|
||||
$style = $xml_obj->attrs->style ?? null;
|
||||
$margin = intval($xml_obj->attrs->margin ?? 0);
|
||||
|
||||
$src = str_replace(array('&','"'), array('&','&qout;'), $src);
|
||||
$src = str_replace('&', '&', $src);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue