From 40c530f2d58c288e3cf25d5e7633907a527b78d0 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Fri, 6 Feb 2009 01:56:14 +0000 Subject: [PATCH] MDL-18066 import_backup_file_silently() - delete dangerous code ; merged from 19_STABLE --- backup/lib.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/backup/lib.php b/backup/lib.php index 2972570803..49ef5fe537 100644 --- a/backup/lib.php +++ b/backup/lib.php @@ -497,10 +497,6 @@ function import_backup_file_silently($pathtofile,$destinationcourse,$emptyfirst=false,$userdata=false, $preferences=array()) { global $CFG,$SESSION,$USER, $DB; // is there such a thing on cron? I guess so.. global $restore; // ick - if (empty($USER)) { - session_set_user(get_admin()); - $USER->admin = 1; // not sure why, but this doesn't get set - } define('RESTORE_SILENTLY',true); // don't output all the stuff to us. -- 2.39.5