Changeset 733 for trunk/app/controllers

Show
Ignore:
Timestamp:
08/21/08 20:27:42 (3 months ago)
Author:
aarkerio
Message:

Little bugs fixed

Location:
trunk/app/controllers
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/reports_controller.php

    r606 r733  
    129129 } 
    130130 
     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 
    131140 public function admin_show($participation_id)  
    132141 { 
  • trunk/app/controllers/shares_controller.php

    r724 r733  
    2222 public function download($secret) 
    2323 {              
    24         $this->pageTitle = 'Share'; 
     24        $this->pageTitle = __('Share file', true); 
    2525        $this->layout    = 'ajax'; 
    2626        $conditions      = array("Share.secret"=>$secret, "Share.public"=>1);