100 Commits

Author SHA1 Message Date
Eloy Lafuente
a89fcd7a2c MDL-9251 backup/restore *all* users - is now forbidden for users
lacking backup/restore permission at system level. Merged from 19_STABLE
2009-11-21 11:56:27 +00:00
Eloy Lafuente
f6459d125e MDL-20849 moodle/restore:userinfo - new cababilty to allow/deny
permissions to restore any (users, messages, modulesactivity...)
user-level information. Merged from 19_STABLE
2009-11-20 00:32:16 +00:00
Petr Skoda
795b694516 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 15:39:15 +00:00
Petr Skoda
3f77c1584c MDL-20697 removing duplicate error string, fixing get_site() which is now using exceptions 2009-11-01 09:10:09 +00:00
stronk7
81b06e9b17 MDL-12922 'moodle/restore:rolldates' capability - Implement logic on restore. Merged from 19_STABLE 2009-10-06 01:27:37 +00:00
skodak
d4b5bd4393 MDL-20169 fixed coding style, parameter type required 2009-08-27 19:20:03 +00:00
skodak
92ebcabeb3 MDL-20169 fixed coding style, parameter type required 2009-08-27 19:14:45 +00:00
nicolasconnault
8cc826b220 MDL-19789 Upgraded calls to link_to_popup_window() 2009-08-20 13:14:16 +00:00
nicolasconnault
9549b98659 MDL-19789 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 04:29:16 +00:00
nicolasconnault
dad2baefae MDL-19789 Upgraded calls to choose_from_menu 2009-08-17 15:15:55 +00:00
nicolasconnault
7b1f2c829f MDL-19756 Renamed moodle_select to html_select for better API consistency 2009-08-10 08:38:45 +00:00
nicolasconnault
e11adf4884 MDL-19789 Migrated calls to print_heading 2009-08-06 08:19:03 +00:00
nicolasconnault
bb587f9b10 MDL-19789 Upgraded calls to print_time_selector and print_date_selector 2009-08-06 01:08:50 +00:00
nicolasconnault
679a4f5a18 MDL-19789 Removed choose_from_radio and choose_from_menu calls 2009-08-06 00:08:11 +00:00
stronk7
a547c180f6 MDL-15355 restore - proper category selection when restoring from SITE + improved defaults ; merged from 19_STABLE 2009-05-23 20:56:32 +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
skodak
93f66983cc MDL-17773 new get_login_url() function - fixes missing httpslogin tweaks 2009-01-02 22:56:48 +00:00
stronk7
6c928b4cfe MDL-12922 restore roll dates - prevent wrong rolls to 0 happening to teachers. Merged from 19_STABLE 2009-01-02 17:59:01 +00:00
tjhunt
df73f8d4e1 restore: MDL-17480 Potentially expensive function user_can_create_courses called repeatedly from restore UI. 2008-12-01 06:55:11 +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
tjhunt
96f1a7a265 roles admin: Improve the usability of the assign roles interface - this is the first half of the work. Part of MDL-16993.
To do this, I found a way to clean up the method signatures of a couple of accesslib methods, so I did, hence the fact that this seems to touch some unrelated files.

Also, there is a nice new method in accesslib get_context_url, which gives you the natural URL for a context, so the course view page, or the user profile, etc.
2008-10-30 06:26:18 +00:00
nicolasconnault
7b2f3680a3 MDL-16892 Fixed bug in accesslib role_fix_names method. Merging from MOODLE_19_STABLE 2008-10-20 13:47:08 +00:00
skodak
123d1acd34 MDL-13383 fixed restore form; merged from MOODLE_19_STABLE 2008-07-07 22:35:23 +00:00
moodler
3e7adb62fe Merged from 1.9, added a little check to avoid notices 2008-06-25 08:45:53 +00:00
skodak
ad4375ac7f MDL-14679 towards /backup conversion 2008-06-01 14:46:48 +00:00
stronk7
095aa2809e Restoring from courses having custom role name doesn't cause duplicate roles. MDL-14808 ; merged from 19_STABLE 2008-05-12 22:54:26 +00:00
dongsheng
d3b7ea93de "MDL-14129, fix print_error" 2008-05-08 08:43:17 +00:00
stronk7
8b6ccde7b0 Restore of blogs in SITE page added. MDL-9089 ; merged from 19_STABLE 2008-04-20 02:03:00 +00:00
stronk7
d8b2e5e63d Minor fixes in the restore form when restoring from within SITEID. Merged from 19_STABLE 2008-04-13 23:29:07 +00:00
stronk7
59d6852ba4 Fixed missing string on restore. MDL-14330 ; merged from STABLE_19 2008-04-13 02:06:49 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
skodak
7d44b1a425 MDL-2674 minor lang improvement; backported from MOODLE_19_STABLE 2008-03-20 21:17:40 +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
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
nfreear
b0dc3e563d Fixes bug MDL-2674, "backup always backsup/restores groups regardless of user settings" - restore group/grouping option. 2007-12-10 10:26:47 +00:00
tjhunt
349d41f0c5 MDL-12450 - Matching up roles on the restore settings form is broken - this is basically a complete rewrite of these two functions. Merged from MOODLE_19_STABLE. 2007-12-05 16:14:29 +00:00
toyomoyo
b25d9087ec backup/restore of grade histories should be off by default 2007-11-07 01:11:41 +00:00
tjhunt
01b609d9fa Fix restore notice when a role has no capabilities. Merged from MOODLE_19_STABLE. 2007-10-16 14:03:23 +00:00
tjhunt
db451e99f6 XHTML Strict. 2007-09-20 15:35:19 +00:00
toyomoyo
05a71b3341 change restore code to use the more efficient get_user_courses_bycap 2007-09-20 09:16:49 +00:00
toyomoyo
3c13c1eacc removed a slow call from restore code, this is a trouble maker if you have a lot of courses. 2007-09-20 08:58:12 +00:00
martinlanghoff
2960a5525a backup/restore_form.html: tiny XHTML compliance fix
There is something _weird_ about the table setup on this page
and I cannot figure it out. This change "fixes" it in that
FF stops complaining.

However, the fix looks very broken to me.
2007-09-19 07:28:54 +00:00
toyomoyo
461af59ac1 MDL-11234, if role definitions matches, restore role mapping should be allowed with or without role assign capabilities 2007-09-18 07:00:57 +00:00
toyomoyo
e5d30fdcc9 added needsupdate flag into backup/restore, added a new switch for restore on/off for grade histories, fixed some NULL related warnings 2007-09-18 04:03:02 +00:00
stronk7
111e12615b Prevent some warning when restoring site courses... MDL-10054 MDL-10118
Merged from MOODLE_18_STABLE
2007-09-16 18:34:22 +00:00
stronk7
bac43d633c Show the roll dates option only if the backup course has a start date
(some formats like main page, social..., haven't it and rolling dates
from 0 produces crazy dates. MDL-10125

Merged from MOODLE_18_STABLE
2007-09-16 17:34:54 +00:00
moodler
33bd434d07 FIxed some XHTML bugs 2007-08-24 04:26:19 +00:00
jamiesensei
1a73a3d84e Fixes for some notices because of unitialized vars and elements that may not be present in older backup xml. 2007-08-17 10:00:00 +00:00