aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2017-07-22 08:43:10 +0200
committerJoshyPHP <s9e.dev@gmail.com>2017-07-22 08:43:10 +0200
commit80d0bf4566c098364790473d6b1c63aa3167922b (patch)
tree33d5f0788d29ed963f082a935114ab869c8f8ec2 /phpBB
parent63d85935f54f748d81ecd9e3bdc0f02ffedd2756 (diff)
downloadforums-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.php2
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]))
{