Skip to content

Commit 841e96d

Browse files
committed
Fixed some php 8.2 warnings
1 parent cd17793 commit 841e96d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929
*/
3030

31-
class installer_base {
31+
class installer_base extends stdClass {
3232

3333
var $wb = array();
3434
var $language = 'en';

server/plugins-available/rspamd_plugin.inc.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -528,10 +528,10 @@ function server_update($event_name, $data) {
528528
);
529529
foreach ($local_d as $f) {
530530
$tpl = new tpl();
531-
if (file_exists($conf['rootpath']."/conf-custom/install/rspamd_${f}.master")) {
532-
$tpl->newTemplate($conf['rootpath']."/conf-custom/install/rspamd_${f}.master");
531+
if (file_exists($conf['rootpath']."/conf-custom/install/rspamd_{$f}.master")) {
532+
$tpl->newTemplate($conf['rootpath']."/conf-custom/install/rspamd_{$f}.master");
533533
} else {
534-
$tpl->newTemplate("rspamd_${f}.master");
534+
$tpl->newTemplate("rspamd_{$f}.master");
535535
}
536536

537537
$tpl->setVar('dkim_path', $mail_config['dkim_path']);
@@ -543,7 +543,7 @@ function server_update($event_name, $data) {
543543
$tpl->setLoop('local_addrs', $local_addrs);
544544
}
545545

546-
$app->system->file_put_contents("/etc/rspamd/local.d/${f}", $tpl->grab());
546+
$app->system->file_put_contents("/etc/rspamd/local.d/{$f}", $tpl->grab());
547547

548548
if($mail_config['content_filter'] == 'rspamd'){
549549
$app->services->restartServiceDelayed('rspamd', 'reload');

0 commit comments

Comments
 (0)