summaryrefslogtreecommitdiff
path: root/list_contacts.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2025-08-24 15:35:09 +0100
committerlsces <lester@lsces.co.uk>2025-08-24 15:35:09 +0100
commitce4fa87baac56fe2478cfea56b539cba63887467 (patch)
tree6d5f6a74d4d80fcc11b12ce2fa86715e1bff9b88 /list_contacts.php
parent69b08377a8a2d3791b21d96720657d93beda2af0 (diff)
downloadcontact-ce4fa87baac56fe2478cfea56b539cba63887467.tar.gz
contact-ce4fa87baac56fe2478cfea56b539cba63887467.tar.bz2
contact-ce4fa87baac56fe2478cfea56b539cba63887467.zip
Just a crude merging of the PHP7 code base with the PHP8.4 version
Diffstat (limited to 'list_contacts.php')
-rwxr-xr-x[-rw-r--r--]list_contacts.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/list_contacts.php b/list_contacts.php
index a104dd8..39485f4 100644..100755
--- a/list_contacts.php
+++ b/list_contacts.php
@@ -13,8 +13,8 @@
/**
* required setup
*/
-require_once( '../kernel/setup_inc.php' );
-require_once( CONTACT_PKG_PATH.'Contact.php' );
+require_once '../kernel/includes/setup_inc.php';
+use Bitweaver\Contact\Contact;
$gBitSystem->isPackageActive('contact', TRUE);
@@ -30,10 +30,9 @@ if ( empty( $_REQUEST["sort_mode"] ) ) {
// Get a list of Contacts
$contacts->getList( $_REQUEST );
-$smarty->assignByRef('listInfo', $_REQUEST['listInfo']);
-$smarty->assignByRef('list', $contacts);
+$smarty->assign('listInfo', $_REQUEST['listInfo']);
+$smarty->assign('list', $contacts);
// Display the template
$gBitSystem->display( 'bitpackage:contact/list_contacts.tpl', NULL, array( 'display_mode' => 'list' ));
-?>