Git commits in Moodle 1.3.0 by defacer

commit d56d4e230f93b877d8f2f0da45760e96b47bc412
Author: defacer <defacer>
Date:   Mon, 24 May 2004 22:45:02 +0800
Tag:    v1.3.0

Some speed improvements for the calendar month blocks.

commit 43db620d225980292df503f7c2006fafd3d2ec68
Author: defacer <defacer>
Date:   Mon, 24 May 2004 22:25:04 +0800
Tag:    v1.3.0

Fixed stupid bug I put in a couple of hours ago.

commit c3553a553f6f7ddea890928027d9e0e162bfa421
Author: defacer <defacer>
Date:   Mon, 24 May 2004 22:20:32 +0800
Tag:    v1.3.0

Small bugfix: when entering the calendar with "on-the-fly" login, the breadcrumbs now display correctly. Even though there isn't normally any link that allows you to do this.

commit 11b0ffe898f07b3562355f93353c73559ac9a274
Author: defacer <defacer>
Date:   Mon, 24 May 2004 20:28:38 +0800
Tag:    v1.3.0

Adding event from day view defaults to that day for event start.

commit 0d5d9de2ba09d54ba4f6a29c13f85962d1dfcb71
Author: defacer <defacer>
Date:   Mon, 24 May 2004 20:23:08 +0800
Tag:    v1.3.0

Fixed a bug just introduced before in the event type selection screen.

commit eb15f829b6a7451c905a96df7eb32da1bfb163bb
Author: defacer <defacer>
Date:   Mon, 24 May 2004 20:12:41 +0800
Tag:    v1.3.0

The filters are back with a vengeance in event.php! Coupled with the breadcrumb course mirroring, everything works like a charm now! smile

commit 3756ef3d4886118ccf91cf63381be94f11675cd6
Author: defacer <defacer>
Date:   Mon, 24 May 2004 19:40:34 +0800
Tag:    v1.3.0

The course link in the breadcrumbs now mirrors the active course filter.

commit 8ccc9d060f2efb582e085cc193d40df2ead5d51d
Author: defacer <defacer>
Date:   Mon, 24 May 2004 19:16:06 +0800
Tag:    v1.3.0

The way this was written before, it produced a warning for unregistered extensions.

commit 2ef75eee2f4d639cdfef7fbcefaf4485e143af4b
Author: defacer <defacer>
Date:   Mon, 24 May 2004 19:10:00 +0800
Tag:    v1.3.0

Fixed a couple of warnings which happened if you accessed a course while not being logged in, during the redirection to login screen.

commit 2727648d55e63831a9bf19d953672b752178bcab
Author: defacer <defacer>
Date:   Mon, 24 May 2004 18:54:52 +0800
Tag:    v1.3.0

Gotcha! The event time in day view didn't respect the user's time format preference. Now it does.

commit fbb56b9db755be8b542826841b2db9687377746f
Author: defacer <defacer>
Date:   Mon, 24 May 2004 18:49:01 +0800
Tag:    v1.3.0

Fixed a bug where editing an event did display the "duration in minutes" stuff, but totally ignored it when submitting changes. Also, fixed one warning in the "minutes" field.

commit a2e1ee6d928fa3c052a300a628215d244be5ad12
Author: defacer <defacer>
Date:   Mon, 24 May 2004 18:38:16 +0800
Tag:    v1.3.0

Bump

commit c635dcda6c75a20bf3bf7e4008de953297951f4e
Author: defacer <defacer>
Date:   Mon, 24 May 2004 18:35:43 +0800
Tag:    v1.3.0

Fix for bug 1451: Now when moving to a calendar screen (technically, view.php) from a course block, the course drop down list defaults to that course. The implementation is OK, but I may change it (there is a faster way).

commit e9584ca3e293fc1902eda9094da904ed9d7d726d
Author: defacer <defacer>
Date:   Mon, 24 May 2004 18:04:59 +0800
Tag:    v1.3.0

Fix for bug 1453: Automatic "Re:" prefixes in forum replies now don't get chained in languages where the "re:" string has length != 3.

commit 40448bc24d0bde274fa413841f58fca2f939d0e3
Author: defacer <defacer>
Date:   Mon, 24 May 2004 17:52:57 +0800
Tag:    v1.3.0

