Rajesh Taneja
8f7d3d129f
MDL-40407 Libraries: deprecated preload_course_contexts
2013-07-09 15:46:51 +08:00
Dan Poltawski
3873f6aa60
Merge branch 'MDL-39449' of git://github.com/timhunt/moodle
2013-06-11 14:09:12 +08:00
Marina Glancy
3947b8ce4e
MDL-21097 corrected course editing roles
2013-06-05 14:30:21 +10:00
Marina Glancy
1fda836ca6
MDL-21097 Correctly check capabilities for course settings items
...
- Make sure that items in course settings (and frontpage settings) are shown depending on user capabilities
- Make sure user is able to turn editing on on the page even if he has only limited number of seciton/modules managing capabilities
2013-05-31 13:17:12 +10:00
Tim Hunt
7dce02fd28
MDL-39449 course view.php: don't require forum lib.php
...
As far as I can see, it is not used, except in social course format, so
I moved the include there.
2013-05-02 16:38:22 +01:00
Eloy Lafuente (stronk7)
3431860f54
Merge branch 'w02_MDL-36988_m25_switchrole' of git://github.com/skodak/moodle
2013-01-16 02:27:48 +01:00
Petr Škoda
aae028d9e3
MDL-36988 cleanup role switching
...
This patch uses local URLs in parameters because it is more compatible
with various security hacks. Session key is not added automatically to
return url for safety reasons - we do not want to execute some random
action again. POST pages are now returned to course page too.
2013-01-15 21:44:20 +01:00
Sam Hemelryk
c8d3475e17
Merge branch 'wip-MDL-37085-master' of git://github.com/marinaglancy/moodle
2013-01-15 16:30:36 +13:00
Marina Glancy
8afb1cc8f8
MDL-37206 preload course format renderer in course/view.php
...
Also fixed bug with hardcoded default 'weeks' format
2013-01-14 15:14:08 +11:00
Marina Glancy
697ff99997
MDL-37085 Load modchooser only when needed
2013-01-14 15:01:23 +11:00
Dan Poltawski
43c7341b82
Merge branch 'wip-MDL-32184-master' of http://github.com/phalacee/moodle
2012-10-16 10:48:23 +08:00
Marina Glancy
38b19bbca1
MDL-35339 call rebuild_course_cache() always (and only) after changing course modules or sections
2012-10-15 14:08:14 +08:00
Marina Glancy
4ede27b253
MDL-35339 deprecate get_course_section() replace with course_create_sections_if_missing()
...
By passing course object instead of course id we ensure proper cache reset"
2012-10-15 14:08:14 +08:00
Marina Glancy
d57aa283f7
MDL-35339 Deprecate get_all_mods() add get_module_types_names()
...
- added function get_module_types_names() returning the list of localised strings used for module names;
- added function cm_info::get_used_module_names();
- added magic properties cm_info:: and cm_info:: returning human readable module name;
- replaced usage of function get_all_mods() with get_fast_modinfo() and get_module_types_names();
- function print_section_add_menus() may now retrieve the modules names list itself;
- deprecated function get_all_mods()
2012-10-15 14:08:13 +08:00
Jason Fowler
52fc56a79d
MDL-32184 - Course - Fixing incorrect redirect when toggling course edit while inside an activity -- Patch provided by Kanika Goyal
2012-10-05 11:44:47 +08:00
Dan Poltawski
22e8bab59a
Revert "MDL-32184 - Course - Fixing incorrect redirect when toggling course edit while inside an activity -- Patch provided by Kanika Goyal"
...
This reverts commit 0a5181a0df82f977857168fdb9c0d18a4b459d79.
2012-09-27 11:31:51 +08:00
Jason Fowler
0a5181a0df
MDL-32184 - Course - Fixing incorrect redirect when toggling course edit while inside an activity -- Patch provided by Kanika Goyal
2012-09-24 15:04:55 +08:00
Dan Poltawski
134e28b79c
Revert "MDL-34444 course: show section availability info"
...
Turns out this change was just wrong, we shouldn't be allowing linking
to unaavilable sections. Just show the availability information on the
'index page'
This reverts commit 87a31bb5d8fedd4447cf99cef13c5dd367c3ea3e.
2012-08-22 10:50:28 +02:00
Dan Poltawski
29eaccab15
MDL-34444 course: show section availability info
...
When available, rather than a capability error.
2012-08-22 08:40:48 +02:00
Frederic Massart
ad778c84e8
MDL-34648 Course: Added capability to control sections moving
2012-08-21 13:31:19 +08:00
Dan Poltawski
9e586967a6
MDL-34539 course - allow negative section numbers
...
This gives course format authors more flexibility.
Thanks to Itamar Tzadok for the suggestion.
2012-08-15 03:26:26 +02:00
Frederic Massart
643b1de890
MDL-28207 Course: Showing/hiding/marking a section respect capabilities
2012-08-03 09:21:43 +08:00
sam marshall
c069dacfc1
MDL-33937 Paged course view: Allows view of sections that are not visible
2012-06-21 16:25:52 +01:00
Frederic Massart
a41b1d96b6
MDL-33775 Course: fix redirect to course/section in paged mode
2012-06-18 15:10:33 +08:00
Dan Poltawski
3970a4719c
MDL-33593 course: rename editingenabled param
...
Change to notifyeditingon to better reflect what it does and
prevent people getting confused with edit=1
2012-06-08 10:21:58 +08:00
Aparup Banerjee
ac16f14512
Merge branch 'MDL-33465-master' of git://github.com/ankitagarwal/moodle
...
Conflicts:
backup/moodle2/restore_stepslib.php
2012-06-07 14:04:08 +08:00
Sam Hemelryk
e5b200cd65
Merge branch 'wip-mdl-33367' of git://github.com/rajeshtaneja/moodle
2012-06-06 15:19:49 +12:00
Sam Hemelryk
2c7a72df06
Merge branch 'MDL-33369-master' of git://github.com/ankitagarwal/moodle with changes
2012-06-06 09:05:04 +12:00
Sam Hemelryk
5deaa764ba
Merge branch 'MDL-33056_dnd_status_bar' of git://github.com/davosmith/moodle
2012-06-06 08:30:02 +12:00
Rajesh Taneja
ac5f641465
MDL-33367 course: Deprecated message added to move_section, so it can be removed in 2.5
2012-06-05 09:34:36 +08:00
Ankit Agarwal
336d8c49f4
MDL-33465 course: 'Course view section' logs should use sectionid instead of section number to generate action urls'
2012-06-05 09:33:45 +08:00
Ankit Agarwal
5249ba7405
MDL-33369 course: Adding support for sectionid parameter for section view pages
2012-06-05 08:53:04 +08:00
Davo Smith
6c0ae99b69
MDL-33056 Course dnd upload - improved status box styling and added fade in/out
2012-06-01 11:27:42 +01:00
Rossiani Wijaya
34b84d45b6
MDL-32766 course view section log: update patch
2012-05-22 14:02:48 +08:00
Rossiani Wijaya
15a848ba90
MDL-32766 course log: specify log for viewing course section
2012-05-22 13:50:40 +08:00
Andrew Robert Nicols
01e0e7044a
MDL-30617 Add a javascript interface for adding modules to a course
...
This interface allows for additional metadata, such as the module's help
and icon, to be displayed.
2012-05-18 00:27:16 +08:00
Dan Poltawski
12ba24a8f8
Merge branch 'MDL-24419' of git://github.com/stronk7/moodle
2012-05-17 11:19:02 +08:00
Sam Hemelryk
7b06151288
Merge branch 'MDL-22504_drag_and_drop_upload_final' of https://github.com/davosmith/moodle
...
Conflicts:
course/lib.php
theme/base/style/course.css
2012-05-17 10:55:35 +12:00
Eloy Lafuente (stronk7)
94dc3c7d1e
MDL-24419 (5): Coding style cleanup
2012-05-17 00:51:50 +02:00
Sam Hemelryk
fbb4c959b5
MDL-32881 Prevent course/view.php from being cached
...
This should prevent browser caching which will ensure that changes made
using the course javascript (e.g. drag/drop, show/hide) will not be 'lost'
by using the browser back button.
This reverts commit 3aaa1843999eeb1832331ec5c8b30865fdba9710.
2012-05-17 10:12:29 +12:00
sam marshall
ce4dfd2703
MDL-24419 (4): Add conditional availability support to sections; section cache
...
Credit: original version done by Kirill Astashov of NetSpot (netspot.com.au),
finished and tweaked by sam.
This change adds conditional availability support for sections analagous to
that already available for activities. (Backend, UI, backup/restore.)
In order that this feature does not reduce performance, section cacheing has
also been added using a new course 'sectioncache' field analagous to modinfo.
The new feature integrates with activity availability so that activities
inside sections which are not available are automatically not available
themselves (meaning it works to restrict access).
2012-05-14 11:19:25 +01:00
Davo Smith
5103b5e667
MDL-22504 Course drag and drop upload - now correctly ignores disabled modules and allows upload to orphaned sections
2012-05-14 09:48:04 +01:00
Dan Poltawski
d628215d49
MDL-32508 course: turn editting on/off stays on current page
...
Rather than always going to the index page, we can edit on section page
2012-05-04 10:53:01 +08:00
Dan Poltawski
45774bddf7
MDL-32508 course: Switch to 'section' URL param
...
This is a course format independent url param and replaces weekly/topic specific params.
By using a standardised param we are able to use this url consistenly across the codebase
and reduce the risk of param collision
2012-05-04 10:52:58 +08:00
Dan Poltawski
e3c171e19b
MDL-32508 course/view.php: action cleanup
...
After doing actions redirect back to the 'real url' in order to
prevent problems with caching/bookmarking bad urls
2012-05-04 10:52:58 +08:00
Dan Poltawski
599a52fec7
MDL-32508 course/view.php: moderise with MUST_EXIST
2012-05-04 10:52:57 +08:00
Eloy Lafuente (stronk7)
ee5855687e
Merge branch 'MDL-31052-js-rewrite' of git://github.com/danpoltawski/moodle
2012-04-26 03:32:08 +02:00
Andrew Robert Nicols
ebaa29d107
MDL-31096 Convert course resource/section javascript to YUI3 Module
...
AMOS BEGIN
MOV [hideweekfromothers,moodle],[hidefromothers,format_week]
MOV [showweekfromothers,moodle],[showfromothers,format_week]
MOV [hidetopicfromothers,moodle],[hidefromothers,format_topics]
MOV [showtopicfromothers,moodle],[showfromothers,format_topics]
AMOS END
2012-04-23 21:28:39 +01:00
Petr Skoda
cdbea7eed1
MDL-31607 use full course object for require_login() if already available
...
This eliminates 1 db query.
2012-04-22 17:41:47 +02:00
Petr Skoda
f20edd5208
MDL-32094 fix various E_STRICT compatibility problems
2012-03-18 18:37:24 +01:00