Changes

no edit summary
Line 25: Line 25:     
function CategoryTree:_tostring()
 
function CategoryTree:_tostring()
return mw.getCurrentFrame():preprocess(format(self._template, self))
+
return (mw.getCurrentFrame() or require('Module:ConsoleFrame')):preprocess(format(self._template, self))
 
end
 
end
    
return CategoryTree
 
return CategoryTree
Anonymous user