Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUG Inspect current directory for include_path

This fixes problems where require/include calls rely
on the relative file path, e.g. in i18n.php.

Followup from #904
  • Loading branch information...
commit a5fd3cf9853f7da5879e03cec657b437cf1bea1b 1 parent f861ff9
@chillu chillu authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/Core.php
View
4 core/Core.php
@@ -186,13 +186,13 @@
// INCLUDES
if(defined('CUSTOM_INCLUDE_PATH')) {
- $includePath = CUSTOM_INCLUDE_PATH . PATH_SEPARATOR
+ $includePath = '.' . PATH_SEPARATOR . CUSTOM_INCLUDE_PATH . PATH_SEPARATOR
. FRAMEWORK_PATH . PATH_SEPARATOR
. FRAMEWORK_PATH . '/parsers' . PATH_SEPARATOR
. THIRDPARTY_PATH . PATH_SEPARATOR
. get_include_path();
} else {
- $includePath = FRAMEWORK_PATH . PATH_SEPARATOR
+ $includePath = '.' . PATH_SEPARATOR . FRAMEWORK_PATH . PATH_SEPARATOR
. FRAMEWORK_PATH . '/parsers' . PATH_SEPARATOR
. THIRDPARTY_PATH . PATH_SEPARATOR
. get_include_path();
Please sign in to comment.
Something went wrong with that request. Please try again.