aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2010-08-22 01:26:30 +0200
committerChristian Weiske <cweiske@cweiske.de>2010-08-22 01:26:30 +0200
commitf93aa6c7aceeb7ed9ea899cfe232b3bd097b2422 (patch)
tree8ea92787b9b24f7345db8a8ca33f4384aefd0a02 /www
parentaba3327b5b8beffea75687a11ccf034f5e0d0969 (diff)
downloadsemanticscuttle-f93aa6c7aceeb7ed9ea899cfe232b3bd097b2422.tar.gz
semanticscuttle-f93aa6c7aceeb7ed9ea899cfe232b3bd097b2422.tar.bz2
make files use pear directories
Diffstat (limited to 'www')
-rw-r--r--www/www-header.php8
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