Skip to content

Commit

Permalink
MDL-18672 and MDL-18679 fixed. DIRECTORY_SEPARATOR / PATH_SEPARATOR m…
Browse files Browse the repository at this point in the history
…ismatch
  • Loading branch information
diml committed Mar 25, 2009
1 parent 3ad2bfe commit d8f209e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion search/add.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion search/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion search/indexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion search/indexersplash.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
2 changes: 1 addition & 1 deletion search/tests/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
2 changes: 1 addition & 1 deletion search/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit d8f209e

Please sign in to comment.