Fixed bug: Web services in CLI mode failing with an error when attempting to include APPROOT

SVN:trunk[1243]
This commit is contained in:
Romain Quetiez
2011-04-28 07:28:40 +00:00
parent d45149a327
commit 374858ef73
4 changed files with 16 additions and 6 deletions

View File

@@ -23,7 +23,8 @@
* @license http://www.opensource.org/licenses/gpl-3.0.html LGPL
*/
require_once('../approot.inc.php');
if (!defined('__DIR__')) define('__DIR__', dirname(__FILE__));
require_once(__DIR__.'/../approot.inc.php');
require_once(APPROOT.'/application/application.inc.php');
require_once(APPROOT.'/application/nicewebpage.class.inc.php');
require_once(APPROOT.'/application/csvpage.class.inc.php');