Made some changes to accomodate a new server.

git-svn-id: http://svn.cleancode.org/svn/pickles@49 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
Josh Sherman 2008-09-18 04:38:02 +00:00
parent 5542cc5f16
commit ebe214d8e4
3 changed files with 6 additions and 2 deletions

View file

@ -3,7 +3,8 @@
date_default_timezone_set('America/New_York');
define('PICKLES_PATH', getcwd() . '/../../pickles/');
define('TEMP_PATH', '/tmp/smarty/' . $_SERVER['SERVER_NAME'] . '/');
//define('TEMP_PATH', '/tmp/smarty/' . $_SERVER['SERVER_NAME'] . '/');
define('TEMP_PATH', '/home/41938/data/tmp/smarty/' . $_SERVER['SERVER_NAME'] . '/');
function __autoload($class) {
$file = PICKLES_PATH . 'classes/' . str_replace('_', '/', $class) . '.php';

View file

@ -24,7 +24,8 @@ class Config extends Singleton {
}
public function load($site) {
if (!isset($this->file) || filemtime($this->file) > $this->timestamp) {
// @todo getting warnings on the filemtime
if (!isset($this->file) || @filemtime($this->file) > $this->timestamp) {
$file = PICKLES_PATH . 'config/' . $site . '.xml';
if (file_exists($file)) {

View file

@ -8,6 +8,8 @@
.bold { font-weight: bold }
.italic { font-style: italic }
.clear { clear: both }
.clear-left { clear: left }
.clear-right { clear: right }
.underline { text-decoration: underline }
.float-left { float: left }
.float-right { float: right }