Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yama committed Jul 10, 2024
1 parent ef2a874 commit 048222d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions manager/includes/document.parser.class.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1128,8 +1128,12 @@ function getSettings()

$this->config['base_path'] = MODX_BASE_PATH;
$this->config['core_path'] = MODX_CORE_PATH;
$this->config['base_url'] = MODX_BASE_URL;
$this->config['site_url'] = MODX_SITE_URL;
if (defined('MODX_BASE_URL')) {
$this->config['base_url'] = MODX_BASE_URL;
}
if (defined('MODX_SITE_URL')) {
$this->config['site_url'] = MODX_SITE_URL;
}
if (!isset($this->config['error_page'])) {
$this->config['error_page'] = $this->config['start_page'];
}
Expand Down

0 comments on commit 048222d

Please sign in to comment.