Commit graph

1483 commits

Author SHA1 Message Date
Petr Skoda
39461de329 MDL-24837 improved user preferences internal implementation, general code cleanup, minor bugfixing, fixed '0' value regression and improved caching options in cron scripts (this should hopefully help with messaging performance in cron once it is used there), implemented basic unit tests for user user preferences 2010-10-25 20:44:32 +00:00
Andrew Davis
a813a74843 message MDL-24771 a big commit that fixes a whole bunch of small issues with messaging 2010-10-25 09:29:34 +00:00
David Mudrak
e540629edf MDL-24777 core function replace_smilies now uses emoticon_manager API 2010-10-23 18:40:46 +00:00
David Mudrak
7680da6ce8 MDL-24777 new emoticon_manager and its admin settings 2010-10-23 18:40:11 +00:00
David Mudrak
90831e4b06 NOMDL add_to_log() now uses SITEID when logging site errors 2010-10-19 16:08:55 +00:00
Petr Skoda
c22473a214 MDL-24751 fixed default memory limit when deciding to use apache_child_terminate(), apache_child_terminate() is now called from one place only 2010-10-19 10:00:29 +00:00
Petr Skoda
a4c3fc813a MDL-24751 increased default memory limit when deciding to use apache_child_terminate(), we can safely remove all other uses of apache_child_terminate() 2010-10-19 09:43:01 +00:00
Petr Skoda
30c396f09a MDL-24751 increased default memory limit when deciding to use apache_child_terminate, we can safely remove all other uses 2010-10-19 09:41:35 +00:00
Andrew Davis
6ee2611c63 message MDL-24563 altered messaging so that forum post notifications aren't so overwhelming when viewed on /message/index.php 2010-10-15 06:59:02 +00:00
David Mudrak
8dfb8a0343 MDL-24627 Unknown components are considered activity modules even if their name contains underscore 2010-10-12 12:56:59 +00:00
Petr Skoda
22a8fbdcf9 MDL-22739, MDL-23772 improved changeme hack + finally fixing the delayed changeme effect 2010-10-11 07:55:24 +00:00
Petr Skoda
8a8f1c7cd6 MDL-10137 rewritten cookie test on login page, username cookie is not required any more - hopefully this will be more reliable test 2010-10-10 17:30:28 +00:00
Petr Skoda
17c70aa007 MDL-16723 automatic redirects to https when loginhttps enabled - this solves accidental usage of http version + it also solves recent navigation regressions + fixed regression from PAGE conversions + deprecated old httpsrequired() and $HTTPSPAGEREQUIRED 2010-10-10 15:04:19 +00:00
Petr Skoda
b593d49d59 MDL-24570 multiple sitepolicy fixes + adding new separate guest user policy
AMOS BEGIN
 MOV [configsitepolicy,core_admin],[sitepolicy_help,core_admin]
AMOS END
2010-10-09 18:13:33 +00:00
Petr Skoda
45fb2cf898 MDL-24578 removed duplicate user delete functions, fixed unenrol bugs 2010-10-08 08:47:04 +00:00
Petr Skoda
e7521e4c13 MDL-6122 truncate_userinfo() has to use unicode aware functions 2010-10-06 19:12:49 +00:00
Sam Hemelryk
ef7af3dd5c NOBUG removed unused deprecated arg to mktime for php 5.3 2010-10-06 07:50:00 +00:00
Petr Skoda
e995de87e2 MDL-24446 prevent problems with invalid values of CFG->maxbytes 2010-09-29 21:50:11 +00:00
Petr Skoda
365a594107 MDL-24321 switching to stdClass in /lib/ 2010-09-21 08:07:44 +00:00
Dan Marsden
bce59524ce Plagiarism API MDL-13680 add plagiarism support for user submitted files - currently only added to single and advanced Assignment types - other modules to come in future. 2010-09-20 07:32:31 +00:00
Petr Skoda
9aeaf4c622 MDL-24148 bit more reordering - delete blocks before activities because they might use module data 2010-09-19 14:02:56 +00:00
Petr Skoda
582bae08ff MDL-24148 several course delete improvements and fixes:
* fixed order of deleting in course adn context
 * adding course context to event data because it is not available alter and some stuff may depend on old context id
 * adding option for context purging (keeps the context record because it might be still referenced later and it would be recreated)
 * new course enrol cleanup
 * removing content from some course fields that were referencing deleted content
 * coding style and phpdocs improvements
