diff options
Diffstat (limited to 'app/helpers/content_helper.rb')
| -rw-r--r-- | app/helpers/content_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb index 57f8c960..9d52c110 100644 --- a/app/helpers/content_helper.rb +++ b/app/helpers/content_helper.rb | |||
| @@ -123,7 +123,7 @@ module ContentHelper | |||
| 123 | sanitize(content, :attributes => cccms_attributes) | 123 | sanitize(content, :attributes => cccms_attributes) |
| 124 | end | 124 | end |
| 125 | 125 | ||
| 126 | rescue | 126 | rescue => e |
| 127 | Rails.logger.error("aggregate shortcode failed on page #{@page&.id}: #{e.class}: #{e.message}") | 127 | Rails.logger.error("aggregate shortcode failed on page #{@page&.id}: #{e.class}: #{e.message}") |
| 128 | fallback = content.sub(/\[aggregate[^\]]*\]/, "") | 128 | fallback = content.sub(/\[aggregate[^\]]*\]/, "") |
| 129 | fallback = sanitize(fallback, :attributes => cccms_attributes) | 129 | fallback = sanitize(fallback, :attributes => cccms_attributes) |
