summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-10-27 16:24:25 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-10-27 16:24:25 +0000
commitfa4e76f105ea9c94df8247e1d77fe7be79ec0e73 (patch)
tree797f2c9dfa7ff867b8dcd224e6db9740d2c9430e
parent6c5adf8033ae42245566dd940952145b26099711 (diff)
downloadusers-fa4e76f105ea9c94df8247e1d77fe7be79ec0e73.tar.gz
users-fa4e76f105ea9c94df8247e1d77fe7be79ec0e73.tar.bz2
users-fa4e76f105ea9c94df8247e1d77fe7be79ec0e73.zip
use fatalError()
-rw-r--r--admin/index.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/admin/index.php b/admin/index.php
index 42edef5..0d4615a 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -1,5 +1,5 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_users/admin/index.php,v 1.19 2007/06/13 21:39:37 squareing Exp $
+// $Header: /cvsroot/bitweaver/_bit_users/admin/index.php,v 1.20 2007/10/27 16:24:25 squareing Exp $
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// 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.
@@ -19,9 +19,7 @@ function batchImportUsers() {
// is the file a valid CSV file?
if( empty( $fields[0] ) ) {
- $gBitSmarty->assign( 'msg', tra( "The file is not a CSV file or has not a correct syntax" ) );
- $gBitSystem->display( 'error.tpl' );
- die;
+ $gBitSystem->fatalError( tra( "The file is not a CSV file or has not a correct syntax" ));
}
//now load the users in a table
@@ -37,9 +35,7 @@ function batchImportUsers() {
// were there any users in the list?
if( !is_array( $userRecords ) ) {
- $gBitSmarty->assign( 'msg', tra( "No records were found. Check the file please!" ) );
- $gBitSystem->display( 'error.tpl' );
- die;
+ $gBitSystem->fatalError( tra( "No records were found. Check the file please!" ));
}
// Process user array