Commit graph

1432 commits

Author SHA1 Message Date
David Mudrak
03c7d2dc89 MDL-22015 Committing Petr's improvement of core_string_manager disk cache
Version bump needed so that the cache is cleared on upgrade. Cached
files are now valid PHP files instead of fetching them into string and
running eval(). Credit goes to skodak.
2010-05-24 14:53:34 +00:00
Petr Skoda
8f7b85ce32 MDL-22015 fixing property name, it really is disk cache, 2010-05-22 22:37:47 +00:00
Petr Skoda
3fdcc0a0df MDL-22015 moving CFG settings out from string_manager code to constructor parameters - this should help with testing in future and allows easier tweaking in advanced deployments 2010-05-22 22:31:19 +00:00
Petr Skoda
6b2ad29acb MDL-22546 more code cleanup 2010-05-22 20:02:17 +00:00
Petr Skoda
4cee2155b2 MDL-22546 improving dir creation handling and improving dataroot support in config only scripts; using 02777 as default in lib/setup.php to match the default in config-dist.php 2010-05-22 19:59:59 +00:00
Petr Skoda
efb8c37573 fixed a few comment typos 2010-05-22 18:38:18 +00:00
Petr Skoda
49d957abfc MDL-22533 removing obsoleted sso infrastructure - core updated too 2010-05-20 17:20:06 +00:00
Petr Skoda
3a1055a548 MDL-22532 support for fetching of large files via temp files 2010-05-20 17:13:07 +00:00
Petr Skoda
906fb8f883 MDL-17445 course deletion cleanup and adding new event that is triggered after removing course content 2010-05-20 07:59:13 +00:00
Martin Dougiamas
765a1d4ba8 MDL-19628 getremoteaddr() now normally returns 0.0.0.0, which is good for logs and so on. It can be made to return null when that is required, by a new parameter. 2010-05-20 02:36:20 +00:00
Petr Skoda
12bb0c3ef5 MDL-22515 plugin settings can be forced now too + minor CFG init refactoring + get_config() cleanup 2010-05-19 13:30:13 +00:00
Petr Skoda
adf176d711 MDL-22479 removed all get_admin calls from upgrade script, fixed regessions in get_users_from_config() and reimplemented admin support in admin_setting_users_with_capability(), switch non-unique usernames in admin settings to user ids and upgraded existing settings + some more validation 2010-05-18 16:59:08 +00:00
Martin Dougiamas
e641b745ee MDL-22015 Added a new setting langstringcache to enable/disable the string caching. Developers will want to switch this off. :) 2010-05-17 09:26:17 +00:00
David Mudrak
f53fde9f47 MDL-22015 core_string_manager cache can be disabled by setting $CFG->disablelangdiskcache 2010-05-16 19:58:47 +00:00
David Mudrak
9b3af74c35 MDL-22015 clear string_manager caches on upgrade 2010-05-16 19:37:19 +00:00
David Mudrak
2eebde6e5f MDL-22015 core_string_manager: caching and performance logging improved
The results of merged en + en_local + parentlang + parentlang_local +
lang + lang_local are now saved into disk cache in dataroot/cache/lang/.
The number of get_string() calls, and number of mem cache and disk cache
hits are part of performance logging.
Disk cache must be removed whenever the language packs or their local
customizations are deleted. Disk cache is rebuilt automatically.
2010-05-16 11:45:33 +00:00
Sam Hemelryk
4766a50c19 navigation MDL-22425 Restructured navigation for the nth time plus performance tweaking and course display limit 2010-05-13 09:57:43 +00:00
Andrew Davis
842cd18bc9 rss MDL-22204 added ability for user to reset their rss token 2010-05-13 02:07:57 +00:00
Tim Hunt
14f3ad159d moodlelib MDL-19418 fix bugs introduced when converting clean_param to preg.
Aumusingly, one of the bugs was detected by a unit test that was in Moodle 1.9, but
which for some reason was not in HEAD. I have tidied up the clean_param unit tests
and added a few more.
2010-05-12 12:05:59 +00:00
Andrew Davis
ffa3bfb36f rss MDL-22204 added library functions to allow the user to get a new rss token 2010-05-12 06:48:59 +00:00
David Mudrak
7d73574c6f MDL-22406 CLI installer now switches to core_string_manager() after the lang pack has been fetched 2010-05-10 14:46:59 +00:00
Martin Dougiamas
35f7287f7f MDL-11601 Get rid of leading spaces in days 2010-05-06 06:29:02 +00:00
Martin Dougiamas
03d9401e7d My Moodle MDL-19124 New version of My Moodle, User profiles and Course profiles, all with block support
Thanks very much to Remote Learner Canada, especially Hubert Chathi and Olav Jordan, for their work on the bulk of this code, and also Mike Churchward for supporting them.  I worked on it after that (actually simplified it by removing a feature temporarily: multiple pages) to bring it more to what I was imagining, and to provide a base to build on and get all the navigation perfect.

