<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -104,7 +104,7 @@
         }
 
         public function feed_content($post) {
-            return self::image_tag_for($post, 500, 500).&quot;&lt;br /&gt;&lt;br /&gt;&quot;.$post-&gt;caption;
+            return self::image_tag($post, 500, 500).&quot;&lt;br /&gt;&lt;br /&gt;&quot;.$post-&gt;caption;
         }
 
         public function delete_file($post) {
@@ -114,15 +114,19 @@
 
         public function filter_post($post) {
             if ($post-&gt;feather != &quot;photo&quot;) return;
-            $post-&gt;image = $this-&gt;image_tag_for($post);
+            $post-&gt;image = $this-&gt;image_tag($post);
         }
 
-        public function image_tag_for($post, $max_width = 500, $max_height = null, $more_args = &quot;quality=100&quot;) {
+        public function image_tag($post, $max_width = 500, $max_height = null, $more_args = &quot;quality=100&quot;) {
             $filename = $post-&gt;filename;
             $config = Config::current();
-            $source = !empty($post-&gt;source) ? $post-&gt;source : uploaded($filename) ;
             $alt = !empty($post-&gt;alt_text) ? fix($post-&gt;alt_text, true) : $filename ;
-            return '&lt;a href=&quot;'.$source.'&quot;&gt;&lt;img src=&quot;'.$config-&gt;chyrp_url.'/includes/thumb.php?file=..'.$config-&gt;uploads_path.urlencode($filename).'&amp;amp;max_width='.$max_width.'&amp;amp;max_height='.$max_height.'&amp;amp;'.$more_args.'&quot; alt=&quot;'.$alt.'&quot; /&gt;&lt;/a&gt;';
+            return '&lt;img src=&quot;'.$config-&gt;chyrp_url.'/includes/thumb.php?file=..'.$config-&gt;uploads_path.urlencode($filename).'&amp;amp;max_width='.$max_width.'&amp;amp;max_height='.$max_height.'&amp;amp;'.$more_args.'&quot; alt=&quot;'.$alt.'&quot; /&gt;';
+        }
+
+        public function image_link($post, $max_width = 500, $max_height = null, $more_args=&quot;quality=100&quot;) {
+            $source = !empty($post-&gt;source) ? $post-&gt;source : uploaded($post-&gt;filename) ;
+            return '&lt;a href=&quot;'.$source.'&quot;&gt;'.$this-&gt;image_tag($post, $max_width, $max_height, $more_args).'&lt;/a&gt;';
         }
 
         public function add_option($options, $post = null) {
@@ -147,3 +151,4 @@
             return $options;
         }
     }
+</diff>
      <filename>feathers/photo/photo.php</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 {% extends &quot;content/post.twig&quot; %}
 
 {% block content %}
-                        ${ feathers['photo'].image_tag_for(post, 434) }
+                        ${ feathers['photo'].image_link(post, 434) }
                         &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
                         ${ post.caption | read_more }
 {% endblock %}</diff>
      <filename>themes/stardust/feathers/photo.twig</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>08bfcbbd0492940b546a39dbb67bd8ecd3185c70</id>
    </parent>
  </parents>
  <author>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </author>
  <url>http://github.com/vito/chyrp/commit/c3d2b2820162af5a9c669aa12b460c7913d82791</url>
  <id>c3d2b2820162af5a9c669aa12b460c7913d82791</id>
  <committed-date>2008-11-01T22:39:02-07:00</committed-date>
  <authored-date>2008-11-01T22:39:02-07:00</authored-date>
  <message>Split the Photo feather's image_tag_for function into image_link and
image_tag.</message>
  <tree>6d6a8f112c3724ecc9ffe8d0f4b00efeeb2b845b</tree>
  <committer>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </committer>
</commit>
