Commit Graph

78 Commits

Author SHA1 Message Date
Mark Nelson 88e16674b2 MDL-46513 mod_chat: pass has_capability result to fullname function 2018-05-28 15:11:25 +08:00
Juan Leyva 2971d8421c MDL-57394 mod_chat: Move get session messages code to new function 2018-01-30 14:21:13 +01:00
Juan Leyva 9b82171b18 MDL-57394 mod_chat: Move get sessions code to new function
To avoid code duplication when creating new web services we need to
move code to a function chat_get_sessions.
2018-01-30 13:52:05 +01:00
Matteo Scaramuccia 307dce6cf3 MDL-60793 mod_chat: Renamed 'system' into 'issystem'
'system' is now a reserved word in MySQL 8.0.3+.
2017-12-18 15:23:11 +01:00
Damyon Wiese f619064b9b MDL-56719 boost: Style mod_chat for boost
I stayed away from big markup changes. This is a table layout so needs rewriting which is a big job.
2016-11-14 15:08:57 +08:00
Andrew Davis c52b4db52d MDL-46465 mod_chat: assorted coding style fixes 2014-07-28 10:01:41 +08:00
Andrew Nicols 4816e19a6f MDL-42464 mod_chat: Correct use of amp; in session link 2013-11-05 09:50:33 +08:00
Andrew Nicols 087c5d43c0 MDL-42464 mod_chat: Correct use of encoded & in link 2013-10-22 15:12:28 +08:00
Frederic Massart f49d814abc MDL-40048 mod_chat: Replacing add_to_log with new events
For this to be done properly, a new function to send the message
and trigger the event has been created. Following that a
data generator for chat, and some unit tests.
2013-09-23 11:41:33 +08: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
Mark Nelson 3774324174 MDL-33791 Portfolio: Fixed security issue with passing file paths. 2012-11-08 00:26:13 +01:00
David Monllao 6536217c78 MDL-34466 mod_chat Replace all instances of get_context_instance() with respective context_XXXX class in mod/chat 2012-07-27 13:26:04 +08:00
Rex Lorenzo 4ff8dccccc MDL-32670 mod/chat: also added missing call to ->set_heading in report.php 2012-05-02 19:09:43 -07: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
Andrew Robert Nicols 9e23487a10 MDL-30428 Add br tag when showing the 'Export to Portfolio' text 2011-11-23 14:07:52 +00:00
Sam Hemelryk 6708a1f525 MDL-27810 portfolio: Added ->portfolioenabled checks before creating portfolio buttons to avoid initialising portfolio requirements 2011-06-21 10:35:53 +08:00
Dongsheng Cai 6abbf02de7 "CHAT MDL-23374, removed require_capability" 2010-07-30 03:06:37 +00:00
Dongsheng Cai 708c2e041a CHAT, MDL-23374, fixed studentlogs option 2010-07-28 04:12:16 +00:00
Dongsheng Cai 29ea008012 "MDL-23374, chat, fixed undefined variable" 2010-07-27 03:29:49 +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 812dbaf7d5 MDL-21198 improved/simplified $OUTPUT->user_picture() + regression fixes, performance fixes and detected performance problems when printing user avatars 2009-12-27 19:47:21 +00:00
Petr Skoda 2f67a9b3a5 MDL-20700 whitespace terror returns yet again 2009-12-16 22:22:37 +00:00
Penny Leach 24ba58ee9a portfolio MDL-21079 be more selective about including libraries.
this involves moving all formslib includes to where they're actually needed.
it also moves the portfolio stuff from assignment,data,chat,forum and glossary
into a locallib.php which involved creating it for many of those modules.
2009-12-12 11:27:07 +00:00
Dongsheng Cai 2367795674 "MDL-20587, chat module, show sessions with just one users, based on Daniel Neis' patch, thanks" 2009-12-04 03:57:48 +00:00
Sam Marshall f1035deb97 MDL-21009 Group selector must use absolute links in order to work with javascript off 2009-11-30 17:12:48 +00:00
Petr Skoda e7521559ed MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 13:17:47 +00:00
samhemelryk eb588b22ab mod-chat MDL-19804 Added PAGE->set_url calls and removed deprecated functions 2009-09-23 07:08:43 +00:00
samhemelryk 296b589efd mod-chat MDL-19804 Updated print_header and build_navigation to OUTPUT and PAGE equivalents 2009-09-07 04:08:56 +00:00
nicolasconnault af7bad7997 MDL-19804 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:42:59 +00:00
nicolasconnault 29cd201ffa MDL-19804 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 05:02:38 +00:00
nicolasconnault d8772689b2 MDL-19804 Converted all print_footer() calls 2009-08-06 14:15:30 +00:00
nicolasconnault b2dc6880e4 MDL-19806 Migrated calls to print_heading 2009-08-06 08:21:01 +00:00
skodak 973d2660e6 MDL-16613 sesskey cleanup 2009-01-02 10:51:26 +00:00
mjollnir_ 0d06b6fda7 MDL-16423 - big refactor of the way callers interact with the portfolio code
added two new contract methods to the caller class, load_data and expected_callbackargs (static)
this means that the base class is the only place that needs a constructor
and that no data loading happens in the constructor
this in turn means we can check callback argument validity much more lightly

