diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2014-08-08 16:03:25 +0200 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2014-08-08 16:03:25 +0200 |
| commit | eeb80d2ec5e7103c3c1dfaa42e81bc325573c914 (patch) | |
| tree | 84ae9867141f42170fd959e1c60e1a43f368dfef | |
| parent | 3c79287c0bbd8c31bef7cf50971e32a0368e3279 (diff) | |
| parent | 42c26cd7813cc13b8bed1393b6abfc5cc85e102b (diff) | |
| download | forums-eeb80d2ec5e7103c3c1dfaa42e81bc325573c914.tar forums-eeb80d2ec5e7103c3c1dfaa42e81bc325573c914.tar.gz forums-eeb80d2ec5e7103c3c1dfaa42e81bc325573c914.tar.bz2 forums-eeb80d2ec5e7103c3c1dfaa42e81bc325573c914.tar.xz forums-eeb80d2ec5e7103c3c1dfaa42e81bc325573c914.zip | |
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus:
[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.php | 5 |
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)) |
