Fix the path in v_xml_cdr_import.php change from mod to app.
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
//check the permission
|
//check the permission
|
||||||
if(defined('STDIN')) {
|
if(defined('STDIN')) {
|
||||||
$document_root = str_replace("\\", "/", $_SERVER["PHP_SELF"]);
|
$document_root = str_replace("\\", "/", $_SERVER["PHP_SELF"]);
|
||||||
preg_match("/^(.*)\/mod\/.*$/", $document_root, $matches);
|
preg_match("/^(.*)\/app\/.*$/", $document_root, $matches);
|
||||||
$document_root = $matches[1];
|
$document_root = $matches[1];
|
||||||
set_include_path($document_root);
|
set_include_path($document_root);
|
||||||
$_SERVER["DOCUMENT_ROOT"] = $document_root;
|
$_SERVER["DOCUMENT_ROOT"] = $document_root;
|
||||||
|
|||||||
Reference in New Issue
Block a user