mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-17 21:04:11 +00:00
47cfaf62bd
Did some clean-up for Cucumber tags and code conventions. Change-Id: Ifc954f60a50c41211043493fd64c2dcfa64848ff Mingle: Multimedia card #100 Bug: 60049
11 lines
227 B
Ruby
11 lines
227 B
Ruby
module URL
|
|
def self.url(name)
|
|
if ENV["MEDIAWIKI_URL"]
|
|
mediawiki_url = ENV["MEDIAWIKI_URL"]
|
|
else
|
|
mediawiki_url = "http://en.wikipedia.beta.wmflabs.org/wiki/"
|
|
end
|
|
"#{mediawiki_url}#{name}"
|
|
end
|
|
end
|