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:
parent
fca966c017
commit
46d4612390
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ date_default_timezone_set('America/New_York');
|
||||||
define('PATH', getcwd() . '/');
|
define('PATH', getcwd() . '/');
|
||||||
|
|
||||||
function __autoload($class) {
|
function __autoload($class) {
|
||||||
$file = PATH . '../../common/classes/' . str_replace('_', '/', $class) . '.php';
|
$file = PATH . '../../pickles/classes/' . str_replace('_', '/', $class) . '.php';
|
||||||
|
|
||||||
if (file_exists($file)) {
|
if (file_exists($file)) {
|
||||||
require_once $file;
|
require_once $file;
|
||||||
|
|
|
@ -16,7 +16,7 @@ class Config extends Singleton {
|
||||||
|
|
||||||
public function load($site) {
|
public function load($site) {
|
||||||
// @todo no hardcoded paths!
|
// @todo no hardcoded paths!
|
||||||
$file = '/var/www/josh/common/config/' . $site . '.xml';
|
$file = '/var/www/josh/pickles/config/' . $site . '.xml';
|
||||||
|
|
||||||
if (file_exists($file)) {
|
if (file_exists($file)) {
|
||||||
$config_array = ArrayUtils::object2array(simplexml_load_file($file));
|
$config_array = ArrayUtils::object2array(simplexml_load_file($file));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue