Remove use of SYS_SERVER_ROOT_PATH

ofaj
jmontoyaa 10 years ago
parent e16a2db06e
commit d3882726ae
  1. 4
      main/install/install.lib.php

@ -980,7 +980,7 @@ function display_requirements(
<div class="row">
<div class="col-md-12">
<p><?php echo get_lang('OldVersionRootPath'); ?>:
<input type="text" name="updatePath" size="50" value="<?php echo ($badUpdatePath && !empty($updatePath)) ? htmlentities($updatePath) : api_get_path(SYS_SERVER_ROOT_PATH).'old_version/'; ?>" />
<input type="text" name="updatePath" size="50" value="<?php echo ($badUpdatePath && !empty($updatePath)) ? htmlentities($updatePath) : ''; ?>" />
</p>
<p>
<button type="submit" class="btn btn-default" name="step1" value="<?php echo get_lang('Back'); ?>" >
@ -2279,7 +2279,7 @@ function fixIds(EntityManager $em)
if (isset($data['iid'])) {
$newId = $data['iid'];
}
$sql = "UPDATE c_item_property SET ref = $newId WHERE iid = $iid";
$sql = "UPDATE c_item_property SET ref = $newId WHERE iid = $iid";
$connection->executeQuery($sql);
}

Loading…
Cancel
Save