mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-26 09:05:26 +00:00
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
|