Changeset 733 for trunk/app/controllers
- Timestamp:
- 08/21/08 20:27:42 (3 months ago)
- Location:
- trunk/app/controllers
- Files:
-
- 2 modified
-
reports_controller.php (modified) (1 diff)
-
shares_controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/reports_controller.php
r606 r733 129 129 } 130 130 131 public function admin_download($report_id) 132 { 133 $this->layout = 'ajax'; 134 $conditions = array('Report.id'=>$report_id); 135 $filename = $this->Report->field('filename', $conditions); 136 137 $this->set('filename', 'files/studentsfiles/'.trim($filename)); 138 } 139 131 140 public function admin_show($participation_id) 132 141 { -
trunk/app/controllers/shares_controller.php
r724 r733 22 22 public function download($secret) 23 23 { 24 $this->pageTitle = 'Share';24 $this->pageTitle = __('Share file', true); 25 25 $this->layout = 'ajax'; 26 26 $conditions = array("Share.secret"=>$secret, "Share.public"=>1);
