768 Commits

Author SHA1 Message Date
tjhunt
73d4db845e New function choose_from_menu_yesno 2006-08-31 16:55:48 +00:00
skodak
eb744c5ef7 redirect() now always respects delay 0 if specified + some minor changes 2006-08-31 07:45:58 +00:00
stronk7
de64b6c69e modify stripslashes_safe() to work properly under magic_quotes_sybase
(both addslashes and stripslashes do it properly based on the setting)
2006-08-27 21:52:22 +00:00
skodak
daed1a2f37 minor trusttext fix 2006-08-26 17:39:31 +00:00
skodak
7d8a3cb06a trusttext:
* proposed by Martin Dougiamas
 * implemented by skodak

Usage:
1/ change enabletrusttext to yes in site settings (it is off by default) or set it in config.php
2/ assign moodle/site:trustcontent capability to users whose text submitted in glossary entries, comments, forum posts etc. should not be cleaned == they can use javascript or any other forbidden tags in glossary and forums...

done:
 * core
 * glossary (without proper upgrade)

to do:
 * data cleaning in upgrades
 * forum, blocks and some other places (MD decides)
2006-08-26 13:00:07 +00:00
vinkmar
f8a511519b admin page cleanup (google soc 2006)... updated field name for category editing function so that it doesn't conflict with 'edit' when used for blocks 2006-08-18 07:29:19 +00:00
skodak
dedb2304cd upgrade logging cleanup, fixes - more improvements ahead 2006-08-17 22:37:34 +00:00
skodak
b8a607d691 fixed format_text caching - now respects text format, current language and course id (lang fix is needed for my multilang filter rewrite ;-); merged from MOODLE_16_STABLE 2006-08-12 12:44:19 +00:00
tjhunt
712c25b10b Tidy up code flow in helpbutton. 2006-08-11 10:33:29 +00:00
tjhunt
7003072a7f Fix minor HTML validation issue. 2006-08-10 18:58:26 +00:00
moquist
da4124beab Added $return=false parameter to the following functions:
print_navigation()
print_headline()
print_heading()
print_heading_with_help()
print_heading_block()
print_continue()
print_simple_box()
print_simple_box_start()
print_simple_box_end()
print_single_button()
print_spacer()
print_file_picture()
print_user()
print_recent_activity_note()
print_group_menu()
print_grade_menu()
print_scale_menu()
print_scale_menu_helpbutton()

