Commit graph

435 commits

Author SHA1 Message Date
skodak
4fe2250a1f MDL-19352 maintenance mode reiplemented 2009-05-31 14:42:29 +00:00
stronk7
64acc5a55d MDL-19246 restore - cleanup of "restoreto" options. Prev. site restrictions out. Merged from 19_STABLE 2009-05-22 15:02:44 +00:00
stronk7
3560ff18b9 MDL-12618 restore events - apply cross-db sql_compare_text(). MSSQL & Oracle were broken here. Merged from 19_STABLE 2009-05-10 14:45:59 +00:00
stronk7
4c63bd26a1 MDL-11144 - restore of mnet users. Another improvement... merged from 19_STABLE 2009-05-10 11:56:28 +00:00
stronk7
adf8cf19bc MDL-17009 restore of mnet users - prevent any user using local host to end with mnet auth ; merged from 19_STABLE 2009-05-10 01:16:10 +00:00
tjhunt
6cbcbf0fb3 blocklib: MDL-19010 eliminate remaining calls to blocks_repopulate_page 2009-05-08 08:22:59 +00:00
stronk7
cbea2e04cb MDL-18799 backup & restore - improve file.php handling by using neutral syntax to support any slasharguments combination. Merged from 19_STABLE 2009-04-17 23:47:16 +00:00
tjhunt
34f07866ba filters: MDL-7336 backup and restore of local filter settings. 2009-04-13 07:06:02 +00:00
tjhunt
c9a2ecfa1b filters: MDL-7336 more preliminary refactoring of duplicated code in restore 2009-04-13 07:05:33 +00:00
tjhunt
7b8dcbc352 filters: MDL-7336 refactor in backup/restore ready for local filter settings. 2009-04-13 07:05:02 +00:00
stronk7
53dd63837d MDL-18594 restore check - skip maintenance.html file on restore of sie files. Credit goes to Juan Segarra. Merged from 19_STABLE 2009-03-19 14:45:01 +00:00
stronk7
e78d66436e MDL-18482 restore skipping non selected activities. Merged from 19_STABLE 2009-03-12 23:16:21 +00:00
stronk7
382d4d9fbe MDL-18543 restore of role assignments / overrides - skip non-restored contexts. Merged from 19_STABLE 2009-03-12 22:21:57 +00:00
stronk7
b8f0d7d185 MDL-18468 restore preprocessing (split) - Added $CFG->experimentalsplitrestore option
to enable split of moodle.xml files into upto 19 smaller files for quicker restore.
Merged from 19_STABLE
2009-03-09 23:36:00 +00:00
danmarsden
283fc15670 MDL-15276 add check for RESTORE_SILENTLY 2009-03-04 02:44:05 +00:00
danmarsden
9d043b8c6b MDL-14736 Backup/Restore don't halt backup if can't delete temp files - just display notification and save error to log table 2009-03-03 01:18:16 +00:00
sam_marshall
0e633d845a MDL-18333: Conditional activities restore bug 2009-02-20 10:48:34 +00:00
stronk7
31f9d77191 MDL-18222 restore - fixed restoring of course->summary links. Was being handled too early. Moved to final decoding links process. Merged from 19_STABLE 2009-02-16 10:33:08 +00:00
stronk7
204b15d50b MDL-8848 restore section summaries - now restored if target course have them empty ; merged from 19_STABLE 2009-02-04 17:22:56 +00:00
stronk7
d45b28ef3d MDL-17835 backup & restore - encode/decode content links from/to course formats info.
Credit goes to Mark Nielsen. Thanks! ; merged from 19_STABLE
2009-01-24 00:40:32 +00:00
tjhunt
d61f7b7641 backup/restore: MDL-16614 more reliable test for when we are restoring a backup that was made of the same site that we are restoring to.
* Use this to fix a question restore bug.
* Replace older code that does something similar with the new test.
* Refactor initialisation of $CFG->siteidentifier into a function. There were about 4 copies of this code ;-)
2009-01-20 03:16:30 +00:00
tjhunt
13267548cf restorelib: fix incorrect indenting. 2009-01-09 06:35:21 +00:00
tjhunt
19f5b2dbee accesslib: MDL-17626 delete the context whenever a block is deleted. This includes a new helper function blocks_delete_all_on_page. 2009-01-09 06:16:36 +00:00
tjhunt
a3c9960b86 restorelib: MDL-17519 fix merge error. 2009-01-09 06:14:39 +00:00
stronk7
6a4b1e3d0e MDL-17826 restore - proper TEXT comparison. Was breaking MSSQL and Oracle. Merged from 19_STABLE 2009-01-08 18:43:08 +00:00
skodak
1033221c21 MDL-15172 lowered timeoout and adding warning that users must not click continue in middle of course import - this is a silly workaround, unfortunately I did not find better solution 2009-01-01 16:05:37 +00:00
sam_marshall
81691beceb MDL-15499 Fixes to conditional availability restore (still not tested in HEAD as restore is broken in general, but based on a version that now works in 1.9) 2008-12-19 11:55:41 +00:00
stronk7
9eaefcf1ee MDL-17009 restore of mnet users - Automatic switching of remote users (unknown host) to local ones. Merged from 19_STABLE 2008-12-18 00:20:51 +00:00
sam_marshall
82bd6a5ea9 MDL-15499: Conditional availability of activities 2008-12-17 16:37:35 +00:00
dongsheng
771dc7b298 "MDL-14129, fix error() in moodle2" 2008-12-12 05:45:43 +00:00
stronk7
b0126ac9da MDL-17009 Restore of mnet users: Fix incorrectly named MNET_EXTERNALUSERS. Merged from 19_STABLE 2008-12-11 16:40:09 +00:00
skodak
fe197e66dc MDL-17519 - restore: preventing group member duplicates; merged from MOODLE_19_STABLE 2008-12-07 22:24:43 +00:00
tjhunt
9101efd312 cleanup: MDL-17083 Remove the old teacher, teachers, student and students columns from the course table.
For something that has been deprecated for over two years, they were still used in a lot of places!
2008-11-13 08:40:57 +00:00
sam_marshall
7f346ec20c MDL-17150: Completion system shouldn't restore data for users who have no access to course 2008-11-06 12:27:15 +00:00
tjhunt
01a80f51e5 role assign: MDL-8312 Restrict which roles can be assigned at which contextlevels.
* New table role_context_levels
* Populate table with defaults on install
* Populate table on upgrade with the same defaults, plus any additional ones needed to ensure all the role assignments already in the database are allowed.
* Change get_assignable_roles to respect these settings.
* UI for these settings on the add/edit role form.
* Save these settings when a role definition is saved.
* If in a context, there are no roles you can assign, display a polite message.
* Back up these settings.
* Restore these settings. When resotring a <=1.9.x backup file, any newly imported roles are set to be assignable at all contextlevels.

