mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 22:37:28 -08:00
Fixed #5742 - create_function() is deprecated
This commit is contained in:
parent
339263a295
commit
35fc001c58
|
@ -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] )
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue