Esempio n. 1
0
 function enableAddon($addon_id, $isBackend)
 {
     $addon_id = JRequest::getInt('addon_id', 0);
     $isBackend = JRequest::getBool('isBackend', false);
     //oseExit($isBackend);
     $updated = oseMscAddon::enableAddon($addon_id, $isBackend);
     $result = array();
     if ($updated) {
         $result['success'] = true;
         $result['title'] = 'Done';
         $result['content'] = ' Successfully';
     } else {
         $result['success'] = false;
         $result['title'] = 'Error';
         $result['content'] = ' Error';
     }
     return $result;
 }