From 29653d3f7fcf71a285995ae41d4f1529ef5f9b5a Mon Sep 17 00:00:00 2001 From: Johan Janssens Date: Sat, 4 Jul 2015 02:34:05 +0200 Subject: [PATCH] #181 - Remove partially implemented tags support from com_users --- app/site/components/com_users/controllers/profile.php | 8 -------- app/site/components/com_users/models/profile.php | 3 --- .../com_users/views/profile/tmpl/default_custom.php | 4 ---- app/site/components/com_users/views/profile/view.html.php | 3 --- 4 files changed, 18 deletions(-) diff --git a/app/site/components/com_users/controllers/profile.php b/app/site/components/com_users/controllers/profile.php index 9c590dd31e..7a01d8b293 100644 --- a/app/site/components/com_users/controllers/profile.php +++ b/app/site/components/com_users/controllers/profile.php @@ -199,14 +199,6 @@ public function save() protected function postSaveHook(JModelLegacy $model, $validData = array()) { $item = $model->getData(); - $tags = $validData['tags']; - - if ($tags) - { - $item->tags = new JHelperTags; - $item->tags->getTagIds($item->id, 'com_users.user'); - $item->metadata['tags'] = $item->tags; - } } } diff --git a/app/site/components/com_users/models/profile.php b/app/site/components/com_users/models/profile.php index 05cc651735..01c0543808 100644 --- a/app/site/components/com_users/models/profile.php +++ b/app/site/components/com_users/models/profile.php @@ -301,9 +301,6 @@ public function save($data) return false; } - $user->tags = new JHelperTags; - $user->tags->getTagIds($user->id, 'com_users.user'); - return $user->id; } diff --git a/app/site/components/com_users/views/profile/tmpl/default_custom.php b/app/site/components/com_users/views/profile/tmpl/default_custom.php index 3f1f112313..716177d784 100644 --- a/app/site/components/com_users/views/profile/tmpl/default_custom.php +++ b/app/site/components/com_users/views/profile/tmpl/default_custom.php @@ -21,10 +21,6 @@ $fields = $this->form->getFieldset($group); if (count($fields)): ?> -params->get('show_tags')) : ?> - tagLayout = new JLayoutFile('joomla.content.tags'); ?> - tagLayout->render($this->tags); ?> -
label)): // If the fieldset has a label set, display it as the legend. ?> diff --git a/app/site/components/com_users/views/profile/view.html.php b/app/site/components/com_users/views/profile/view.html.php index 684bce641c..2742a6fc1a 100644 --- a/app/site/components/com_users/views/profile/view.html.php +++ b/app/site/components/com_users/views/profile/view.html.php @@ -73,9 +73,6 @@ public function display($tpl = null) return false; } - $this->data->tags = new JHelperTags; - $this->data->tags->getItemTags('com_users.user.', $this->data->id); - // Check for layout override $active = JFactory::getApplication()->getMenu()->getActive();