Commit 45d45596 authored by Franco Fichtner's avatar Franco Fichtner

services: s/get_services/services_get/g

parent c0ec7458
......@@ -2538,8 +2538,7 @@ function is_apinger_enabled()
return is_array(return_gateways_array());
}
function get_services()
function services_get()
{
global $config;
......@@ -2695,9 +2694,9 @@ function get_services()
return $services;
}
function find_service_by_openvpn_vpnid($vpnid) {
$services = get_services();
function find_service_by_openvpn_vpnid($vpnid)
{
$services = services_get();
foreach ($services as $service) {
if (($service["name"] == "openvpn") && isset($service["vpnid"]) && ($service["vpnid"] == $vpnid)) {
return $service;
......
......@@ -35,7 +35,7 @@ function find_service_by_name($names)
$names = array($names);
}
$services = get_services();
$services = services_get();
foreach ($services as $service) {
foreach ($names as $name) {
......
......@@ -291,7 +291,7 @@ function service_control_restart($name, $extras) {
return sprintf(gettext("%s has been restarted."),htmlspecialchars($name));
}
$services = get_services();
$services = services_get();
if (count($services) > 0) {
uasort($services, "service_name_compare");
......
......@@ -37,7 +37,7 @@ require_once("vpn.inc");
require_once("widgets/include/services_status.inc");
require_once("interfaces.inc");
$services = get_services();
$services = services_get();
if (isset($_POST['servicestatusfilter'])) {
$config['widgets']['servicestatusfilter'] = htmlspecialchars($_POST['servicestatusfilter'], ENT_QUOTES | ENT_HTML401);
......
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