[svn r12729] function check_update_path($path)

skala
Evie Embrechts 18 years ago
parent c0c5441738
commit afcddbf08d
  1. 22
      main/install/upgrade.php

@ -532,6 +532,28 @@ function step_active($this_step)
}
}
// Rule to check update path
function check_update_path($path)
{
global $updateFromVersion;
// Make sure path has a trailing /
$path = substr($path,-1) != '/' ? $path.'/' : $path;
// Check the path
if (file_exists($path))
{
$version = get_config_param('clarolineVersion',$path);
if (in_array($version, $updateFromVersion))
{
return true;
}
else
{
return false;
}
}
return false;
}
/*
==============================================================================
MAIN CODE

Loading…
Cancel
Save