Show
Ignore:
Timestamp:
07/22/08 17:08:42 (4 months ago)
Author:
aarkerio
Message:

Exmans and vclass

Files:
1 modified

Legend:

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

    r578 r666  
    2929        $this->Auth->allow(array('view', 'display', 'result')); 
    3030   endif; 
    31    // L10n 
    32    $this->L10n = new L10n(); 
    33    $this->L10n->get("en"); 
    34   
    35    Configure::write('Config.language', "en"); 
    3631 } 
    3732 
    3833 public function display($username, $user_id) 
    3934 { 
    40     $this->pageTitle = 'Exams'; 
     35    $this->pageTitle = __('Tests', true); 
    4136           
    4237    $this->layout    = $this->Edublog->layout($user_id); 
     
    5348    $user_id = $this->Test->field('Test.user_id', array("Test.id"=>$test_id)); 
    5449     
    55     $this->pageTitle = 'Exam'; 
     50    $this->pageTitle = __('Test', true); 
    5651     
    5752    $this->layout    = $this->Edublog->layout($user_id); 
     
    189184   $this->layout    = 'admin'; 
    190185         
    191    $this->pageTitle = 'Tests'; 
     186   $this->pageTitle = __('Tests', true); 
    192187         
    193188   $conditions = array('Test.user_id'=>$this->Auth->user('id'));