Branch: Tag:

2008-10-01

2008-10-01 09:20:18 by Jonas Wallden <jonasw@roxen.com>

Show all eligible modules even though they may lack module_doc. This may
reveal previously internal modules but to my knowledge they are all limited
to the Compatibility section and marked as deprecated.

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

1: - // $Id: add_module.pike,v 1.88 2008/06/12 07:24:19 erikd Exp $ + // $Id: add_module.pike,v 1.89 2008/10/01 09:20:18 jonasw Exp $      #include <config_interface.h>   #include <module.h>
334:    mixed r = w[i];    if(!classes[r[0]])    classes[r[0]] = ([ "doc":r[1], "modules":({}) ]); -  if( mods[i]->get_description() ) +     classes[r[0]]->modules += ({ mods[i] });    }   
347:    lower_case(((string) m->get_name() || "") + "\0" +    m->sname + "\0" +    m->filename + "\0" + -  Roxen.html_decode_string((string) m->get_description()||"")); +  Roxen.html_decode_string((string) m->get_description() || +  LOCALE(0, "Undocumented")));    search_miss:    {    foreach(mod_query_words, string w)
453:    (image?module_image(module->type):""),    module->sname,    LOCALE(251, "Add Module"), -  module->get_description(), +  module->get_description() || LOCALE(0, "Undocumented"),    LOCALE(266, "Will be loaded from: ")+module->filename   );    } else {
560:    module->sname,    //Roxen.html_encode_string(strip_leading(module->get_name())),    Roxen.html_encode_string(module->get_name()), -  module->get_description(), +  module->get_description() || LOCALE(0, "Undocumented"),    LOCALE(266, "Will be loaded from: ")+module->filename    );    } else {