Skip to content

Commit

Permalink
Fix - Reference SITE_URL when Login and Logout
Browse files Browse the repository at this point in the history
  • Loading branch information
yama committed Mar 11, 2013
1 parent b2811bf commit f089ede
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions manager/includes/initialize.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
}

// automatically assign base_path and base_url
if(!isset($base_path)) $base_path = assign_base_path();
if(!isset($base_url)) $base_url = assign_base_url($base_path);
if(!isset($site_url)) $site_url = assign_site_url($base_url);
$base_path = assign_base_path();
$base_url = assign_base_url($base_path);
$site_url = assign_site_url($base_url);
if(!isset($core_path)) $core_path = "{$base_path}manager/includes/";

if (!defined('MODX_BASE_PATH')) define('MODX_BASE_PATH', $base_path);
Expand Down
2 changes: 1 addition & 1 deletion manager/processors/login.processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@
else header($header);
}
else {
$header = 'Location: '.$modx->config['site_url'].'manager/';
$header = 'Location: '.MODX_SITE_URL.'manager/';
if($_POST['ajax']==1) echo $header;
else header($header);
}
Expand Down
2 changes: 1 addition & 1 deletion manager/processors/logout.processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
));

// show login screen
header('Location: ' . $modx->config['site_url'] . 'manager/');
header('Location: ' . MODX_SITE_URL . 'manager/');

0 comments on commit f089ede

Please sign in to comment.