288 Commits

Author SHA1 Message Date
Petr Skoda
dbf5a44798 MDL-32149 add backup tests and dropping of extra tables 2012-04-03 22:30:54 +02:00
Petr Skoda
caee6e6c26 MDL-32251 E_STRICT fixes part 3 2012-03-29 15:24:30 +02:00
Petr Skoda
748e96512b MDL-32095 fix backup API to be E_STRICT compatible 2012-03-26 16:04:16 +02:00
Petr Skoda
5ec6c45fd4 MDL-32095 fix backup API to be E_STRICT 2012-03-26 15:30:04 +02:00
Sam Hemelryk
00f286ed7b MDL-31175 backup: Fixed undefined in register_dependency 2012-03-12 09:42:50 +13:00
Eloy Lafuente (stronk7)
2ed7cc2730 Merge branch 'w10_MDL-31301_m23_textlibcleanup' of git://github.com/skodak/moodle 2012-03-06 16:06:53 +01:00
Sam Hemelryk
9394d86367 Merge branch 'MDL-26037' of git://github.com/stronk7/moodle 2012-03-05 14:03:34 +13:00
Petr Skoda
6f3451e540 MDL-31301 remove all uses of moodle_strtolower() and deprecated it 2012-03-03 11:46:26 +01:00
Eloy Lafuente (stronk7)
cb7fc350cb MDL-26037 restore: fixes for mssql, php 5.4 and small improvs 2012-03-01 13:18:45 +01:00
Tony Levi
a4df8560cc MDL-26037: import: display search box even when no courses are currently displayed 2012-03-01 13:18:45 +01:00
Tony Levi
d0c94a1e84 MDL-26037: restore/import: check through all courses instead of only first 250 2012-03-01 13:18:45 +01:00
Eloy Lafuente (stronk7)
ac6dc09c26 MDL-29248 backup: take rid of the setting and code handling the 'private' user filearea 2012-03-01 13:09:47 +01:00
Eloy Lafuente (stronk7)
f88224624d MDL-29248 backup: delete user_files settings, lang strings and uses 2012-03-01 13:09:47 +01:00
David Mudrak
85aad2ef97 MDL-30982 Documenting some parts of backup settings machinery 2012-02-27 11:59:43 +01:00
Sam Hemelryk
235fcb6632 Merge branch 'w04_MDL-31172_m23_fullpath' of git://github.com/skodak/moodle 2012-01-23 16:09:41 +08:00
Petr Skoda
64cec5b2b0 MDL-31172 fix variable name typo in backup file logger 2012-01-21 20:19:34 +01:00
Petr Skoda
46f0e774f3 MDL-31173 fix variable name typo when throwing invalid $rule param exception in restore decode processor 2012-01-21 20:14:58 +01:00
Petr Skoda
927010240f MDL-31006 some more PHP54 notices
PHP54 compatibility - PhpStorm IDE is the best tool for this kind of work!!
2012-01-18 01:17:25 +01:00
Sam Hemelryk
cf6d069afd Merge branch 'MDL-31017' of git://github.com/stronk7/moodle 2012-01-05 11:17:31 +13:00
Eloy Lafuente (stronk7)
fb95ef9ecd MDL-31017 whitespace clean - take1 2012-01-04 16:27:32 +01:00
Petr Skoda
daca599ff1 MDL-30943 fix forgotten admin/report/ references 2011-12-28 19:36:23 +01:00
Eloy Lafuente (stronk7)
184acafab6 MDL-28180 backup - set excluded activities for any non-course operation 2011-12-12 00:30:58 +01:00
Eloy Lafuente (stronk7)
ede7105fd9 MDL-27233 move the restorer enrol/ra creation to the very beginning of the restore process
Some early steps in restore are using capability checks to decide how to
restore some information. But at that stage, if the course contents have
been removed and the user had perms at course level only (usually teacher)
the process can fail because some content is not restoreable due to the
lack of permissions.

Moving the restorer step to the beginning really helps is those situations
and it does not hurt at all.

Also, fixed one notice detected when testing this.
2011-11-25 01:07:27 +01:00
Eloy Lafuente (stronk7)
0620787a17 Merge branch 'w47_MDL-27233_m22_restoreenrol' of git://github.com/skodak/moodle 2011-11-24 23:44:24 +01:00
Petr Skoda
d53e3298c0 MDL-27233 add new options to keep enrols and groups purging existing course in restore 2011-11-23 18:38:27 +01:00
Eloy Lafuente (stronk7)
43fb30d652 Merge branch 'wip-mdl-30394' of git://github.com/rajeshtaneja/moodle 2011-11-23 13:37:37 +01:00
Rajesh Taneja
d6e23c1466 MDL-30394 Backup: Removed popup, inserted by 27790 during restore in new course 2011-11-22 12:03:26 +08:00
Eloy Lafuente (stronk7)
1acad8eed7 MDL-30192 restore - prevent any extra info to be created for deleted users 2011-11-18 13:03:08 +01:00
Eloy Lafuente (stronk7)
acb8164304 MDL-29956 ims-cc - disabling export and cleaning some unused code
This commits cleans some code (settings and dependencies)
and one file included previous by error.

