thepurpleblob
33b3562d00
Fixed a few minor(ish) points that Eloy spotted:
...
Broken non-slasharguments link format. <hr /> translation broken.
2005-04-13 08:27:18 +00:00
moodler
1596edff55
Added general robustness to require_course_login
2005-04-13 06:59:13 +00:00
stronk7
8e4d01032a
Small (but important) typo solved. It was preventing coursesql to work.
2005-04-12 16:56:34 +00:00
moodler
ce50cc7018
Don't have a cow when a Wiki text is encountered
2005-04-12 03:14:29 +00:00
stronk7
60c2b9b35c
Minor changes:
...
- Costants are defined.
- Avoid some notices if records aren't found.
2005-04-11 17:12:47 +00:00
thepurpleblob
9af891b3bb
Upgraded Markdown renderer to latest version: 1.0.1 (loads of fixes)
2005-04-11 14:08:01 +00:00
thepurpleblob
1e097367df
Wiki-like format removed. Rendering class no longer required.
2005-04-11 13:49:38 +00:00
thepurpleblob
6a6495ff8f
Removed wiki-like from list of formatting options. Any that shows up now
...
will simply generate an error.
2005-04-11 13:46:06 +00:00
thepurpleblob
2fbc787ce7
Fixed a couple of bugs and now escapes text going to database.
2005-04-11 12:30:16 +00:00
thepurpleblob
11a052a652
Added function addslashes_object().
2005-04-11 12:29:17 +00:00
moodler
e84a246a55
FIxed a problem I wasn't seeing because I was in debug mode.
...
get_record_sql now has a second parameter that specifies when
we are expecting to take one record from many (to help with debugging)
2005-04-11 12:07:49 +00:00
thepurpleblob
8a7d9d15f2
Fixed some of the incomplete or incorrect function documentation comments.
2005-04-11 10:18:33 +00:00
moodler
6927f0e726
Insert all the distributed timezones upon upgrade
2005-04-11 08:11:17 +00:00
thepurpleblob
4ab00ace5b
Tidy up and add function to do actual conversion given db table, field etc
2005-04-11 07:48:47 +00:00
moodler
00b60650f2
Added a span around performanceinfo script name
2005-04-11 07:36:52 +00:00
martinlanghoff
6e6053bd18
Merged from MOODLE_14_STABLE. Added option to cache langlist in dataroot/cache/languages. If enabled saves around 10MB of memory and 40 includes (some really large). In HEAD we also get a nice option select in admin->variables.
2005-04-11 06:41:08 +00:00
moodler
8edffd15f6
LIMIT timezones returned to the latest one
2005-04-10 18:27:15 +00:00
moodler
bcb1636ace
Added forcetimezone to defaults
2005-04-10 18:23:40 +00:00
moodler
5404e914fb
Going back to the slower but always-accurate timezone list method
2005-04-10 17:51:48 +00:00
moodler
1bb1333b0b
Centralised timezone list to a function
2005-04-10 17:35:17 +00:00
moodler
7a3290ed20
No need to flag notices about missing database stuff in blocks
2005-04-10 13:51:19 +00:00
defacer
dddb014acf
1. make_timestamp: It's easy to be a fool, but to do it like me requires innate talent.
...
2. usertime: I think that the way Moodle is written, if this compensates for DST lots
of things are going to break. I found a few myself and decided to revert the behavior
until such time as a proper code review can be made.
2005-04-10 09:41:46 +00:00
moodler
3d0cc9c6fc
Removed some blank lines
2005-04-10 09:33:05 +00:00
moodler
a1e93da26c
Improvements to timezone import interface
2005-04-10 09:31:58 +00:00
defacer
c9e55a2583
LIMIT 1 was already being introduced by get_record_sql, and GMT offsets weren't working due to the bad query.
2005-04-10 09:31:21 +00:00
defacer
fdae5b1314
The strict type checking was causing trouble. In any case, forcing arrays to
...
NOT mix integer and string keys is a good workaround.
2005-04-10 09:19:28 +00:00
moodler
25290a82c6
Adding standard list of timezones to distribution
2005-04-10 09:18:08 +00:00
moodler
5baa0ad6f2
Added update_timezone_records
2005-04-10 09:15:15 +00:00
defacer
989585e933
Major step forward once more: calculate_user_dst_table() now always sees the
...
user's effective timezone correctly using get_user_timezone(). It also remembers
which timezone was in effect when it cached its calculations, so if the user's
effective timezone changes for any reason the table is automatically re-computed.
******
NOTICE
******
From this point onward, DST support should be working again, and there are no more
visible hurdles in the way. This means it should STAY working correctly until 1.5.
2005-04-09 10:12:30 +00:00
defacer
6dc8dddc62
Removed another unnecessary get_user_timezone_offset() call.
2005-04-09 09:50:08 +00:00
defacer
13e5588de8
Removed unneeded get_user_timezone_offset() call; usertime() does it anyway.
2005-04-09 09:47:01 +00:00
moodler
7b9e355e43
Fixed an error in the timezones
2005-04-09 08:44:49 +00:00
defacer
e8904995f0
Introduce the "new" get_user_timezone, and implement get_user_timezone_offset in terms of it.
2005-04-08 20:32:40 +00:00
defacer
68c0264e1b
Changes to mdl_user:
...
* Change timezone to varchar(100) (to support non-trivial timezones)
* Drop timezonename (will not be used after all)
2005-04-08 19:50:01 +00:00
defacer
97e28cc66d
Make choose_from_menu behave correctly in the obscure case where an array
...
contains a zero key and the "selected" variable is a string. Argh.
2005-04-08 19:32:31 +00:00
thepurpleblob
b323d8f8f3
Working version - needs integrated into Moodle and (probably) some tinkering.
2005-04-08 08:56:20 +00:00
moodler
494b9296e9
Renamed get_user_timezone to get_user_timezone_offset, because Jon has
...
plans for that function name
2005-04-08 07:42:50 +00:00
defacer
2665e47afc
usertime() now compensates for DST.
2005-04-08 05:39:53 +00:00
defacer
43b59916f6
get_user_timezone() should now be working for users with new-style timezone settings.
...
get_timezone_record() function added to cache some db queries.
I haven't been able to test this yet, will do later.
2005-04-08 05:28:39 +00:00
defacer
b86e6ba918
is_executable() doesn't exist in PHP/Win < 5.0.0
2005-04-08 05:01:09 +00:00
thepurpleblob
92f72f4754
Everything working except lists (next job).
2005-04-07 14:34:31 +00:00
martinlanghoff
853df85e56
Performance/footprint profiling patch complete -- is enabled by CFG->default>7 or by a few defines in your config.php.
2005-04-07 00:11:28 +00:00
mjollnir_
2eab06687a
Merged from MOODLE_14_STABLE: Fixing problem with set up of site course
2005-04-06 22:25:31 +00:00
martinlanghoff
66552670ba
Improved performance info reporting and logging. Removed duplicate calls.
2005-04-06 07:36:10 +00:00
martinlanghoff
c2fd9e955a
Improved performance info reporting and logging. Needs some work on the configuration front still.
2005-04-06 07:34:05 +00:00
moodler
ddd7a47ac1
Removed a notice from isteacheredit
2005-04-06 06:26:38 +00:00
moodler
dcc17b63b1
More improvements to isteacher() logic (and isadmin now uses $USER->admin too)
2005-04-06 06:20:59 +00:00
moodler
5e04ee0c4f
More efficient logic for isteacher()
2005-04-06 05:53:24 +00:00
mjollnir_
bb2889b41d
Fix postgres upgrade for deletion of course_modules.deleted flag
2005-04-06 00:22:36 +00:00
mjollnir_
9921028a3d
Merged from MOODLE_14_STABLE: Fix for return id for insert_record - needs to be cast to an int
2005-04-03 21:04:02 +00:00