Diff for Metafox/subst.inc.php between version 1.61 and 1.62
| version 1.61, 2014/05/06 13:49:55 |
version 1.62, 2014/10/14 11:49:01 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/subst.inc.php,v 1.60 2013-09-03 15:34:47 igor Exp $ */ |
/* $Platon: Metafox/subst.inc.php,v 1.61 2014-05-06 13:49:55 igor Exp $ */ |
| |
|
| require_once 'cfgldr.inc.php'; |
require_once 'cfgldr.inc.php'; |
| require_once 'error.inc.php'; |
require_once 'error.inc.php'; |
| Line 135 if (strlen($ezin_cfg['http_host_redirect |
|
| Line 135 if (strlen($ezin_cfg['http_host_redirect |
|
| if (! isset($ezin_redirect_ar['path'])) { |
if (! isset($ezin_redirect_ar['path'])) { |
| $ezin_redirect_ar['path'] = '/'; |
$ezin_redirect_ar['path'] = '/'; |
| } |
} |
| $ezin_redirect_ar['path'] .= Platon::str_replace_prefix( |
$append_path = Platon::str_replace_prefix( |
| Platon::append_slash($ezin_cfg['url']), '', $_SERVER['REQUEST_URI']); |
Platon::append_slash($ezin_cfg['url']), '', $_SERVER['REQUEST_URI']); |
| |
$ezin_redirect_ar['path'] .= ($append_path == '/' && substr($ezin_redirect_ar['path'], -1) == '/') |
| |
? '' |
| |
: $append_path; |
| Platon::redirect(Platon::glue_url($ezin_redirect_ar)); |
Platon::redirect(Platon::glue_url($ezin_redirect_ar)); |
| } |
} |
| } |
} |
Platon Group <platon@platon.org> http://platon.org/
|
|