Git commits in Moodle 1.4.x by martinlanghoff

commit 9132b70313808d464feb00b5184e2d513f57fc06
Author: martinlanghoff <martinlanghoff>
Date:   Sat, 07 May 2005 11:02:59 +0800
Tag:    v1.4.5

Block link prefetching from Mozilla and Google Web Accelerator.

commit 085c7c40e8933b85729969c7740ec3f1e81e02fb
Author: martinlanghoff <martinlanghoff>
Date:   Sat, 07 May 2005 09:30:05 +0800
Tag:    v1.4.5

Fixed calls to set_user_sesskey().

commit 8ae3ede1340251a85500bb3b73a721810aaab170
Author: martinlanghoff <martinlanghoff>
Date:   Sat, 07 May 2005 08:32:40 +0800
Tag:    v1.4.5

Release notes now link bug numbers to bugtracker.

commit 7df9662c23967521a0f85546efcaee29bc5e90bf
Author: martinlanghoff <martinlanghoff>
Date:   Sat, 07 May 2005 08:08:14 +0800
Tag:    v1.4.5

Updated release notes for 1.4.5

commit 78ac8df2d08795a3f5019d08ba4bc290830fee12
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 11 Apr 2005 14:04:35 +0800
Tag:    v1.4.5

Added option to cache langlist in dataroot/cache/languages. Small logic fix.

commit d162ab230795ec58200ba7a1db841112d23641e2
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 11 Apr 2005 13:53:56 +0800
Tag:    v1.4.5

Added option to cache langlist in dataroot/cache/languages. If enabled saves around 10MB of memory and 40 includes (some really large)

commit 1a87d76bd48cfd85a635ea08fae782596eeb59e2
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 06 Apr 2005 06:10:31 +0800
Tag:    v1.4.5

Fixed 'Can't save changes in editor configuration' form bug reported in http://moodle.org/mod/forum/discuss.php?d=21359

commit f5db2e8aa6a7aad1dd9a05e6cb9ec6dac154cff2
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 01 Apr 2005 13:33:21 +0800
Tag:    v1.4.5

insert_record() - major efficiency improvements for Postgres databases on insert. Also fixed many calls to insert_record() which discard the returned record id to not ask for the record id.

commit 63eadeac79b21603b8d9ffb67154743063694eca
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 23 Mar 2005 15:02:19 +0800
Tag:    v1.4.5

add_to_log() - fixed a postgres support bug when  is set to '', and clarified the logic that decides whether to update the user_students/user_teacher records.

commit 657af04aac51de516e2fb62e1f42c0c33aa0f69d
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 21 Mar 2005 07:10:08 +0800
Tag:    v1.4.5

More efficient SQL UPDATE in forum_mark_old_posts_as_mailed() -- improves performance under PostgreSQL.

commit 12c181bc5022f053467e2a1fb7453494f10a3deb
Author: martinlanghoff <martinlanghoff>
Date:   Sun, 20 Mar 2005 16:11:21 +0800
Tag:    v1.4.5

Pedantic HTTP correctness; now we return an appropriate 503 HTTP status code when the database is unreachable and assumed overloaded. This is for the benefit of monitoring and load testing scripts.

commit b52bf78003f73224ed18c53cd15f46534ec01270
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 14 Mar 2005 10:06:24 +0800
Tag:    v1.4.5

Fixed memory limit overrun in backup config page. Why SELECT * FROM mdl_course when all we need is id? smile

commit a394a14f8535d3abf399a1e4ec0744a2b6e3b755
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 10 Mar 2005 10:39:49 +0800
Tag:    v1.4.5

Fix from Dan Marsden: address_in_subnet() had a loop control error.

commit 52de3da48698e1e902002bf5780fb6a5f08b9be3
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 07 Mar 2005 12:35:50 +0800
Tag:    v1.4.4

Release notes for 1.4.4

commit d682f3c9deeb1c721e01162a15f249f80c36fb6a
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 07 Mar 2005 09:59:50 +0800
Tag:    v1.4.4

Fixed bug 2319 DB auth not fetching user data fields correctly -- credits go to andres.marquez@accenture.com and doug nutsch

commit 15d37cd0801abde5f47593a9aa06d41ed4526682
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 01 Mar 2005 11:08:19 +0800
Tag:    v1.4.4

Fixed typo: == should be =

commit 1e1a7ac3c626f3578418ceaaba42932f22462d5c
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 28 Feb 2005 18:27:44 +0800
Tag:    v1.4.4

loglive now has a proper footer and the links in header & footer open in new windows

