diff --git a/core/components/com_publications/helpers/tags.php b/core/components/com_publications/helpers/tags.php index 11c5a65f4de..9d5c35cc241 100644 --- a/core/components/com_publications/helpers/tags.php +++ b/core/components/com_publications/helpers/tags.php @@ -351,7 +351,7 @@ public function count_tags($admin=0) public function get_tag_cloud($showsizes=0, $admin=0, $objectid=null) { $cloud = new Cloud($objectid, $this->_tbl); - return $cloud->render(); + return $cloud->render('html', array('admin' => $admin)); } /** diff --git a/core/components/com_publications/site/views/about/tmpl/default.php b/core/components/com_publications/site/views/about/tmpl/default.php index bdd54f699c7..2ffd894fe5c 100644 --- a/core/components/com_publications/site/views/about/tmpl/default.php +++ b/core/components/com_publications/site/views/about/tmpl/default.php @@ -216,7 +216,7 @@ publication->params->get('show_tags')) { - $this->publication->getTagCloud( $this->authorized ); + $this->publication->getTagCloud(User::authorise('core.admin')?1:0); ?> publication->_tagCloud) { ?>

diff --git a/core/components/com_tags/models/cloud.php b/core/components/com_tags/models/cloud.php index 2c5834171ce..78877ad343f 100644 --- a/core/components/com_tags/models/cloud.php +++ b/core/components/com_tags/models/cloud.php @@ -231,10 +231,7 @@ public function tags($rtrn='', $filters=array(), $clear=false) // Filter out admin tags - JBG $results->whereNotIn('admin', [1]); } - else - { - $results->whereEquals('admin', (int) $filters['admin']); - } + } if (isset($filters['created_by']) && $filters['created_by'] > 0) {