aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-12-27 21:36:39 +0000
committerplegall <plg@piwigo.org>2011-12-27 21:36:39 +0000
commitbf24a3278c42f2df6e4d88b953390e508a27f9ae (patch)
tree3eca603676132e63cecad6606e91ab992e646f63
parente42f791f52c502c00d095d6bf9aa3e3989423e98 (diff)
feature 2541: fix bug on PHPWG_ROOT_PATH and includes
git-svn-id: http://piwigo.org/svn/trunk@12798 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--i.php2
-rw-r--r--include/functions.inc.php6
-rw-r--r--picture.php2
3 files changed, 5 insertions, 5 deletions
diff --git a/i.php b/i.php
index ff539bdf8..650b5d583 100644
--- a/i.php
+++ b/i.php
@@ -19,7 +19,7 @@
// | USA. |
// +-----------------------------------------------------------------------+
-define('PHPWG_ROOT_PATH','');
+define('PHPWG_ROOT_PATH','./');
// fast bootstrap - no db connection
include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
diff --git a/include/functions.inc.php b/include/functions.inc.php
index f0a83d197..afd3ea702 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -30,9 +30,9 @@ include_once( PHPWG_ROOT_PATH .'include/functions_html.inc.php' );
include_once( PHPWG_ROOT_PATH .'include/functions_tag.inc.php' );
include_once( PHPWG_ROOT_PATH .'include/functions_url.inc.php' );
include_once( PHPWG_ROOT_PATH .'include/functions_plugins.inc.php' );
-include_once( PHPWG_ROOT_PATH .'/include/derivative_params.inc.php');
-include_once( PHPWG_ROOT_PATH .'/include/derivative_std_params.inc.php');
-include_once( PHPWG_ROOT_PATH .'/include/derivative.inc.php');
+include_once( PHPWG_ROOT_PATH .'include/derivative_params.inc.php');
+include_once( PHPWG_ROOT_PATH .'include/derivative_std_params.inc.php');
+include_once( PHPWG_ROOT_PATH .'include/derivative.inc.php');
//----------------------------------------------------------- generic functions
diff --git a/picture.php b/picture.php
index e59eda086..57f4e9fed 100644
--- a/picture.php
+++ b/picture.php
@@ -21,7 +21,7 @@
// | USA. |
// +-----------------------------------------------------------------------+
-define('PHPWG_ROOT_PATH','');
+define('PHPWG_ROOT_PATH','./');
include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
include(PHPWG_ROOT_PATH.'include/section_init.inc.php');
include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');