Module:PageRef: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
m get_file_name now uses alt_file_name optionally
Sur (talk | contribs)
m fix the check for alt_file_name being not nil to also check if its not blank
Line 24: Line 24:
--alt_file_name is optional; if not provided, assume resource_name_localized is correct
--alt_file_name is optional; if not provided, assume resource_name_localized is correct
if alt_file_name ~= nil then
if alt_file_name ~= nil and alt_file_name ~= '' then
file_name = alt_file_name
file_name = alt_file_name
else
else