aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-09-15 18:22:33 +0000
committerz0rglub <z0rglub@piwigo.org>2003-09-15 18:22:33 +0000
commit11b97b761e6e1820c36e39a1ea49ab916d2dccc5 (patch)
tree0cc66702477782e891f9f41eb0ccaf99bfa765cb
parent7f0a4d949c20051b7de62f97a4944e90eb48c859 (diff)
Using PREFIX_INCLUDE to have strictly relative paths
git-svn-id: http://piwigo.org/svn/trunk@114 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/install.php1
-rw-r--r--include/functions.inc.php10
2 files changed, 6 insertions, 5 deletions
diff --git a/admin/install.php b/admin/install.php
index a8f2edbb6..7d514ec4b 100644
--- a/admin/install.php
+++ b/admin/install.php
@@ -18,6 +18,7 @@
***************************************************************************/
//-------------------------------------------------------------------- includes
+define( PREFIX_INCLUDE, '.' );
include( '../include/vtemplate.class.php' );
include( '../include/functions.inc.php' );
//----------------------------------------------------- template initialization
diff --git a/include/functions.inc.php b/include/functions.inc.php
index f62846ce8..6ab5d960c 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -16,11 +16,11 @@
* the Free Software Foundation; *
* *
***************************************************************************/
-include( 'functions_user.inc.php' );
-include( 'functions_session.inc.php' );
-include( 'functions_category.inc.php' );
-include( 'functions_xml.inc.php' );
-include( 'functions_group.inc.php' );
+include( PREFIX_INCLUDE.'./include/functions_user.inc.php' );
+include( PREFIX_INCLUDE.'./include/functions_session.inc.php' );
+include( PREFIX_INCLUDE.'./include/functions_category.inc.php' );
+include( PREFIX_INCLUDE.'./include/functions_xml.inc.php' );
+include( PREFIX_INCLUDE.'./include/functions_group.inc.php' );
//----------------------------------------------------------- generic functions