Removed some notices with uninitialized variables when adding a new event.

commit 227bc46b519d4bb5a0d6c2e8cc8811153d999387
Author: defacer <defacer>
Date:   Mon, 24 May 2004 17:20:01 +0800
Tag:    v1.3.0

Preliminary fix for bug 1451 (needs some more work). Also a couple of notices removed.

commit 515e49edfb30297f1348bb29f7a5bc416ac22c9d
Author: defacer <defacer>
Date:   Fri, 21 May 2004 21:52:32 +0800
Tag:    v1.3.0

Removed obsolete strings

commit f10f1b7bdcf7ab3fdb8863b867a45e2676ae39c3
Author: defacer <defacer>
Date:   Fri, 21 May 2004 21:51:02 +0800
Tag:    v1.3.0

* Removed one obsolete function * Changed the expired events' color to dimmed * Added "new event" button in upcoming events screen * Small improvement (more robust) in redirection from set.php to upcoming events

commit f5e99d07a0fbd95e25615dadc3a170bac4961228
Author: defacer <defacer>
Date:   Fri, 21 May 2004 21:47:15 +0800
Tag:    v1.3.0

Removed obsolete class

commit ab9f24ad00ca62888ed5859eaef1864be9d068c4
Author: defacer <defacer>
Date:   Fri, 21 May 2004 21:07:11 +0800
Tag:    v1.3.0

Small fix (added method attribute to form) and some comments for the future

commit 8792061c5582a0d950861d606dc9af29623dd7d1
Author: defacer <defacer>
Date:   Fri, 21 May 2004 21:03:59 +0800
Tag:    v1.3.0

Modified to use popup_form() instead of custom code

commit dfad5bde309ea001cc32340a460ab07da2588241
Author: defacer <defacer>
Date:   Fri, 21 May 2004 20:28:42 +0800
Tag:    v1.3.0

Different icons for different event types, shamelessly stolen from moodle.org

commit 09462fcadc8710999b1b65ec153a4b09c84501a0
Author: defacer <defacer>
Date:   Fri, 21 May 2004 20:03:06 +0800
Tag:    v1.3.0

Small polishing change: the "go to calendar" link takes you to the upcoming events screen.

commit 4c479acb6ceef8c4b0b1ee088fbb01e28e333cfe
Author: defacer <defacer>
Date:   Fri, 21 May 2004 19:25:56 +0800
Tag:    v1.3.0

Bump

commit f434283f4fc37cd5722268981b98d354e566e5d5
Author: defacer <defacer>
Date:   Fri, 21 May 2004 19:24:22 +0800
Tag:    v1.3.0

Bye bye event details view...

commit 0784eb7ef1aab7b1955d64e2f9a5be45334c91e1
Author: defacer <defacer>
Date:   Fri, 21 May 2004 19:06:49 +0800
Tag:    v1.3.0

Now we can get a list of the blocks being on display in the course page. Could be used by one block to detect the existence of another, for example.

commit c5507e52f4228eaee27bdd00da03651699061dab
Author: defacer <defacer>
Date:   Fri, 21 May 2004 18:59:40 +0800
Tag:    v1.3.0

Small addition for the future: blocks will be able to define their own HTML attributes.

commit 34bf3ad4f37d953ad380717ad4319df1f4962dd5
Author: defacer <defacer>
Date:   Fri, 21 May 2004 18:54:46 +0800
Tag:    v1.3.0

Lots of usability improvements and some bugfixes:

commit 9a2ba13e51371f549e024d771c2fbc67b0c19765
Author: defacer <defacer>
Date:   Thu, 20 May 2004 23:36:20 +0800
Tag:    v1.3.0

One more bugfix introduced just now: enabling course events shouldn't enable site events, too.

commit f26c1535b6de6fc251c0ce25a7274e9319468e9e
Author: defacer <defacer>
Date:   Thu, 20 May 2004 23:29:01 +0800
Tag:    v1.3.0

One new string for the calendar, used in the latest changes.

commit 43c3ffbe2207afed3260097fd22f9ef3ebf40fa2
Author: defacer <defacer>
Date:   Thu, 20 May 2004 23:16:42 +0800
Tag:    v1.3.0

