aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2014-08-08 16:03:24 +0200
committerAndreas Fischer <bantu@phpbb.com>2014-08-08 16:03:24 +0200
commit42c26cd7813cc13b8bed1393b6abfc5cc85e102b (patch)
treea4b3cd7aa4452fd7c2712f15dff63be1a66dfde5
parent50fcd704288f14f3e6715ca3d35ee72d522b13b6 (diff)
parent27f769e4617cfe17cede765a3eea29b7c9bd430b (diff)
downloadforums-42c26cd7813cc13b8bed1393b6abfc5cc85e102b.tar
forums-42c26cd7813cc13b8bed1393b6abfc5cc85e102b.tar.gz
forums-42c26cd7813cc13b8bed1393b6abfc5cc85e102b.tar.bz2
forums-42c26cd7813cc13b8bed1393b6abfc5cc85e102b.tar.xz
forums-42c26cd7813cc13b8bed1393b6abfc5cc85e102b.zip
Merge pull request #2832 from marc1706/ticket/10404
[ticket/10404] Use anonymous function instead of create_function in acp/auth * marc1706/ticket/10404: [ticket/10404] Fix codesniffer complaint about anonymous function [ticket/10404] Use anonymous function instead of create_function in acp/auth
-rw-r--r--phpBB/includes/acp/auth.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/acp/auth.php b/phpBB/includes/acp/auth.php
index 7ff3212b72..905e981cdc 100644
--- a/phpBB/includes/acp/auth.php
+++ b/phpBB/includes/acp/auth.php
@@ -183,7 +183,10 @@ class auth_admin extends \phpbb\auth\auth
}
// Defining the user-function here to save some memory
- $return_acl_fill = create_function('$value', 'return ' . $acl_fill . ';');
+ $return_acl_fill = function () use ($acl_fill)
+ {
+ return $acl_fill;
+ };
// Actually fill the gaps
if (sizeof($hold_ary))