There's still work to do.  Some blocks don't quite work as expected, and some of the code still needs upgrading to bring it fully into line with 2.0.  We also could use a much better course overview block and better CSS styling of the profile pages.  But it's definitely more usable this it was, I think.
2010-05-04 13:04: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
Sam Hemelryk
1904e9b35b backup MDL-22142 This is the user interface for backups, several minor/cosmetic issues still to be ironed out. See the tracker for details 2010-05-01 09:51:39 +00:00
jerome mouneyrac
07ab0c80ec hub MDL-19309 new site registration form + course publication + community block 2010-05-01 05:05:55 +00:00
David Mudrak
a48bf07993 Fixing Chat event type + handling illegal eventtype displaying
Without this fix, chat created events with eventtype set to boolean.
Such value was then used by calendar block to get a string, which
now produces coding_exception.
2010-04-30 10:53:39 +00:00
Martin Dougiamas
323f61de71 MDL-22015 Sort the list of localised country names alphabetically by name, not code. 2010-04-29 07:43:19 +00:00
Martin Dougiamas
fe67f49251 MDL-22204 Adding get_user_key() as a convenience function for user keys 2010-04-29 05:29:51 +00:00
Dan Marsden
30b5ee6b06 Plagiarism Lib MDL-13680 - reverting commit for now. 2010-04-28 02:47:25 +00:00
David Mudrak
fe6a248f5a MDL-22015 String identifiers are now validated, coding exception thrown otherwise 2010-04-28 00:06:43 +00:00
Dan Marsden
cc3b3fae5d Plagiarism Lib MDL-13680 - add Plagiarism lib support for modules. - initially including the assignment module and Turnitin service - Backup deliberately excluded at this stage and I expect some of the file handling to change slightly before 2.0 release. 2010-04-27 21:52:07 +00:00
Petr Skoda
832d2d29a6 MDL-21781 removing user from cohorts during delete 2010-04-23 09:18:12 +00:00
Petr Skoda
5fa30fb7a6 MDL-21781 adding cohort as new core subsystem 2010-04-23 09:09:34 +00:00
David Mudrak
f66e44f26c MDL-15252 Fixed regression: timezone name string may not be defined 2010-04-23 00:11:54 +00:00
David Mudrak
664e45028c MDL-21694 documenting get_core_subsystem() purpose plus one typo 2010-04-22 19:40:22 +00:00
Petr Skoda
6d16792cf2 MDL-21694 usin new core_subsystesm() in renderers too; adding more docs 2010-04-22 08:45:36 +00:00
Eloy Lafuente
4bfdcfcf60 MDL-21432 backup 2.0 - initial commit. Enable forum backup 2010-04-21 14:17:11 +00:00
Petr Skoda
25346879b7 MDL-22085 support for iso-639-1 2010-04-20 08:36:22 +00:00
Petr Skoda
db975a46c0 MDL-22015 fixed recent regression 2010-04-14 14:37:56 +00:00
Petr Skoda
0aa759b01c MDL-22015 more get_list_of_countries() refactoring 2010-04-14 14:27:10 +00:00
Petr Skoda
42b702a627 MDL-22015 list of pix names is not used any more 2010-04-14 14:05:39 +00:00
Petr Skoda
97b7d149b6 MDL-22015 deprecated get_list_of_currencies() method - improved string_manager encapsulation 2010-04-14 14:04:21 +00:00
Petr Skoda
f6907ba954 MDL-22015 fixed php docs 2010-04-14 13:37:59 +00:00
Petr Skoda
ef686eb5c8 MDL-22015 new translation_exists() method - improved string_manager encapsulation 2010-04-14 13:16:20 +00:00
Petr Skoda
c11575dbe7 MDL-22015 improved get_string method - it can now fetch strings from any language, not just the current one 2010-04-14 12:51:53 +00:00
Petr Skoda
adea0621fa MDL-22015 improved country lists 2010-04-14 12:42:48 +00:00
Petr Skoda
b7db66cb09 MDL-22085 language name lists - implementation of iso-639-2 support 2010-04-14 12:14:18 +00:00
Petr Skoda
36f069fd6b MDL-22084 new API - making a clear distinction between list of our translations and list of all languages defined in ISO 639-3 2010-04-14 10:02:05 +00:00
Petr Skoda
1f96e907ea MDL-22084 making a clear distinction between list of our translations and list of all languages defined in ISO 639-2 2010-04-14 09:45:49 +00:00