Restore not tested because it is broken in HEAD.
2008-11-06 07:34:01 +00:00
skodak
bc32c04d26 MDL-14326 fixed DML conversion regression 2008-09-02 22:22:46 +00:00
mudrd8mz
1c6f36a9a8 MDL-14326 Remove all course_modules that remained empty (i.e. with instance==0) after the particular restore process. Merged from MOODLE_19_STABLE 2008-08-21 12:05:34 +00:00
stronk7
0e084e2684 Fixing typo causing restore not to work within 19_STABLE branch (BC). MDL-15282 ; merged from 19_STABLE 2008-08-06 16:43:40 +00:00
sam_marshall
114bb7a60a MDL-15875: Missing break; in switch 2008-07-29 13:33:14 +00:00
sam_marshall
4e781c7b50 MDL-15498: Completion system 2008-07-28 12:31:29 +00:00
stronk7
429e770f95 Merging unmerged 19_STABLE file. 2008-07-27 16:27:10 +00:00
stronk7
ce503f3923 Course page blocks are lost when restoring 1.3 and 1.4 backups. MDL-15803 ; merged from 19_STABLE 2008-07-23 22:47:47 +00:00
scyrma
5a254a2938 MDL-14279: use get_file_url instead of checking $CFG->slashargument manually (merge from 1.9) 2008-07-10 09:55:11 +00:00
skodak
fe29d45751 MDL-13942 do not interrupt restore if groupmembers missing; merged from MOODLE_19_STABLE 2008-07-05 00:45:44 +00:00
stronk7
86b4dadabd Only create role_name aliases if the original course (backup file) contains them. MDL-15284 ; merged from 19_STABLE 2008-07-03 13:00:54 +00:00
skodak
511c9eb23b MDL-15372 fixed incorrect merging to HEAD causing fatal errors, because new dml api was not used 2008-06-25 07:30:41 +00:00
tjhunt
87b144ae93 MDL-15372 - Links in course summary and section summaries not recoded on restore. Petr thinks it is a bad idea to recode links in course summaries, becuase he thinks there should not be links there at all, but I disagree, and as long as links are there, and we have the code to stop them breaking on backup and restore, we should fix the bug. 2008-06-23 17:02:21 +00:00
skodak
0cbe81112a MDL-14580 rewritten course sorting algorithms 2008-06-16 14:25:53 +00:00
thepurpleblob
6f96466d37 MDL-15257
Fix notice caused by (possibly) uninitialised variable.

Merged from STABLE_19
2008-06-16 10:08:30 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00