Show
Ignore:
Timestamp:
04/09/08 18:35:28 (9 months ago)
Author:
aarkerio
Message:

FLash and users Ajaxa fixed

Files:
1 modified

Legend:

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

    r373 r374  
    286286   if (strlen($this->data['User']['pwd']) < 6) 
    287287   { 
    288        $message['pwd_wrong'] = "The password have less than 6 characters "; 
     288       $message['pwd_wrong'] = 'The password have less than 6 characters '; 
    289289   } 
    290290     
    291291   if (strpos($this->data['User']['username'], ' '))  // no spaces    
    292292   { 
    293        $message['username_spaces'] = "Your username should not contain spaces"; 
     293       $message['username_spaces'] = 'Your username should not contain spaces'; 
    294294   } 
    295295     
     
    324324     
    325325    /** Check the user **/ 
    326     $username = $this->User->field('username', array("username" => $this->data['User']['username'])); 
     326    $username = $this->User->field('username', array('username' => $this->data['User']['username'])); 
    327327     
    328328    if ($username != null) 
    329329    { 
    330        $message['username_exist'] = "The username already exist "; 
     330       $message['username_exist'] = 'The username already exist '; 
    331331    } 
    332332     
     
    336336    if ($email != null) 
    337337    { 
    338        $message['email_exist'] = "The email already exist "; 
     338       $message['email_exist'] = 'The email already exist '; 
    339339    } 
    340340     
     
    351351       $this->set('message', $message); 
    352352       $this->render('validate', 'ajax'); //if error exist, stop here 
    353        exit; 
    354353    } 
    355354