]> git.quilime.com - plog.git/commitdiff
relative local root
authorGabriel Dunne <gdunne@quilime.com>
Wed, 29 Sep 2010 22:08:40 +0000 (15:08 -0700)
committerGabriel Dunne <gdunne@quilime.com>
Wed, 29 Sep 2010 22:08:40 +0000 (15:08 -0700)
lib/init.php

index 7d5725632c0a5c058ef9880a815a15257ae04c50..78cc78841fc3356466d4feb8155e33bce268949d 100644 (file)
@@ -3,9 +3,9 @@
     putenv("TZ=America/Los_Angeles");
     
        ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . dirname(realpath(__FILE__)));
-
-       define ('SITE_TITLE', 'plog');
-       define ('LOCAL_ROOT', '/home/quilime/plog/plog/');
+       define ('LOCAL_ROOT', join(array_slice(split( "/", dirname(realpath(__FILE__))),0,-1),"/").'/');
+       
+       define ('SITE_TITLE', 'plog');  
        define ('WEB_ROOT', 'http://dev.quilime.com/');
        
        define ('CONTENT_DIR', 'content');