diff --git a/search/add.php b/search/add.php index 8871ae6bedbb5..c919aefc8dca6 100644 --- a/search/add.php +++ b/search/add.php @@ -30,7 +30,7 @@ global $DB; /// makes inclusions of the Zend Engine more reliable - ini_set('include_path', $CFG->dirroot.PATH_SEPARATOR.'search'.PATH_SEPARATOR.ini_get('include_path')); + ini_set('include_path', $CFG->dirroot.DIRECTORY_SEPARATOR.'search'.PATH_SEPARATOR.ini_get('include_path')); require_once($CFG->dirroot.'/search/lib.php'); require_once($CFG->dirroot.'/search/indexlib.php'); diff --git a/search/delete.php b/search/delete.php index a6883c1c57860..b747e776c5230 100644 --- a/search/delete.php +++ b/search/delete.php @@ -28,7 +28,7 @@ global $DB; /// makes inclusions of the Zend Engine more reliable - ini_set('include_path', $CFG->dirroot.PATH_SEPARATOR.'search'.PATH_SEPARATOR.ini_get('include_path')); + ini_set('include_path', $CFG->dirroot.DIRECTORY_SEPARATOR.'search'.PATH_SEPARATOR.ini_get('include_path')); require_once($CFG->dirroot.'/search/lib.php'); require_once($CFG->dirroot.'/search/indexlib.php'); diff --git a/search/indexer.php b/search/indexer.php index 2cbf011ae9f04..4b8efc08906e2 100644 --- a/search/indexer.php +++ b/search/indexer.php @@ -37,7 +37,7 @@ require_once('../config.php'); require_once($CFG->dirroot.'/search/lib.php'); - ini_set('include_path', $CFG->dirroot.PATH_SEPARATOR.'search'.PATH_SEPARATOR.ini_get('include_path')); + ini_set('include_path', $CFG->dirroot.DIRECTORY_SEPARATOR.'search'.PATH_SEPARATOR.ini_get('include_path')); /// only administrators can index the moodle installation, because access to all pages is required diff --git a/search/indexersplash.php b/search/indexersplash.php index 37ac4e632151a..8f80e69156874 100644 --- a/search/indexersplash.php +++ b/search/indexersplash.php @@ -21,7 +21,7 @@ require_once('../config.php'); /// makes inclusions of the Zend Engine more reliable - ini_set('include_path', $CFG->dirroot.PATH_SEPARATOR.'search'.PATH_SEPARATOR.ini_get('include_path')); + ini_set('include_path', $CFG->dirroot.DIRECTORY_SEPARATOR.'search'.PATH_SEPARATOR.ini_get('include_path')); require_once($CFG->dirroot.'/search/lib.php'); diff --git a/search/tests/index.php b/search/tests/index.php index 541f476796a01..625d3708f2686 100644 --- a/search/tests/index.php +++ b/search/tests/index.php @@ -24,7 +24,7 @@ require_once('../../config.php'); /// makes inclusions of the Zend Engine more reliable - ini_set('include_path', $CFG->dirroot.PATH_SEPARATOR.'search'.PATH_SEPARATOR.ini_get('include_path')); + ini_set('include_path', $CFG->dirroot.DIRECTORY_SEPARATOR.'search'.PATH_SEPARATOR.ini_get('include_path')); require_once($CFG->dirroot.'/search/lib.php'); diff --git a/search/update.php b/search/update.php index 2b51b9581b620..0e55bab3ad664 100644 --- a/search/update.php +++ b/search/update.php @@ -28,7 +28,7 @@ global $DB; /// makes inclusions of the Zend Engine more reliable - ini_set('include_path', $CFG->dirroot.PATH_SEPARATOR.'search'.PATH_SEPARATOR.ini_get('include_path')); + ini_set('include_path', $CFG->dirroot.DIRECTORY_SEPARATOR.'search'.PATH_SEPARATOR.ini_get('include_path')); require_once($CFG->dirroot.'/search/lib.php'); require_once($CFG->dirroot.'/search/indexlib.php');