20241 Commits

Author SHA1 Message Date
martinlanghoff
66c7e47b27 blocklib: cache (and used cached) block instances properly in $pageblocks
Now blocks_have_content() caches instantiated block objects inside $pageblocks
and blocks_print_blocks() uses them if available. This behaviour now matches
the documentation: blocks instances are created only once, get_content()
may be invoked several times.

A better fix would be to cache the _output_ of the block (the ->content
property) but it may bite us if any block is counting on being called twice.

Discussion at: http://moodle.org/mod/forum/discuss.php?d=45867
2006-05-17 04:39:43 +00:00
vyshane
0adf53f6cd Cosmetic fix in print_log_ooo, commented out call to print_log_ooo in
/course/report/log/index.php.
2006-05-17 03:07:11 +00:00
skodak
f231e867f0 I hope this is the last patch for header already printed trouble in error() and redirect(); merged from MOODLE_16_STABLE 2006-05-16 20:31:22 +00:00
ethem
f9ff6fbd77 confirm_sesskey() implementation for capture,delete,refund and void. I hope it works. :) 2006-05-16 15:34:24 +00:00
ethem
98f6b1eb54 Allow showing error message when insert_record fails.
merged from 16_stable.
2006-05-16 15:02:52 +00:00
nfreear
f73e218f40 Merge from STABLE. Fix bug 5477... 2006-05-16 12:27:21 +00:00
ethem
e295c6e4c3 Manual capture settings for sending email: cron=enabled, an_review=checked, an_capture_day=0, an_emailexpired=1-5 2006-05-16 11:37:07 +00:00
nfreear
5fc835a533 Merged from STABLE. 2006-05-16 10:59:27 +00:00
ethem
42c4e612db (Manual capture settings: cron=enabled, an_review=checked, an_capture_day=0) 2006-05-16 10:43:02 +00:00
nfreear
49d192fcd6 Merged from STABLE. 2006-05-16 10:35:15 +00:00
thepurpleblob
ce4b7b5fbe Added note that export now exports subcategories. 2006-05-16 09:35:03 +00:00
toyomoyo
0376cc2fab merged 2006-05-16 08:22:42 +00:00
toyomoyo
82326fc1d3 merged fix for 5513 2006-05-16 07:58:47 +00:00
vyshane
9b18fc3b83 Commiting merge from 1.6. 2006-05-16 07:07:04 +00:00
vyshane
84bada7dea Fix for Bug #5467. Converted newlines to unix format. Removed extra lines at
the end of php scripts. Converted tabs to spaces in php scripts.
2006-05-16 06:45:14 +00:00
vyshane
04678d8eca Fixed Bug #5354 - Gradebook [DropXLowest and Exclude] 2006-05-16 06:21:49 +00:00
mark-nielsen
74e3524216 [Merged][BugFix] Bug 5485 - problem with regular expressions with simple analysis 2006-05-16 03:06:28 +00:00
stronk7
4a428b5f5c Updated to latest version (1.56). Bug 5165.
(http://moodle.org/bugs/bug.php?op=show&bugid=5165)

Merged from MOODLE_16_STABLE
2006-05-15 23:31:50 +00:00
danmarsden
019c47d6c1 Fixes bug 5464 also makes response clearer to students -see:
http://moodle.org/mod/forum/discuss.php?d=45504

also finishes off Bug 662
2006-05-15 23:24:42 +00:00
mjollnir_
0c49258b99 mod/quiz/view No-longer display final grade when quiz settings forbid it.
Changed view.php so that it checked if there were any attempts with
concealed grades before printing the student's overall score.
Credit: Peter Bulmer <peter.bulmer@catalyst.net.nz>
Merged from MOODLE_16_STABLE
2006-05-15 21:52:18 +00:00
skodak
2c3432e684 fixed problem when set both loginhttps and https in wwwroot, closes bug #5507 and #3848; merged from MOODLE_16_STABLE 2006-05-15 21:36:46 +00:00
gustav_delius
91d7ead073 Answers to essay questions are now saved correctly when navigating to another page, fixing bug 4478 2006-05-15 20:42:14 +00:00
mark-nielsen
a1d0b3eb81 [BugFix] Bug 5505 - function lesson_print_tree now checks for teacher editing priv before printing editing icons. Had to change arguments for this function as well which is the edit in view.php.
lesson.php how checks for teacher editing priv for all actions except for continue.  This is just in case the user hacks the URL.
2006-05-15 19:14:22 +00:00
stronk7
0ec7502bad Avoid [[namesite]] to appear when ADDING site activities.
Merged from MOODLE_16_STABLE

I sent this on May 9th! :-(
2006-05-15 17:54:29 +00:00
stronk7
356183b5bd Changing session->data to medium text. Bug 5406.
(http://moodle.org/bugs/bug.php?op=show&bugid=5406)

Merged from MOODLE_16_STABLE

IMPORTANT: I sent this to CVS on May, 8th and changes have dissapear!
           It could be possible than other commits sent near SF crash
           were affected too!
2006-05-15 17:33:38 +00:00
skodak
4ca5b47322 fix my previous incorrect short tag fix, fixed register globals, IP address used as mail user when not logged in; merged from MOODLE_16_STABLE 2006-05-15 15:45:27 +00:00
skodak
e7a8d28f57 fixed short php tags; merged from MOODLE_16_STABLE 2006-05-15 15:12:56 +00:00
skodak
a536138d02 changed cleaning of entry title, now matches handling of forum post titles; merged from MOODLE_16_STABLE 2006-05-15 15:05:28 +00:00
skodak
3b25960385 better cleaning of post title SC#251 revisited; merged from MOODLE_16_STABLE 2006-05-15 14:48:11 +00:00
skodak
62b504d20b better cleaning of post title SC#251; merged from MOODLE_16_STABLE 2006-05-15 14:32:14 +00:00
exe-cutor
1b8991fd9c Fixed an inconsistent link in the instructions textfield 2006-05-15 12:08:06 +00:00
exe-cutor
14d62a551a Added function get_first_string to better handle multi-valued attributes 2006-05-15 06:55:08 +00:00
vyshane
7ec49125d6 Added language strings for new log functionality (downloading logs as excel or csv) 2006-05-15 05:01:56 +00:00
vyshane
92890025fe Added option to download logs in excel or csv formats. Merged in code contributed by
Daniele Cordella <d.cordella@iss.it>. Originally posted as bug 5024.
2006-05-15 05:01:00 +00:00
toyomoyo
6caa2c52ec merged fix for 5493 2006-05-15 03:00:11 +00:00
toyomoyo
114f81ce09 merged, tidying up constants 2006-05-15 02:57:48 +00:00
toyomoyo
b0ef72a6f3 merged fix for 4404 2006-05-15 02:26:54 +00:00
toyomoyo
a1e3e9894b merged fix for 5465 2006-05-15 02:03:03 +00:00
skodak
70ed990ed2 fixed secure forms handling when POST url contained GET parameters (cookieless mode and some other forms); merged from MOODLE_16_STABLE 2006-05-14 21:21:35 +00:00
skodak
70cedbfd5d fixed bug #5489 - can not edit file, minor bugfixes and whitespace cleanup; merged from MOODLE_16_STABLE 2006-05-14 19:10:49 +00:00
skodak
cc50d6664f I hope final fix for warnings when using error() after print_header() with buffering on, solution was to flush all buffers and reenable SID rewrite when needed; merged from MOODLE_16_STABLE 2006-05-14 17:23:29 +00:00
gustav_delius
38316f63a5 Removing obsolete defaults 2006-05-13 17:06:32 +00:00
gustav_delius
36be25f6e5 Introduce question_attempts table, closing bug 5468
Fixed incorrect check for whether to update state or insert new one in save_question_session()
Deal with manually graded states correctly during regrading
Increase state sequence number during manual grading
Supplied missing userid to quiz_save_best_grade() during manual grading
2006-05-13 16:57:17 +00:00
ethem
e81e5c1604 Fix: Redirect to order details page 10 seconds later, not home page. Merged from MOODLE_16_STABLE. 2006-05-13 16:18:38 +00:00
gustav_delius
4377c290c0 Updated comments and made sure teacher preview gets restarted when changes are saved, fixing bug 5478 2006-05-13 10:39:15 +00:00
ethem
6e6c37e2be Language direction is important. Changed as: <b>AVS Result:</b> $a
merged from 16_stable.
2006-05-13 08:53:34 +00:00
thepurpleblob
36e2232e27 Merged from STABLE. 2006-05-13 08:49:46 +00:00
ethem
f6a7a35cc9 More readable coding. Now, I understand everything. :)
Merged from MOODLE_16_STABLE.
2006-05-13 08:33:55 +00:00
ethem
8f152c586d Deleting test transactions are not good. They may be in proggress. Let's update WHERE transid<>'0'.
Merged from MOODLE_16_STABLE.
2006-05-13 06:02:06 +00:00
ethem
17dd669149 Fix: Don't show newly created orders prior to 2 minutes.
They may be still in proggress and these aren't test transacions(transid=0).
We check timecreated field to prevent this.
MERGED FROM MOODLE_16_STABLE.
2006-05-12 19:56:02 +00:00