Skip to content

Commit

Permalink
MDL-8605 Minor typos and version.php fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Oct 11, 2007
1 parent 3d6d2b8 commit c19977a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
13 changes: 8 additions & 5 deletions lib/db/upgrade.php
Expand Up @@ -698,16 +698,19 @@ function xmldb_main_upgrade($oldversion=0) {
}

return $result;

}

if ($result && $oldversion < 2007101101) {
if ($result && $oldversion < 2007021531) {
// Get list of users by browsing moodledata/user
$oldusersdir = $CFG->dataroot . '/users';
$folders = get_directory_list($oldusersdir, '', false, true, false);

foreach ($folders as $userid) {
$olddir = $oldusersdir . '/' . $userid;
$files = get_directory_list($olddir);

if (empty($files)) {
continue;
}

// Create new user directory
if (!$newdir = make_user_directory($userid)) {
Expand All @@ -717,7 +720,6 @@ function xmldb_main_upgrade($oldversion=0) {

// Move contents of old directory to new one
if (file_exists($olddir) && file_exists($newdir)) {
$files = get_directory_list($olddir);
foreach ($files as $file) {
copy($olddir . '/' . $file, $newdir . '/' . $file);
}
Expand All @@ -743,6 +745,7 @@ function xmldb_main_upgrade($oldversion=0) {
}


return $result;
return $result;

}
?>
2 changes: 1 addition & 1 deletion user/editlib.php
Expand Up @@ -249,4 +249,4 @@ function useredit_shared_definition(&$mform) {
$mform->setType('address', PARAM_MULTILANG);
}

?>
?>
2 changes: 1 addition & 1 deletion version.php
Expand Up @@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)

$version = 2007021530; // YYYYMMDD = date of the 1.8 branch (don't change)
$version = 2007021531; // YYYYMMDD = date of the 1.8 branch (don't change)
// X = release number 1.8.[0,1,2,3...]
// Y = micro-increments between releases

Expand Down

0 comments on commit c19977a

Please sign in to comment.