Mark Nelson
b3cb726431
MDL-49985 core_course: revert commit belonging to MDL-18309
...
This reverts commit 6601690202
.
This commit was adding the 'returnurl' param unnecessarily to the
course links in the navigation block, causing a lot of long URLs
to be created.
2015-05-05 01:09:20 -07:00
Gregory Zbitnev
6601690202
MDL-18309 Course: enrol/index.php returnurl improvement
...
This patch improves usability of enrolment page in case of course is not
enrollable. 'Continue' button now returns student to referring page instead of
main moodle page (as it used to be). To make this improvement, passing correct
returnurl parameter to enrol/index.php page was implemented for links that may
be accessible for not-enrolled students.
2015-04-10 09:32:31 +08:00
Juan Leyva
2258883544
MDL-49453 course: Move view trigger event to a new API function
2015-03-26 16:30:15 +01:00
Ankit Agarwal
e56e8e3a0e
MDL-44985 libraries: Final deprecation of conditional classes and apis
2014-12-10 12:20:37 +05:30
David Monllao
d931574ff9
MDL-33606 course: Adding section info to course_viewed log
...
Also changing references to section id to
section number, that it is what it really is.
2014-11-17 15:18:18 +08:00
Rex Lorenzo
6fa877e243
MDL-47555 core_availability: Issue with page layout & grade restriction
...
* Set pagelayout before getting section info, otherwise conditional activity renderers will default to the default 'base' layout.
2014-10-10 14:57:21 -07:00
Sam Hemelryk
a5f4213939
MDL-45248 course: fixed assumptions when logging a course view
2014-04-28 08:12:35 +12:00
Petr Skoda
f49151c30b
MDL-41185 cleanup course viewed events
...
Thanks Marina for spotting some of the issues.
2014-04-21 18:12:53 +08:00
Adrian Greeve
68a7235889
MDL-41185 events: Added events for different course view pages
2014-04-21 17:39:18 +08:00
Andrew Nicols
af64bc6179
MDL-33099 Javascript: Deprecate the ajaxenabled function
2014-02-17 14:11:21 +08:00
Jason Fowler
761c5fc274
MDL-37679 Course: Adding section name to page title
2013-12-17 11:42:01 +08:00
Sam Hemelryk
c3d2fbf9cd
MDL-40931 useragent: separated user agent functionality into a lib
...
This commit moves user agent related functionality out of several
core libraries and combines it into a more manageable class.
All core uses are converted and functions deprecated in favor
of the new class.
2013-08-26 13:59:19 +12:00
Damyon Wiese
9ead041cdb
Revert "MDL-40931 useragent: separated user agent functionality into a lib"
...
This reverts commit af62237d0e
.
This reverts commit 87a4194fdc
.
This reverts commit b2c66eb60c
.
Conflicts:
version.php
2013-08-22 13:31:25 +08:00
Sam Hemelryk
af62237d0e
MDL-40931 useragent: separated user agent functionality into a lib
...
This commit moves user agent related functionality out of several
core libraries and combines it into a more manageable class.
All core uses are converted and functions deprecated in favor
of the new class.
2013-08-16 09:02:01 +12:00
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 0a5181a0df
.
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 87a31bb5d8
.
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