Ignore:
Timestamp:
08/27/10 17:14:12 (21 months ago)
Author:
aarkerio
Message:

Helper updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/app/views/lessons/view.ctp

    r2470 r2486  
    99  
    1010if (  $data['Lesson']['disc'] == 1 ):   # is the comments in this lesson actived by blogger? 
    11    if ( $session->check('Auth.User') ):  # if user logged, anchor to textarea 
     11   if ( $this->Session->check('Auth.User') ):  # if user logged, anchor to textarea 
    1212       echo  $this->Html->div(null, $this->Html->image('static/comment.gif', array('alt'=>'Annotations')) .  
    1313                        ' '. __('Comments', True).':', array('id'=>'comments'));   
     
    4242 
    4343     # Teacher buttons 
    44      if ( $session->read('Auth.User.id') && $blogger['User']['id'] == $session->read('Auth.User.id')): # you are teacher so delete button 
     44     if ( $this->Session->read('Auth.User.id') && $blogger['User']['id'] == $this->Session->read('Auth.User.id')): # you are teacher so delete button 
    4545          echo $this->Html->div(Null); 
    4646          $msg   = __('Are you sure to want to delete this?', True);  
     
    6767   echo $this->Form->hidden('Annotation.lesson_id',  array('value'=> $data['Lesson']['id'])); 
    6868   echo $this->Form->hidden('Annotation.blogger_id', array('value'=> $data['Lesson']['user_id'])); 
    69    if ( $session->check('Auth.User') ): 
     69   if ( $this->Session->check('Auth.User') ): 
    7070?>    <fieldset> 
    7171      <legend id="new_comment"><?php __('New Comment', True);?></legend> 
    7272      <?php 
    73       echo $this->Form->hidden('Annotation.user_id',  array('value' => $session->read('Auth.User.id'))); 
    74       echo $this->Form->hidden('Annotation.username', array('value' => $session->read('Auth.User.username'))); 
    75       echo $session->read('Auth.User.username') . ' '.  __('writes', True) .' ';      
     73      echo $this->Form->hidden('Annotation.user_id',  array('value' => $this->Session->read('Auth.User.id'))); 
     74      echo $this->Form->hidden('Annotation.username', array('value' => $this->Session->read('Auth.User.username'))); 
     75      echo $this->Session->read('Auth.User.username') . ' '.  __('writes', True) .' ';      
    7676   else: 
    7777      # show captcha if anonymous user and discution is enabled 
    78       #debug($session->read()); 
     78      #debug($this->Session->read()); 
    7979      echo $this->Html->image($this->webroot.'annotations/captcha/', array('id'=>'captcha', 'alt'=>'CAPTCHA Image')); 
    8080      $lbl = __('All letters are vowels', True); 
Note: See TracChangeset for help on using the changeset viewer.