diff --git a/index.php b/index.php index bc629d8..71c3249 100644 --- a/index.php +++ b/index.php @@ -56,15 +56,15 @@ error_reporting(E_ALL | E_STRICT); // Set the full path to the docroot define('DOCROOT', realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR); -// Make the application relative to the docroot +// Make the application relative to the docroot, for symlink'd index.php if ( ! is_dir($application) AND is_dir(DOCROOT.$application)) $application = DOCROOT.$application; -// Make the modules relative to the docroot +// Make the modules relative to the docroot, for symlink'd index.php if ( ! is_dir($modules) AND is_dir(DOCROOT.$modules)) $modules = DOCROOT.$modules; -// Make the system relative to the docroot +// Make the system relative to the docroot, for symlink'd index.php if ( ! is_dir($system) AND is_dir(DOCROOT.$system)) $system = DOCROOT.$system;