mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FEATURE: move migrate_to_new_scheme into a background job
- new hidden site setting 'migrate_to_new_scheme' (defaults to false) - new rake tasks to toggle migration to new scheme - FIX: migrate_to_new_scheme also works with CDN - PERF: improve perf of the DbHelper.remap method - REFACTOR: UrlHelper is now a class
This commit is contained in:
parent
74e825fff2
commit
189cb3ff12
19 changed files with 236 additions and 221 deletions
|
@ -7,8 +7,6 @@ require_dependency 'post'
|
|||
module PrettyText
|
||||
|
||||
class Helpers
|
||||
include UrlHelper
|
||||
|
||||
def t(key, opts)
|
||||
key = "js." + key
|
||||
unless opts
|
||||
|
@ -40,7 +38,7 @@ module PrettyText
|
|||
avatar_template = user.avatar_template
|
||||
end
|
||||
|
||||
schemaless absolute avatar_template
|
||||
UrlHelper.schemaless UrlHelper.absolute avatar_template
|
||||
end
|
||||
|
||||
def is_username_valid(username)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue