Commit graph

5514 commits

Author SHA1 Message Date
donal72
38d507af71 Fix for version no. (date) in upgrade.php 2007-10-02 15:44:36 +00:00
donal72
ac4e96fccd New database fields in mnet_host for roaming themes 2007-10-02 15:43:11 +00:00
skodak
78fa15afc1 fixed typo in last commit - undefined $sql 2007-10-02 15:24:19 +00:00
martinlanghoff
5903fbf5e7 accesslib: dirty context handling now uses cache_flags
get_dirty_contexts() and mark_context_dirty() now use cache_flags
infrastructure. Remove deprecated cleanup_dirty_contexts() - this is
now handled by gc_cache_flags() in a more generic way.
2007-10-02 08:46:27 +00:00
martinlanghoff
bafd7e78e9 moodlelib: Introducing the cache_flags functions
These are functions for handling the volatile entries in the
cache_flags table.

 get_cache_flags() - get array of current flags
 set_cache_flag()  - set a single flag
 unset_cache_flag() - unset a single flag
 gc_cache_flags() - garbage-collect expired flags
2007-10-02 08:39:44 +00:00
martinlanghoff
e4a5c864b5 version bump: introducing cache_flags table to store volatile time-bound flags
We are intending to use them for dirty context paths, lightweight
session entries for auth/ldap, and other similar uses...

MDL-11347
2007-10-02 08:38:19 +00:00
martinlanghoff
ba2984bf2b dmllib: more consistent err handling for execute_sql() and others
Silent errors in execute_sql() have been causing us lots of grief.
Turns out that if you have dblogerror set, it _will_ write it to the
logs.

DMLlib wasn't consistent. Most "modern" codepaths were calling both
debugging() and the dblogerror idiom. So we make all calls to
$db->Execute() consistent.

(Some exceptions remain, mostly for hardcoded SQL, such as the SET
statements when we connect...)
2007-10-02 08:34:10 +00:00
moodler
0719c922ef Fixed a notice relating to customcorners not being initialised 2007-10-02 07:16:09 +00:00
toyomoyo
165088f687 change participants of frontpage course to display all users, if current user has capability MDL-11143 2007-10-02 03:37:30 +00:00
mattc-catalyst
f476ae28eb MDL-11538: lib/olson - bugfix, olson time-zone import doesn't deal with rule changes in the future
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-10-02 01:43:07 +00:00
skodak
b0dcd1288f MDL-10383 added new subarray into $SESSION->activegroup which store active group in groupings for users with accessallgroups permission - defaults to 0 on first use; this should solve the problem when user has accessallgroups only in one activity 2007-09-29 13:48:41 +00:00
skodak
41b7618ba2 MDL-11462 fixed PARAM_URL inline focs, uncommented old regex in URL validation library - official TLD not required anymore 2007-09-29 11:01:34 +00:00
skodak
5cf5e181dd MDL-11504 added grade_letter -> grade_letters migration - will not be executed on dev sites where grade_letters already exists :-( 2007-09-28 21:58:02 +00:00
skodak
d926630485 MDL-11504 fixed defaults in grade_items/display; added decimals and display to grade_items_history 2007-09-28 21:00:31 +00:00
skodak
284abb0925 MDL-11495 grade letter setting improvements:
* in_null for decimals defaults checks
* store letter settings only in database - no cfg settings
* separate configuration page for letters only - pluginselector+admin tree
* new capability to manage grade letters - similar to scales and outcomes
* added grade_letters db index
* grade letters related minor bugfixing
2007-09-28 20:12:43 +00:00
skodak
dafbc521ba MDL-11495 removed GRADE_DECIMALS_DEFAULT null constant, is_null() used instead for tests, -1 used in menu options 2007-09-28 11:08:44 +00:00
nicolasconnault
e9096dc2ca MDL-11480 Reviewed, tested, and pplied Petr's patch. 2007-09-28 07:55:51 +00:00
jmg324
ef0bd87b3f generate_email_supportuser needs to set maildisplay for email_to_user to include proper support details. 2007-09-27 12:38:40 +00:00
skodak
ae8adf77c0 MDL-10791 format_float() now supports non-localised output too (. decimal separator forced) 2007-09-27 09:58:40 +00:00
skodak
95aa0af862 MDL-11472 fixed harcoded mdl_ prefix in sql queries 2007-09-27 08:41:19 +00:00
skodak
42626376f3 MDL-11442 removed last instances of global $course 2007-09-27 08:18:28 +00:00
toyomoyo
349a4aea81 fixing a typo 2007-09-27 03:02:01 +00:00
toyomoyo
4d7e30b3d8 modifying get_user_by_capability to handle requests on frontpage courses and sub contexts. MDL-11143 2007-09-27 01:46:41 +00:00
tjhunt
3b0ee367a7 MDL-11466 - failing to check for the case $rs = false in the accesslib performance improvements. Credit for the fix goes to Gareth Morgan. 2007-09-26 21:31:54 +00:00
skodak
89489cfe94 MDL-11460 2007-09-26 19:25:50 +00:00
tjhunt
c6f9234ce3 Comment out an if (ajaxenabled()) check that was stopping any javascript included with require_js before print_header from being included, (but not js included afterwareds). See
http://moodle.org/mod/forum/discuss.php?d=81050 for discussion.
2007-09-26 17:48:27 +00:00
skodak
b6b1d1cac1 MDL-11460 new function moodleform->get_file_content($elname) in case we need to get content of uploaded files 2007-09-26 16:53:26 +00:00
nfreear
b741d2ef95 Fixes "Notice: Undefined property: stdClass::$hideactivitytypenavlink..." 2007-09-26 12:44:35 +00:00
moodler
2f99f1da14 Fixed the HTML editor being too wide for the messaging window MDL-11242 2007-09-26 11:21:54 +00:00
sam_marshall
cdaa941032 MDL-11455 renamed function I just added, to make it more consistent (sorry) 2007-09-26 11:19:41 +00:00
sam_marshall
18d43e964b MDL-11455 Added function and option to grouplib (also corrected another comment) 2007-09-26 11:13:09 +00:00
sam_marshall
d15da061a1 Corrected inaccurate comment (said 'group IDs' when it actually returns group objects) 2007-09-26 10:16:25 +00:00
tjhunt
8d503f7557 Get rid of duplicate $Id$ tags. 2007-09-26 10:11:13 +00:00
tjhunt
4827029b92 MDL-11454 - hard-coded mdl_ prefix. Also, wrong logic in is_siteadmin in accesslib.php. 2007-09-26 09:40:28 +00:00
toyomoyo
a6df7ee6fa get_default_frontpage_role_access() should prolly not load overrides below course level 2007-09-26 07:19:30 +00:00
toyomoyo
4e1fe7d109 MDL-11143, adding a new setting "defaultfrontpageroleid" where you choose a role for all users on the front page 2007-09-26 07:12:38 +00:00
nicolasconnault
d32100a522 Fixing OU report issues 2007-09-25 19:32:29 +00:00
sam_marshall
4d8e340715 MDL-11443 Added groups_get_grouping_name to match groups_get_group_name 2007-09-25 15:52:33 +00:00
nfreear
42ead7d7cd Fix MDL-7436 Accessibility "Indicate type of resource in the name of the resource" 2007-09-25 14:59:16 +00:00
nicolasconnault
31a6c06c46 MDL-11433 Implemented grade_items.decimals instead of user preference in grader report. 2007-09-25 14:40:49 +00:00
skodak
6510b0f09c MDL-11415 fixed our non-standard lang attributes in html purifier 2007-09-25 14:34:13 +00:00
skodak
0352cd2ffa MDL-11413 I hope now it is correct solution 2007-09-25 14:02:53 +00:00
skodak
e2fa911b73 MDL-11440 working fix for require_user_key_login() 2007-09-25 12:31:39 +00:00
nfreear
1d75edd0ae MDL-11436, Encapsulate "accesshide" HTML class in function. 2007-09-25 11:33:30 +00:00
nicolasconnault
b39b58fe45 MDL-11433 Correcting non-null and default value (Default will be NULL) 2007-09-25 09:47:40 +00:00
nicolasconnault
52cb2e4716 MDL-11433 Added decimals field to grade_items table 2007-09-25 08:35:16 +00:00
nicolasconnault
1796708d81 Replacing GRADE_REPORT_GRADE_DISPLAY_TYPE... by GRADE_DISPLAY_TYPE... 2007-09-25 08:22:20 +00:00
stronk7
28271c7205 Second pass. Some more default comments are out. MDL-11385 2007-09-24 22:10:13 +00:00
mattc-catalyst
acf000b077 MDL-11419 - groups: interface enhancements + new features:
* Display the grouping a course module belongs to on the course page - for course managers only.
    * When adding users to groups, display the groups a user already belongs to.
    * Added an overview report that shows groupings, groups and members for a course.
    * Added a dialogue to automatically create groups and assign members based on either the number of desired groups or the number of desired users per group.
2007-09-24 21:55:15 +00:00
skodak
535c0080c3 MDL-10781 reimplemented tags upgrade code: uses recordsets; no calls to tag/lib.php functions - those would break if we changed db structure; no ordering in blog tags - we did not respect the tag order before, this way it is much faster 2007-09-24 19:18:48 +00:00