Changed $returnstring parameter to $return (for consistency) in the following
functions:
print_user_picture()
print_group_picture()
2006-08-10 06:41:38 +00:00
moquist
469b650119 Added $return=false parameter to print_footer() using output control functions
to capture include() of themed footer HTML.
2006-08-10 05:10:00 +00:00
moquist
36b6bcecc0 Added $return=false parameter to print_header() and print_header_simple() using
output control functions to deal with the include() of the themed header HTML
file.
2006-08-10 05:01:57 +00:00
moquist
eaeaf964dc Added $return=false parameter to close_window_button() and choose_from_radio(). 2006-08-10 04:33:55 +00:00
skodak
016ffbd752 Bug #4936 - Highlighting a question text fragment with different color; merged from MOODLE_16_STABLE 2006-08-09 19:31:09 +00:00
moodler
5ec8a4f009 Removed tabs 2006-08-09 13:18:33 +00:00
skodak
9e72ebd678 improved redirect() - faster and more standards compliant 2006-08-01 18:02:42 +00:00
skodak
583fad994c Bug #5352 - upgrade might be interrupted by user - upgrades are now logged into moddata/upgradelogs/, user abor is ignored and concurrent running of upgrades is prevented from one browser 2006-08-01 07:46:19 +00:00
skodak
be933850a7 Bug #6176 - locale setting on config variables page not functioning correctly; merged from MOODLE_16_STABLE 2006-07-30 10:39:21 +00:00
skodak
250f78be94 Bug #6097 - HTML editor and brackets - fixes lesson problems; merged from MOODLE_16_STABLE 2006-07-20 06:32:38 +00:00
skodak
9bbb40d631 healthcenter fixes - new extra whitespace detection, fixed automatic slasharguments detection; merged from MOODLE_16_STABLE 2006-07-05 07:44:20 +00:00
skodak
6544f8d896 slashargument fix for healthcenter, better diagnostic messages; renamed file.php/pic.jpg option to file.php/1/pic.jpg because the course number is mandatory; merged from MOODLE_16_STABLE 2006-06-30 13:46:25 +00:00
toyomoyo
b7425e2ebc merged fix for 5916 2006-06-26 08:32:39 +00:00
stronk7
7038fe44bf Now docs are showed in a new window based on $CFG->doctonewwindow
Merged from MOODLE_16_STABLE
2006-06-20 13:53:09 +00:00
moodler
a6320cc0b8 Merged helplink fix from stable 2006-06-18 08:10:52 +00:00
moodler
05b7eba955 Merged print_error fix from stable 2006-06-14 03:17:19 +00:00
nfreear
782792047b Fix bug 5611 (Skip block), across 4 files. Extra parameter $title in weblib.php: print_side_block, edits to moodleblock.class.php, Standard style, en_utf8 language pack. 2006-06-09 14:25:18 +00:00
moquist
b40a2b43be Added $return parameters to print_paging_bar() and print_table(). 2006-06-01 05:51:45 +00:00
moodler
80acd6be74 Use global $COURSE in print_header to avoid ugly hack 2006-05-29 08:22:52 +00:00
skodak
fdcd0f0566 fix for printing of multiple group pictures bug #5548; merged from MOODLE_16_STABLE 2006-05-23 19:18:25 +00:00
skodak
cd7d03fa48 fixed register globals issues in course/search.php; merged from MOODLE_16_STABLE 2006-05-20 18:41:59 +00:00
skodak
c23ff4d654 deprecated nvl() function similar to optional_variable(); merged from MOODLE_16_STABLE 2006-05-18 22:12:06 +00:00
tjhunt
450a0a7db7 Merge from stable branch: Convert tabs to spaces in files where there were only a few rogue tabs. 2006-05-17 16:47:44 +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
nfreear
f73e218f40 Merge from STABLE. Fix bug 5477... 2006-05-16 12:27:21 +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
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
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
stronk7
bb4a5741d1 Isolating debug and perfdebug behaviours...now
each one controls its own output.
2006-05-01 23:16:48 +00:00
skodak
6d706916bd double header in error() workaround 2006-05-01 21:31:12 +00:00
skodak
d2b23346c9 block editing now uses PARAM_BOOL 2006-04-23 20:58:06 +00:00
martinlanghoff
78fbaeaeed weblib: validate_email() -- emails with a trailing dot in the local-part (user.@host.com) are invalid 2006-04-20 22:32:00 +00:00
skodak
960855b9a1 fixed double header warning in redirect() 2006-04-17 20:40:33 +00:00
moodler
9e458bb388 Moodle Docs link on home page could be a bit confusing 2006-04-16 16:21:50 +00:00
skodak
f8a5159a2b changes needed for new s() and p() - see bug #2338 2006-04-14 08:02:32 +00:00
skodak
e8d1c9ed2b stripslashes_safe() improvement - now works also for arrays and objects see bug #2338 2006-04-13 21:27:01 +00:00
moodler
87fa2e3f8a Fixes to make print_error more useful, suggested by Sam
It can now take a module argument, and can support different link locations
2006-04-13 05:42:47 +00:00
stronk7
d4a42ff494 New optional parameter to s() and p() allowing to specify
if we want to strip slashes (data coming from forms) or no
(data coming from DB, the default). Bug 2338.
(http://moodle.org/bugs/bug.php?op=show&bugid=2338)
2006-04-12 17:39:23 +00:00
skodak
f27d105cc6 final fix for category and courses edit button 2006-04-12 16:28:11 +00:00
moodler
dd899b917d Fixed up print_error according to original plan
see also http://moodle.org/mod/forum/discuss.php?d=43712
2006-04-12 09:32:19 +00:00