mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -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 [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] )
|
||||
)
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue