]> git.llucax.com Git - software/bife/base.git/blobdiff - examples/bife.php
Removed \n at the end of the file and added a VIM option to keep it as is.
[software/bife/base.git] / examples / bife.php
index cf2b2f612baa853d3a313919405d7f2fd91d7bff..f7ccda5c19f6284f7cab116786d0cc91f496768d 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-// vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker:
+// vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker binary:
 // +--------------------------------------------------------------------+
 // |                       BIFE - Buil It FastEr                        |
 // +--------------------------------------------------------------------+
@@ -39,6 +39,9 @@ require_once 'BIFE/Translate.php';
 $file = (@$_SERVER['PATH_INFO'] and ($_SERVER['PATH_INFO'] != '/'))
     ? ".{$_SERVER['PATH_INFO']}"
     : 'index.xbf';
+if (substr($file, strlen($file)-1) == '/') {
+    $file .= 'index.xbf';
+}
 // }}}
 
 // Looks if we want to show the source {{{
@@ -63,4 +66,4 @@ $parser->__destruct();
 echo $page->render($template);
 // }}}
 
-?>
+?>
\ No newline at end of file