Major calendar overhaul:

commit e1ce345e40491822aa16cb53ca0384bd18dd5295
Author: defacer <defacer>
Date:   Thu, 20 May 2004 18:02:49 +0800
Tag:    v1.3.0

Fix for bugs 1423, 1424 (duplicated):

commit 250712fd7fb3e49cc59c65f5cf0950b2001dca45
Author: defacer <defacer>
Date:   Thu, 20 May 2004 17:58:14 +0800
Tag:    v1.3.0

Minor modification to the way the course event filter works (same functionality but more robust now).

commit 4e17c6f39e31df56ab3a81e94f0b86167f1741bb
Author: defacer <defacer>
Date:   Tue, 18 May 2004 15:51:46 +0800
Tag:    v1.3.0

Fix for bug 1416:

commit 65b0e53770a7ce1a6f28fa52e8e6ff9fa3fe70f0
Author: defacer <defacer>
Date:   Mon, 17 May 2004 17:31:06 +0800
Tag:    v1.3.0

Fix for bug 1194:

commit b1bcd540f03c4b7f5cfe62d06ad389cc47a959b5
Author: defacer <defacer>
Date:   Mon, 17 May 2004 17:07:05 +0800
Tag:    v1.3.0

Fix for bug 1323: When the admin is logged in as a different user, user events are shown correctly in the calendar.

commit b1295c5e21fb416f2d169c402b7d6f94cbc8e474
Author: defacer <defacer>
Date:   Mon, 17 May 2004 16:54:23 +0800
Tag:    v1.3.0

Random refinements.

commit 4131f3743fb4d2c3636bce3820756846cbe63bff
Author: defacer <defacer>
Date:   Mon, 17 May 2004 15:31:54 +0800
Tag:    v1.3.0

Fix for bug 1395:

commit f36e581d60ec4f9e42884783b9862c1566972420
Author: defacer <defacer>
Date:   Fri, 14 May 2004 22:15:24 +0800
Tag:    v1.3.0

Fix for bug 1330:

commit e4bbaab3c3a81e57fe22a7c7697057caa90da9e8
Author: defacer <defacer>
Date:   Fri, 14 May 2004 21:49:42 +0800
Tag:    v1.3.0

Half the work done for bug 1330: Now when creating events you don't select a course, the current course is selected implicitly.

commit 8c54cec6508b26858e9dafbc484da822a24af7a7
Author: defacer <defacer>
Date:   Fri, 14 May 2004 21:39:29 +0800
Tag:    v1.3.0

Month view: NOW it's working as I wanted it to. But is that as it should work?

commit 9ff136e50382069d498f63956ecee04cc2087188
Author: defacer <defacer>
Date:   Fri, 14 May 2004 20:48:50 +0800
Tag:    v1.3.0

Behavior change, according to Gustav's remarks on the forums. Events from courses other than the one you are browsing are not displayed in the month views or as upcoming events, except only if you explicitly do it in the full month view. However, if you manually go to a day with such an event and get a day view, you will see the event. Should I find a way to hide that too?

commit 1bb9d624c499c32618e5b6f5d5349a9fa27d6845
Author: defacer <defacer>
Date:   Fri, 14 May 2004 15:34:10 +0800
Tag:    v1.3.0

Fix for bug 1354:

commit ef3ae69ebd13d826f23172f2e865768ee53e65c4
Author: defacer <defacer>
Date:   Fri, 14 May 2004 15:11:48 +0800
Tag:    v1.3.0

Martin pointed out that only editing teachers get to see all the groups.

commit a8ae6b3923510940f46cb380630b03a2021c9be9
Author: defacer <defacer>
Date:   Thu, 13 May 2004 20:24:11 +0800
Tag:    v1.3.0

Removed the "hardcoded" method to find the block name, the correct is to ask the block itself. It was causing errors for blocks with no lang file. Also, removed some useless commented code.

commit 6c9584d1e55c7f76f5135ddc52eb1f73b7a00c25
Author: defacer <defacer>
Date:   Thu, 13 May 2004 18:32:12 +0800
Tag:    v1.3.0

Addressing bug 1384:

