diff options
| author | lsces <lester@lsces.co.uk> | 2026-03-09 20:24:51 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-03-09 20:24:51 +0000 |
| commit | 643a40382fbd92f26c67199e43e58486a4156a49 (patch) | |
| tree | c8db01ae49354dec0f49aad08d3ab6099091be48 /edition_edit.php | |
| parent | 6a24df4d086833667f52c8ee197148698ae2156e (diff) | |
| download | newsletters-643a40382fbd92f26c67199e43e58486a4156a49.tar.gz newsletters-643a40382fbd92f26c67199e43e58486a4156a49.tar.bz2 newsletters-643a40382fbd92f26c67199e43e58486a4156a49.zip | |
Smarty5 compliance sorted, but PHP8.4 style advisories still need addressing
Diffstat (limited to 'edition_edit.php')
| -rwxr-xr-x[-rw-r--r--] | edition_edit.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/edition_edit.php b/edition_edit.php index 2c72b95..2d87faf 100644..100755 --- a/edition_edit.php +++ b/edition_edit.php @@ -62,7 +62,7 @@ if (isset($_REQUEST["preview"])) { $gBitSmarty->assign( 'title',!empty( $_REQUEST["title"] ) ? $_REQUEST["title"] : $gContent->getTitle() ); $parsed = LibertyContent::parseDataHash( $formInfo['data'] ); - $gBitSmarty->assignByRef( 'parsed', $parsed ); + $gBitSmarty->assign( 'parsed', $parsed ); $gContent->invokeServices( 'content_preview_function' ); } elseif (isset($_REQUEST["save"])) { @@ -90,9 +90,8 @@ if( empty( $formInfo ) ) { $formInfo = &$gContent->mInfo; } -$gBitSmarty->assignByRef( 'pageInfo', $formInfo ); +$gBitSmarty->assign( 'pageInfo', $formInfo ); $gBitSmarty->assign( 'errors', $gContent->mErrors ); // Display the template $gBitSystem->display( 'bitpackage:newsletters/edit_edition.tpl', ($gContent->isValid() ? tra( 'Edit Edition' ).': '.$gContent->getTitle() : tra( 'Create New Edition' )) , array( 'display_mode' => 'edit' )); -?> |