commit 05d24ee32d2628e84442403c9f0446a38dd2ef3f
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 28 Feb 2005 18:06:55 +0800
Tag:    v1.4.4

Better handling of trailing semicolons and spaces in LDAP configs. Fixes a regression from 1.4.2 .

commit bf043e689c5526f22993469027b20c443d87a3e9
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 25 Feb 2005 05:20:29 +0800
Tag:    v1.4.4

Provide an explicit sortorder for new courses in empty categories, and run fix_course_sortorder() after adding the course to make sure its in the appropriate range for the category

commit ce1eb2484f0cc100485449f3cb9c8a40dff9a696
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 25 Feb 2005 05:14:05 +0800
Tag:    v1.4.4

Backing out bad sortorder fix in restorelib -- actually we didn't need one.

commit cd71433ca1eaf0d0d2d7759627d903dde7c9f8b2
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 23 Feb 2005 12:50:15 +0800
Tag:    v1.4.4

Merged from MOODLE_14_STABLE - Fix problem when restoring courses to empty categories

commit 91589f2168837a9c3158e80b3d92ff53faeaac75
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 23 Feb 2005 10:09:28 +0800
Tag:    v1.4.4

Bug fix. Using external auth, the user account fails to be created on login if currently logged-in as guest. Credits go to Dan Marsden for the fix.

commit 996b44d851b03a6a8f92f3f04e8b9780a3f7d38a
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 23 Feb 2005 09:47:37 +0800
Tag:    v1.4.4

Fixed a bug in get_categories() when called for category '0', and some extra fixes to fix_course_sortorder()

commit dcdfb3680e12af855b9516d858bc286f7251854f
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 14 Feb 2005 15:39:55 +0800
Tag:    v1.4.4

Cleanup of warnings in filter/activitynames

commit 6a69f3a260732cffb9b32e70921d7cfae6261ae0
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 14 Feb 2005 15:21:34 +0800
Tag:    v1.4.4

Cleared a warning

commit 0c38a48c07e599104144bee65b72f7db4e6e3a06
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 14 Feb 2005 14:04:52 +0800
Tag:    v1.4.4

Stop DB inserts we know are going to fail, and clearer error message when file upload stops.

commit 19f97a11aa0d4fbbd7651faf9c5da9ac9f29af43
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 14 Feb 2005 09:30:20 +0800
Tag:    v1.4.4

trim() user data coming from external auth - now covers cases where we had a space on the truncation limit

commit b0686d1d075e32300275c13c4aa072d251c045f1
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 14 Feb 2005 09:11:36 +0800
Tag:    v1.4.4

trim() user data coming from external auth - fixes problems with locked user data in auth/ldap in 1.5

commit 9b05df5e0a6a15027cfda6efe34b5a4be3fe152c
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 14 Feb 2005 06:49:47 +0800
Tag:    v1.4.4

Cleaned up stray tabs.

commit 3ce5387d2906509165332784ce55f517885d013a
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 14 Feb 2005 06:43:04 +0800
Tag:    v1.4.4

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.

commit 831fbcf920f53cc1006232c42eec043a99ec810a
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 08 Feb 2005 11:39:57 +0800
Tag:    v1.4.4

fix_course_sortorder() bug #2509 - Should fix overlaps when moving categories with large gaps -- affects only mysql. Prevent from landing even near the newly assigned range during the temporary shift.

commit ad1908146b6e402a1ed3462738804f47764198b8
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 07 Feb 2005 17:12:04 +0800
Tag:    v1.4.4

fix_course_sortorder() bug #2509 - Should fix overlaps when moving categories with large gaps -- affects only mysql

commit 76b268597b186e17c29a36902aef42eb311589fd
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 01 Feb 2005 09:36:17 +0800
Tag:    v1.4.4

Better behavviour of fix_course_sortorder() -- related to bug #2334

commit da1504234a1c69ef42dfb636d8795eb9d05a3232
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 27 Jan 2005 15:05:42 +0800
Tag:    v1.4.4

Reverting validation in current_language() due to performance concerns.

commit ddeaac719524c8896c70de6cb395b0a606cd8dde
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 27 Jan 2005 11:43:09 +0800
Tag:    v1.4.4

Stronger validation of form data in user/edit, and validation of lang in current_language() -- closes SC#67

commit 8709af9bea3d53d4f02af6660e9efeafb2434bab
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 25 Jan 2005 14:20:49 +0800
Tag:    v1.4.4

Tighter input validation fixes SC#54

commit 13e3dfb091af28b578c4e056aa8a8724dfc787af
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 25 Jan 2005 14:06:51 +0800
Tag:    v1.4.4

