Fixed #5742 - create_function() is deprecated

This commit is contained in:
snipe 2018-07-05 20:49:01 -07:00
parent 339263a295
commit 35fc001c58

View file

@ -31,14 +31,13 @@
# $matches [1]; # Style information
# $matches [2]; # Body information
echo "<div class='phpinfodisplay'><style type='text/css'>\n",
join( "\n",
array_map(
create_function(
'$i',
'return ".phpinfodisplay " . preg_replace( "/,/", ",.phpinfodisplay ", $i );'
),
function ($i) {
return ".phpinfodisplay " . preg_replace( "/,/", ",.phpinfodisplay ", $i );
},
preg_split( '/\n/', $matches[1] )
)
),