also completely remoted portfolio_add_button function and replaced with a class
as the argument list was getting out of control.  it's now much more readable.
2008-09-11 13:42:58 +00:00
dongsheng f1644b99f1 "MDL-13413, chat transcripts donot include instructor when using separate groups" 2008-08-27 02:21:11 +00:00
mjollnir_ 47cfd33174 MDL-15758 - chat module portfolio export 2008-08-18 10:16:56 +00:00
dongsheng 6089d5a075 "MDL-15278, see tracker" 2008-06-18 01:45:01 +00:00
skodak d3bf6f92f6 MDL-15104 chat dml conversion 2008-06-08 15:49:36 +00:00
dongsheng 2f52a088bf "MDL-14129, fix print_error" 2008-06-06 08:46:48 +00:00
dongsheng 5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
skodak 65bcf17b95 MDL-13450 and MDL-13303 - sorry for changing forum API so late, but it was needed; major perf improvement for forum; fixed printing of user pictures; merged from MOODLE_19_STABLE 2008-02-13 17:03:25 +00:00
tjhunt 38e179a4ed MDL-11741 - Convert core modules to take advantage of recent improvements to build_navigation.
This check-in removes about 400 lines of code. I hope I have not screwed anything up. I would be grateful if people could review this change, and keep an eye on the navigation bar in modules.

Any navigation bar bugs you find in the near future, feel free to file them in the tracker and assign them to me. Thanks.

If not to many problems are found, I think I would like to backport this to 1.9 stable, but I am not sure that is a good idea. Opinions to the General Developer Forum please. I am about to start a thread there.
2007-10-12 15:55:49 +00:00
mattc-catalyst a12e11c13a MDL-10888: groupings - mod/chat - update to work with groupings 2007-08-27 02:28:35 +00:00
mattc-catalyst 01e3838853 MDL-9473: Initialise navlinks array before use
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:55:24 +00:00
mattc-catalyst 3b27b0fe21 MDL-9615: Correct incorrect use of term breadcrumbs
- $crumbs -> $navlinks


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:40:48 +00:00
mattc-catalyst 70c6c0ad70 MDL-9474: Updated build_navigation() to use global $COURSE
- Removed $course parameter from build_navigation()
- Updated all calls to build_navigation()


Author: Matt Clarkson <mattc@catalyst.net.nz>
Committer: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-23 21:11:10 +00:00
mattc-catalyst 160addd2b2 Breadcrumbs: mod/chat changes
- Modified to use build_navigation() for breadcrumb generation.
- Removed print_header method as base class now provides this
  functionality.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 20:59:17 +00:00
toyomoyo d3981e3804 MDL-7861, chat realated xhtml strict fixes, changed stlye in notice_yesno 2007-01-09 04:50:07 +00:00
skodak 80aede31d3 fixed capabilities in chat recent activity, removed broken optimization from message insert, fixed closing of box MDL-7313; merged from MOODLE_17_STABLE 2006-10-31 21:07:00 +00:00
moodler 0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00