myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2901] trunk/app/helpers/application_helper.rb: F


From: noreply
Subject: [myexperiment-hackers] [2901] trunk/app/helpers/application_helper.rb: Forgot to add this to the last commit
Date: Tue, 17 Jan 2012 05:14:19 -0500 (EST)

Revision
2901
Author
fbacall
Date
2012-01-17 05:14:19 -0500 (Tue, 17 Jan 2012)

Log Message

Forgot to add this to the last commit

Modified Paths

Diff

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
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]