Skip to content

Commit

Permalink
Fixed snipe#5742 - create_function() is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Jul 6, 2018
1 parent 339263a commit 35fc001
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions resources/views/settings/phpinfo.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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] )
)
),
Expand Down

0 comments on commit 35fc001

Please sign in to comment.