commit bc1728752a7cc65efc5a2cffab9fdf960c0c8f69
Author: defacer <defacer>
Date:   Wed, 12 May 2004 20:39:59 +0800
Tag:    v1.3.0

Added a colon here, instead of the language strings.

commit a6009112571b1714a27266e22736d7ff9084272f
Author: defacer <defacer>
Date:   Wed, 12 May 2004 20:28:16 +0800
Tag:    v1.3.0

English: added CVS $Id$ and moved a semicolon to the event edit form Greek: added $Id$, and some strings that were missing

commit d4950608dd8a60005afca05e7bb4c51065311ea6
Author: defacer <defacer>
Date:   Wed, 12 May 2004 15:33:06 +0800
Tag:    v1.3.0

Update, better and simpler handling.

commit 828c4e095a6a95734627a5a415e2464122838c4d
Author: defacer <defacer>
Date:   Wed, 12 May 2004 00:08:03 +0800
Tag:    v1.3.0

Preparation for Nuke blocks integration, and relaxing of requirements for block db upgrade scripts. We 're getting to a point where you can really have a directory with just a single 20-line file for your block and Moodle will do all the rest. Much like Nuke does now. That is A Good Thing! smile

commit f7656746120632e62c005127a8fdb187f4cd9487
Author: defacer <defacer>
Date:   Tue, 11 May 2004 18:36:35 +0800
Tag:    v1.3.0

Fix for bug 1365 (supplementary):

commit 00341feafbfe95658f734155d2579c962b92502a
Author: defacer <defacer>
Date:   Tue, 11 May 2004 15:20:44 +0800
Tag:    v1.3.0

Fix for bug 1365:

commit dab9f47075503e409c60ea219e14fdffb32de333
Author: defacer <defacer>
Date:   Tue, 11 May 2004 15:01:17 +0800
Tag:    v1.3.0

Fix for bug 1363:

commit acc61dc4498d993a442477b125e1cd0894685964
Author: defacer <defacer>
Date:   Tue, 11 May 2004 00:29:20 +0800
Tag:    v1.3.0

Added small links for the monthly calendar and adding a new event at the bottom of the block, as discussed in the forums.

commit f319962d8a00772167c84db68d614fdaa871eae3
Author: defacer <defacer>
Date:   Mon, 10 May 2004 16:35:03 +0800
Tag:    v1.3.0

Fix for bug 1354:

commit 33683b3655e91c5d1d2521242958277a594545db
Author: defacer <defacer>
Date:   Sat, 08 May 2004 21:35:11 +0800
Tag:    v1.3.0

Fix for bug 1334:

commit 61854a2fff9fde7d6a5b4ba4c53ea78b01055655
Author: defacer <defacer>
Date:   Fri, 07 May 2004 18:46:34 +0800
Tag:    v1.3.0

Eloy discovered this little bug hiding under the rug. Even though this code is not used at all right now, it was wrong and would need to be fixed when we have calendars for the site front page.

commit bacafa1ca9e0ec5c7523bb360abcdc977d422f00
Author: defacer <defacer>
Date:   Fri, 07 May 2004 18:42:11 +0800
Tag:    v1.3.0

Modified the behavior of upcoming events block to be the same as month block, even though there is no way to go from it to the detailed month view right now.

commit 51f8a12f2832517b88942f029b0dd953e70104a3
Author: defacer <defacer>
Date:   Fri, 07 May 2004 18:39:30 +0800
Tag:    v1.3.0

Fix for bug 1321:

commit bd1195678c47e40e7bb3ada783419d9436af2b93
Author: defacer <defacer>
Date:   Fri, 07 May 2004 18:15:10 +0800
Tag:    v1.3.0

Fix for bug 1320:

commit d715f7c4c0645bd3ebc33c60ced70064282ff420
Author: defacer <defacer>
Date:   Thu, 06 May 2004 15:45:10 +0800
Tag:    v1.3.0

Fix for 3-month pane event filters, now you don't get a "missing required parameter" error when you click on them. Reported by Ger Tielemans in the forums.

commit e70fdac090b9ccd5ff3447f8c894050574b17bff
Author: defacer <defacer>
Date:   Mon, 03 May 2004 23:26:55 +0800
Tag:    v1.3.0

