Пример #1
0
 function sync_profile_to_joomla()
 {
     JRequest::checkToken() or jexit('Invalid Token');
     $cid = JRequest::getVar('cid', array(), 'post', 'array');
     JArrayHelper::toInteger($cid);
     if (count($cid) < 1) {
         JError::raiseError(500, JText::_('Select an item to sync'));
     }
     JoomdleHelperContent::sync_joomla_profiles($cid);
     $this->setRedirect('index.php?option=com_joomdle&view=users');
 }