<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -19,7 +19,7 @@ class Webbastic::Widget
   # Add :dirty header to only re-generate this page
   # after :update, :page_is_dirty
   
-  def initialize(args)
+  def initialize(args = {})
     super args
     load_module
   end</diff>
      <filename>app/models/widget.rb</filename>
    </modified>
    <modified>
      <diff>@@ -17,12 +17,15 @@ module Webbastic
         backContent = &quot;&quot;
         # Widget has gallery_id header, just display this gallery
         if gallery_id = self.header_content(:gallery_id)
+          
           log &quot;generate widget_content for #{self.page.name} with gallery #{gallery_id}&quot;
-          gallery = MediaRocket::Gallery.first(:id =&gt; gallery_id)
-          if gallery
-          galName = (gallery.ref_title || gallery.name)
-          backContent += &quot;&lt;div class='gallery_title'&gt;&quot; + galName[0..20] + &quot;&lt;/div&gt;&quot;
-          backContent += list_html gallery.original_medias
+          
+          if gallery = MediaRocket::Gallery.first(:id =&gt; gallery_id)
+            
+            galName = (gallery.ref_title || gallery.name)
+            backContent += &quot;&lt;div class='gallery_title'&gt;&quot; + galName[0..20] + &quot;&lt;/div&gt;&quot;
+            backContent += list_html gallery.original_medias
+            
           end
         end
         backContent</diff>
      <filename>lib/webbastic/widget_modules/media_list.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a77cc91702eff5bf3aa43c97a1b49ebee07a15ec</id>
    </parent>
  </parents>
  <author>
    <name>Alexandre Girard</name>
    <email>alx.girard@gmail.com</email>
  </author>
  <url>http://github.com/alx/webbastic/commit/402e25a5d5ce446ed9a95e295bb3a6630b276331</url>
  <id>402e25a5d5ce446ed9a95e295bb3a6630b276331</id>
  <committed-date>2009-05-30T07:26:15-07:00</committed-date>
  <authored-date>2009-05-30T07:26:15-07:00</authored-date>
  <message>correct widget initialize</message>
  <tree>5a39cd33fb8e10bdba454085fc84c3b6fa79bd9d</tree>
  <committer>
    <name>Alexandre Girard</name>
    <email>alx.girard@gmail.com</email>
  </committer>
</commit>
