Commit graph

5838 commits

Author SHA1 Message Date
skodak
0dba6cb2c5 MDL-11576 grader report - if user can not see hidden grades they are treated as NULLs and column totals 2007-10-05 09:47:31 +00:00
moodler
b649ef92e3 Small efficiency improvement for print_user_picture() when it does access the db 2007-10-05 06:32:53 +00:00
toyomoyo
d292d1d2b0 MDL-11549, print_user() should also check user context when printing activity report link 2007-10-05 06:31:11 +00:00
skodak
1223d24a73 MDL-11580 support for hidden state modification in gradebook from activities (quiz now only) - part 1
the hiding/unhiding should be IMO locked in gradebook UI when activity overrides it
2007-10-04 22:57:14 +00:00
moodler
0371f8e52f Added some default roles that should have moodle/grade:viewhidden
related to MDL-11580
2007-10-04 15:45:37 +00:00
nicolasconnault
5961dbfb10 MDL-11576 Added the groupsql clause to has_hidden_grades 2007-10-04 08:16:13 +00:00
nicolasconnault
6df5b04ec7 MDL-11576 New grade_item method has_hidden_grades(), which returns a simple count of hidden grades for the item. 2007-10-04 08:02:00 +00:00
toyomoyo
7f0648510a MDL-11544, tags migrate script postgres db problem 2007-10-04 07:06:54 +00:00
skodak
d75731c6ac prevent returning of invalid array from get_course_managers() 2007-10-03 22:26:05 +00:00
stronk7
59bef7283d Moving 3 functions from datalib to deprecatedlib. Only used
by admin/cron.php. First step of MDL-11571 and MDL-11487
2007-10-03 16:31:20 +00:00
skodak
3d811bc167 MDL-11143 fixed defaultfrongpageroleid typo and fixed notices during install and upgrade cause by undefined $CFG->defaultfrontpageroleid 2007-10-03 14:38:55 +00:00
moodler
1afb11e70b Fixed longtimenosee unenrolments. user_lastaccess and role_assignments were growing with uneccessary entries, to the point where memory limits were reached and in the end NO unenrolments were happening at all.
See  MDL-11571
2007-10-03 12:24:06 +00:00
nicolasconnault
ece966f06e MDL-11482 Resolved the sum icon issue (added a new x-bar icon) and resolved a dependency problem in moodlelib 2007-10-03 12:22:25 +00:00
moodler
c8bb8644c4 Don't use the 100 limit for debugging in anything lower than DEBUG_DEVELOPER mode 2007-10-03 12:04:02 +00:00
skodak
c626c2f460 MDL-11566 site summary now optional 2007-10-03 10:35:34 +00:00
moodler
e873679b8a Fixed some notices but this needs review from Petr MDL-10383 2007-10-03 09:12:01 +00:00
moodler
2125f23e19 Make sure that the role names gets filtered in get_assignable_roles() 2007-10-03 03:33:57 +00:00
skodak
178bcb7523 MDL-11568 warnings - can not use $USER->property when not logged in - quick fix, please review last commits 2007-10-02 23:08:00 +00:00
skodak
1f41940f20 MDL-11523 fixed - moving categories and courses around breaks paths and depths in context table + some notice fixes 2007-10-02 22:34:12 +00:00
skodak
8e5da17a44 MDL-11562 supportname and supportemail are are now initialized after admin user setup
MDL-11566 only site shortname, fullname and desc are required/displayed during installation
MDL-11567 fixed upgradesettings redirects if error in settings
MDL-11143 defaultfrontpageroleid moved to Frontpage settings page (easier to find), speedup
2007-10-02 21:38:53 +00:00
tjhunt
75afe0e7e4 PHP docs for choose_from_menu function. Merged from MOODLE_18_STABLE. 2007-10-02 18:49:04 +00:00
skodak
c57be126c4 DONAL, PLEASE START USING OUR DB EDITOR! the last commit did have invalid XML, incorrect next/prev attributes, different data in install.xml and upgrade.php; the main reason to have this editor was to prevent this type of critical errors ;-) 2007-10-02 16:50:43 +00:00
skodak
266f6b5900 MDL-11555 temporary patch for too long index on mysql - in mysql the limit is 333 unicode chars
move the gradebook cleanup to the end of upgrade.php - please keep it there
2007-10-02 16:20:45 +00:00
donal72
1673e13423 Choose the correct theme for SSO-authenticated users. Roaming themes 2007-10-02 16:14:39 +00:00
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