L10n fixes and a bug fix... at least I _hope_ they were fixes...

commit aa870ca24ab3973b5bc3227e3a7ff9b4ed38d517
Author: defacer <defacer>
Date:   Mon, 03 May 2004 22:07:35 +0800
Tag:    v1.3.0

Some l10n problems fixed.

commit 6e8e8ec68540b5ea44a5eefb661c9c20e9c95849
Author: defacer <defacer>
Date:   Fri, 30 Apr 2004 16:59:04 +0800
Tag:    v1.3.0

Fix to display correctly formatted dates in some cases where they were not being localized as they should. Also, small cosmetic addition of a space between words in the date representation (I had missed it).

commit a322925858b1f693e9ea0b4af9ee343f4a6bcca2
Author: defacer <defacer>
Date:   Fri, 30 Apr 2004 16:48:39 +0800
Tag:    v1.3.0

New strftime string for use by the calendar: Month Year.

commit 47a2aa48daa8f42978073688f120d0505b7cd261
Author: defacer <defacer>
Date:   Thu, 29 Apr 2004 18:29:48 +0800
Tag:    v1.3.0

Fix for bug #1280: the "showrecent" course setting has to go.

commit 7a8bcd59e841ebdeb59c611c487ec7732831543f
Author: defacer <defacer>
Date:   Thu, 29 Apr 2004 18:29:23 +0800
Tag:    v1.3.0

Fix for bug #1280: the "showrecent" course setting has to go.

commit 9ac503147c2e62d122c2afeadede4590462ec290
Author: defacer <defacer>
Date:   Thu, 29 Apr 2004 18:28:58 +0800
Tag:    v1.3.0

Fix for bug #1280: the "showrecent" course setting has to go.

commit 10ee08cc65df3d1777760e13313e6518ca2636a0
Author: defacer <defacer>
Date:   Thu, 29 Apr 2004 18:28:19 +0800
Tag:    v1.3.0

Fix for bug #1280: the "showrecent" course setting has to go.

commit 0ef7c97344895ec998dc4dd51f2e10547a230aa3
Author: defacer <defacer>
Date:   Thu, 29 Apr 2004 15:50:12 +0800
Tag:    v1.3.0

Small change to better respect the lang file date settings. Should be objectively "better" now. See http://moodle.org/mod/forum/discuss.php?d=7450 for the issue.

commit 7a4d9aa83dc2d93c1f148055e5d411e567d32f29
Author: defacer <defacer>
Date:   Wed, 28 Apr 2004 23:28:32 +0800
Tag:    v1.3.0

New FREE Unicode TTF with Greek (and other languages, too).

commit 89ace597518b737e158cbbedd635a18f90e8990f
Author: defacer <defacer>
Date:   Wed, 28 Apr 2004 23:21:38 +0800
Tag:    v1.3.0

Fixed my own stupidities...

commit df8d70ae6f641a64ea80084d9053e9ce17d0f0ba
Author: defacer <defacer>
Date:   Wed, 28 Apr 2004 23:02:21 +0800
Tag:    v1.3.0

Dubious legally... so removed.

commit ef3b39b7917c1b041ac380c7249c68cf17c38f37
Author: defacer <defacer>
Date:   Wed, 28 Apr 2004 18:20:30 +0800
Tag:    v1.3.0

There are serious problems with event.php and mini-calendars, mainly because we don't have much information about courses at that stage. Started to fix things up, but there is still work to be done.

commit 6e245258d24594e1421c16b17b5022e349714ba1
Author: defacer <defacer>
Date:   Wed, 28 Apr 2004 17:46:56 +0800
Tag:    v1.3.0

Changed a few visuals, mainly colors to better distinguish among event types. It's probably better this way.

commit 93c2cbcff18b43aa265d3e0f04973a3a48cdb688
Author: defacer <defacer>
Date:   Wed, 28 Apr 2004 00:32:50 +0800
Tag:    v1.3.0

OpenType Unicode font with Greek support (Arial) plus lang_decode.php so that we can have graphs with greek legends.

