1059 Commits

Author SHA1 Message Date
stronk7
59d6852ba4 Fixed missing string on restore. MDL-14330 ; merged from STABLE_19 2008-04-13 02:06:49 +00:00
stronk7
b05d6880e1 Blogs added to scheduled backup. MDL-9089 ; merged from 19_STABLE 2008-04-13 01:35:13 +00:00
stronk7
fe75799dcf Blogs backup added. MDL-9089 ; merged from 19_STABLE 2008-04-13 01:28:59 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
skodak
4a80e5cb05 MDL-8270 ignore blocks that can not be instantiated; merged from MOODLE_19_STABLE 2008-03-30 14:36:27 +00:00
jmg324
68e3ffbbfa added new gradebook preference for backup silently function to avoid notice errors later in backup process. 2008-03-25 15:40:23 +00:00
stronk7
cfa239ab7f Restore escaped from latest tag-lib refactoring. MDL-14038 ; merged from 19_STABLE 2008-03-24 16:39:48 +00:00
skodak
5cfefc9b02 MDL-8270 full block backup/restore - based on patches by Mark Nielsen and code in HEAD by Tim Hunt; merged from MOODLE_19_STABLE 2008-03-23 15:54:42 +00:00
skodak
e43281ae78 MDL-8270 full block backup/restore - based on patches by Mark Nielsen and code in HEAD by Tim Hunt; merged from MOODLE_19_STABLE 2008-03-23 15:54:41 +00:00
skodak
7d44b1a425 MDL-2674 minor lang improvement; backported from MOODLE_19_STABLE 2008-03-20 21:17:40 +00:00
skodak
32bd1c0ffc MDL-13619 legacy restore revisited -fixed sortorder; merged from MOODLE_19_STABLE 2008-03-20 20:08:44 +00:00
skodak
0cdf4aad05 MDL-13393 detect broken cm instances when doing backup - prevents trouble during restore; merged from MOODLE_19_STABLE 2008-03-20 19:40:09 +00:00
skodak
09069c0df0 MDL-13619 legacy restore revisited; merged from MOODLE_19_STABLE 2008-03-20 19:16:55 +00:00
nicolasconnault
e8b709f14b MDL-13953 The dropdown was not populated using the same methods as elsewhere in Moodle. 2008-03-18 16:00:13 +00:00
skodak
44b7235eef MDL-2674 removed hardcoded renaming of groupings depending on changed course shortname 2008-03-17 22:09:25 +00:00
skodak
7f9b934c54 MDL-2674 adding $cm->grouping reset if groupings not restored; removed info about groups included in backup - they are always included, and there will not be any global groups/groupings; merged from MOODLE_19_STABLE 2008-03-17 21:57:02 +00:00
skodak
e807e47354 MDL-2674 backup always backsup/restores groups regardless of user settings; remerged from MOODLE_19_STABLE 2008-03-17 21:33:12 +00:00
skodak
7f9bd1499b MDL-13847 gradebook backup/restore fixes, xhtml strict fixes, other minor fixes; merged from MOODLE_19_STABLE 2008-03-17 19:56:41 +00:00
stronk7
bef163c889 Ensure only target groups_members are added to backup. MDL-12453 ; merged from 19_STABLE 2008-03-09 17:28:17 +00:00
skodak
fbb51be65a cosmetic fix for CONTEXT:SYSTEM fetching; merged from MOODLE_19_STABLE 2008-03-08 15:36:52 +00:00
skodak
0c94e43d01 MDL-13848 backup form - do not include checkboxes for mods that are not used in course; merged from MOODLE_19_STABLE 2008-03-08 15:08:44 +00:00
moodler
da9bf507dc Match date from 1.9 2008-03-03 11:58:26 +00:00
moodler
714d08d1d7 Merged MDL-13475 from 1.9: treat shortname fields as 100 chars 2008-03-02 15:03:33 +00:00
stronk7
e28de1f5cc rebuild_course_cache() to calculate modinfo before role assignments. MDL-13740 ; merged from 19_STABLE 2008-02-29 19:55:06 +00:00
moodler
d5b8dc1d61 Merged MDL-13569 Mark N patch for notice 2008-02-26 09:05:51 +00:00
scyrma
537aa65c5d MDL-13404 - Modification to all tag_get_tags_* calls needing an array & other improvements (merge from 1.9) 2008-02-26 06:43:54 +00:00
scyrma
3d535996db MDL-13404 - Merge from 1.9 (re-commit, including missing file) 2008-02-25 01:58:17 +00:00
skodak
bb06244703 MDL-13404 reverted - missing file and other minor problems 2008-02-22 19:53:48 +00:00
scyrma
db32b054d1 MDL-13404 - Merge from 1.9 2008-02-22 10:25:36 +00:00
moodler
eff1ecb4f1 MDL-13554 Fix from Mark Nielsen for bad block backups 2008-02-21 05:35:16 +00:00
stronk7
42af26a396 Messages backup improvement. MDL-13473 ; merged from 19_STABLE 2008-02-14 23:35:03 +00:00
poltawski
175767ede7 MDL-13339 - ensure we don't continue the restore process if there is
no course header in the backup file. This bug was causing blank course
records to be created when users tried to restore a non-moodle backup file
such as a scorm file.
merged from MOODLE_19_STABLE
2008-02-07 18:52:51 +00:00
skodak
af105b8abb MDL-13345 disabled module not present on backup form anymore; merged from MOODLE_19_STABLE 2008-02-05 22:55:50 +00:00
stronk7
b3238b3519 Some old backups can contain empties in user->picture, fix them before insert. Merged from 19_STABLE 2008-02-05 20:31:06 +00:00
stronk7
70e2417668 Save one extra query per user being restored. $newid contains the user id along all the iteration.
Merged from MOODLE_19_STABLE
2008-02-04 00:05:20 +00:00
stronk7
7b6e2a2bf9 Now custom profile fields and user tags are restored. MDL-6856 ; merged from 19_STABLE 2008-02-03 23:53:01 +00:00
stronk7
3dd3ab8ac8 Only insert outcome_course if it doesn't exist. MDL-13308 ; merged from 19_STABLE 2008-02-03 18:44:14 +00:00
stronk7
359e08ba88 Fix restore of outcomes, reusing them when possible. MDL-13309 ; merged from 19_STABLE 2008-02-03 18:26:58 +00:00
stronk7
5170a7a440 Add missing description to grade_outcomes backup. Merged from 19_STABLE 2008-02-03 10:33:15 +00:00
stronk7
1f340c06da Add some browser output when restoring a lot of users. Merged from 19_STABLE 2008-02-03 00:48:32 +00:00
stronk7
e464445596 Now we are reading user_profile_fields and user_tags + some small fixes on roles. MDL-6856 ; merged from 19_STABLE 2008-02-02 23:59:48 +00:00
scyrma
27a903efd2 Merged from MOODLE_19_STABLE 2008-01-30 07:29:36 +00:00
stronk7
9e56dd25d3 Now user profile fileds and user tags are included in backups. Part of MDL-6856 ; merged from 19_STABLE 2008-01-30 01:10:57 +00:00
stronk7
56ef28a4a3 Added some helper functions, cleanup a bit and add missing parts. MDL-10721 ; merged from 19_STABLE 2008-01-26 22:00:40 +00:00
stronk7
c648a2259c General cleanup of backup users. Part of MDL-10721 ; merged from 19_STABLE 2008-01-25 00:50:08 +00:00
stronk7
2462e5eb20 Prevent grade_grades and grade_grades_history to be exported for non-target users. MDL-13115 ; merged from 19_STABLE 2008-01-24 20:04:15 +00:00
stronk7
a03320fcf9 Reworked a bit to prevent non-target user role assignments to be exported. MDL-13115 ; merged from 19_STABLE 2008-01-24 19:09:04 +00:00
stronk7
81243b7be4 Now the backup->users = none setting is properly populated to all
modules / instances, saving a lot of info to be always written. MDL-13115

Merged from 19_STABLE
2008-01-24 00:51:09 +00:00
mjollnir_
2f13f94ccc New feature: Command line installer. Credit: Dilan Anurudda.
This was a Google Summer of Code 2007 Project.

This introduces two new files, admin/cliupgrader.php and lib/installlib.php.

It also introduces a new PEAR library, Console_GetOpt.  I have recieved permission from the upstream author to include this in GPL Moodle (essentially dual license it) -  notes in lib/pear.

Most stuff that outputs html during install gets suppressed by the use of a constant.

Run the script like  php admin/cliupgrade.php --help for info.

Note that this all uses strings from install/ rather than lang, so I have updated stringnames.txt accordingly and they'll all be broken until the cronjob that generates them runs.
2008-01-07 01:54:28 +00:00
poltawski
b3ec4f86cf MDL-9925 - When a user presses cancel on restore they are sent to
/admin/. For teachers this gives an ugly access denied message,
so instead send them back to the course they came from.

Thanks to Wen Hao Chuang for the fix!

merged from MOODLE_19_STABLE
2007-12-29 20:31:10 +00:00