Skip to content

Commit

Permalink
- Corrected misspelling
Browse files Browse the repository at this point in the history
- Moved definition of DIRECTORY_SEPARATOR to core.php (since it was required before php_api.php could be loaded)


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1775 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Jeroen Latour committed Jan 25, 2003
1 parent 97f3c12 commit 10b23d4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
15 changes: 12 additions & 3 deletions core.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: core.php,v 1.10 2003-01-25 20:50:23 jlatour Exp $
# $Id: core.php,v 1.11 2003-01-25 21:29:20 jlatour Exp $
# --------------------------------------------------------

###########################################################################
Expand Down Expand Up @@ -38,8 +38,17 @@
require_once( $t_local_config );
}

# Attempt to find the location of the core files.
$t_core_path = dirname(__FILE__).DIRECTORY_SEPERATOR.'core';
# Directory separator was introduced in PHP 4.0.6
if ( !defined( 'DIRECTORY_SEPARATOR' ) ) {
if (substr(php_uname(), 0, 7) == 'Windows') {
define('DIRECTORY_SEPARATOR', '\\');
} else {
define('DIRECTORY_SEPARATOR', '/');
}
}

# Attempt to find the location of the core files.
$t_core_path = dirname(__FILE__).DIRECTORY_SEPARATOR.'core';
if (isset($GLOBALS['g_core_path']) && !isset( $HTTP_GET_VARS['g_core_path'] ) && !isset( $HTTP_POST_VARS['g_core_path'] ) && !isset( $HTTP_COOKIE_VARS['g_core_path'] ) ) {
$t_core_path = $g_core_path;
}
Expand Down
15 changes: 1 addition & 14 deletions core/php_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: php_api.php,v 1.6 2003-01-03 03:24:25 jfitzell Exp $
# $Id: php_api.php,v 1.7 2003-01-25 21:29:20 jlatour Exp $
# --------------------------------------------------------

###########################################################################
Expand Down Expand Up @@ -66,17 +66,4 @@ function php_version_at_least( $p_version_string ) {
$_REQUEST[$key] = $value;
}
}

########################
# PHP Constants
########################

# Directory separator was introduced in PHP 4.0.6
if ( !defined( 'DIRECTORY_SEPARATOR' ) ) {
if (substr(php_uname(), 0, 7) == 'Windows') {
define('DIRECTORY_SEPARATOR', '\\');
} else {
define('DIRECTORY_SEPARATOR', '/');
}
}
?>

0 comments on commit 10b23d4

Please sign in to comment.