Esempio n. 1
0
 /**
  * Update core Phanbook
  *
  * @return mixed
  */
 public function indexAction()
 {
     $this->tag->setTitle(t('Phanbook Updates'));
     if (ZFunction::gitUpdate()) {
         $this->view->output = ZFunction::gitUpdate();
         $this->flashSession->success(t('Phanbook upgraded successfully'));
     }
 }
Esempio n. 2
0
 /**
  * The task updated core Phanbook
  *
  * @return mixed
  */
 public function mainAction()
 {
     Output::stdout('======================================================');
     Output::stdout('Loading phanbook repositories with package information');
     Output::stdout('Call function ZFunction::gitUpdate()');
     ZFunction::gitUpdate();
     Output::stdout('Phanbook upgraded successfully');
     Output::stdout('======================================================');
 }