]> git.llucax.com Git - software/bife/base.git/blobdiff - examples/bife.php
Added a default index.xbf file if URL ends with '/' (points to a directory).
[software/bife/base.git] / examples / bife.php
index cf2b2f612baa853d3a313919405d7f2fd91d7bff..0b18152d8c8cf002de0c1a4f5626fd9875c99791 100644 (file)
@@ -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 {{{