mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-22 08:30:26 +01:00
[ticket/15291] Allow short array notation in event declarations
PHPBB3-15291
This commit is contained in:
parent
63d85935f5
commit
80d0bf4566
@ -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]))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user