- Timestamp:
- 09/16/08 13:35:20 (2 months ago)
- Location:
- trunk/app
- Files:
-
- 1 added
- 1 modified
-
controllers/wikis_controller.php (modified) (3 diffs)
-
views/elements/wikibar.ctp (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/wikis_controller.php
r696 r766 43 43 } 44 44 45 private function __saveWiki() 46 { 47 if ($rev): 48 $wasReverted = true; 49 endif; 50 51 $this->data['Wiki']; 52 53 $this->Wiki->save(); 54 55 } 45 56 /** ==== ADMIN SECTION ====*/ 46 57 … … 67 78 $this->data['Wiki']['modified'] = 'now()'; 68 79 69 $this->Wiki->create(); 70 71 if ($this->Wiki->save($this->data['Wiki'])): 80 if ($this->Wiki->save($this->data)): 72 81 $id = $this->Wiki->getLastInsertID(); 73 $this->msgFlash('Wiki page added', '/admin/wikis/edit/'.$id); 74 else: 75 $this->flash('Error in DB, contact staff', '/admin/wikis/add'); 82 $this->msgFlash(__('WikiPage added', true), '/admin/wikis/edit/'.$id); 76 83 endif; 77 84 endif; … … 93 100 94 101 $this->set('subjects', Set::combine($this->Wiki->Subject->find('all', array('order' => 'title')), "{n}.Subject.id","{n}.Subject.title")); 102 103 //$this->set('subjects', Set::combine($this->Wiki->Subject->find('all', array('order' => 'title')), "{n}.Subject.id","{n}.Subject.title")); 95 104 96 105 if (empty($this->data['Wiki'])):