Also it disables all the IMS-CC export feature by default, being
possible to enable it under demand by setting (@ config.php):

$CFG->enablebackupconverters = true;
2011-11-14 21:32:05 +01:00
Mark Nielsen
42dffc6feb MDL-29956: Implement common cartridge export (r16882) 2011-11-14 21:25:08 +01:00
Eloy Lafuente (stronk7)
032bfca82a Merge branch 'MDL-29035-master' of git://github.com/ankitagarwal/moodle 2011-11-11 02:42:40 +01:00
Rajesh Taneja
687f512d88 MDL-27790 Backup: Added warning message to let user know that temporary course will be created for restoration process 2011-11-08 11:37:48 +08:00
Rajesh Taneja
416128379f MDL-27790 Backup: temperory course will be deleted in case of exception and cancellation of restore process 2011-11-08 11:37:43 +08:00
Ankit Kumar Agarwal
ef6b3ba159 MDL-29035 Backups making email match case-insensitive when restoring backups 2011-11-03 10:18:15 +05:30
Marina Glancy
a6c124f5e3 MDL-25454: using the faster way to check if record exists in db 2011-09-29 17:00:04 +08:00
Marina Glancy
e2558cd3ab MDL-25454 before skipping course backup make sure that there are no change entries in it's log during the last month. Store the nextstarttime even for courses that were not backed up 2011-09-29 08:56:48 +08:00
Aparup Banerjee
d1e362405e Merge branch MDL-29186-master of git://github.com/samhemelryk/moodle
- resolved conflicts, minor whitespace and fixed quote.
- note: textlib_get_instance() is already deprecated
2011-09-13 16:06:21 +08:00
Aparup Banerjee
7eae2c5ae2 Merge branch MDL-29187-master of git://github.com/samhemelryk/moodle
- resolved conflict.
2011-09-13 13:52:31 +08:00
Aparup Banerjee
5433da6064 Merge branch MDL-29189-master of git://github.com/samhemelryk/moodle
- resolved conflicts.
2011-09-13 11:39:06 +08:00
Sam Hemelryk
f8adfe6cc0 Merge branch 'w36_MDL-28701_m22_tempcachedir' of git://github.com/skodak/moodle 2011-09-12 18:26:09 +12:00
Eloy Lafuente (stronk7)
59fc0cbdb7 MDL-28488 backup - conditionaly apply defaults based on mode
Some modes of backup cannot be preloaded with general backup
settings because they may conflict with the definitions required/set
by the mode (for example, import backups are, by definition, without
users always, so we cannot apply one default in the opposite direction).

So, after the patch, current general_backup setting will be only applied
to general backups, import/hub modes won't be using any default and
automated backup defaults should be loaded here (TODO)
2011-09-11 19:35:56 +02:00
Eloy Lafuente (stronk7)
2a4ba40f31 MDL-28488 backup - '[backup|restore]:configure cap does not control import mode anymore 2011-09-11 19:09:59 +02:00
Tom Lanyon
7aa06e6ded MDL-28701 Change all uses of $CFG->dataroot/temp to $CFG->tempdir 2011-09-10 10:35:39 +02:00
Eloy Lafuente (stronk7)
77c2ca69af MDL-28488 backup - make backup and import capabilities independent
Before this change, in order to perform one course import it was
necessary to have both the backupcourse and the backuptargetimport
capabilities. After agreement now each one will control its own
backup mode. Same applies for restore.
2011-09-09 17:46:21 +02:00
Sam Hemelryk
91d284c145 MDL-29186 multilang Reviewed the uses of course fullname and ensured things were being formatted consistently 2011-09-08 09:38:46 +12:00
Sam Hemelryk
63390481c4 MDL-29187 multilang Reviewed the uses of category name and ensured things are being formatted correctly 2011-09-08 09:37:07 +12:00
Sam Hemelryk
8ebbb06adf MDL-29189 mutlilang Reviewed the uses of course shortname and ensured things are being formatted consistently 2011-09-08 09:30:27 +12:00
Eloy Lafuente (stronk7)
01d6182fa8 MDL-29072 Import course - whitespace fixes 2011-09-05 10:41:57 +02:00
Henning Bostelmann
96576a2ac1 MDL-29072 Import course: Use correct capability for course selection 2011-08-23 19:07:54 +01:00
Sagie Maoz
0d5e5644b8 MDL-26721 automated backups - Fix typo
Causing the 'role assignment' backup inclusion to be tied to the users

Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2011-08-08 15:40:55 +08:00