aboutsummaryrefslogtreecommitdiff
path: root/mediawiki.lrdevplugin/MediaWikiInterface.lua
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2014-11-01 16:24:36 +0100
committerRobin Krahl <me@robin-krahl.de>2014-11-01 16:25:09 +0100
commite1257f32eec1503c1230c4f4642bf2e0bafb7aa4 (patch)
tree4ef14205a5d68c0c7f4ab220c47ac420bebad1ce /mediawiki.lrdevplugin/MediaWikiInterface.lua
parent6f251c2526004faa55e4bcb9935aad38bfed7a48 (diff)
downloadLrMediaWiki-e1257f32eec1503c1230c4f4642bf2e0bafb7aa4.tar.gz
LrMediaWiki-e1257f32eec1503c1230c4f4642bf2e0bafb7aa4.tar.bz2
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
Diffstat (limited to 'mediawiki.lrdevplugin/MediaWikiInterface.lua')
-rwxr-xr-xmediawiki.lrdevplugin/MediaWikiInterface.lua3
1 files changed, 2 insertions, 1 deletions
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