Branch: Tag:

2008-04-08

2008-04-08 15:32:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Now sends conf along to unlocked().

Rev: server/config_interface/sites/add_module.pike:1.87

1: - // $Id: add_module.pike,v 1.86 2006/07/25 11:15:27 anders Exp $ + // $Id: add_module.pike,v 1.87 2008/04/08 15:32:26 grubba Exp $      #include <config_interface.h>   #include <module.h>
262:    "Compile errors and warnings</font></b><br />"    "<table width=100% cellpadding='3' cellspacing='0' border='0'>";    -  da_string += "<tr><td></td>" +  da_string += "<tr><td>&nbsp;</td>"    "<td colspan='3' bgcolor='&usr.content-titlebg;'>"    + "<b><font color='&usr.content-titlefg;' size='+1'>"    + module_name_from_file(module)+"</font></b></td>"
382:    if (search_modules && !search_modules[q])    continue;    object b = module_nomore(q->sname, q, conf); -  if( !b && q->locked && (!license_key || !q->unlocked(license_key)) ) +  if( !b && q->locked && +  (!license_key || !q->unlocked(license_key, conf)) )    {    locked_modules += ({ q });    continue;
732:    q->type == 0 )    continue;    object b = module_nomore(q->sname, q, conf); -  if( !b && q->locked && (!license_key || !q->unlocked(license_key)) ) +  if( !b && q->locked && +  (!license_key || !q->unlocked(license_key, conf)) )    {    locked_modules += ({ q });    continue;