summaryrefslogtreecommitdiff
path: root/source4/scripting/libjs/management.js
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/libjs/management.js')
-rw-r--r--source4/scripting/libjs/management.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/scripting/libjs/management.js b/source4/scripting/libjs/management.js
index 7130cdc5dd..e1c68ca1de 100644
--- a/source4/scripting/libjs/management.js
+++ b/source4/scripting/libjs/management.js
@@ -97,7 +97,8 @@ function nbtd_statistics()
*/
function service_enabled(name)
{
- var services = lpGet("server services");
+ var lp = loadparm_init();
+ var services = lp.get("server services");
var i;
for (i=0;i<services.length;i++) {
if (services[i] == name) {