Commit b2156678 authored by Franco Fichtner's avatar Franco Fichtner

openvpn: vpnid was consolidated in id for portability; closes #893

(cherry picked from commit 67a6370c)
parent 8f042699
......@@ -173,7 +173,7 @@ $( document ).ready(function() {
endforeach; ?>
<tr>
<td colspan="2">
<?php $ssvc = find_service_by_name('openvpn', array('vpnid' => $server['vpnid'])); ?>
<?php $ssvc = find_service_by_name('openvpn', array('id' => $server['vpnid'])); ?>
<?= get_service_status_icon($ssvc, true, true); ?>
<?= get_service_control_links($ssvc, true); ?>
</td>
......@@ -252,7 +252,7 @@ $( document ).ready(function() {
<td><?=$sk_server['status'];?></td>
<td>
<div>
<?php $ssvc = find_service_by_name('openvpn', array('vpnid' => $sk_server['vpnid'])); ?>
<?php $ssvc = find_service_by_name('openvpn', array('id' => $sk_server['vpnid'])); ?>
<?= get_service_status_icon($ssvc, false, true); ?>
<?= get_service_control_links($ssvc, true); ?>
</div>
......@@ -292,7 +292,7 @@ $( document ).ready(function() {
<td><?=$client['status'];?></td>
<td>
<div>
<?php $ssvc = find_service_by_name('openvpn', array('vpnid' => $client['vpnid'])); ?>
<?php $ssvc = find_service_by_name('openvpn', array('id' => $client['vpnid'])); ?>
<?= get_service_status_icon($ssvc, false, true); ?>
<?= get_service_control_links($ssvc, true); ?>
</div>
......
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