mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] Check for 516 byond:// hrefs (#9624)
Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
65b20a4d5c
commit
a967fb3861
@@ -73,7 +73,7 @@
|
||||
var/output = ""
|
||||
output = span_bold("[checked.name]")
|
||||
while(checked.parent)
|
||||
output = "<a href='?src=\ref[src];target=\ref[checked.parent]'>[checked.parent.name]</a> \> [output]"
|
||||
output = "<a href='byond://?src=\ref[src];target=\ref[checked.parent]'>[checked.parent.name]</a> \> [output]"
|
||||
checked = checked.parent
|
||||
return output
|
||||
|
||||
@@ -129,16 +129,16 @@
|
||||
dat += "<div class='button-group'>"
|
||||
var/datum/lore/codex/category/C = D
|
||||
for(var/datum/lore/codex/child in C.children)
|
||||
dat += "<a href='?src=\ref[src];target=\ref[child]' class='button'>[child.name]</a>"
|
||||
dat += "<a href='byond://?src=\ref[src];target=\ref[child]' class='button'>[child.name]</a>"
|
||||
dat += "</div>"
|
||||
dat += "<hr>"
|
||||
var/list/H = history["[user]"]
|
||||
if(LAZYLEN(H))
|
||||
dat += "<br><a href='?src=\ref[src];go_back=1'>\[Go Back\]</a>"
|
||||
dat += "<br><a href='byond://?src=\ref[src];go_back=1'>\[Go Back\]</a>"
|
||||
if(D.parent)
|
||||
dat += "<br><a href='?src=\ref[src];go_to_parent=1'>\[Go Up\]</a>"
|
||||
dat += "<br><a href='byond://?src=\ref[src];go_to_parent=1'>\[Go Up\]</a>"
|
||||
if(D != home)
|
||||
dat += "<br><a href='?src=\ref[src];go_to_home=1'>\[Go To Home\]</a>"
|
||||
dat += "<br><a href='byond://?src=\ref[src];go_to_home=1'>\[Go To Home\]</a>"
|
||||
dat += "</center></body>"
|
||||
user << browse(dat, "window=the_empress_protects;size=600x550")
|
||||
onclose(user, "the_empress_protects", src)
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
/datum/lore/codex/proc/quick_link(var/target, var/word_to_display)
|
||||
if(isnull(word_to_display))
|
||||
word_to_display = target
|
||||
return "<a href='?src=\ref[src];quick_link=[target]'>[word_to_display]</a>"
|
||||
return "<a href='byond://?src=\ref[src];quick_link=[target]'>[word_to_display]</a>"
|
||||
|
||||
// Can only be found by specifically searching for it.
|
||||
/datum/lore/codex/page/ultimate_answer
|
||||
@@ -63,4 +63,4 @@
|
||||
// Now get our children. If a child is also a category, it will get their children too.
|
||||
for(var/datum/lore/codex/child in children)
|
||||
results += child.index_page()
|
||||
return results
|
||||
return results
|
||||
|
||||
Reference in New Issue
Block a user