Branch: Tag:

2018-03-12

2018-03-12 08:13:23 by Pontus Östlund <ponost@roxen.com>

Implemented the new MODULE_DEPRECATED | MODULE_DEPRECATED_SOFT type flags.

284:    roxenloader.pop_compile_error_handler();       foreach( mods, ModuleInfo m ) { -  if (m->deprecated && !show_deprecated(id)) { +  if ((m->type & (MODULE_DEPRECATED | MODULE_DEPRECATED_SOFT)) && +  !show_deprecated(id)) +  {    mods -= ({ m });    }    if( module_nomore( m->sname, m, conf ) ) {
458:    "doc" : doc,    "load_path" : LOCALE(266, "Will be loaded from: ")+module->filename,    "faster" : faster, -  "deprecated" : module->deprecated +  "deprecated" : (module->type & (MODULE_DEPRECATED | MODULE_DEPRECATED_SOFT))    ]);       return Roxen.render_mustache(tmpl, ctx);
707:    bool deprecated = show_deprecated(id);       mods = filter(mods, lambda (ModuleInfo m) { -  if (m->deprecated && !deprecated) { +  if ((m->type & (MODULE_DEPRECATED | MODULE_DEPRECATED_SOFT)) && +  !deprecated) +  {    return 0;    }