Modified: trunk/app/helpers/application_helper.rb (2900 => 2901)
--- trunk/app/helpers/application_helper.rb 2012-01-17 09:58:16 UTC (rev 2900)
+++ trunk/app/helpers/application_helper.rb 2012-01-17 10:14:19 UTC (rev 2901)
@@ -1603,10 +1603,19 @@
layout = Conf.layouts[params["layout_preview"]]
elsif contributable && contributable.contribution
layout = Conf.layouts[contributable.contribution.layout]
+ if layout.nil?
+ logger.error("Missing layout for #{contributable.class.name} #{contributable.id}: "+
+ "#{contributable.contribution.layout}")
+ end
elsif @network
layout = @network.layout
+ if layout.nil?
+ logger.error("Missing layout for Group address@hidden: address@hidden")
+ end
end
+
+
@layout = layout || {"layout" => Conf.page_template, "stylesheets" => [Conf.stylesheet]}
end