Roxen.git/
server/
config_interface/
sites/
add_module.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2018-03-12
2018-03-12 08:13:23 by Pontus Östlund <ponost@roxen.com>
60ecb815349bfb816423239dcd25b6211460fb8c (
11
lines) (+
8
/-
3
)
[
Show
|
Annotate
]
Branch:
ponost/admin-if-17
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; }