JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform: fix download_tar() (stylus not less)
[wfpl.git] / run.php
diff --git a/run.php b/run.php
index 1561446..a310e3f 100644 (file)
--- a/run.php
+++ b/run.php
@@ -72,7 +72,7 @@ function run_php($dest = false) {
        } else { # no dest arg
                $basename = $_SERVER['REDIRECT_URL'];
                $basename = ereg_replace('.*/', '', $basename);
-               $basename = ereg_replace('\.html$', '', $basename);
+               $basename = ereg_replace('\.html?$', '', $basename);
                if($basename == '') {
                        $basename = 'index';
                }
@@ -90,9 +90,6 @@ function run_php($dest = false) {
                $GLOBALS['wfpl_main_template'] = new tem();
                $GLOBALS['wfpl_main_template']->load("template.html");
                $GLOBALS['wfpl_main_template']->set('$basename', $basename);
-               if(preg_match('/([.]l(ocal)?$)|^[0-9.]*$/', $_SERVER['HTTP_HOST'])) {
-                       $GLOBALS['wfpl_main_template']->set('$running_locally');
-               }
        }
 
        # cms_get can return one of: