Commit graph

20230 commits

Author SHA1 Message Date
mjollnir_
15db443c87 mod/quiz/review only display grade summary if student allowed to see scores
Change to review.php so that the student will only see the grade summary
if they are allowed to view their scores - as determined by quiz options
set by the teacher.
Credit: Peter Bulmer peterbulmer@catalyst.net.nz
2006-04-18 22:50:04 +00:00
mjollnir_
9f7f01db04 mod/quiz/review quiz options loaded once per pageload, not once per qn.
Moved loading of quiz review options from loop iterating over each qn to be
displayed, to the top of the pageload.  Should give efficency gains
on quizes with long pages, as well as making the options available
earlier in the process.
Credit: Peter Bulmer peterbulmer@catalyst.net.nz
2006-04-18 22:47:56 +00:00
martinlanghoff
d13ef2fbdc mod/chat - cope with missing $USER->lastIP
$USER->lastIP is sometimes not set properly during login, fetch it if we can
or error out clearly -- we won't be able to login the user to the chat if
we don't have an IP address to match him/her against.
2006-04-18 22:40:56 +00:00
gustav_delius
9977aa0f4a Don't forget the prefix_ for table names 2006-04-18 21:49:14 +00:00
martinlanghoff
04ddd06c1d admin/cron.php - fix typo
Nothing like being pedantic on a tuesday afternoon...
2006-04-18 21:22:04 +00:00
urs_hunkler
eedff4f447 IMS CP styling 2006-04-18 19:59:04 +00:00
wildgirl
45f4544f31 Updated IMS CP help file (bug 4628) 2006-04-18 18:17:36 +00:00
wildgirl
2f5d8f3eff Updated IMS CP help file (bug 4628) and added repository help file 2006-04-18 18:15:32 +00:00
wildgirl
06ebc30fb6 Added IMS CP strings 2006-04-18 18:09:11 +00:00
wildgirl
824c9dc7c6 resource.class.php changes:
1. Added logic to process repository paths. A repository path is marked with a # as the first character of the reference field.
2. Added a new error code for repository items not being deployed / bad reference.

ims.html change:
Added a button to link to the repository browser.

New files:
finder.php  browser for the repository
preview.php  cut down display routine from resource.class.php, forces sidemenu etc.
repository_deploy.php  deploy for repository items (same results as deploy.php)
repository_config.php (repository disabled by default)
resize.js - for iframe resizing
dummyapi.js - dummy SCORM API

