Skip to content

Commit

Permalink
Fix TTW Bundle compilation broken.
Browse files Browse the repository at this point in the history
Fixes #2969
  • Loading branch information
thet committed Oct 26, 2019
1 parent 58881a4 commit 9d305f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Products/CMFPlone/controlpanel/browser/resourceregistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,14 +409,8 @@ def config(self):
base_url = self.context.absolute_url()
resources = self.get_resources()

try:
less_url = self.registry['plone.resources.lessc']
except KeyError:
less_url = '++plone++static/components/less/dist/less-1.7.4.min.js'
try:
rjs_url = resources['rjs'].js
except KeyError:
rjs_url = '++plone++static/components/r.js/dist/r.js'
less_url = self.registry['plone.resources.lessc']
rjs_url = self.registry['plone.resources.rjs']

data = {
'development': self.registry['plone.resources.development'],
Expand Down
2 changes: 2 additions & 0 deletions news/2969.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix TTW Bundle compilation broken.
[thet]

0 comments on commit 9d305f4

Please sign in to comment.