150 Commits

Author SHA1 Message Date
Petr Skoda
c52551dc3c MDL-8249 localise standard role names and descriptions if empty 2012-07-06 08:22:34 +02:00
Petr Škoda
2b42c88170 MDL-34155 use course visibility default when creator does not have moodle/course:visibility 2012-07-06 07:58:07 +02:00
Dan Poltawski
1156d38d94 MDL-32504 course: Add coursedisplay setting to course table
This will replace the course_display database table
2012-05-04 10:49:52 +08:00
Tim Hunt
9665ecd275 MDL-19125 module restrictions: use a capability
1. This used to use a complex legacy system which was buggy.

2. It now relies on a new mod/...:addinstance capability for each module.

3. All the legacy code has been stripped out.

4. Old restriction data is upgraded by creating the necessary permission
overrides. Similarly, when old backups are restored, the old settings
are converted to be overrides.

5. The required addinstance capabilities will be added as a separate
commit.

6. There is a developer debug warning about modules that are missing the
addinstance capability, unless they are MOD_ARCHETYPE_SYSTEM mods.
2012-03-15 17:11:27 +00:00
sam marshall
5813c7f7dc MDL-30408 Allow modules the choice to not appear on 'Add a...' lists
This is useful for modules which are created by the system and are not supposed to be created by users. There are various reasons for doing this in third-party modules.
2012-01-12 17:29:54 +00:00
Sam Hemelryk
d609d96261 MDL-28599 textlib Separated collator to collatorlib with static methods, and added support for locale aware sorting of objects 2011-09-06 15:39:00 +12:00
Tim Hunt
c141b05f7d MDL-25357 Allow maximum number of sections to be set by the admin. Also allow 0 sections at an choice.
Also fix one bad <br/> in another lang string.
2011-07-04 15:35:03 +01:00
David Mudrak
29cbe43189 MDL-13481 Strings fullname and shortname are now deprecated
This is a final cleanup commit of fullname and shortname issue. All
places where these strings were detected yet have been replaced with
proper fullnamecourse or fullnameuser or some other context specific
string.

AMOS BEGIN
 CPY [fullname,core],[outcomefullname,core_grades]
 CPY [shortname,core],[outcomeshortname,core_grades]
 CPY [name,core],[rolefullname,core_role]
 CPY [shortname,core],[roleshortname,core_role]
