MrBaseball34 Posted April 8, 2011 Share Posted April 8, 2011 If we are not using a module, is it safe to say that we can remove the code for the module to save hosting space? Link to comment Share on other sites More sharing options...
shokinro Posted April 8, 2011 Share Posted April 8, 2011 If we assume that all modules are implemented correctly and well-contained, then I think it is safe.But if there the module not well self-contained, then some error may occur if you remove it.Here is just one example, assume a module modified some core file and have a include or require statement to include a module file and some logic. if the "include" or "require" in embraced by following code, then it is safe. if(Module:isInstalled('somemodulename')) { include ....... .... } Otherwise, it is not. Even you uninstall the module, if you remove the module folder, error will occurs. Link to comment Share on other sites More sharing options...
Recommended Posts