Commit Graph

106 Commits

Author SHA1 Message Date
stronk7 4bc822b746 MDL-19246 restore - cleanup of "restoreto" options. Prev. site restrictions out. 2009-05-22 10:21:45 +00:00
stronk7 89c1fe8297 MDL-19084 - backup_course_silently() missing call to xxx__check_backup_mods()
causing quizzes to be incorrect (thanks Piers Harding) plus problems with users,
files and role assignments.
2009-05-10 23:16:06 +00:00
danmarsden 5828d143d4 MDL-18818 - don't define var if already defined - happens when these functions are called more than once at a time. merged from HEAD 2009-04-15 02:18:04 +00:00
dongsheng f60ff51cac "MDL-18540, change the uses of option" 2009-03-30 10:04:57 +00:00
dongsheng 307b92632b "MEMORY/MDL-18540,remove hard-coded php memory limit, added system setting for it, create a function reduce_memory_limit to reduce memroy limit and respect php.ini setting in the meanwhile" 2009-03-26 01:36:16 +00:00
stronk7 94f7464280 MDL-18066 import_backup_file_silently() - delete dangerous code 2009-02-06 01:55:01 +00:00
stronk7 0d217d2820 MDL-18066 import_backup_file_silently - reverting last commit. 2009-01-30 13:17:55 +00:00
stronk7 5648e66cb2 MDL-18066 - import_backup_file_silently - better handling of missing $USER. Credit goes to Gabriel Mazetto. 2009-01-30 09:56:16 +00:00
stronk7 63370ab86b MDL-17886 backup & restore - Add some defaults to import_backup_file_silently()
Credit goes to Mark Nielsen. Thanks!
- CVS: ----------------------------------------------------------------------
2009-01-23 23:28:40 +00:00
tjhunt 1ae3f411b5 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:05 +00:00
jmg324 7b8c3081a0 MDL-15223 need to default backup_blogs for backup_course_silently not to have PHP notice errors 2008-06-12 11:06:57 +00:00
jmg324 402b744fd6 added new gradebook preference for backup silently function to avoid notice errors later in backup process. 2008-03-25 15:40:27 +00:00
skodak 8527371af3 MDL-13847 gradebook backup/restore fixes, xhtml strict fixes, other minor fixes 2008-03-17 19:36:35 +00:00
skodak 40f43aa1fc MDL-11561 admin tree improvements and bugfixing; backported from HEAD 2007-12-19 17:38:37 +00:00
nicolasconnault 6d7ab89b65 MDL-11912 Removed recursive param 2007-10-31 19:04:30 +00:00
nicolasconnault ca005e23f7 MDL-10905 iterating properly through readdir() 2007-10-15 05:42:20 +00:00
nicolasconnault 01d786178d MDL-8605 Backup and restore implementation 2007-10-12 20:24:00 +00:00
tjhunt f8f95b454a MDL-10898 - Option to back up only selected role assignements when backing up a course with users. 2007-09-25 14:44:53 +00:00
nicolasconnault 2de7b82759 MDL-10723 Another file that escaped the update 2007-09-10 04:58:09 +00:00
nicolasconnault e295df447f MDL-10870 All files updated to new build_navigation() method. 2007-08-17 11:18:58 +00:00
skodak e0aac7f323 MDL-10383 - some more groupings related restore problems fixed - groupings are now restored before course sections+course_modules - groupingsids now restored properly in course_modules table; fixed object initialization; fixed typos when restoring course modules that were causing missing group mode 2007-08-15 10:43:25 +00:00
toyomoyo f23dea666c replacing _NULL_ with $@NULL@$ during backup/restore 2007-08-13 02:23:10 +00:00
toyomoyo e814e7d79c MDL-10770, support null fields in backup/restore 2007-08-10 05:22:20 +00:00
jamiesensei 3bee1ead40 merging MOODLE_19_QUESTIONS with HEAD 2007-08-09 21:50:59 +00:00
mjollnir_ 9e3775dbc2 Backup refactor: moved backup_execute.html into functions, added new backup_course_silently function as proof of concept (matches import_backup_file_silently) 2007-03-23 06:14:40 +00:00
skodak 348d6827b3 MDL-7722 fixed wrong cleaning in backup paths 2007-02-15 09:43:14 +00:00
skodak 8891e81c92 MDL-8469 - 192M is much nicer than 196M 2007-02-14 20:58:31 +00:00
skodak 4eefee9779 MDL-8469 increase memory limit everywhere due to changed calculation of used memory in PHP 5.2.x - the real memory useage is the same, but the reported size of used memory is now more accurate 2007-02-14 20:46:38 +00:00
skodak 371a32e308 (MDL-8250) install/upgrade autopilot 2007-01-22 20:15:12 +00:00
skodak acdd790f74 print_footer('none') during install and upgrade to hide home link and xhtml strict fixes 2007-01-15 19:16:29 +00:00
martinlanghoff b776b27738 db upgrades are now XHTML-correct -- at least when they succeed! With this patch, 1.8 installation completes correctly 2007-01-04 01:07:35 +00:00
skodak 810944af7f we are going 100% unicode now - removed use of $CFG->unicodedb and current_charset(); MDL-7439 - part 2, only hotpot and wiki left 2006-11-11 17:23:20 +00:00
stronk7 db8bd7a66f Now XMLDB installation is enabled! Old mysql.php and postgres7.php can
continue being used as previously until we finish all the required
DDL functions.

