Skip to content

Commit

Permalink
Merge branch 'MDL-33562-25' of git://github.com/danpoltawski/moodle i…
Browse files Browse the repository at this point in the history
…nto MOODLE_25_STABLE

Conflicts:
	lib/db/upgrade.php
	version.php
  • Loading branch information
stronk7 committed Jun 17, 2013
2 parents 54c7d51 + 068373c commit a831f15
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions lib/db/upgrade.php
Expand Up @@ -2163,5 +2163,14 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2013051400.01); upgrade_main_savepoint(true, 2013051400.01);
} }


if ($oldversion < 2013051400.06) {
// Clean up old tokens which haven't been deleted.
$DB->execute("DELETE FROM {user_private_key} WHERE NOT EXISTS
(SELECT 'x' FROM {user} WHERE deleted = 0 AND id = userid)");

// Main savepoint reached.
upgrade_main_savepoint(true, 2013051400.06);
}

return true; return true;
} }
3 changes: 3 additions & 0 deletions lib/moodlelib.php
Expand Up @@ -4078,6 +4078,9 @@ function delete_user(stdClass $user) {
// unauthorise the user for all services // unauthorise the user for all services
$DB->delete_records('external_services_users', array('userid'=>$user->id)); $DB->delete_records('external_services_users', array('userid'=>$user->id));


// Remove users private keys.
$DB->delete_records('user_private_key', array('userid' => $user->id));

// force logout - may fail if file based sessions used, sorry // force logout - may fail if file based sessions used, sorry
session_kill_user($user->id); session_kill_user($user->id);


Expand Down
2 changes: 1 addition & 1 deletion version.php
Expand Up @@ -29,7 +29,7 @@


defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();


$version = 2013051400.05; // 20130514 = branching date YYYYMMDD - do not modify! $version = 2013051400.06; // 20130514 = branching date YYYYMMDD - do not modify!
// RR = release increments - 00 in DEV branches // RR = release increments - 00 in DEV branches
// .XX = incremental changes // .XX = incremental changes


Expand Down

0 comments on commit a831f15

Please sign in to comment.