svn: /pear2/sandbox/pear2.php.net/trunk/src/PEAR2Web/ Router.php

[email protected] (Brett Bieber)
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
saltybeagle                              Fri, 16 Jul 2010 18:50:34 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=301335

Log:
Since everything is routed to index.php, if none of the routes match make sure we display an error.

Changed paths:
    U   pear2/sandbox/pear2.php.net/trunk/src/PEAR2Web/Router.php

Modified: pear2/sandbox/pear2.php.net/trunk/src/PEAR2Web/Router.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/src/PEAR2Web/Router.php	2010-07-16 17:27:21 UTC (rev 301334)
+++ pear2/sandbox/pear2.php.net/trunk/src/PEAR2Web/Router.php	2010-07-16 18:50:34 UTC (rev 301335)
@@ -93,6 +93,8 @@
                 $options['file'] = $matches['file'];
             }

+        } else {
+            $options['view'] = '404';
         }

         return $options;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.