diff options
| author | wjames5 <will@tekimaki.com> | 2007-04-06 22:10:20 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2007-04-06 22:10:20 +0000 |
| commit | 5a5fdaae1b93a11eec5475952b7157baf519fc49 (patch) | |
| tree | 68818c4e0bc88c6278d534891fa092a8d49860e6 /register.php | |
| parent | b519a6dfc2dd465f9ddb4bdc4a9fc518d94e21ac (diff) | |
| download | users-5a5fdaae1b93a11eec5475952b7157baf519fc49.tar.gz users-5a5fdaae1b93a11eec5475952b7157baf519fc49.tar.bz2 users-5a5fdaae1b93a11eec5475952b7157baf519fc49.zip | |
move call for service registration tpl inclusion so that they are included when there are errors
Diffstat (limited to 'register.php')
| -rw-r--r-- | register.php | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/register.php b/register.php index a7a2815..92781ed 100644 --- a/register.php +++ b/register.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/register.php,v 1.29 2007/03/05 00:52:52 wjames5 Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/register.php,v 1.30 2007/04/06 22:10:20 wjames5 Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: register.php,v 1.29 2007/03/05 00:52:52 wjames5 Exp $ + * $Id: register.php,v 1.30 2007/04/06 22:10:20 wjames5 Exp $ * @package users * @subpackage functions */ @@ -109,23 +109,7 @@ if( isset( $_REQUEST["register"] ) ) { $gBitSmarty->assign('customFields', $fields); } - // include preferences settings from other packages - these will be included as individual tabs - $packages = array(); - foreach( $gBitSystem->mPackages as $package ) { - if( $gBitSystem->isPackageActive( $package['name'] )) { - $php_file = $package['path'].'user_register_inc.php'; - $tpl_file = $package['path'].'templates/user_register_inc.tpl'; - if( file_exists( $tpl_file )) { - if( file_exists( $php_file )) { - require( $php_file ); - } - $p=array(); - $p['template'] = $tpl_file; - $packages[] = $p; - } - } - } - $gBitSmarty->assign_by_ref('packages',$packages ); + for ($i=0;$i<BaseAuth::getAuthMethodCount();$i++) { $instance = BaseAuth::init($i); @@ -164,6 +148,25 @@ if ( $groupList['cant'] ) { $gBitSmarty->assign_by_ref( 'groupList', $groupList['data'] ); } + + // include preferences settings from other packages - these will be included as individual tabs + $packages = array(); + foreach( $gBitSystem->mPackages as $package ) { + if( $gBitSystem->isPackageActive( $package['name'] )) { + $php_file = $package['path'].'user_register_inc.php'; + $tpl_file = $package['path'].'templates/user_register_inc.tpl'; + if( file_exists( $tpl_file )) { + if( file_exists( $php_file )) { + require( $php_file ); + } + $p=array(); + $p['template'] = $tpl_file; + $packages[] = $p; + } + } + } + $gBitSmarty->assign_by_ref('packages',$packages ); + $gBitSystem->display('bitpackage:users/register.tpl', 'Register' ); ?> |
