From e1257f32eec1503c1230c4f4642bf2e0bafb7aa4 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sat, 1 Nov 2014 16:24:36 +0100 Subject: Add permission field to export dialog Add the permission field to the export dialog and to the file description template. - add permission to the template in `description.txt` - add permission to the UI in `MediaWikiExportServiceProvider` - add permission to the data items in `MediaWikiInterface` Fix https://github.com/ireas/LrMediaWiki/issues/27 --- mediawiki.lrdevplugin/MediaWikiInterface.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mediawiki.lrdevplugin/MediaWikiInterface.lua') diff --git a/mediawiki.lrdevplugin/MediaWikiInterface.lua b/mediawiki.lrdevplugin/MediaWikiInterface.lua index be874f0..2473406 100755 --- a/mediawiki.lrdevplugin/MediaWikiInterface.lua +++ b/mediawiki.lrdevplugin/MediaWikiInterface.lua @@ -132,7 +132,7 @@ MediaWikiInterface.uploadFile = function(filePath, description, fileName) end end -MediaWikiInterface.buildFileDescription = function(description, source, timestamp, author, license, templates, other, categories, additionalCategories) +MediaWikiInterface.buildFileDescription = function(description, source, timestamp, author, license, templates, other, categories, additionalCategories, permission) local categoriesString = '' for category in string.gmatch(categories, '[^;]+') do if category then @@ -153,6 +153,7 @@ MediaWikiInterface.buildFileDescription = function(description, source, timestam templates = templates, license = license, categories = categoriesString, + permission = permission, } return MediaWikiUtils.formatString(MediaWikiInterface.fileDescriptionPattern, arguments) end -- cgit v1.2.1