mirror of
https://github.com/discourse/discourse.git
synced 2025-02-26 05:32:08 +08:00
FIX: Should use RAW_TEMPLATES
scope for header customizations
This commit is contained in:
parent
71dd94e92d
commit
ca20560d1f
@ -5,7 +5,7 @@ require_dependency 'distributed_cache'
|
|||||||
class SiteCustomization < ActiveRecord::Base
|
class SiteCustomization < ActiveRecord::Base
|
||||||
ENABLED_KEY = '7e202ef2-56d7-47d5-98d8-a9c8d15e57dd'
|
ENABLED_KEY = '7e202ef2-56d7-47d5-98d8-a9c8d15e57dd'
|
||||||
|
|
||||||
COMPILER_VERSION = 2
|
COMPILER_VERSION = 3
|
||||||
|
|
||||||
@cache = DistributedCache.new('site_customization')
|
@cache = DistributedCache.new('site_customization')
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ PLUGIN_API_JS
|
|||||||
node.replace <<COMPILED
|
node.replace <<COMPILED
|
||||||
<script>
|
<script>
|
||||||
(function() {
|
(function() {
|
||||||
Ember.TEMPLATES[#{name.inspect}] = #{precompiled};
|
Discourse.RAW_TEMPLATES[#{name.inspect}] = #{precompiled};
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
COMPILED
|
COMPILED
|
||||||
|
Loading…
x
Reference in New Issue
Block a user