diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-15 16:38:09 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-15 16:38:09 +0100 |
| commit | bc9b9df93192b0c3bc62bf701864b97681c38977 (patch) | |
| tree | bfcc963e60873d9e731492a746c64d50b6e9be0f /import | |
| parent | 72119ef864e1a5ffa377a504dc2ef430d7e6cd4a (diff) | |
| download | contact-bc9b9df93192b0c3bc62bf701864b97681c38977.tar.gz contact-bc9b9df93192b0c3bc62bf701864b97681c38977.tar.bz2 contact-bc9b9df93192b0c3bc62bf701864b97681c38977.zip | |
Namespace fixes
Diffstat (limited to 'import')
| -rwxr-xr-x | import/ContactOld.php | 5 | ||||
| -rwxr-xr-x | import/load_wande_contacts.php | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/import/ContactOld.php b/import/ContactOld.php index 105af63..e3fa0a7 100755 --- a/import/ContactOld.php +++ b/import/ContactOld.php @@ -12,6 +12,7 @@ /** * required setup */ +use Bitweaver\KernelTools; use Bitweaver\Liberty\LibertyBase; // Contact base class require_once CONTACT_PKG_PATH . 'lib/phpcoord-2.3.php'; @@ -552,7 +553,7 @@ vd($query); if( $this->mInfo = $rs->fields ) { /* if( $this->mInfo['local_custodian_code'] == 0 ) { global $gBitSystem; - $gBitSystem->fatalError( tra( 'You do not have permission to access this contact record' ), 'error.tpl', tra( 'Permission denied.' ) ); + $gBitSystem->fatalError( KernelTools::tra( 'You do not have permission to access this contact record' ), 'error.tpl', KernelTools::tra( 'Permission denied.' ) ); } */ @@ -589,7 +590,7 @@ vd($query); //vd($this->mInfo); } else { global $gBitSystem; - $gBitSystem->fatalError( tra( 'Contact record does not exist' ), 'error.tpl', tra( 'Not found.' ) ); + $gBitSystem->fatalError( KernelTools::tra( 'Contact record does not exist' ), 'error.tpl', KernelTools::tra( 'Not found.' ) ); } } } diff --git a/import/load_wande_contacts.php b/import/load_wande_contacts.php index 3b83b04..ab75e98 100755 --- a/import/load_wande_contacts.php +++ b/import/load_wande_contacts.php @@ -9,6 +9,7 @@ // Initialization require_once '../../kernel/includes/setup_inc.php'; use Bitweaver\Contact\Contact; +use Bitweaver\KernelTools; // Is package installed and enabled $gBitSystem->verifyPackage( 'contact' ); @@ -35,4 +36,4 @@ if ( $handle == FALSE) { $gBitSmarty->assign( 'count', $row ); -$gBitSystem->display( 'bitpackage:contact/load_contacts.tpl', tra( 'Load results: ' ) ); +$gBitSystem->display( 'bitpackage:contact/load_contacts.tpl', KernelTools::tra( 'Load results: ' ) ); |
