X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfindHooks.php;h=c91d8247e546522303b4e18c8bc98a15c0748b25;hb=5f1a4a3dfc049a742184d5690d211fb0321c9b9d;hp=7304a2a75358c27832f3f0bc9e91606e6fc86273;hpb=be55f5c0a403781812c02c0a4d170c8c1c751bc6;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/findHooks.php b/maintenance/findHooks.php index 7304a2a753..c91d8247e5 100644 --- a/maintenance/findHooks.php +++ b/maintenance/findHooks.php @@ -244,11 +244,11 @@ class FindHooks extends Maintenance { // Comma for second argument '(?:\s*(,))?' . // Second argument must start with array to be processed - '(?:\s*array\s*\(' . + '(?:\s*(?:array\s*\(|\[)' . // Matching inside array - allows one deep of brackets - '((?:[^\(\)]|\([^\(\)]*\))*)' . + '((?:[^\(\)\[\]]|\((?-1)\)|\[(?-1)\])*)' . // End - '\))?/', + '[\)\]])?/', $content, $m, PREG_SET_ORDER