From e2d929c54a0d951c9bae51df7df5178bf9f0066f Mon Sep 17 00:00:00 2001 From: michael pereira Date: Mon, 25 Apr 2011 11:40:40 +0200 Subject: config fertig --- application/modules/user/controllers/BootosController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'application/modules/user/controllers/BootosController.php') diff --git a/application/modules/user/controllers/BootosController.php b/application/modules/user/controllers/BootosController.php index 92dcc5f..9bc6a69 100644 --- a/application/modules/user/controllers/BootosController.php +++ b/application/modules/user/controllers/BootosController.php @@ -86,7 +86,6 @@ class user_BootosController extends Zend_Controller_Action $this->view->bootoslist = array_reverse($this->view->bootoslist); - $update = $this->_request->getParam('checkupdate'); $groupMapper = new Application_Model_GroupMapper(); if(count($this->view->bootoslist)>0){ @@ -161,6 +160,7 @@ class user_BootosController extends Zend_Controller_Action try { $bootosID = $this->bootosMapper->save($bootos); + $bootos->setID($bootosID); if( $_FILES['kernel']['size'] == 0 && $_FILES['kernel']['name'] != '' || $_FILES['init']['size'] == 0 && $_FILES['init']['name'] != '' || @@ -184,6 +184,8 @@ class user_BootosController extends Zend_Controller_Action } if($_FILES['config']['name'] != ''){ move_uploaded_file($_FILES['config']['tmp_name'], $configpath."default.tgz"); + $newconfig = new Pbs_NewConfig(); + $newconfig->createDefaultConfig($bootos); } -- cgit v1.2.3-55-g7522