commit 9159b0fed6b76aca15ff2fbab5ae27b39494872f
Author: defacer <defacer>
Date:   Mon, 26 Apr 2004 18:44:16 +0800
Tag:    v1.3.0

Fixed bug reported by John Ryan (http://moodle.org/mod/forum/discuss.php?d=7347) which caused group events to not display under any circumstances.

commit 46fec6a3f986d985320d038bf394dd2cbe11f6a4
Author: defacer <defacer>
Date:   Mon, 26 Apr 2004 17:31:02 +0800
Tag:    v1.3.0

Well, this is a bug FIX at least! smile All teachers showed up as having editing rights... corrected now.

commit ce557a6eaca7acb5270c058d3ba04127bdcd1a2e
Author: defacer <defacer>
Date:   Mon, 26 Apr 2004 17:28:28 +0800
Tag:    v1.3.0

Rollback the previous change: I introduced a bug by mistake! :/ But the system is a bit... strange... shouldn't the "editing mode" flag be propagated in the session variables or something? It confused me having to click "Edit" a second time after I 'd just clicked it in the course view.

commit dfd479fd67276874d4af39855cbd3579f33c303c
Author: defacer <defacer>
Date:   Mon, 26 Apr 2004 17:20:41 +0800
Tag:    v1.3.0

Fixed an unset property warning if you are an editing teacher but no edit variable is set in the URL.

commit 381b379798865832cf82e723d5ae270f071077c6
Author: defacer <defacer>
Date:   Mon, 26 Apr 2004 17:03:40 +0800
Tag:    v1.3.0

Removed obsolete function from pre-OO days.

commit 1b0ebe79b1b3370ed7644594ec8a5280f6b054c3
Author: defacer <defacer>
Date:   Thu, 22 Apr 2004 17:02:23 +0800
Tag:    v1.3.0

Addressing bug 1257:

commit c867774d763c2887062f3822a2fb8dcbf164f50f
Author: defacer <defacer>
Date:   Thu, 22 Apr 2004 15:11:55 +0800
Tag:    v1.3.0

Changed the way the fix for bug 1255 works, while making sure it still works smile It just didn't feel right to intrusively set object properties from "outside", and since it's now one variable assignment less, I thought why not... smile

commit 95a892257c89eb089bbe079784c4ec6bd2e99d95
Author: defacer <defacer>
Date:   Tue, 20 Apr 2004 21:00:39 +0800
Tag:    v1.3.0

Corrected a bug that prevented admins from seeing events for ALL site courses (today's functionality was not complete yet).

commit 053c98cff976a818279abcbf188b6be1d81886ce
Author: defacer <defacer>
Date:   Tue, 20 Apr 2004 20:49:02 +0800
Tag:    v1.3.0

Fixed a whole bunch of warnings and minor bugs, which all shared a common cause: The preferences screens weren't handling filter changes correctly.

commit 562727705f683463df8a2d35e5aa7393efc8be63
Author: defacer <defacer>
Date:   Tue, 20 Apr 2004 20:14:57 +0800
Tag:    v1.3.0

Upgrade with more intelligent CSS rules. Maybe needs some color changes, but I 'm not really much of an interior decorator... smile

commit 9087d5e2192d47e8d9eae3eacee522ceed5ecdf8
Author: defacer <defacer>
Date:   Tue, 20 Apr 2004 20:03:20 +0800
Tag:    v1.3.0

Upgrade with more intelligent CSS rules. This one needed color changes.

commit ec1a875cbb07818043e8f22403ba522ea5e00550
Author: defacer <defacer>
Date:   Tue, 20 Apr 2004 19:57:41 +0800
Tag:    v1.3.0

Upgrade with more intelligent CSS rules. I tried very hard not to undo any of Andrea's changes. Took a couple of guesses along the way. Sorry if I guessed wrong!

commit 65660de888e02622d4c833c1e8498e764b29eb46
Author: defacer <defacer>
Date:   Tue, 20 Apr 2004 19:41:18 +0800
Tag:    v1.3.0

Upgrade with more intelligent CSS rules. Maybe needs some color changes, but I 'm not really much of an interior decorator... smile

commit 66c785e1a50ea5bbc161973b6ba3a9b907a5ba97
Author: defacer <defacer>
Date:   Tue, 20 Apr 2004 19:18:35 +0800
Tag:    v1.3.0

Upgrade with more intelligent CSS rules. Looks like no calendar colors need to be changed from standard.

commit 496659193fcda66b798befc29b34b23220844c63
Author: defacer <defacer>
Date:   Tue, 20 Apr 2004 19:17:31 +0800
Tag:    v1.3.0

Upgrade with more intelligent CSS rules.

commit 92668ad2e504ddc0cd0246f0a2cd581b3d1e9f04
Author: defacer <defacer>
Date:   Tue, 20 Apr 2004 19:14:55 +0800
Tag:    v1.3.0

Revision of the calendar tables HTML. Current version outputs a LOT less HTML (mainly class attributes) but requires ALL themes to update their CSS rules.

commit 2b7591ccbc891b13a2e969a6a01d5ba9bfc149fe
Author: defacer <defacer>
Date:   Tue, 20 Apr 2004 17:27:59 +0800
Tag:    v1.3.0

Fixed an "unset variable" warning in the filter controls in the upcoming events calendar screen.

commit 1f695119c525c6837fc5d1b59f71199f20cfbaa2
Author: defacer <defacer>
Date:   Tue, 20 Apr 2004 17:21:30 +0800
Tag:    v1.3.0

Admins can now filter events by course and set events for groups and courses regardless of whether they are course members.

commit 6c127628a7d14318dc7f7ce3b7e36f0a9fa11b30
Author: defacer <defacer>
Date:   Tue, 20 Apr 2004 16:44:06 +0800
Tag:    v1.3.0

Removed some long-dead code and commented out some newly-dead code, now that we have the blocks system. Making the file parse faster... yum! smile

commit d7baeddac5532c222661dc09f0f94bfdb1730f61
Author: defacer <defacer>
Date:   Tue, 20 Apr 2004 16:38:56 +0800
Tag:    v1.3.0

Grand Bugslayer Eloy at work again: Hiding the blocks if they have no content should mean "if they have no content AND no footer".

commit 48f508ab94191f5424dbeb59db268716693ac976
Author: defacer <defacer>
Date:   Tue, 20 Apr 2004 16:24:37 +0800
Tag:    v1.3.0

If group mode is no groups and forced, there is no point in displaying the group events filter. Just a nice touch, fixed only in course view for now.

commit ca319818fc7be7a011895c17cc0d7a77f7d2e41a
Author: defacer <defacer>
Date:   Tue, 20 Apr 2004 15:43:26 +0800
Tag:    v1.3.0

Don't display blocks that have no content at all. I 'm not sure if this could cause any confusion, but it solves the problem with the admin block being displayed to guests.

commit 82b181f2654c8f9e4b69c96bcdc260d5d771fc04
Author: defacer <defacer>
Date:   Tue, 20 Apr 2004 15:32:57 +0800
Tag:    v1.3.0

Eloy is probably right, the preferred width calculation should be cached.

commit 6757c3cdc63c3a148c0fc82eae9003bea933ca63
Author: defacer <defacer>
Date:   Mon, 19 Apr 2004 17:36:07 +0800
Tag:    v1.3.0

Added content "caching", same as all other blocks have.

commit 59d2a75d99ef4e2ec3bc33bb5af0bf5c4167f6e1
Author: defacer <defacer>
Date:   Mon, 19 Apr 2004 15:39:43 +0800
Tag:    v1.3.0

Fixed/added some things so that the instructions are mostly correct.

commit 46971293dc63e57001ea34aa7c7d98ee83a30889
Author: defacer <defacer>
Date:   Wed, 14 Apr 2004 22:13:22 +0800
Tag:    v1.3.0

1. Wrong translation of the word "by" in this context 2. Translated $a member variables! God help us! (no wonder eval() complained)

commit 00e651d1c1da3d9bcfe0bcea23e5ca89bd3b9e50
Author: defacer <defacer>
Date:   Tue, 13 Apr 2004 20:19:33 +0800
Tag:    v1.3.0

Added a new string for use in the upcoming events block.

commit 73341343a6e04da35aaf703bf42eec40893a26aa
Author: defacer <defacer>
Date:   Tue, 06 Apr 2004 22:01:43 +0800
Tag:    v1.3.0

Corrected an oversight: the id variable isn't needed on the front page. (Or so I think... brain's a bit moodled right now... ;)

commit 2b10fcf5a8d81dd9c1b370233c128464b7f418fc
Author: defacer <defacer>
Date:   Thu, 01 Apr 2004 20:51:24 +0800
Tag:    v1.3.0

Following Eloy's suggestion and Martin's clarification, the wizard is going to demonstrate a feat where 10 lines of code turn into 2, and a global var dependency vanishes at the same time! ;)

