diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2017-07-22 08:43:10 +0200 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2017-07-22 08:43:10 +0200 |
commit | 80d0bf4566c098364790473d6b1c63aa3167922b (patch) | |
tree | 33d5f0788d29ed963f082a935114ab869c8f8ec2 /phpBB | |
parent | 63d85935f54f748d81ecd9e3bdc0f02ffedd2756 (diff) | |
download | forums-80d0bf4566c098364790473d6b1c63aa3167922b.tar forums-80d0bf4566c098364790473d6b1c63aa3167922b.tar.gz forums-80d0bf4566c098364790473d6b1c63aa3167922b.tar.bz2 forums-80d0bf4566c098364790473d6b1c63aa3167922b.tar.xz forums-80d0bf4566c098364790473d6b1c63aa3167922b.zip |
[ticket/15291] Allow short array notation in event declarations
PHPBB3-15291
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/phpbb/event/php_exporter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/event/php_exporter.php b/phpBB/phpbb/event/php_exporter.php index ae3553c558..26d7e2b426 100644 --- a/phpBB/phpbb/event/php_exporter.php +++ b/phpBB/phpbb/event/php_exporter.php @@ -392,7 +392,7 @@ class php_exporter public function get_vars_from_single_line_array($line, $throw_multiline = true) { $match = array(); - preg_match('#^\$vars = array\(\'([a-zA-Z0-9_\' ,]+)\'\);$#', $line, $match); + preg_match('#^\$vars = (?:\[|array\()\'([a-zA-Z0-9_\' ,]+)\'[\)\]];$#', $line, $match); if (isset($match[1])) { |