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/elements/one_entry.ctp

    r2327 r2486  
    5959            e($this->Html->para(null, nl2br(h($v['comment'])))); #we don't wanna XSS so escape comments 
    6060            e('<span class="small" style="font-size:7pt;font-weight:bold;">' . $v['created'] . '</span>'); 
    61             if (  $session->check('Auth.User') and  $session->check('Auth.User.id') == $blogger['User']['id']):  # teacher see his/her own blog 
     61            if (  $this->Session->check('Auth.User') and  $this->Session->check('Auth.User.id') == $blogger['User']['id']):  # teacher see his/her own blog 
    6262                $msg   = __('Are you sure to want to delete this?', True); 
    6363                echo $this->Html->div(Null); 
     
    7777        e($this->Form->hidden('Comment.entry_id', array('value'=>$entry_id))); 
    7878        e($this->Form->hidden('Comment.blogger_id', array('value'=> $val['Entry']['user_id']))); 
    79         if ( $session->check('Auth.User') ):   # user is logged in ?>  
     79        if ( $this->Session->check('Auth.User') ):   # user is logged in ?>  
    8080            <fieldset> 
    8181            <legend id="new_comment"><?php __('New Comment'); ?></legend> 
    8282            <?php 
    83             echo $session->read('Auth.User.username') . ' '.  __('writes', True) .' '; 
     83            echo $this->Session->read('Auth.User.username') . ' '.  __('writes', True) .' '; 
    8484        else: 
    8585            # show captcha if anonymous user and discution is enabled 
    86             #debug($session->read()); 
     86            #debug($this->Session->read()); 
    8787            echo $this->Html->image($this->webroot.'comments/captcha/', array('id'=>'captcha', 'alt'=>'CAPTCHA Image')); 
    8888            echo $this->Form->input('Comment.captcha', array('size'=>10,'maxlenbgth'=>10, 'between'=>':<br />','label'=>__('Enter characters showing up',True))); 
Note: See TracChangeset for help on using the changeset viewer.