Skip to content

Commit

Permalink
Automatically insert current year for TGUI bluescreen (tgstation#72490)
Browse files Browse the repository at this point in the history
## About The Pull Request

Title
## Why It's Good For The Game

Less hassle
## Changelog
  • Loading branch information
ZephyrTFA authored Jan 6, 2023
1 parent 41c7c11 commit ff1e48c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/controllers/subsystem/tgui.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ SUBSYSTEM_DEF(tgui)
var/polyfill = file2text('tgui/public/tgui-polyfill.min.js')
polyfill = "<script>\n[polyfill]\n</script>"
basehtml = replacetextEx(basehtml, "<!-- tgui:inline-polyfill -->", polyfill)
basehtml = replacetextEx(basehtml, "<!-- tgui:nt-copyright -->", "Nanotrasen (c) 2525-[CURRENT_STATION_YEAR]")

/datum/controller/subsystem/tgui/Shutdown()
close_all_uis()
Expand Down
2 changes: 1 addition & 1 deletion tgui/public/tgui.html
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@
</marquee>
<div id="FatalError__stack" class="FatalError__stack"></div>
<div class="FatalError__footer">
Nanotrasen (c) 2525-2563
<!-- tgui:nt-copyright -->
</div>
</div>

Expand Down

0 comments on commit ff1e48c

Please sign in to comment.