diff options
author | cweiske | 2010-08-21 23:47:56 +0000 |
---|---|---|
committer | cweiske | 2010-08-21 23:47:56 +0000 |
commit | 05832245e26758d5f758038024e86f2082471a10 (patch) | |
tree | 6260e10977bb2650c9358326a2ae5521c8352640 /www/www-header.php | |
parent | d80fcf8de6440fd31f16bb4106fe9e373fa40308 (diff) | |
parent | 25baf614b8b00bb39b9d35cf6ce5ce79f0954aeb (diff) | |
download | scuttle-05832245e26758d5f758038024e86f2082471a10.tar.gz scuttle-05832245e26758d5f758038024e86f2082471a10.zip |
Merge branch 'pearpkg'
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@717 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'www/www-header.php')
-rw-r--r-- | www/www-header.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/www/www-header.php b/www/www-header.php index 0688b71..cc5a5ae 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -15,5 +15,11 @@ * @license GPL http://www.gnu.org/licenses/gpl.html * @link http://sourceforge.net/projects/semanticscuttle */ -require_once dirname(__FILE__) . '/../src/SemanticScuttle/header.php'; +if ('@data_dir@' == '@' . 'data_dir@') { + //non pear-install + require_once dirname(__FILE__) . '/../src/SemanticScuttle/header.php'; +} else { + //pear installation; files are in include path + require_once 'SemanticScuttle/header.php'; +} ?>
\ No newline at end of file |