r25398: Parse loadparm context to all lp_*() functions.
[kai/samba.git] / source4 / scripting / ejs / smbcalls.c
index 3cb860b9e3a01b609a44775aeb6ecae7707ed5ad..91e58873df28a1ad996cf0488381214e02f59158 100644 (file)
@@ -111,7 +111,7 @@ static int ejs_typeof_native(MprVarHandle eid, int argc, struct MprVar **argv)
 static int ejs_libinclude(int eid, int argc, char **argv)
 {
        int i, j;
-       const char **js_include = lp_js_include();
+       const char **js_include = lp_js_include(global_loadparm);
 
        if (js_include == NULL || js_include[0] == NULL) {
                ejsSetErrorMsg(eid, "js include path not set");