Commit graph

734 commits

Author SHA1 Message Date
moodler
fa989c3882 Moved debugging() to weblib.php since it's really about output 2006-09-14 04:25:17 +00:00
moodler
ea82d6b638 CHanged a lot of CFG->debug stuff to use the new debuggin() function 2006-09-13 09:45:07 +00:00
moodler
4b743adbc3 Deleted the moodle_error_handler after reading the docs more.
it's not really as useful as I thought it might be
2006-09-13 08:41:12 +00:00
moodler
e6c5492368 Added a simple moodle_error_hendler function I'm playing with 2006-09-13 08:23:30 +00:00
moodler
050c78c41d Missed some $COURSE conversion 2006-09-13 05:33:09 +00:00
moodler
9103fd10f8 Use $COURSE and not the $course hack 2006-09-13 04:11:36 +00:00
toyomoyo
ae9e4c064e replacing iscreator() calls with capabilty 2006-09-12 08:56:10 +00:00
toyomoyo
1c45e42e3c adding capabilities 2006-09-11 08:56:23 +00:00
skodak
3435f39bab validate local redirection actions in jumpto.php SC#310 2006-09-11 06:47:38 +00:00
toyomoyo
51792df056 adding capabilities 2006-09-08 08:46:26 +00:00
skodak
42d6be31d1 double redirect prevention - if both 'meta http-equiv' and javascript redirects are used, javascript delay is 3 seconds longer to prevent accidental double redirects. The target page can still be loaded twice in case user clicks the link before the target page gets fully loaded. 2006-09-07 19:40:57 +00:00
toyomoyo
ec7a8b7999 adding capabilities 2006-09-07 08:57:56 +00:00
stronk7
fea43a7f51 Casting $course->modinfo to string prevents one notice to
be showed when it's null, returning false as desired.
2006-09-04 21:12:37 +00:00
moodler
7191a1fa27 Added capability for showing documentation links 2006-09-03 16:26:55 +00:00
moodler
d5a0163891 Removed student view completely until a roles-ased replacement can be made 2006-09-03 08:10:51 +00:00
skodak
86a1ba04fd replace all uses of isset($USER->id) with empty() to allow proper operation of $CFG->notloggedinroleid hack 2006-09-02 11:44:04 +00:00
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