Roxen.git/
server/
base_server/
module.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1997-08-24
1997-08-24 23:14:01 by Peter Bortas <zino@lysator.liu.se>
edb506c567358c1313b89aaf492db96098b44559 (
21
lines) (+
20
/-
1
)
[
Show
|
Annotate
]
Branch:
edb506c567358c1313b89aaf492db96098b44559
Added module_dependencies();
Rev: server/base_server/module.pike:1.23
1:
-
/* $Id: module.pike,v 1.
22
1997/08/
19
00
:
36
:
11
grubba
Exp $ */
+
/* $Id: module.pike,v 1.
23
1997/08/
24
23
:
14
:
01
peter
Exp $ */
#include <module.h>
13:
return from; }
+
int module_dependencies(object configuration, array (string) modules)
+
{
+
if(configuration)
+
{
+
foreach (modules, string module)
+
{
+
if(!configuration->modules[module] ||
+
(!configuration->modules[module]->copies &&
+
!configuration->modules[module]->master))
+
configuration->enable_module(module+"#0");
+
}
+
if(roxen->root)
+
roxen->configuration_interface()->build_root(roxen->root);
+
}
+
_do_call_outs();
+
return 1;
+
}
+
string file_name_and_stuff() { return ("<b>Loaded from:</b> "+(roxen->filename(this))+"<br>"+