mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add site settings for company name and domain, and use them in the Terms of Service
This commit is contained in:
@@ -9,11 +9,6 @@ class StaticController < ApplicationController
|
||||
# Don't allow paths like ".." or "/" or anything hacky like that
|
||||
page.gsub!(/[^a-z0-9\_\-]/, '')
|
||||
|
||||
# Some variables to substitute
|
||||
@company_shortname = 'CDCK'
|
||||
@company_fullname = 'Civilized Discourse Construction Kit, Inc.'
|
||||
@company_domain = 'discourse.org'
|
||||
|
||||
file = "static/#{page}.html"
|
||||
templates = lookup_context.find_all(file)
|
||||
if templates.any?
|
||||
|
||||
Reference in New Issue
Block a user