Commit 04ba1c72 authored by Adrian Rossouw's avatar Adrian Rossouw

Correctly 'turn off' services which are not being used.

parent afac41c3
<?php
function hosting_server_context_options(&$task) {
foreach ($task->ref->services as $service) {
if ($service->available) {
$service->context_options($task->task_type, $task->ref->type, $task);
foreach (hosting_server_services() as $type => $info) {
if (isset($task->ref->services[$type])) {
$service = $task->ref->services[$type];
if ($service->available) {
$service->context_options($task->task_type, $task->ref->type, $task);
}
}
else {
$task->context_options["{$type}_service_type"] = '0';
}
}
}
......
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