Skip to content

Commit

Permalink
Use correct DOCROOT path in bootstrap, fixes #3663
Browse files Browse the repository at this point in the history
  • Loading branch information
BRMatt committed Jun 10, 2011
1 parent 62b9a05 commit 8acd875
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions bootstrap.php
Expand Up @@ -30,6 +30,15 @@
*/
define('EXT', '.php');

/**
* Set the path to the document root
*
* This assumes that this file is stored 2 levels below the DOCROOT, if you move
* this bootstrap file somewhere else then you'll need to modify this value to
* compensate.
*/
define('DOCROOT', realpath(dirname(__FILE__).'/../../').DIRECTORY_SEPARATOR);

/**
* Set the PHP error reporting level. If you set this in php.ini, you remove this.
* @see http://php.net/error_reporting
Expand All @@ -52,9 +61,6 @@
* @see http://kohanaframework.org/guide/using.configuration
*/

// Set the full path to the docroot
define('DOCROOT', realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR);

// Make the application relative to the docroot
if ( ! is_dir($application) AND is_dir(DOCROOT.$application))
{
Expand Down

0 comments on commit 8acd875

Please sign in to comment.