Also, this implies that *.sql files aren't needed anymore. Now all we have to do
is to maintain the install.xml files from the editor.
2006-09-20 22:36:21 +00:00
skodak 6e4dc10f54 deglobalization of $ADMIN; merged admin/adminlib.php into lib/adminlib.php; fixed includes and some other minor fixes 2006-09-02 13:14:57 +00:00
skodak 99c8a1004d fixed defaults for backups during installation 2006-09-02 11:10:10 +00:00
stronk7 94ab72f8b0 Now backup tables can use the XMLDB install & upgrade 2006-08-30 20:41:37 +00:00
vyshane 9a7538a35b Fixed notice 2006-08-23 06:56:23 +00:00
skodak dedb2304cd upgrade logging cleanup, fixes - more improvements ahead 2006-08-17 22:37:34 +00:00
skodak 8549af11d1 fixed upgrade success notification, backup and blocks success messages are not red anymore... 2006-08-14 08:37:19 +00:00
stronk7 615b4a1391 An example of how one unitialized variable can generate really
dificult-to-trace bugs. Thanks to Jens Gammelgaard and support  B-)
(http://moodle.org/bugs/bug.php?op=show&bugid=6233)

Merged from MOODLE_16_STABLE
2006-08-12 09:14:40 +00:00
skodak 583fad994c Bug #5352 - upgrade might be interrupted by user - upgrades are now logged into moddata/upgradelogs/, user abor is ignored and concurrent running of upgrades is prevented from one browser 2006-08-01 07:46:19 +00:00
skodak 15a6cf334f Bug #6099 - Restore alternatively failing on data module - fixed status codes of module restore process; merged from MOODLE_16_STABLE 2006-07-13 15:38:03 +00:00
tjhunt a36f058e53 Bug 6101 - Automatically scroll to any errors when upgrading the database. JavaScript thanks to Andrew Walker. PHP changes are my fault. 2006-07-13 09:48:56 +00:00
stronk7 062a84a62a Columns cannot be null anymore. Bug 5343.
(http://moodle.org/bugs/bug.php?op=show&bugid=5343)

Please document it in coding guidelines!!!
2006-04-28 23:42:12 +00:00
skodak 25580a01bc finally now the restore should work and with correct unicode related coding style, sorry 2006-03-07 19:53:56 +00:00
skodak c07549b6e2 fixed coding style of unicode db detection 2006-03-06 20:30:00 +00:00
skodak fd5ca378e6 fixed UTF-8 restore problems caused by utf8_restore 2006-03-03 22:22:07 +00:00
mjollnir_ 510b75ae64 Merged from MOODLE_15_STABLE: Moved check_dir_exists function from backup/lib.php to moodlelib 2006-02-02 20:30:34 +00:00
stronk7 b1a88d0413 Part of Bug 4583. Now backup tables are moodle-style compliant.
Also, the 4th parameter used in insert_record() has been erased
to avoid the bug itself. PortgreSQL upgrade not tested!
(http://moodle.org/bugs/bug.php?op=show&bugid=4583)
2006-01-16 10:23:48 +00:00
mjollnir_ f90666aa5c Abstracted a bit of the restore procedure to allow for silent restoring.
Added new function, import_backup_file_silently
Changed everything that prints stuff to check for a constant first.
Backup_flush checks a different constant, this is so that output can still
get flushed to the browser when necessary but not print <li>s everywhere.
Please test this!
2006-01-15 21:09:13 +00:00