<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -196,15 +196,17 @@
                     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.
+                    (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);
+                    $route-&gt;try[&quot;view&quot;] = array($post_url_attrs, $original_feed);
             }
         }
 
@@ -371,14 +373,16 @@
          * Function: view
          * Views a post.
          */
-        public function view($attrs = null) {
+        public function view($attrs = null, $original_feed = false) {
             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)
+            if ($post-&gt;no_results) {
+                Route::current()-&gt;feed = $original_feed;
                 return 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;));</diff>
      <filename>includes/controller/Main.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2d34862cfd13d2e80e5071cbf182cfb56ac31cae</id>
    </parent>
  </parents>
  <author>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </author>
  <url>http://github.com/vito/chyrp/commit/8227e88f9aca7b2a8ae48013cd344baf2c54fdae</url>
  <id>8227e88f9aca7b2a8ae48013cd344baf2c54fdae</id>
  <committed-date>2008-11-01T16:43:53-07:00</committed-date>
  <authored-date>2008-11-01T16:43:53-07:00</authored-date>
  <message>When attempting to view a post and the viewing fails, revert the original Route-&gt;feed setting.</message>
  <tree>b01e83478faaca5b568d066e32ddd8b4e67ad17e</tree>
  <committer>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </committer>
</commit>
