Skip to content

Commit 62a6d04

Browse files
author
Andreas Palm
committed
make #6471 backwards compatible by keeping the old variable
1 parent 5e9a4fe commit 62a6d04

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

server/conf/vhost.conf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<tmpl_loop name='vhosts'>
1414
<VirtualHost {tmpl_var name='ip_address'}:{tmpl_var name='port'}>
1515
<tmpl_if name='use_proxy_protocol' op='==' value='y'>
16-
<tmpl_if name='apache_version' op='>=' value='2.4.30' format='version'>
16+
<tmpl_if name='apache_full_version' op='>=' value='2.4.30' format='version'>
1717
<IfModule mod_remoteip.c>
1818
RemoteIPProxyProtocol On
1919
</IfModule>

server/plugins-available/apache2_plugin.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,8 @@ function update($event_name, $data) {
13411341
$vhost_data['custom_sendmail_path'] = (isset($custom_sendmail_path) && $custom_sendmail_path) ? 'y' : 'n';
13421342

13431343
$tpl->setVar($vhost_data);
1344-
$tpl->setVar('apache_version', $app->system->getapacheversion(true));
1344+
$tpl->setVar('apache_version', $app->system->getapacheversion());
1345+
$tpl->setVar('apache_full_version', $app->system->getapacheversion(true));
13451346

13461347
// Rewrite rules
13471348
$rewrite_rules = array();

0 commit comments

Comments
 (0)