Created
January 21, 2017 14:41
-
-
Save zhabinka/25dbe371cbd4c6fbe1e142dcc1346c10 to your computer and use it in GitHub Desktop.
Замена стандартных файлов /core/config/config.inc.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
define('MODX_CORE_PATH', 'c:/www/site.ru/core/'); | |
define('MODX_CONFIG_KEY', 'config'); | |
*/ | |
$rootPath = $_SERVER['DOCUMENT_ROOT']; | |
if ($rootPath[strlen($rootPath) - 1] != '/') { | |
$rootPath = $rootPath . '/'; } | |
define('MODX_CORE_PATH', $rootPath . 'core/'); | |
define('MODX_CONFIG_KEY', 'config'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment