Commit 5b995b98 authored by anarcat's avatar anarcat

display properly sites with deleted keys

parent a3ec4535
...@@ -98,12 +98,11 @@ function hosting_ssl_nodeapi_site_view(&$node, $teaser = false) { ...@@ -98,12 +98,11 @@ function hosting_ssl_nodeapi_site_view(&$node, $teaser = false) {
); );
if ($node->ssl_enabled != 0) { if ($node->ssl_enabled != 0) {
$path = sprintf("config/ssl.d/%s/", hosting_ssl_get_key($node->ssl_key));
$node->content['info']['ssl_key'] = array( $node->content['info']['ssl_key'] = array(
'#type' => 'item', '#type' => 'item',
'#title' => t('Encryption key'), '#title' => t('Encryption key'),
'#value' => hosting_ssl_output_key($node->ssl_key), '#value' => hosting_ssl_output_key($node->ssl_key),
'#description' => t("This site is using the SSL certificate and SSL key located at %crt_file and %key_file.", array('%crt_file' => $path . 'openssl.crt', '%key_file' => $path . 'openssl.key')), '#description' => hosting_ssl_get_key($node->ssl_key) ? t("This site is using SSL certificates located at %path.", array('%path' => sprintf("config/ssl.d/%s/", hosting_ssl_output_key($node->ssl_key)))) : t("(key deleted)"),
'#weight' => 7 '#weight' => 7
); );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment