<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -196,17 +196,10 @@
                     if ($parameter[0] == &quot;(&quot;)
                         $post_url_attrs[rtrim(ltrim($parameter, &quot;(&quot;), &quot;)&quot;)] = $args[$index];
 
-                $original_feed = $this-&gt;feed;
-
-                if ((oneof(@$post_url_attrs[&quot;url&quot;], @$post_url_attrs[&quot;clean&quot;]) == &quot;feed&quot;) and # do some checking to see if they're trying
-                    (count(explode(&quot;/&quot;, trim($post_url, &quot;/&quot;))) &gt; count($args) or              # to view the post or the post's feed.
-                     end($args) != &quot;feed&quot;))
-                    $this-&gt;feed = false;
-
                 if ($return_post)
                     return Post::from_url($post_url_attrs);
                 else
-                    $route-&gt;try[&quot;view&quot;] = array($post_url_attrs, $original_feed);
+                    $route-&gt;try[&quot;view&quot;] = array($post_url_attrs, $args);
             }
         }
 
@@ -373,16 +366,19 @@
          * Function: view
          * Views a post.
          */
-        public function view($attrs = null, $original_feed = false) {
+        public function view($attrs = null, $args = array()) {
             if (isset($attrs))
                 $post = Post::from_url($attrs, array(&quot;drafts&quot; =&gt; true));
             else
                 $post = new Post(array(&quot;url&quot; =&gt; @$_GET['url']));
 
-            if ($post-&gt;no_results) {
-                Route::current()-&gt;feed = $original_feed;
+            if ($post-&gt;no_results)
                 return false;
-            }
+
+            if ((oneof(@$attrs[&quot;url&quot;], @$attrs[&quot;clean&quot;]) == &quot;feed&quot;) and # do some checking to see if they're trying
+                (count(explode(&quot;/&quot;, trim($post_url, &quot;/&quot;))) &gt; count($args) or              # to view the post or the post's feed.
+                 end($args) != &quot;feed&quot;))
+                $this-&gt;feed = false;
 
             if (!$post-&gt;theme_exists())
                 error(__(&quot;Error&quot;), __(&quot;The feather theme file for this post does not exist. The post cannot be displayed.&quot;));
@@ -736,3 +732,4 @@
             return $instance = (empty($instance)) ? new self() : $instance ;
         }
     }
+</diff>
      <filename>includes/controller/Main.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8227e88f9aca7b2a8ae48013cd344baf2c54fdae</id>
    </parent>
  </parents>
  <author>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </author>
  <url>http://github.com/vito/chyrp/commit/08bfcbbd0492940b546a39dbb67bd8ecd3185c70</url>
  <id>08bfcbbd0492940b546a39dbb67bd8ecd3185c70</id>
  <committed-date>2008-11-01T17:24:42-07:00</committed-date>
  <authored-date>2008-11-01T17:24:42-07:00</authored-date>
  <message>Moved the Route-&gt;feed changing stuff to the &quot;view&quot; action altogether.</message>
  <tree>f4b8a17bf0286c476c86bc734abdda98f7f69b4e</tree>
  <committer>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </committer>
</commit>
