File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments