Skip to content

Commit

Permalink
Adds some hacks to get new local hobbeled together
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobemerick committed Dec 3, 2015
1 parent cb45328 commit fc4fd55
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions public/.htaccess
@@ -0,0 +1,4 @@
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L]
Binary file added public/favicon.ico
Binary file not shown.
4 changes: 4 additions & 0 deletions public/index.php
@@ -0,0 +1,4 @@
<?php

include '../initiator.php';

8 changes: 4 additions & 4 deletions utility/Loader.class.inc.php
Expand Up @@ -11,7 +11,7 @@ final class Loader

private function __construct()
{
$this->is_live = !get_cfg_var('development_mode');
$this->is_live = (substr($_SERVER['HTTP_HOST'], 0, 4) !== 'dev.');
return $this;
}

Expand All @@ -36,12 +36,12 @@ private function get_root()

private function get_delimiter()
{
return ($this->is_live) ? '/' : '\\';
return (true || $this->is_live) ? '/' : '\\';
}

private function check_delimiters($path)
{
return ($this->is_live) ? $path : str_replace('/', '\\', $path);
return (true || $this->is_live) ? $path : str_replace('/', '\\', $path);
}

private static function get_class_name($path)
Expand Down Expand Up @@ -191,4 +191,4 @@ public static function getRootURL($site = '')
return '/';
}

}
}

0 comments on commit fc4fd55

Please sign in to comment.