Changeset 130

Show
Ignore:
Timestamp:
04/24/07 14:14:23
Author:
danfreak
Message:

"FAL: FAL: updated the helper function displayRegistrationForm in order to use the new FAL_front library"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • FreakAuth/trunk/www/system/application/helpers/freakauth_light_helper.php

    r128 r130  
    223223{ 
    224224        $obj =& get_instance(); 
    225         $obj->lang->load('freakauth'); 
    226         //if we want to know the user country let's populate the select menu        
    227         if ($obj->config->item('FAL_use_country')) 
    228         { 
    229                 $obj->load->model('country'); 
    230  
    231                 //SELECT * FROM country 
    232                 $data['countries'] = $obj->country->getCountriesForSelect(); 
    233         } 
    234         //if we want to secure the registration with CAPTCHA let's generate it 
    235         if ($obj->config->item('FAL_use_security_code_register')) 
    236         { 
    237                 $action='_register'; 
    238                 $obj->freakauth_light->captcha_init($action); 
    239                 $data['captcha'] = $obj->config->item('FAL_security_code_image'); 
    240         } 
    241  
    242         //return the view 
    243         return $obj->load->view($obj->config->item('FAL_register_view'), $data, true); 
     225        $obj->load->library('FAL_front', 'fal_front'); 
     226         
     227    return $obj->fal_front->register(); 
    244228} 
    245229// ------------------------------------------------------------------------