Skip to content

Commit 5f812a7

Browse files
author
Florian Schaal
committed
Problems Configuration Enable PageSpeed and HTTP2 with nginx (Fixes #5242)
1 parent 84cb117 commit 5f812a7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

interface/web/sites/web_vhost_domain_edit.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ function onShowEnd() {
275275
// add limits to template to be able to hide settings
276276
foreach($read_limits as $limit) $app->tpl->setVar($limit, $client[$limit]);
277277

278-
279278
//* Reseller: If the logged in user is not admin and has sub clients (is a reseller)
280279
} elseif ($_SESSION["s"]["user"]["typ"] != 'admin' && $app->auth->has_clients($_SESSION['s']['user']['userid'])) {
281280

@@ -940,6 +939,13 @@ function onShowEnd() {
940939
}
941940
}
942941
$app->tpl->setLoop('folder_directive_snippets', $folder_directive_snippets);
942+
if(is_array($web_config[$server_id])) {
943+
$app->tpl->setVar('is_spdy_enabled', ($web_config[$server_id]['enable_spdy'] === 'y'));
944+
$app->tpl->setVar('is_pagespeed_enabled', ($web_config[$server_id]['nginx_enable_pagespeed']));
945+
} else {
946+
$app->tpl->setVar('is_spdy_enabled', ($web_config['enable_spdy'] === 'y'));
947+
$app->tpl->setVar('is_pagespeed_enabled', ($web_config['nginx_enable_pagespeed']));
948+
}
943949

944950
parent::onShowEnd();
945951
}

0 commit comments

Comments
 (0)