|
|
|
@ -410,6 +410,9 @@ function get_config_param($param, $updatePath = '') { |
|
|
|
if (empty($updatePath) && !empty($_POST['updatePath'])) { |
|
|
|
if (empty($updatePath) && !empty($_POST['updatePath'])) { |
|
|
|
$updatePath = $_POST['updatePath']; |
|
|
|
$updatePath = $_POST['updatePath']; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (empty($updatePath)) { |
|
|
|
|
|
|
|
$updatePath = api_get_path(SYS_PATH); |
|
|
|
|
|
|
|
} |
|
|
|
$updatePath = api_add_trailing_slash(str_replace('\\', '/', realpath($updatePath))); |
|
|
|
$updatePath = api_add_trailing_slash(str_replace('\\', '/', realpath($updatePath))); |
|
|
|
$updateFromInstalledVersionFile = ''; |
|
|
|
$updateFromInstalledVersionFile = ''; |
|
|
|
|
|
|
|
|
|
|
|
@ -1207,7 +1210,7 @@ function display_requirements($installType, $badUpdatePath, $updatePath = '', $u |
|
|
|
<table border="0" cellpadding="5" align="center"> |
|
|
|
<table border="0" cellpadding="5" align="center"> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td><?php echo get_lang('OldVersionRootPath'); ?>:</td>
|
|
|
|
<td><?php echo get_lang('OldVersionRootPath'); ?>:</td>
|
|
|
|
<td><input type="text" name="updatePath" size="50" value="<?php echo ($badUpdatePath && !empty($updatePath)) ? htmlentities($updatePath) : $_SERVER['DOCUMENT_ROOT'].'/old_version/'; ?>" /></td>
|
|
|
|
<td><input type="text" name="updatePath" size="50" value="<?php echo ($badUpdatePath && !empty($updatePath)) ? htmlentities($updatePath) : api_get_path(SYS_SERVER_ROOT_PATH).'old_version/'; ?>" /></td>
|
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2" align="center"> |
|
|
|
<td colspan="2" align="center"> |
|
|
|
|