Changeset 1368

Show
Ignore:
Timestamp:
11/27/08 05:43:26 (6 weeks ago)
Author:
rickc
Message:

Plugin: jambo. Updates for SuperGlobals and User changes. Corrected an object not set notice in hiengine template.

Location:
plugins/jambo/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • plugins/jambo/trunk/jambo.plugin.php

    r1269 r1368  
    1515class Jambo extends Plugin 
    1616{ 
    17     const VERSION = '1.4-alpha'; 
     17    const VERSION = '1.4.1-alpha'; 
    1818    const OPTION_NAME = 'jambo'; 
    1919     
  • plugins/jambo/trunk/jambohandler.php

    r996 r1368  
    1717        $email['send_to']=        Jambo::get( 'send_to' ); 
    1818        $email['subject_prefix']= Jambo::get( 'subject_prefix' ); 
    19         $email['name']=           Inputfilter::filter( $this->handler_vars['name'] ); 
    20         $email['email']=          Inputfilter::filter( $this->handler_vars['email'] ); 
    21         $email['subject']=        Inputfilter::filter( $this->handler_vars['subject'] ); 
    22         $email['message']=        Inputfilter::filter( $this->handler_vars['message'] );+ 
     19        $email['name']=           $this->handler_vars['name']; 
     20        $email['email']=          $this->handler_vars['email']; 
     21        $email['subject']=        $this->handler_vars['subject']; 
     22        $email['message']=        $this->handler_vars['message'];+ 
    2323        $email['osa']=            $this->handler_vars['osa']; 
    2424        $email['osa_time']=       $this->handler_vars['osa_time']; 
     
    4444    { 
    4545        $cookie = 'comment_' . Options::get('GUID'); 
    46         if ( ( ! User::identify() )  
     46        if ( ( ! User::identify()->loggedin )  
    4747            && ( ! isset( $_COOKIE[$cookie] ) )  
    4848            && ( ! empty( $email['name'] ) || ! empty( $email['email'] ) ) ) 
  • plugins/jambo/trunk/templates/jambo.form.hi

    r1269 r1368  
    2020            {hi:jambo.error_msg} 
    2121            <ul> 
    22             <?php $errors = $jambo->errors; ?> 
    23             {hi:errors} 
    24                 <li>{hi:errors_1}</li> 
    25             {/hi:errors} 
     22            <?php foreach ( $jambo->errors as $jambo_error ) { ?> 
     23                <li><?php echo $jambo_error; ?></li> 
     24            <?php } ?> 
    2625            </ul> 
    2726        </div>