Commit 01f3c129 authored by Franco Fichtner's avatar Franco Fichtner

vpn: better translations

Prodded by: @fabianfrz
parent de8ee164
...@@ -822,12 +822,8 @@ endif; ?> ...@@ -822,12 +822,8 @@ endif; ?>
} }
$ca = lookup_ca($crl['caref']); $ca = lookup_ca($crl['caref']);
if ($ca) { if ($ca) {
$caname = " (CA: {$ca['descr']})"; $selected = $pconfig['crlref'] == $crl['refid'] ? 'selected="selected"' : ''; ?>
$selected = ''; <option value="<?=htmlspecialchars($crl['refid']);?>" <?=$selected;?>><?=htmlspecialchars("{$crl['descr']} ({$ca['descr']})");?></option>
if ($pconfig['crlref'] == $crl['refid']) {
$selected = 'selected="selected"';
}?>
<option value="<?=htmlspecialchars($crl['refid']);?>" <?=$selected;?>><?=htmlspecialchars($crl['descr'] . $caname);?></option>
<?php <?php
} }
endforeach; ?> endforeach; ?>
...@@ -855,7 +851,7 @@ endif; ?> ...@@ -855,7 +851,7 @@ endif; ?>
if (isset($cert['caref'])) { if (isset($cert['caref'])) {
$ca = lookup_ca($cert['caref']); $ca = lookup_ca($cert['caref']);
if (!empty($ca)) { if (!empty($ca)) {
$caname = " (CA: {$ca['descr']})"; $caname = " ({$ca['descr']})";
} }
} }
if ($pconfig['certref'] == $cert['refid']) { if ($pconfig['certref'] == $cert['refid']) {
......
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