From 8deeb71274124b2c93a64b49dc3581cee4453cd9 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Mon, 25 Aug 2014 20:07:24 +0200 Subject: Fix #5: Ask for comment for reuploads and #6: Allow new filenames for duplicates. --- mediawiki.lrdevplugin/MediaWikiUtils.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 mediawiki.lrdevplugin/MediaWikiUtils.lua (limited to 'mediawiki.lrdevplugin/MediaWikiUtils.lua') diff --git a/mediawiki.lrdevplugin/MediaWikiUtils.lua b/mediawiki.lrdevplugin/MediaWikiUtils.lua new file mode 100644 index 0000000..6093b8a --- /dev/null +++ b/mediawiki.lrdevplugin/MediaWikiUtils.lua @@ -0,0 +1,22 @@ +-- This file is part of the LrMediaWiki project and distributed under the terms +-- of the MIT license (see LICENSE.txt file in the project root directory or +-- [0]). See [1] for more information about LrMediaWiki. +-- +-- Copyright (C) 2014 by the LrMediaWiki team (see CREDITS.txt file in the +-- project root directory or [2]) +-- +-- [0] +-- [1] +-- [2] + +-- Code status: +-- doc: missing +-- i18n: complete + +local MediaWikiUtils = {} + +MediaWikiUtils.isStringEmpty = function(str) + return str == nil or string.match(str, '^%s*$') ~= nil +end + +return MediaWikiUtils \ No newline at end of file -- cgit v1.2.1