commit f30fe8d0635d10e8d186714729601dbab8a384ae
Author: defacer <defacer>
Date:   Thu, 01 Apr 2004 20:27:37 +0800
Tag:    v1.3.0

As per Martin's suggestion:

commit f3d142dae401d34c0b56dfa8c8833d4884a68f14
Author: defacer <defacer>
Date:   Thu, 01 Apr 2004 19:29:25 +0800
Tag:    v1.3.0

Fix for the fix: Turns out that next() returns false if an array element's value is 0 (the php docs speak only about the key... :/). Good thing that my test user's timezone is set to GMT+0. This should work no matter what.

commit 556596510a7c4e7aa97e3b3c9d3d96ff08d4c3cf
Author: defacer <defacer>
Date:   Thu, 01 Apr 2004 18:59:46 +0800
Tag:    v1.3.0

The check for setting event dates before the course start date was written incorrectly. What was I thinking?

commit a36166d3274117a965dacb61cfaa2df5b0b09110
Author: defacer <defacer>
Date:   Thu, 01 Apr 2004 18:39:06 +0800
Tag:    v1.3.0

The timezone selection didn't work correctly... if there WAS a $USER->timezone set but it was set to 99, it didn't check the $CFG->timezone setting. Fixed now. Fancy implementation, forgive me please! ;)

