diff options
| author | lsces <lester@lsces.co.uk> | 2025-08-24 15:35:09 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2025-08-24 15:35:09 +0100 |
| commit | ce4fa87baac56fe2478cfea56b539cba63887467 (patch) | |
| tree | 6d5f6a74d4d80fcc11b12ce2fa86715e1bff9b88 /add_xref.php | |
| parent | 69b08377a8a2d3791b21d96720657d93beda2af0 (diff) | |
| download | contact-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 'add_xref.php')
| -rwxr-xr-x[-rw-r--r--] | add_xref.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/add_xref.php b/add_xref.php index 575cf48..7cbdf9c 100644..100755 --- a/add_xref.php +++ b/add_xref.php @@ -13,12 +13,12 @@ /** * required setup */ -require_once( '../kernel/setup_inc.php' ); +require_once '../kernel/includes/setup_inc.php'; $gBitSystem->verifyPackage( 'contact' ); $gBitSystem->verifyPermission( 'p_contact_update' ); -include_once( CONTACT_PKG_PATH.'lookup_contact_inc.php' ); +include_once CONTACT_PKG_INCLUDE_PATH . 'lookup_contact_inc.php'; if (isset($_REQUEST["fCancel"])) { if( !empty( $gContent->mContentId ) ) { @@ -61,11 +61,11 @@ $xrefInfo['xref_format_list'] = $gContent->getXrefFormatList(); $gContent->mInfo['format_guid'] = 'text'; // Default dates for creating new record $xrefInfo['ignore_start_date'] = 'n'; +$xrefInfo['start_date'] = $gContent->mDate->getUTCTime(); $xrefInfo['ignore_end_date'] = 'y'; -$gBitSmarty->assignByRef( 'xrefInfo', $xrefInfo ); -$gBitSmarty->assignByRef( 'title', $gContent->mInfo['title'] ); +$gBitSmarty->assign( 'xrefInfo', $xrefInfo ); +$gBitSmarty->assign( 'title', $gContent->mInfo['title'] ); -$gBitSmarty->assignByRef( 'errors', $gContent->mErrors ); +$gBitSmarty->assign( 'errors', $gContent->mErrors ); $gBitSystem->display( 'bitpackage:contact/add_xref.tpl', 'Edit: ' , array( 'display_mode' => 'edit' )); -?> |
