aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/tags.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/tags.php b/engine/lib/tags.php
index ea8d3ebcc..c551ba67a 100644
--- a/engine/lib/tags.php
+++ b/engine/lib/tags.php
@@ -181,6 +181,7 @@ function get_tags($threshold = 1, $limit = 10, $metadata_name = "", $entity_type
function display_tagcloud($threshold = 1, $limit = 10, $metadata_name = "", $entity_type = "object", $entity_subtype = "", $owner_guid = "", $site_guid = -1, $start_ts = "", $end_ts = "") {
+ $registered_tags = elgg_get_registered_tag_metadata_names();
if (!in_array($metadata_name, $registered_tags)) {
elgg_deprecated_notice('Tag metadata names must be registered by elgg_register_tag_metadata_name()', 1.7);
}
@@ -229,4 +230,4 @@ function elgg_get_registered_tag_metadata_names() {
}
// register the standard tags metadata name
-elgg_register_tag_metadata_name('tags'); \ No newline at end of file
+elgg_register_tag_metadata_name('tags');