diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-13 19:42:22 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-13 19:42:22 +0000 |
commit | 0e147ddd0f21937023f1042a40d9bd6e159aee67 (patch) | |
tree | a9412df443075d50fba0cd2072bb339fa198b959 /mod | |
parent | 4199940b13fd119a368c616c4c9b4ab549bd49e5 (diff) | |
download | elgg-0e147ddd0f21937023f1042a40d9bd6e159aee67.tar.gz elgg-0e147ddd0f21937023f1042a40d9bd6e159aee67.tar.bz2 |
Remove unneeded check in ecml view hook.
git-svn-id: http://code.elgg.org/elgg/trunk@5727 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r-- | mod/ecml/start.php | 8 |
1 files changed, 2 insertions, 6 deletions
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; } |