diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-16 15:46:07 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-16 15:46:07 +0000 |
commit | 99a301cd791d767c2b6ee9e2ff608ad9cbf1d281 (patch) | |
tree | 13fb4d61b2269de6af4c8fe51fc8e884f292ecea /mod/ecml/start.php | |
parent | c32f43bcac8ff4493ce387b078a57ba4fdd57063 (diff) | |
download | elgg-99a301cd791d767c2b6ee9e2ff608ad9cbf1d281.tar.gz elgg-99a301cd791d767c2b6ee9e2ff608ad9cbf1d281.tar.bz2 |
ECML now only requires a single square bracket.
git-svn-id: http://code.elgg.org/elgg/trunk@5775 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/ecml/start.php')
-rw-r--r-- | mod/ecml/start.php | 7 |
1 files changed, 4 insertions, 3 deletions
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 |