Commit Graph

24767 Commits

Author SHA1 Message Date
moodler 4966836795 Extended choices in get_group_users 2005-02-19 03:00:07 +00:00
moodler 102dc313ea Fixing bug 2588 when server dates are used. 2005-02-19 02:49:31 +00:00
defacer e82d6cac81 Improvement when configuring a block instance: the heading shows the
block's original title as it appears in the lang files, not its "internal"
name.
2005-02-18 17:05:49 +00:00
moodler 4a7ba9ab87 Explicitly return an integer 2005-02-18 16:25:14 +00:00
defacer 48a6a7c2c9 Bad boy... broke moodlelib. 2005-02-18 14:45:35 +00:00
defacer 090cf95ae9 Fix for bug 2584:
All floatval() calls changed to (float) casts.
2005-02-18 14:42:04 +00:00
moodler ceff930730 Added a new table for logging ADODB requests and a config variable to
turn it on.  Very useful for debugging performance issues.
2005-02-18 14:12:38 +00:00
defacer 88ec5b7c8b Reverting back to gmstrftime for userdate() 2005-02-18 13:44:14 +00:00
moodler d43985607d Updated ADOdb to latest version 4.60 2005-02-18 08:37:18 +00:00
defacer afd8402cfa Changed id attribute of adminblock to class, just like every other block. 2005-02-18 03:37:07 +00:00
mjollnir_ 876714665d This SHOULD fix the bug where users get unenrolled and reenrolled in metacourses (2579). Needs TESTING PLEASE :) 2005-02-18 02:42:33 +00:00
defacer 57f1191c2e Last changes for DST! Now userdate() supports it as well! :) 2005-02-18 01:18:00 +00:00
defacer 8c0c2e9211 userdate() now transparently supports both new-style (gmdate)
and old-style (strftime) format strings.
2005-02-17 22:59:02 +00:00
defacer 85351042d1 Starting to fix userdate() to recognize DST as well. 2005-02-17 22:43:18 +00:00
defacer 85cafb3e5b DST stuff being worked on. 2005-02-17 21:58:45 +00:00
defacer 41b7678df3 Adding extra field to mdl_user table: dstpreset 2005-02-17 21:00:54 +00:00
defacer 36b51cb5d1 Move the dimensions of the collapse/uncollapse graphic image to CSS. 2005-02-17 14:33:30 +00:00
moodler d613daf00d Bug fixes for external authentication, from Eagle Eye Eloy! 2005-02-17 09:28:27 +00:00
moodler 9056cec068 Don't show an error if allownull is turned on with one file ... 2005-02-17 07:16:26 +00:00
moodler 20fde7b1f9 If the user needs to set up their account on logging in, then remember the
URL they wanted so they get there after setting up their account.


bug 2565
2005-02-17 06:15:22 +00:00
julmis c7ec213062 Merging from MOODLE_14_STABLE 2005-02-17 02:48:01 +00:00
moodler 4a4c30d24d Sort the blocks menu.. 2005-02-17 02:19:55 +00:00
defacer 02f0527dac Moving closer to DST... this whole thing is so damn _hard_ to grasp... 2005-02-16 22:55:13 +00:00
defacer 42d364974a Fixing stuff I broke with my last commit. 2005-02-16 22:04:14 +00:00
defacer 196f2619c0 Working for DST support. 2005-02-16 21:50:25 +00:00
defacer eca3b01f48 Remove needless sort. 2005-02-16 21:39:35 +00:00
gustav_delius ec81373f50 In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
moodler ed3136ff1e Adding styles to the user information 2005-02-16 10:34:02 +00:00
martinlanghoff e89ff6c6df Fixed course.idnumber not being varchar(100) in installations post 2004/06 2005-02-16 08:00:40 +00:00
moodler ee331e511f Style for paging 2005-02-16 07:40:22 +00:00
martinlanghoff 1c66bf597d Fixed bug 2553 - truncate_userinfo() was out-of-sync with prefix_user table definition. Added a reminder to the SQL files. 2005-02-15 23:12:57 +00:00
moodler b71143dc08 Forgot to check this in 2005-02-15 17:42:52 +00:00
moodler 3538a79693 New admin config variable 'allowuserblockhiding' will enable/disable the
collapsible blocks feature.  It's on by default.

Also, removed thead/tbody from blocks (using th instead for the header).
2005-02-14 16:42:52 +00:00
martinlanghoff d0a8be734e Merged from MOODLE_14_STABLE - Cleared a warning 2005-02-14 07:23:02 +00:00
martinlanghoff adfc03f90e merged from MOODLE_14_STABLE - trim() user data coming from external auth - now covers cases where we had a space on the truncation limit 2005-02-14 01:30:57 +00:00
martinlanghoff ca4030dd1d merged from MOODLE_14_STABLE - trim() user data coming from external auth - fixes problems with locked user data in auth/ldap in 1.5 2005-02-14 01:13:05 +00:00
gustav_delius ea97115290 Fix bug 1905 2005-02-14 00:03:21 +00:00
martinlanghoff f93426cf07 Merged from MOODLE_14_STABLE - Added option to respect php.ini session settings, else we reenable garbage collection for sessions. Fixes stale session problems with Debian systems, but still allows package maintainers to override. 2005-02-13 22:54:25 +00:00
stronk7 9e5c8dbdf6 The modified include_once was doing really strange things when retrieving
valid themes! Changed to simply include. Seems to work fine now. Please
check it under PHP 4.x...
2005-02-13 22:40:21 +00:00
moodler b56ccdd9d0 Reformatting some spaces to coding guidelines 2005-02-13 17:38:40 +00:00
gustav_delius 4bd2e69a51 When course is hidden a student trying to enter gets the new message "This course is currently unavailable to students", see bug 2511 2005-02-13 11:43:05 +00:00
moodler 56766f8592 More fixes to make custom themes work as expected.
I think it's pretty much perfect now.
2005-02-13 09:02:43 +00:00
moodler 9c4e6e2177 Really big cleanup of how "forced" themes were implemented.
Course themes now work better.

theme/xxxx/styles.php is now really short because all the logic
is in weblib.php.
2005-02-13 08:34:10 +00:00
gustav_delius 48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00
julmis 2fd4148763 Re-enabling reading for link attributes whats been commented out.
(HTMLArea.prototype._createLink) These lines were commented out for
bug 1455 but it created another bug #2504.
2005-02-12 21:06:09 +00:00
julmis b17a603812 Better fix for IE's too long statusbar text. Thanks Gustav ;-) 2005-02-12 16:05:59 +00:00
moodler c93f852dbc Some tidying up to remove notices and format code to guidelines :-) 2005-02-12 04:12:24 +00:00
julmis 30a6aad981 Fixing Bug #2521 Focusing editor removes too long status bar line from IE. 2005-02-11 21:20:33 +00:00
defacer 9ecf051d4c Styles and markup improvements. 2005-02-11 05:27:19 +00:00
defacer 5bbbe0be91 Changing the matching function that decides if a block is applicable for
display in a page. Previously it returned the FIRST match; now it returns
the BEST match.

This allows things like

 array('all' => true, 'mod' => false, 'mod-quiz' => true)

to work correctly regardless of the order the array elements appear in.

Also, encapsulated the check into a function (it has definitely become
non-trivial).
2005-02-10 18:43:18 +00:00