List of Mods
0) { ?>Congratulations. No more Mods in sight. (For the moment)
diff --git a/application/modules/default/controllers/CreditsController.php b/application/modules/default/controllers/CreditsController.php index ec610db2c..6ed04d390 100755 --- a/application/modules/default/controllers/CreditsController.php +++ b/application/modules/default/controllers/CreditsController.php @@ -1,90 +1,93 @@ . * * Created: 31.05.2017 */ class CreditsController extends Local_Controller_Action_DomainSwitch { public function indexAction() { $this->view->page = (int)$this->getParam('page', 1); } public function deleteAction() { $this->_helper->layout->disableLayout(); $id = (int)$this->getParam('id'); $m = new Default_Model_ProjectClone(); $m->setDelete($id); $this->_helper->json(array( 'status' => 'ok', 'message' => 'deleted', 'data' => array() )); } public function validAction() { $this->_helper->layout->disableLayout(); $id = (int)$this->getParam('id'); $m = new Default_Model_ProjectClone(); $m->setValid($id); $this->_helper->json(array( 'status' => 'ok', 'message' => 'validated', 'data' => array() )); } public function editAction() { $this->_helper->layout->disableLayout(); $id = (int)$this->getParam('id'); $text =$this->getParam('t'); $project_id = (int)$this->getParam('p'); // cloneID - //$link = $this->getParam('l'); + $link = $this->getParam('l'); $m = new Default_Model_ProjectClone(); - - - $m->update(array( 'text' => $text - , 'project_id' =>$project_id - ) , 'project_clone_id='.$id); + + $arr = array( 'text' => $text + , 'project_id' =>$project_id + ); + if($link){ + $arr['external_link'] = $link; + } + $m->update($arr, 'project_clone_id='.$id); $this->_helper->json(array( 'status' => 'ok', 'message' => 'updated', 'data' => array() )); } public function modsAction() { $this->view->headTitle('Modifications','SET'); $this->view->page = (int)$this->getParam('page', 1); } } \ No newline at end of file diff --git a/application/modules/default/views/scripts/credits/mods.phtml b/application/modules/default/views/scripts/credits/mods.phtml index 0ed9c3706..db1509edd 100755 --- a/application/modules/default/views/scripts/credits/mods.phtml +++ b/application/modules/default/views/scripts/credits/mods.phtml @@ -1,281 +1,286 @@ . * * Created: 31.05.2017 */ $this->headTitle('Mods', 'SET'); $model = new Default_Model_ProjectClone(); $credits = $model->fetchMods(); ?>
Congratulations. No more Mods in sight. (For the moment)