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