clean_param() now handles PARAM_URL

commit bc7ba277ec59383e58b10d8923b8ba197fcb089c
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 25 Jan 2005 14:02:47 +0800
Tag:    v1.4.4

Importing validateurlsyntax.php from http://www.canowhoopass.com/guides/regex/index.php as of 15/Dec/2004, provides  - validateUrlSyntax()  - validateEmailSyntax()  - validateFtpSyntax()

commit 9690e2be10cfe26f1413a34f6fe487aad33e8c62
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 25 Jan 2005 13:21:24 +0800
Tag:    v1.4.4

Fixing bug 2334 - where fix_coursesortorder() sometimes leaves overlapping sortorder values across categories

commit 596728959b7a23d46f1ce2603028c7a8a3d487d3
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 25 Jan 2005 12:56:29 +0800
Tag:    v1.4.4

Ensuring correct sortorder at the beginning of the category when creating courses.

commit eda27289aa77e5d226b18ff54b4b6339bfa6c6f3
Author: martinlanghoff <martinlanghoff>
Date:   Sat, 22 Jan 2005 17:05:49 +0800
Tag:    v1.4.4

Closing SC#66 - more

commit 35b09c6973c1f727558a8ebf2cd40780e16319d3
Author: martinlanghoff <martinlanghoff>
Date:   Sat, 22 Jan 2005 16:59:26 +0800
Tag:    v1.4.4

Closing SC#66

commit 446f0a5328fae93c2acfa90fa36aa2148279059a
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 19 Jan 2005 06:10:24 +0800
Tag:    v1.4.4

Issue a warning when overriding $CFG settings.

commit efad7316a9823c3df3fb736becf23b4551b55469
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 17 Jan 2005 17:11:50 +0800
Tag:    v1.4.4

Show a warning to admins if cron.php hasn't been run

commit 19032095c0fa7badf30e399eba371788a9e4faba
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 17 Jan 2005 13:41:55 +0800
Tag:    v1.4.4

Added an early session_write_close() to loglive.php and log.php pages

commit 5cba81fd45f605180255fe28fd4cf54781638b2e
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 13 Jan 2005 10:23:39 +0800
Tag:    v1.4.4

Fix bug #2334 - New unique undes in course table causes course move to fail

commit 5de740d89bbd839b2cd01152cd190f555574a7dc
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 10 Jan 2005 05:53:25 +0800
Tag:    v1.4.4

SC#62 - Prevent database values from overriding $CFG values defined in config.php -- Credits go to Petr Skoda.

commit d79506ccd93298f3f6e10623ad51b97a47a42997
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 06 Jan 2005 10:06:16 +0800
Tag:    v1.4.4

Fixed warning in ipatlas, thanks to Jens Gammelgaard <jens.gammelgaard@optimon.dk>

commit 9e749677e5609779717938aed94797fda6117df1
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 05 Jan 2005 06:47:32 +0800
Tag:    v1.4.4

Further cleanup to bug 2334 -- we just avoid passing an invalid value in sortoder for empty categories.

commit c4ba56985d6aaad6ef1de076fef98ad7a06894e5
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 05 Jan 2005 05:46:24 +0800
Tag:    v1.4.4

Fixes bug 2334 http://moodle.org/bugs/bug.php?op=show&bugid=2334

commit fb549063df7b110e75ef7a6dc1ffbe6bb98ad993
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 23 Dec 2004 05:59:13 +0800
Tag:    v1.4.4

Fixed upgrade bug that could show up in cases where:

commit 9adb97f8d3460b8ec54ad36933efa96cdbd44c93
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 22 Dec 2004 05:00:10 +0800
Tag:    v1.4.4

Updated 1.4.3 release date in en,es,de release notes

commit ff9a78aa5518efa6ba0045b9717b4507b3e2154d
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 16 Dec 2004 13:08:55 +0800
Tag:    v1.4.3

Several fixes in ipatlas and new param type for clean_param().

commit 2c09cb2e124b08b7a74e278d191075b234fbdcfa
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 13 Dec 2004 15:36:37 +0800
Tag:    v1.4.3

Fixes bug #2147 http://moodle.org/bugs/bug.php?op=show&bugid=2147

commit 2da759e7cd2821402072e810ac9791361156e020
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 13 Dec 2004 14:41:30 +0800
Tag:    v1.4.3

Post SC#30 fix - SCORM now requires a correct clean_param() - credits go to skodak

commit cd8beea5d97fe1bf2015b2ea4e888b5c3eddb50e
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 13 Dec 2004 14:37:57 +0800
Tag:    v1.4.3

