Esempio n. 1
0
 public function handleChangeStatus($module_name, $new_status)
 {
     ModuleManager::changeStatus($module_name, $new_status);
     $this['page']->refresh('modules');
     if ($new_status == 'enabled') {
         Environment::getApplication()->installModules();
         $this->invalidateControl('menu');
     } else {
         $this->redirect('this');
     }
 }