mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Bugtracker #3778 - per Streaky, make sure e_DOCROOT always defined
This commit is contained in:
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/e107_class.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/e107_class.php,v $
|
||||||
| $Revision: 1.3 $
|
| $Revision: 1.4 $
|
||||||
| $Date: 2007-02-18 02:22:29 $
|
| $Date: 2007-02-24 18:45:31 $
|
||||||
| $Author: e107coders $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -106,7 +106,14 @@ class e107{
|
|||||||
define("e_LANGUAGEDIR_ABS", e_HTTP.$LANGUAGES_DIRECTORY);
|
define("e_LANGUAGEDIR_ABS", e_HTTP.$LANGUAGES_DIRECTORY);
|
||||||
|
|
||||||
define("e_DOCS", e_BASE.$HELP_DIRECTORY);
|
define("e_DOCS", e_BASE.$HELP_DIRECTORY);
|
||||||
define("e_DOCROOT", $_SERVER['DOCUMENT_ROOT']."/");
|
if(isset($_SERVER['DOCUMENT_ROOT']))
|
||||||
|
{
|
||||||
|
define("e_DOCROOT", $_SERVER['DOCUMENT_ROOT']."/");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
define("e_DOCROOT", false);
|
||||||
|
}
|
||||||
define("e_DOCS_ABS", e_HTTP.$HELP_DIRECTORY);
|
define("e_DOCS_ABS", e_HTTP.$HELP_DIRECTORY);
|
||||||
|
|
||||||
if($CACHE_DIRECTORY) {
|
if($CACHE_DIRECTORY) {
|
||||||
|
Reference in New Issue
Block a user