Fixed SC#30 - credits go to skodak

commit 9c21bcd89bb2a0e44255836bf06e564395825dfd
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 08 Dec 2004 03:41:55 +0800
Tag:    v1.4.3

Merged from HEAD (originally by gustav_delius)

commit d9399f4cafb880c0e715505e0cddf6e8a75b70d3
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 26 Nov 2004 08:54:36 +0800
Tag:    v1.4.3

Fix for bug 2227 "bug in pclzip.php causing scorm errors" http://moodle.org/bugs/bug.php?op=show&bugid=2227

commit d5cbabd8312c3cadf8700b10949ffa2e71e3b9e8
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 25 Nov 2004 08:01:52 +0800
Tag:    v1.4.3

Fixed an issue with postgres database upgrade code -- drop either index or constraint if they exist

commit 6f454ff99a280487c395a9c7d4692bf73664acd1
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 25 Nov 2004 07:11:59 +0800
Tag:    v1.4.3

SQL fix:Much better performance in listing and counting all users of courses with groups, plus warnings cleanup

commit 778f416bd7e7c137b4c337dfb9750f63ec5a1140
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 25 Nov 2004 06:48:16 +0800
Tag:    v1.4.3

Additional fixes for indexes in postgres. A few unique indexes may have been created non-unique. Still deferring the version bump -- please review the patch!

commit 55f21d31e243fabc64fecbd7cdeb79760987aab6
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 24 Nov 2004 11:56:09 +0800
Tag:    v1.4.3

raise_memory() now uses get_real_size(), duplicate function return_bytes() removed.

commit 7a2596f854cf8229a452e448f12e06091987fd77
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 24 Nov 2004 10:20:46 +0800
Tag:    v1.4.3

Student and teacher enrolments now unique

commit fab2f0b23a5342afd43e983cb44a296d844a2a4a
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 23 Nov 2004 08:02:30 +0800
Tag:    v1.4.3

Committing backported patch from Pavel (paolo@psychpan.waw.pl). See http://moodle.org/bugs/bug.php?op=show&bugid=2168

commit 3729ab341ef11b90544b9722dd544effbd02a088
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 23 Nov 2004 07:29:17 +0800
Tag:    v1.4.3

Fixed extra quote -- html typo -- reported in http://moodle.org/bugs/bug.php?op=show&bugid=2170.

commit b2a07f418ce0e1bf59dc03efb6f48f9deb70fcc6
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 23 Nov 2004 05:51:09 +0800
Tag:    v1.4.3

Fixed support in LDAP for apostrophes, quotes and backslashes in LDAP data. This is a backport of a fix already in HEAD.

commit e3da2769b847e299f32c94fe3285a0858ce39e8c
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 22 Nov 2004 11:43:08 +0800
Tag:    v1.4.3

Fixed bug in external auth.

commit 4b8980fc8375bb036f6a4654acabcd8efffbd927
Author: martinlanghoff <martinlanghoff>
Date:   Sat, 20 Nov 2004 18:37:03 +0800
Tag:    v1.4.3

Fixing handling of empty memory_limit for PHP without memory_limit (mostly Windows binaries)- fixed typo

commit b55be229e92f2dbc059d8f05f906d5a036441850
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 19 Nov 2004 10:13:44 +0800
Tag:    v1.4.3

moodle--eduforge--1.3.3--patch-159 get_courses checks to see if sort is not empty before putting it in the query + removal of redundant (and costly) SQL SELECT

commit 726f4ca31752f190d5af3cccd51e4274c7e7285e
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 18 Nov 2004 10:54:35 +0800
Tag:    v1.4.3

moodle--eduforge--1.3.3--patch-335 Now memory_limit can be overriden by higher config settings from php.ini, commandline, httpd.conf, .htaccess

commit ff75e0fe8a36728032851690bfb946f6e03d29ee
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 18 Nov 2004 10:46:30 +0800
Tag:    v1.4.3

moodle--eduforge--1.3.3--patch-321  Fixed bug in user search: now we trim() the search string

commit 7380fc552a097c65624359148fe2b1538b0d6850
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 18 Nov 2004 10:37:13 +0800
Tag:    v1.4.3

moodle--eduforge--1.3.3--patch-305 - Postgres SQL bugfix for instance_is_visible()

commit ea9d7e881545ba8d99e016fcf1c88652fe099478
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 18 Nov 2004 10:31:11 +0800
Tag:    v1.4.3

moodle--eduforge--1.3.3--patch-222 - SQL improvements\n Better SQL performance for get_courses() and get_courses_page() calls, specially from the categories page. This gives much better performance when browsing existing courses