aboutsummaryrefslogtreecommitdiff
path: root/mediawiki.lrdevplugin/MediaWikiUtils.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mediawiki.lrdevplugin/MediaWikiUtils.lua')
-rw-r--r--mediawiki.lrdevplugin/MediaWikiUtils.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/mediawiki.lrdevplugin/MediaWikiUtils.lua b/mediawiki.lrdevplugin/MediaWikiUtils.lua
index 6727e3b..abde828 100644
--- a/mediawiki.lrdevplugin/MediaWikiUtils.lua
+++ b/mediawiki.lrdevplugin/MediaWikiUtils.lua
@@ -42,7 +42,22 @@ MediaWikiUtils.getVersionString = function()
return str
end
+-- configuration
+
+MediaWikiUtils.getCreateSnapshots = function()
+ return prefs.create_snapshot or false
+end
+
+MediaWikiUtils.setCreateSnapshots = function(create_snapshot)
+ prefs.create_snapshot = create_snapshot
+end
+
+MediaWikiUtils.getLogging = function()
+ return prefs.logging or false
+end
+
MediaWikiUtils.setLogging = function(logging)
+ prefs.logging = logging
if logging then
myLogger:enable('logfile')
else