Skip to content
Snippets Groups Projects
Commit dcf94ebd authored by Patrick Anders's avatar Patrick Anders
Browse files

web_vhost_domain_ssl: check if spdy is enabled on server configuration

parent 256e08fc
No related branches found
No related tags found
1 merge request!144Option Enable Spdy
......@@ -64,12 +64,14 @@
{tmpl_var name='ssl_action'}
</select>
</div>
{tmpl_if name="is_spdy_enabled"}
<div class="ctrlHolder">
<p class="label">{tmpl_var name='enable_spdy_txt'}</p>
<div class="multiField">
{tmpl_var name="enable_spdy"}
</div>
</div>
{/tmpl_if}
</fieldset>
<input type="hidden" name="id" value="{tmpl_var name='id'}">
......
......@@ -699,6 +699,8 @@ class page_action extends tform_actions {
$app->tpl->setVar('vhostdomain_type', $this->_vhostdomain_type);
$app->tpl->setVar('is_spdy_enabled', ($web_config['enable_spdy'] === 'y'));
parent::onShowEnd();
}
......@@ -1068,6 +1070,10 @@ class page_action extends tform_actions {
}
}
if($web_config['enable_spdy'] === 'n') {
unset($app->tform->formDef["tabs"]['ssl']['fields']['enable_spdy']);
}
parent::onSubmit();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment