Made path changes to accomodate branching the source code.

git-svn-id: http://svn.cleancode.org/svn/pickles@33 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
Josh Sherman 2008-08-13 02:59:42 +00:00
parent fca966c017
commit 46d4612390
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ date_default_timezone_set('America/New_York');
define('PATH', getcwd() . '/');
function __autoload($class) {
$file = PATH . '../../common/classes/' . str_replace('_', '/', $class) . '.php';
$file = PATH . '../../pickles/classes/' . str_replace('_', '/', $class) . '.php';
if (file_exists($file)) {
require_once $file;

View file

@ -16,7 +16,7 @@ class Config extends Singleton {
public function load($site) {
// @todo no hardcoded paths!
$file = '/var/www/josh/common/config/' . $site . '.xml';
$file = '/var/www/josh/pickles/config/' . $site . '.xml';
if (file_exists($file)) {
$config_array = ArrayUtils::object2array(simplexml_load_file($file));