From 0e147ddd0f21937023f1042a40d9bd6e159aee67 Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 13 Apr 2010 19:42:22 +0000 Subject: Remove unneeded check in ecml view hook. git-svn-id: http://code.elgg.org/elgg/trunk@5727 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/ecml/start.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'mod/ecml/start.php') diff --git a/mod/ecml/start.php b/mod/ecml/start.php index 07d30949a..a0fd3c929 100644 --- a/mod/ecml/start.php +++ b/mod/ecml/start.php @@ -108,12 +108,8 @@ function ecml_parse_view($hook, $entity_type, $return_value, $params) { // give me everything that is not a ], possibly followed by a :, and surrounded by [[ ]]s $keyword_regex = '/\[\[([a-z0-9_]+):?([^\]]+)?\]\]/'; - - if (array_key_exists($params['view'], $CONFIG->ecml_parse_views)) { - $CONFIG->ecml_current_view = $params['view']; - - $return_value = preg_replace_callback($keyword_regex, 'ecml_parse_view_match', $return_value); - } + $CONFIG->ecml_current_view = $params['view']; + $return_value = preg_replace_callback($keyword_regex, 'ecml_parse_view_match', $return_value); return $return_value; } -- cgit v1.2.3