Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #182 from joomlatools/feature/181-users
Browse files Browse the repository at this point in the history
Remove partially implemented tags support from com_users
  • Loading branch information
johanjanssens committed Jul 4, 2015
2 parents 6c6dc23 + 29653d3 commit 65f22e1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 18 deletions.
8 changes: 0 additions & 8 deletions app/site/components/com_users/controllers/profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

}
3 changes: 0 additions & 3 deletions app/site/components/com_users/models/profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
$fields = $this->form->getFieldset($group);
if (count($fields)):
?>
<?php //if ($this->params->get('show_tags')) : ?>
<?php //$this->tagLayout = new JLayoutFile('joomla.content.tags'); ?>
<?php //echo $this->tagLayout->render($this->tags); ?>
<?php // endif; ?>

<fieldset id="users-profile-custom" class="users-profile-custom-<?php echo $group; ?>">
<?php if (isset($fieldset->label)): // If the fieldset has a label set, display it as the legend. ?>
Expand Down
3 changes: 0 additions & 3 deletions app/site/components/com_users/views/profile/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 65f22e1

Please sign in to comment.