Roxen.git / server / base_server / rxmlhelp.pike

version» Context lines:

Roxen.git/server/base_server/rxmlhelp.pike:20:    foreach(table, array row)    ret+="<tr valign=\"top\"><td bgcolor=\""+TDBG+"\"><font color=\"#000000\">"+    row*("</font></td><td bgcolor=\""+TDBG+"\"><font color=\"#000000\">")+"</font></td></tr>\n";       ret+="</table></tr></td></table>";    return ret;   }      string available_languages(object id) {    string pl; -  if(id->misc->pref_languages && (pl=id->misc->pref_languages->get_language())) +  if(id && id->misc->pref_languages && (pl=id->misc->pref_languages->get_language()))    if(!has_value(roxen->list_languages(),pl)) pl="en";    else    pl="en";    mapping languages=roxen->language_low(pl)->list_languages();    return mktable( map(sort(indices(languages) & roxen->list_languages()),    lambda(string code) { return ({ code, languages[code] }); } ));   }      // --------------------- Help layout functions --------------------   
Roxen.git/server/base_server/rxmlhelp.pike:221:    foreach(sort(indices(doc)), string tagname)    ret += parse_doc(doc[tagname], tagname, id);    return ret;   }      // --------------------- Find documentation --------------      mapping call_tagdocumentation(RoxenModule o) {    if(!o->tagdocumentation) return 0;    -  string name; -  if(o->is_configuration) -  name="RXML Core"; -  else -  name=o->register_module()[1]; +  string name = o->register_module()[1];       mapping doc;    if(!zero_type(doc=cache_lookup("tagdoc", name)))    return doc;    doc=o->tagdocumentation();    RXMLHELP_WERR(sprintf("tagdocumentation() returned %t.",doc));    if(!doc || !mappingp(doc)) {    cache_set("tagdoc", name, 0);    return 0;    }