AMOS END
2011-02-28 09:42:50 +01:00
Petr Skoda
516c5eca68 MDL-24698 hopefully fixed all completion_info problems 2010-11-17 06:23:56 +00:00
Petr Skoda
532a91d431 MDL-24329 reverting previous patch, it should be imo better to not should discouraged legacycoursefiles option when it is disabled site-wide 2010-09-22 08:18:18 +00:00
Dongsheng Cai
c00280a19e MDL-23308, added legacyfiles setting to course default settings. 2010-09-10 03:58:54 +00:00
Petr Skoda
deb73728e7 MDL-23308 added a feature to allow legacy course files in new courses too 2010-09-03 12:00:59 +00:00
aparup
7feebf6f6d Administration MDL-23144
Course create/update/cancel now navigates back to where u came from (namely /course/index.php & /course/category.php).
 (except when creating by default in Misc whereby you're sent to Misc where the course was created)
2010-07-16 07:10:49 +00:00
Petr Skoda
db1218a970 MDL-23255 fixed inverted isset preventing visibility change in course edit form (creadit goes to Jay Knight) + fixed visibility of new course in hidden category when not allowed to change visibility; improved comments 2010-07-14 14:23:32 +00:00
Petr Skoda
df997f841f MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
AMOS START
    MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
    MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
    MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
    MOV [enrolenddate,core],[enrolenddate,enrol_self]
    CPY [welcometocourse,core],[welcometocourse,enrol_self]
    CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
    MOV [notenrollable,core],[notenrollable,core_enrol]
    MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
    MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
    MOV [coursemanager,core_admin],[coursecontact,core_admin]
    MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
    MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
    MOV [enrolme,core],[enrolme,core_enrol]
    MOV [unenrol,core],[unenrol,core_enrol]
    MOV [unenrolme,core],[unenrolme,core_enrol]
    MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
    MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
    MOV [enrolments,core],[enrolments,core_enrol]
    MOV [enrolperiod,core],[enrolperiod,core_enrol]
    MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00
Petr Skoda
bf34822b9d MDL-22547 course->legacyfiles switch implemented 2010-05-22 13:10:05 +00:00
Martin Dougiamas
bfebaf64d8 MDL-22388 Added some checks to kill these scripts dead with an unequivocal notice unless included properly from a Moodle script. 2010-05-13 02:02:05 +00:00
David Mudrak
976033c6f2 MDL-22367 Bye bye Course Fullname 101, you cost us too many queries 2010-05-06 17:53:34 +00:00
David Mudrak
83fc9994bb MDL-21695 Fixing some regressions at the course settings page
AMOS BEGIN
 HLP expirynotify.html,[notify_help,core]
AMOS END
2010-05-04 10:07:47 +00:00
David Mudrak
5e67868ef0 MDL-21695 Course settings page help strings
Many of them are missing at the moment, Helen shall fix that soon

AMOS BEGIN
 HLP courseavailability.html,[availability_help,core]
 HLP coursecategory.html,[category_help,core]
 HLP courseenrollable2.html,[enrollable_help,core]
 HLP courseenrolmentplugins.html,[enrolmentplugins_help,core]
 HLP courseformats.html,[format_help,core]
 HLP coursegrades.html,[showgrades_help,core]
 HLP coursehiddensections.html,[hiddensections_help,core]
 HLP courseidnumber.html,[idnumbercourse_help,core]
 HLP coursenewsitems.html,[newsitemsnumber_help,core]
 HLP coursereports.html,[showreports_help,core]
 HLP courseshortname.html,[shortnamecourse_help,core]
 HLP coursestartdate.html,[startdate_help,core]
 HLP courseuploadsize.html,[maximumupload_help,core]
 HLP expirynotify.html,[expirynotify_help,core]
 HLP expirynotifystudents.html,[expirynotifystudents_help,core]
 HLP expirythreshold.html,[expirythreshold_help,core]
 HLP groupmodeforce.html,[groupmodeforce_help,core]
 HLP groupmode.html,[groupmode_help,core]
 HLP metacourse.html,[managemeta_help,core]
 HLP rolerenaming.html,[rolerenaming_help,core]
AMOS END
2010-05-03 17:07:51 +00:00
Martin Dougiamas
2be4d090c0 course completion MDL-2631 Course completion feature - Thanks to Aaron Barnes and Catalyst IT for this significant contribution. It is now officially possible to finish a course!
Even though I've tweaked this and done some polishing, there is still plenty to do on it now in HEAD, mostly to do with UI, usability and strings, so we'll keep working on it.  Aaron already has a number of improvements to add to it.
2010-04-30 03:06:22 +00:00
Petr Skoda
97b7d149b6 MDL-22015 deprecated get_list_of_currencies() method - improved string_manager encapsulation 2010-04-14 14:04:21 +00:00
Petr Skoda
1f96e907ea MDL-22084 making a clear distinction between list of our translations and list of all languages defined in ISO 639-2 2010-04-14 09:45:49 +00:00
Petr Skoda
503d243a3c MDL-21695 first sample help migration - course full name
AMOS BEGIN
 HLP coursefullname.html,[fullnamecourse_hlp,core]
AMOS END
2010-04-13 21:55:02 +00:00
Petr Skoda
ff67afbd95 MDL-22054 converting course formats to have own lang packs
AMOS START
 MOV [formatscorm,core],[pluginname,format_scorm]
 MOV [formatsocial,core],[pluginname,format_social]
 MOV [formattopics,core],[pluginname,format_topics]
 MOV [formatweeks,core],[pluginname,format_weeks]
AMOS END
2010-04-11 12:46:14 +00:00
Petr Skoda
98da60215e MDL-22033 groupings now enabled unconditionally, groupmembersonly kept as experimental - this simplifies groups code logic a bit, user interface changes should not be significant because the groupings are not visible much until at least one created; hopefully the new description of groupmembersonly will have to preventsome gradebook complaints 2010-04-07 07:37:12 +00:00
Petr Skoda
4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00
Sam Hemelryk
33c074206d course-edit MDL-20204 Fixed recent regression get_list_of_themes returns array of themes now not strings 2010-01-28 07:00:16 +00:00
Petr Skoda
aa6c1ced0a MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-04 08:11:02 +00:00
Sam Hemelryk
8bdc9cacad files MDL-20601 Conversion of many of the uses of print_textarea, and the mforms htmleditor to the new editor
Please forgive me if I have missed converting any output statements. If you do find an output statement that is not formatting correctly please refere to the table I added to this bug in regards to how it should be formatted.
2009-11-04 06:14:06 +00:00
nicolasconnault
50569ba3ac MDL-15262 Added a two capabilities to prevent certain users from changing a course's fullname and shortname. merged from MOODLE_19_STABLE 2009-10-02 07:05:02 +00:00
skodak
d18e0fe646 MDL-20353 adding missing data types of hidden form fields 2009-09-26 17:07:08 +00:00
skodak
17da2e6f28 MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions 2009-06-19 14:25:56 +00:00
tjhunt
1d693c8fd0 course settings: MDL-18595: Fix regression caused by switching the course settings form to use the new date selector.
The bad commit was http://cvs.moodle.org/moodle/course/edit_form.php?r1=1.65&r2=1.66

Sorry everyone who was inconvenienced by this.
2009-03-19 03:14:11 +00:00
tjhunt
feed81934b course settings: use the optional option on date selectors, rather than a manua disabled checkbox. Also use new duration element. 2009-03-16 06:09:43 +00:00
stronk7
853a3d8e53 MDL-12846 course defaults - grrr I forgot to re-add the original setDefault() 2009-02-13 10:04:26 +00:00
stronk7
39c28155a5 MDL-12846 don't apply coursedefaults->category anymore. 2009-02-13 09:55:40 +00:00
tjhunt
9136a60c46 course settings: MDL-17501 check for moodle/course:visibility in the course settings form.
1. If a user does not have that capability, don't let them change whether the course is visible.
2. Give teachers that capability by default.
3. To avoid regressions, on upgrade, give moodle/course:visibility to any role that has moodle/course:update.
2008-12-08 02:31:05 +00:00
skodak
826725329a MDL-15785 new options for enforcing of enrolment key commplexity and requirements 2008-12-06 21:20:42 +00:00
tjhunt
8ed5dd63ee course categories: Fix many bugs with category editing and permissions. Clean up code.
Bugs: MDL-17479, MDL-16426, MDL-16063, MDL-16013, MDL-15658, MDL-15556, MDL-15161, MDL-14925, MDL-13742, MDL-11557.

* Simplify category editing permissions to just moodle/category:manage and moodle/category:seehiddencategories.
* Enforce those correctly. (Note MDL 17502 is still outstanding.)
* Don't screw up category sort order when you just edit name or description.
* Niceties like where redirects go when you cancel or submit forms.
* Make sure a global course creator can see the site admin block.
* Don't allow a category to be made the child of one of its children!
* General code cleanup to bring key files more in line with best pracitice.

Apologies for the fact it is one big patch, rather than a series of smaller patches. However, categoryedit.php, category.php and index.php where in pretty bad shape and needed significant cleaning up. categoryedit.php, in particular, was almost completely rewritten.

Merged from MOODLE_19_STABLE.
2008-12-04 08:53:10 +00:00
skodak
828a673d9d MDL-15262 fixing previous incorrect merging 2008-11-26 09:05:04 +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
bef12c997a course settings: MDL-16327 when creating a course, the role renames were not saved. 2008-11-13 08:11:10 +00:00
skodak
cc44433620 MDL-16839 forms: workaround for problematic hard frozen values; merged from MOODLE_19_STABLE 2008-10-13 19:39:27 +00:00
nicolasconnault
7a90f48c38 MDL-15262 Merging from MOODLE_19_STABLE 2008-10-13 12:47:57 +00:00
skodak
01bc9ff156 MDL-15262 using hardFreeze instead of static, because we need this info to b returned from form; the new change* caps are not in effect when adding new courses - merged from MOODLE_19_STABLE + fixed regression in coursename/shortname automatic numbering 2008-10-08 20:56:38 +00:00
nicolasconnault
6e2eaae0e6 MDL-15262 Instead of removing these form fields entirely, rendering them as static form elements. Merging from MOODLE_19_STABLE 2008-10-08 13:40:42 +00:00
nicolasconnault
f7c0d84b87 MDL-15262 Added 3 new capabilities without changing defaults, as suggested by Matt. Merged from MOODLE_19_STABLE 2008-10-08 13:23:35 +00:00
jerome
cfec045442 MDL-12846: move course default settings into config_plugin table 2008-09-25 07:33:22 +00:00
tjhunt
80f69dc0ee MDL-16676 All references to the text.html and emoticons.html files need to be updated to point to text2.html and emoticons2.html 2008-09-25 07:12:46 +00:00