From 99a301cd791d767c2b6ee9e2ff608ad9cbf1d281 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 16 Apr 2010 15:46:07 +0000 Subject: ECML now only requires a single square bracket. git-svn-id: http://code.elgg.org/elgg/trunk@5775 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/ecml/start.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mod/ecml/start.php') diff --git a/mod/ecml/start.php b/mod/ecml/start.php index 287bdc730..941bd90a2 100644 --- a/mod/ecml/start.php +++ b/mod/ecml/start.php @@ -118,9 +118,9 @@ function ecml_admin_page_handler($page) { function ecml_parse_view($hook, $entity_type, $return_value, $params) { global $CONFIG; - // give me everything that is not a ], possibly followed by a :, and surrounded by [[ ]]s + // give me everything that is not a ], possibly followed by a :, and surrounded by [ ]s //$keyword_regex = '/\[\[([a-z0-9_]+):?([^\]]+)?\]\]/'; - $keyword_regex = '/\[\[([a-z0-9\.]+)([^\]]+)?\]\]/'; + $keyword_regex = '/\[([a-z0-9\.]+)([^\]]+)?\]/'; $CONFIG->ecml_current_view = $params['view']; $return_value = preg_replace_callback($keyword_regex, 'ecml_parse_view_match', $return_value); @@ -179,4 +179,5 @@ function ecml_views_hook($hook, $type, $value, $params) { return $value; } -register_elgg_event_handler('init', 'system', 'ecml_init'); \ No newline at end of file +// be sure to run after other plugins +register_elgg_event_handler('init', 'system', 'ecml_init', 9999); \ No newline at end of file -- cgit v1.2.3