commit d8ba183c393af99f503da881eb72fac2c991b00a
Author: defacer <defacer>
Date:   Thu, 01 Apr 2004 18:11:20 +0800
Tag:    v1.3.0

Checking for the $CFG->timezone value as a last resort in the various user date/time functions didn't work because there was no global $CFG; :O

commit 516a684ad7de69f495bc91ee4e709f2ff5c45d26
Author: defacer <defacer>
Date:   Thu, 01 Apr 2004 17:27:23 +0800
Tag:    v1.3.0

In Eloy's notice-finding spirit, I continue by fixing another notice which also (damnation! smile caused the HRs not to be displayed as they should.

commit f80c8e0f5288bcf5a2032eb20fc5c5e4ef4715e8
Author: defacer <defacer>
Date:   Thu, 01 Apr 2004 17:08:23 +0800
Tag:    v1.3.0

Eloy's finding: The name and description fields were not initialized when going into the "new event" form, so they printed warnings INSIDE the fields with error_reporting(E_ALL). Added initialization as empty strings.

commit 93db786cdc362b9d134f1e935a6406a22b899dfb
Author: defacer <defacer>
Date:   Thu, 01 Apr 2004 16:58:29 +0800
Tag:    v1.3.0

Eloy's finding: If the user is not a teacher or a student anywhere, this caused an SQL error. It was handled correctly, but why an SQL query at all if we can optimize it away?

commit 3696526bf3f37adf09dd208a9e3a3f9572bb9788
Author: defacer <defacer>
Date:   Thu, 01 Apr 2004 16:52:34 +0800
Tag:    v1.3.0

Eloy's finding: fixed three 'undeclared variable' notices. Leftovers from cutting and pasting code, I just deleted them.

commit efc81294ebe08d3a557eac333c30b416f8ecf9ec
Author: defacer <defacer>
Date:   Thu, 01 Apr 2004 16:45:38 +0800
Tag:    v1.3.0

Eloy's finding: Unset $string['default'] variable fixed.

commit ed151929e3ad616369e8632e211bfbbaa9a76e16
Author: defacer <defacer>
Date:   Wed, 31 Mar 2004 15:18:32 +0800
Tag:    v1.3.0

Modified handling of the first day of the week to default to the "firstdayofweek" language string value, according to Eloy's suggestion. Thanks for the tip! smile