|
@@ -1,7 +1,7 @@
|
|
<?php
|
|
<?php
|
|
/*
|
|
/*
|
|
FusionPBX
|
|
FusionPBX
|
|
- Version: MPL 1.1
|
|
|
|
|
|
+ Version: MPL 1.1
|
|
|
|
|
|
The contents of this file are subject to the Mozilla Public License Version
|
|
The contents of this file are subject to the Mozilla Public License Version
|
|
1.1 (the "License"); you may not use this file except in compliance with
|
|
1.1 (the "License"); you may not use this file except in compliance with
|
|
@@ -21,7 +21,6 @@
|
|
the Initial Developer. All Rights Reserved.
|
|
the Initial Developer. All Rights Reserved.
|
|
|
|
|
|
Contributor(s):
|
|
Contributor(s):
|
|
- Ken Rice <[email protected]>
|
|
|
|
Mark J Crane <[email protected]>
|
|
Mark J Crane <[email protected]>
|
|
*/
|
|
*/
|
|
|
|
|
|
@@ -40,11 +39,11 @@
|
|
|
|
|
|
// if the project directory exists then add it to the include path otherwise add the document root to the include path
|
|
// if the project directory exists then add it to the include path otherwise add the document root to the include path
|
|
if (is_dir($_SERVER["DOCUMENT_ROOT"].'/fusionpbx')){
|
|
if (is_dir($_SERVER["DOCUMENT_ROOT"].'/fusionpbx')){
|
|
- define('PROJECT_PATH', '/fusionpbx');
|
|
|
|
|
|
+ if(!defined('PROJECT_PATH')) { define('PROJECT_PATH', '/fusionpbx'); }
|
|
set_include_path( get_include_path() . PATH_SEPARATOR . $_SERVER["DOCUMENT_ROOT"].'/fusionpbx' );
|
|
set_include_path( get_include_path() . PATH_SEPARATOR . $_SERVER["DOCUMENT_ROOT"].'/fusionpbx' );
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
- define('PROJECT_PATH', '');
|
|
|
|
|
|
+ if(!defined('PROJECT_PATH')) { define('PROJECT_PATH', ''); }
|
|
set_include_path( get_include_path() . PATH_SEPARATOR . $_SERVER['DOCUMENT_ROOT'] );
|
|
set_include_path( get_include_path() . PATH_SEPARATOR . $_SERVER['DOCUMENT_ROOT'] );
|
|
}
|
|
}
|
|
|
|
|