Russell Smith
1fcf0ca8a5
MDL-35628 performance: Remove dirname() where possible.
...
dirname() is a slow function compared with __DIR__ and using
'/../'. Moodle has a large number of legacy files that are included
each time a page loads and is not able to use an autoloader as it is
functional code. This allows those required includes to perform as
best as possible in this situation.
2016-06-10 08:06:49 +10:00
Andrew Nicols
e90e0ea570
MDL-53755 forum: Check session when marking posts
2016-05-06 09:27:26 +08:00
Andrew Nicols
d954b54f9e
MDL-30811 forum: Update use of redirect to include message and type
2016-02-29 09:05:57 +08:00
Ben Kelada
3d8d8a8ca6
MDL-51253 forum: fix urls for exceptions and redirects
2015-09-14 14:18:50 +10:00
Andrew Nicols
7a311adbba
MDL-48019 mod_forum: Add sesskey checks when setting tracking prefs
...
This also removes set_url() and changes require_course_login to
require_login as guests cannot set tracking.
2014-11-05 10:35:12 +00:00
Andrew Nicols
0d7cb0f805
MDL-47930 mod_forum: Display all forum statuses correctly
...
It is possible for users with the mod/forum:managesubscriptions to
subscribe to forums with subscription disabled. This is handled by
forum_get_subscribe_link() already and should have been handled here all
along.
2014-10-29 11:52:54 +08:00
Andrew Nicols
7545e84661
MDL-47877 mod_forum: Correct subscription options for forums
...
Test was the wrong way around when checking subscription state.
2014-10-28 15:57:12 +08:00
Andrew Nicols
4238983e2a
MDL-47107 mod_forum Optimise forum subscription checks
...
Supply a coursemodule where relevant to the forum subscription checks.
2014-09-05 15:06:15 +08:00
Andrew Nicols
e3bbfb52c4
MDL-1626 mod_forum: Add functions to change user discussion subscription state
2014-06-24 12:16:34 +08:00
Andrew Nicols
59075a4349
MDL-1626 mod_forum: Move subscription management to a separate class
2014-06-24 12:16:33 +08:00
Marina Glancy
69d570c130
MDL-45466 forum: performance improvement for mass (un)subscriptions
2014-05-19 13:37:05 +08:00
Marina Glancy
1e242b41af
MDL-44321 events: cleaning up course_module_instance_list_viewed event
2014-02-28 16:36:09 +08:00
Eloy Lafuente (stronk7)
6a586f0036
Merge branch '44157-27' of git://github.com/samhemelryk/moodle
2014-02-18 00:51:33 +01:00
Sam Hemelryk
01030f1be6
MDL-44157 mod_forum: unified @package use
2014-02-18 11:15:10 +13:00
Dan Poltawski
2288139207
MDL-40062 mod_forum: convert viewed events
...
* course_module_instance_list_viewed
* forum_viewed
* course_searched
* userreport_viewed
2014-02-17 10:03:23 +08:00
Dan Poltawski
33c40cc633
MDL-40062 mod_forum: remove invalid add_to_log() calls
...
* debugging add_to_log() calls - the Moodle log is not the
place for these kind of messages
* subscribeall/unsusbcribeall - now individual subscriptions
will fire events, there is no need for a catch all.
* remove read tracking log entries - read tracking individual
log entries do not provide enough reliable information, as
the posts can be marked as read automatically after emailing
or an expiry period.
2014-02-17 10:03:23 +08:00
Eric Merrill
bd8f5d459d
MDL-29663 forum: Replace constant FORUM_TRACKING_ON with FORUM_TRACKING_FORCED
...
Commit for MDL-29663 that renames the FORUM_TRACKING_ON constant
to FORUM_TRACKING_FORCED to allow easier and more consistant reading.
FORUM_TRACKING_ON retained but marked depreciated.
2013-10-08 08:04:55 -04:00
Eric Merrill
20e6782f10
MDL-29663 forum: Option to allow Forced for read tracking.
...
Converts the use of Read Tracking On to Forced. Adds new admin setting
forum_allowforcedreadtracking. If set, Forced will be available when
adding or editing forums. In this state the forced forum overrides the
user preference of off.
With forum_allowforcedreadtracking not set (default) behavior is the
same as now, except forums previously set in the On state are treated
as Optional.
The side effect of forum_allowforcedreadtracking being on, is that users
cannot speed up the loading of course pages with lots of forums by
setting their personal forum read tracking option to off.
2013-10-08 08:03:54 -04:00
Marina Glancy
44ddd2a115
MDL-41219 course: Make properties of course_modinfo read-only
...
added phpdocs and unittests
2013-09-10 14:11:37 +10:00
Andrew Davis
66e2b9f8c2
MDL-38856 reposition activity group control and fixed titles in chat, database and forum
2013-09-02 11:49:39 +07:00
Andrew Nicols
8e08c731eb
MDL-4908 Forum: per-forum digests
2013-08-13 14:46:10 +01:00
Sam Hemelryk
f44e7d0a77
Merge branch 'MDL-36357' of git://github.com/danpoltawski/moodle
...
Conflicts:
user/view.php
2013-01-09 09:34:22 +13:00
Frederic Massart
99938034df
MDL-36782 usability: Adjustments following new mark as read icon
2012-11-27 13:46:21 +08:00
Dan Poltawski
0e35ba6ffc
MDL-36357 cleanup - remove double semicolons
2012-11-15 09:51:26 +08:00
Marina Glancy
71a56e08c8
MDL-35339 avoid using get_all_sections(), get_all_mods() and field section.sequence directly
2012-10-15 14:08:13 +08:00
Ankit Agarwal
0d4d49d18a
MDL-34471 libraries: changing strictness of context_XXXX::instance() when needed
2012-08-02 15:37:38 +08:00
Ankit Agarwal
bf0f06b1be
MDL-34471 libraries: Replace all uses of get_context_instance() with respective context_XXXX::instance() method
2012-08-02 15:37:38 +08:00
Petr Skoda
f20edd5208
MDL-32094 fix various E_STRICT compatibility problems
2012-03-18 18:37:24 +01:00
Eloy Lafuente (stronk7)
b688c44907
MDL-31426 forum: don't show/allow any subscription to not enrolled users
2012-01-30 23:20:03 +01:00
Aparup Banerjee
20ab954b3c
Merge branch 'MDL-30202' of git://github.com/rwijaya/moodle
2011-11-30 15:36:14 +08:00
Aparup Banerjee
4202a9173f
MDL-27334 : summarised comment about problem.
...
we have git for history.
2011-11-30 15:16:08 +08:00
Rossiani Wijaya
dbf4433d75
MDL-30202 forum module: fixed code regression for displaying rss feed icon (link)
2011-11-28 17:49:14 +08:00
adrian@moodle.com
b489d37d56
MDL-27334 - forum - Fixed the issue of error session keys being displayed when trying to browse to a site without logging in.
2011-11-23 09:43:39 +08:00
Sam Hemelryk
8ebbb06adf
MDL-29189 mutlilang Reviewed the uses of course shortname and ensured things are being formatted consistently
2011-09-08 09:30:27 +12:00
David Mudrak
c56ed7bb85
MDL-24561 forum: require sesskey for the course-wide subscriptions
...
mod/forum/index.php allows to subscribe to and unsubscribe from all
forums in the course. However, sesskey was not checked here.
2011-01-05 13:01:46 +01:00
Andrew Davis
1cd8c39922
forum MDLSITE-1034 fixed the logic around displaying forum subscriptions in index.php
2010-10-05 12:39:53 +00:00
Andrew Davis
aa60291e12
rss MDL-23391 alter the rss urls to be component names ie mod_forum instead of just module name ie forum
2010-07-19 10:57:52 +00:00
Sam Hemelryk
7487c85699
course formats MDL-22647 Course format names are now properly supported and used. Big thanks to Brandon Turner for the patch.
2010-06-08 06:21:25 +00:00
Andrew Davis
9e86f2e7a9
rss MDL-22204 fixed rss autodiscovery and made the RSS UI elements placement consistent
2010-05-13 08:44:35 +00:00
Andrew Davis
fcce139aa3
RSS MDL-22204 committing new RSS code. Uses a token to ID the user. RSS feeds also generated/updated as needed rather than by cron.php
2010-05-02 11:43:57 +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
David Mudrak
16be897441
MDL-21652 html_table rendering refactored
...
* class html_component does not exist any more
* class html_table rendered via html_writer::table()
* html_table, html_table_row and html_table_cell have public $attributes property to set their CSS classes
* dropped rotateheaders feature, should be added again after more research of possible ways (<svg> is not nice IMHO)
* dropped possibility to define CSS classes for table heading, body and footer - can be easily done and better done using just table class and context
2010-03-20 22:15:54 +00:00
Petr Skoda
a685593466
MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions
2010-01-16 15:39:56 +00:00
Petr Skoda
5c2ed7e215
MDL-21198 $OUTPUT->single_button() resurrection, hopefully much easier to use than $OUTPUT->button(); fixed some regressions and code style improvements
2010-01-03 15:46:14 +00:00
Petr Skoda
191b267bcd
MDL-20790 more page layouts -see base theme for full list; also added new css body class for describing current layout; base layout is now default for beter BC; require_login() now sets 'incourse' layout automatically
2009-12-27 12:02:04 +00:00
Petr Skoda
b5d0cafc6f
MDL-20787 final switch to new $OUTPUT->pix_url() - yay!
2009-12-16 21:50:45 +00:00
Sam Hemelryk
8f685009b3
forum MDL-21086 cleaned up boilderplates and php doc packages
2009-12-10 03:11:18 +00:00
Petr Skoda
1adbd2c350
MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup
2009-11-01 14:55:15 +00:00
Petr Skoda
2a250a0b2e
MDL-20697 removing duplicate error string cannotfindsite, fixing get_site() which is now using exceptions
2009-11-01 09:21:41 +00:00
samhemelryk
261c6ef0ea
forum MDL-19808 Upgraded deprecated calls
2009-10-16 03:20:23 +00:00