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:
parent
5542cc5f16
commit
ebe214d8e4
3 changed files with 6 additions and 2 deletions
|
@ -3,7 +3,8 @@
|
||||||
date_default_timezone_set('America/New_York');
|
date_default_timezone_set('America/New_York');
|
||||||
|
|
||||||
define('PICKLES_PATH', getcwd() . '/../../pickles/');
|
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) {
|
function __autoload($class) {
|
||||||
$file = PICKLES_PATH . 'classes/' . str_replace('_', '/', $class) . '.php';
|
$file = PICKLES_PATH . 'classes/' . str_replace('_', '/', $class) . '.php';
|
||||||
|
|
|
@ -24,7 +24,8 @@ class Config extends Singleton {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function load($site) {
|
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';
|
$file = PICKLES_PATH . 'config/' . $site . '.xml';
|
||||||
|
|
||||||
if (file_exists($file)) {
|
if (file_exists($file)) {
|
||||||
|
|
2
static/css/foundation.css
vendored
2
static/css/foundation.css
vendored
|
@ -8,6 +8,8 @@
|
||||||
.bold { font-weight: bold }
|
.bold { font-weight: bold }
|
||||||
.italic { font-style: italic }
|
.italic { font-style: italic }
|
||||||
.clear { clear: both }
|
.clear { clear: both }
|
||||||
|
.clear-left { clear: left }
|
||||||
|
.clear-right { clear: right }
|
||||||
.underline { text-decoration: underline }
|
.underline { text-decoration: underline }
|
||||||
.float-left { float: left }
|
.float-left { float: left }
|
||||||
.float-right { float: right }
|
.float-right { float: right }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue