mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
API: Remove CMS_PATH and CMS_DIR
This commit is contained in:
parent
ce730319ec
commit
ef6db273a1
@ -17,14 +17,10 @@ use SilverStripe\View\Parsers\ShortcodeParser;
|
||||
* - CMS_PATH: Absolute filepath, e.g. "/var/www/my-webroot/cms"
|
||||
*/
|
||||
call_user_func(function () {
|
||||
define('CMS_PATH', __DIR__);
|
||||
|
||||
// Check if CMS is root dir, or subdir
|
||||
if (strcasecmp(__DIR__, BASE_PATH) === 0) {
|
||||
define('CMS_DIR', '');
|
||||
$clientPath = 'client';
|
||||
} else {
|
||||
define('CMS_DIR', basename(__DIR__));
|
||||
$clientPath = basename(__DIR__) . '/client';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user