(Tom's work, with help from Andy)
2006-04-18 18:04:30 +00:00
thepurpleblob
2c49e71073 Paramater cleaning for category name too restrictive for non-ascii
language encodings. Bug #5224
2006-04-18 14:20:02 +00:00
gbateson
1872962d5c corrected handling of tables within JCloze text (a lot of vertical space was being added) 2006-04-18 12:20:18 +00:00
nfreear
e80e9f20d4 Clean up code (Bugs 5027, 5161), 'weekscss' course format. 2006-04-18 11:02:21 +00:00
nfreear
498bdc51f2 Fix, Bug 5161 "Course format weekscss looks unfinished". Added ommitted 'hidden' style, background-color. 2006-04-18 11:00:25 +00:00
moodler
0b9e9783a3 Fixed bug #5230 and the hardcoded admin folder 2006-04-18 09:46:35 +00:00
moodler
f619f8c8ab FIx for slashes problem in bug 5222 (and some others) 2006-04-18 09:16:22 +00:00
toyomoyo
dec0d49c7e typo 2006-04-18 09:08:53 +00:00
toyomoyo
4e93938edb fix for 5204 2006-04-18 09:05:07 +00:00
moodler
5379d24992 A little HTML hint since styles are not working here for me somehow 2006-04-18 07:28:44 +00:00
moodler
44a38081c7 Better style for picture next to chat text 2006-04-18 07:27:11 +00:00
toyomoyo
fd8d5ba75f fix for 5207 2006-04-18 07:22:18 +00:00
moodler
78c98892d1 More efficient chat listings (less database calling) 2006-04-18 07:14:21 +00:00
toyomoyo
2b9fd72cc3 fix for 5210 2006-04-18 07:12:39 +00:00
toyomoyo
8f23f49004 fix for 5209 2006-04-18 06:43:29 +00:00
toyomoyo
98ae4e63da block unicode migration bugs 2006-04-18 06:17:30 +00:00
vyshane
d553ae9f74 "Reset template" button now only resets the template textarea with the default
template. User needs to hit "Save template" to save the changes.
2006-04-18 06:11:38 +00:00
toyomoyo
5bce15857e added a comment 2006-04-18 03:45:23 +00:00
toyomoyo
025bec3169 the table_column function ate my auto_increments 2006-04-18 03:30:57 +00:00
mjollnir_
ee234b5cac Putting back in the fix for authorize enrol plugin not originally having correct pg version number and table sync with mysql tables and version number 2006-04-18 02:50:46 +00:00
toyomoyo
a2d09dee4b bug #5234, so I took out has_config, this block has no config globals right? 2006-04-18 02:37:44 +00:00
toyomoyo
f4c85f469a various small changes 2006-04-18 01:59:13 +00:00
toyomoyo
7077ca8399 blog access rights fix, forgot to check in last week 2006-04-18 01:30:00 +00:00
skodak
f4598dacd2 fixed bug #5225, fix provided by hachiman 2006-04-17 21:26:05 +00:00
skodak
200514e282 some bugfixing and proper conversion to new xxx_param() functions - SC#148 2006-04-17 21:14:50 +00:00
martinlanghoff
a6d1886fa5 mod/chat: Normal method -- collate 2 SELECTs into one
We really don't need to ask about the user table _twice_ here. Just ask for the
right fields, and done.
2006-04-17 21:06:28 +00:00
martinlanghoff
46c859760c mod/chat: Normal method -- faster, lighter DB updates
Use set_field() keyed on PK instead of update_record() or set_field()
keyed on non-PKs.
2006-04-17 21:05:51 +00:00
martinlanghoff
c5e817f02c mod/chat - Normal method - users pane only uses keepalive when refreshing fast
To avoid wasting server resources, user's pane now only uses keepalive
when the refresh is lower than apache's timeout.
2006-04-17 21:05:17 +00:00
martinlanghoff
6169ea259a mod/chat - Normal method now supports HTTP Keep-Alive - users pane
User's pane now also uses keepalives -- if the refresh freq is below
the disconnect timeout, then it is a win. Otherwise it wastes memory
at the server end.
2006-04-17 21:04:47 +00:00
martinlanghoff
dfd1d9e272 mod/chat - Normal method now support HTTP Keep-Alive
By using output buffering, we now support HTTP Keep-Alive, which means
that each client gets tightly bound to a single apache child - this means
that we get

 + lower resource usage on the webserver
 + _much_ lower resource usage on webserver and dbserver if pconnects are used
 + a good case for further caching (memcache/mmcache)

Using ab via localhost or fast LAN using keepalives is actually slower from the
client perspective -- still lighter on the server. Via slower links (DSL/modem)
the responses are faster.
2006-04-17 21:04:19 +00:00
martinlanghoff
4d5525c650 mod/chat: make http-chat more database friendly and change msg insertion to use POST
+ we are now more conservative in the fields it asks from the db
+ also more conservative with upates to chat_users
+ messages are now added via POST requests instead of GET
2006-04-17 21:03:44 +00:00
skodak
960855b9a1 fixed double header warning in redirect() 2006-04-17 20:40:33 +00:00
gustav_delius
54b3626b9f Moved all question deletion code to showbank.php. Fixed bug 5186 2006-04-17 05:31:21 +00:00
moodler
402e1a9643 Tidied up the upgrade dialog 2006-04-16 16:56:09 +00:00
moodler
d87a9d7338 Fixed the upgrade_plugins function so that it automatically
handles the .sql file for first installation (just like activities)
2006-04-16 16:50:55 +00:00
moodler
0236ec73be Don't show tabs when creating admin user 2006-04-16 16:49:28 +00:00
moodler
9e458bb388 Moodle Docs link on home page could be a bit confusing 2006-04-16 16:21:50 +00:00
moodler
9bb4d21fa5 No agreement to license sends you to docs.moodle.org 2006-04-16 16:09:12 +00:00
moodler
16ad40e145 Fix for chat character sets bug 5010 2006-04-16 16:01:40 +00:00
moodler
bd507453f7 The install script should always be Unicode. 2006-04-16 15:58:24 +00:00
moodler
f666830caf Removed blank line 2006-04-16 15:56:36 +00:00