diff --git a/application/libraries/PluginManager/EventDocumentor.php b/application/libraries/PluginManager/EventDocumentor.php index d99c217c26a..50ea47c20a2 100644 --- a/application/libraries/PluginManager/EventDocumentor.php +++ b/application/libraries/PluginManager/EventDocumentor.php @@ -29,7 +29,7 @@ function scanFile($fileName) global $events; $contents = file_get_contents($fileName); - $regex = '/(\$.*)*new[[:space:]]*PluginEvent[[:space:]]*\([[:space:]]*[\'"]+(.*)[\'"]+/'; + $regex = '/(.*)new[[:space:]]+PluginEvent[[:space:]]*\([[:space:]]*[\'"]+(.*)[\'"]+/'; $count = preg_match_all($regex, $contents, $matches); if ($count > 0)