Ported VOREStation/VOREStation#461 - Allow greater customisation of wiki links

This commit is contained in:
Leshana
2018-01-17 16:46:48 -05:00
parent 6fb1b66ced
commit 6bc422ff5e
4 changed files with 18 additions and 2 deletions

View File

@@ -5,8 +5,11 @@
set category = "OOC"
if(config.wikiurl)
if(query)
var/output = config.wikiurl + "/index.php?title=Special%3ASearch&profile=default&search=" + query
src << link(output)
if(config.wikisearchurl)
var/output = replacetext(config.wikisearchurl, "%s", url_encode(query))
src << link(output)
else
src << "<span class='warning'> The wiki search URL is not set in the server configuration.</span>"
else
src << link(config.wikiurl)
else