2010-09-19 13:09:48 +00:00
Martin Dougiamas
e72b3eb27f MDL-24147 Delete course_display when deleting course 2010-09-19 06:40:24 +00:00
Petr Skoda
c971707aff fixed phpdocs and proposed a better change 2010-09-18 11:52:59 +00:00
Petr Skoda
6c6b2b1024 adding missing global breaking some mnet jumping 2010-09-18 11:24:21 +00:00
Petr Skoda
09511cd3be fixing whitespace and commenting on some suspicious code 2010-09-18 11:23:46 +00:00
Petr Skoda
eab8ed9fb7 fixed a few spelling errors in /admin/ 2010-09-17 10:27:26 +00:00
Sam Hemelryk
d7eeb39ed7 NOBUG: Removed deprecated mktime arg from dayofweek func in moodlelib 2010-09-17 04:21:18 +00:00
Dongsheng Cai
c343ddf84e MDL-24157, clean up page_comments when reseting courses 2010-09-16 07:38:52 +00:00
Sam Hemelryk
224020ac1a course-completion MDL-24145 Course reset now has option for course completion data 2010-09-16 04:14:46 +00:00
Sam Hemelryk
3991bd7d69 course-import MDL-24176 Added mimetype mapping for moodle backup files to get_file_packer 2010-09-16 03:56:44 +00:00
Sam Hemelryk
5d38bd8c02 course completion MDL-24145 Course completion information is cleared by reset_course_contents 2010-09-16 03:45:28 +00:00
Dongsheng Cai
ec125c7596 MDL-22051, move comments deletion code to accesslib.php 2010-09-08 08:29:46 +00:00
Petr Skoda
c6947ba7a5 MDL-23899 migration to new locale aware asort 2010-09-05 13:00:47 +00:00
Petr Skoda
86f6eec327 MDL-23184 PARAM_CLEANHTML is work with real html markup only, it does not do our custom FORMAT_MOODLE tweaks anymore, luckily this was not supposed to be used before storage to database in 1.9, that means there should not be any BC issues;improved docs 2010-09-02 18:49:31 +00:00
Petr Skoda
9f75f77da3 MDL-23184 improved docs, do not show deprecated examples 2010-09-02 18:37:22 +00:00
Petr Skoda
7e4341f9f5 fixed php docs, PARAM_CLEANHTML does not strip backslashes anymore 2010-09-02 17:58:03 +00:00
Petr Skoda
44913c8d47 MDL-24063 finally after so many years developers have to specify parameter types in optional_param() and required_param() - the developers get standard PHP notices and debugging info, hopefully that will be enough to persuade everybody to stop abusing default PARAM_CLEAN; fixing php docs 2010-09-02 17:51:59 +00:00
Petr Skoda
b6059edcac MDL-22959 PARA_TEXT multilang whitelisting cleanup; the text is no longer being processed by kses or htmlpurifier - this should fix some recent regressions, any xhtml strict tweaking should be done in format_string() if necessary; unit tests included 2010-09-02 17:30:00 +00:00
Sam Marshall
46e1237279 Completion MDL-23995 Completion, availability data not deleted with modules/course 2010-09-01 17:02:56 +00:00
Petr Skoda
c426ef3aa5 MDL-23984 improvements of check_dir_exists() - replacing by make_upload_directory() in cases where we want to be sure that the dir is writable; removning now default create and recursive params to make code easier to read 2010-08-29 14:51:09 +00:00
Petr Skoda
4031f6a27c MDL-23984 improved check_dir_exists() and make_upload_directory() incorrect permissions throw fatal exceptions by default; it is possible to create dirs outside of dataroot (necessary for custom dir locations); fixed Win32 compatibility in session_exists method 2010-08-29 14:33:39 +00:00
Petr Skoda
389d17f9cc MDL-23985 removing all make_user_dir() and get_user_directories() usage 2010-08-29 09:50:36 +00:00
Petr Skoda
e0d8621854 MDL-23984 finally changing defaults for check_dir_exists() it should be now used mostly for temp and caches, because plugins have to use new file API; we also allow creation of dirs outside of dataroot in case somebody overrides paths in config.php such as langlocalroot 2010-08-29 09:36:21 +00:00
Sam Hemelryk
f5c1e62149 navigation MDL-23852 Added is_role_switched method to accesslib and implemented use of it 2010-08-27 01:44:25 +00:00
Petr Skoda
3e359a08a0 NOBUG improved coding style - it is always better to use === when comparing strings 2010-08-26 16:28:28 +00:00
Petr Skoda
c126d45243 MDL-23948 ignore 'phpunit' folder when looking for plugins 2010-08-26 16:27:14 +00:00
Dongsheng Cai
d846488e65 "MDL-23917, display comments for not logged in users" 2010-08-25 03:50:19 +00:00
David Mudrak
596810f6dc MDL-21696 Extending string_manager::load_component_strings() API to ignore customized translation
This seems to be the easiest way how to get current information about
the _local strings without re-implementing the logic of
load_string_manager() itself.
2010-08-23 16:51:45 +00:00
Sam Hemelryk
d4c3f025b1 NOBUG: Added a couple of descriptive classes to reused perfinfo class 2010-08-20 07:37:59 +00:00