2899 Commits

Author SHA1 Message Date
tjhunt
d3eeba599b Delete stray space. 2006-08-15 16:53:24 +00:00
tjhunt
ab757152ec New function get_field_select(). 2006-08-15 13:44:22 +00:00
stronk7
edc8779b92 Latest changes, nothing important. 2006-08-15 11:30:32 +00:00
stronk7
82b7ceb568 Just adding support for reserved words.... 2006-08-15 10:15:52 +00:00
stronk7
8165877a17 Initial commit on HEAD of all the XMLDB stuff. 2006-08-15 09:14:31 +00:00
stronk7
f11bf81701 Initial commit of the ddllib (to perform DDL operations) 2006-08-15 09:08:17 +00:00
toyomoyo
0a8a95c91e some more UI stuff 2006-08-15 08:29:29 +00:00
vyshane
a028c29187 Added new capabilities 2006-08-15 04:13:22 +00:00
skodak
284ac70210 $CFG->debug=0 from config.php is not overriden by setup.php anymore SC#293; merged from MOODLE_16_STABLE 2006-08-14 20:57:18 +00:00
moodler
cfef9e55d0 Endless loop fix from stable 2006-08-14 15:20:49 +00:00
moodler
10f5c89035 FIxed another ossible notice during upgrade 2006-08-14 13:44:10 +00:00
moodler
9db12da755 Fixed some notices during install 2006-08-14 13:42:34 +00:00
vyshane
e6316185ab Fixed bug in upgrade_plugins(). Capabilities were not being loaded correctly. 2006-08-14 08:59:01 +00:00
skodak
8549af11d1 fixed upgrade success notification, backup and blocks success messages are not red anymore... 2006-08-14 08:37:19 +00:00
moodler
218564acfc Fixed bug #6238, bad debug statements 2006-08-14 08:26:58 +00:00
moodler
e4dd322255 Function to get roles used in a context 2006-08-14 08:14:02 +00:00
vyshane
cee0901c06 Formatting cleanups and comments 2006-08-14 07:15:03 +00:00
moodler
65f4d137a7 Fixed a typo 2006-08-14 06:22:29 +00:00
moodler
0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00
moodler
340ea4e89e Some wider caching 2006-08-13 15:48:57 +00:00
moodler
e5605780cf Cache context lookup per page for performance 2006-08-13 13:28:01 +00:00
moodler
8737be587d More language-related tidyups and a new get_local_override() function 2006-08-13 09:25:45 +00:00
moodler
ceb83c70ba Changes to string format for capabilities 2006-08-13 09:11:45 +00:00
moodler
bade10e350 Removed all of the "Restricted users" hack because Roles can do it all better. 2006-08-13 07:01:57 +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
stronk7
b08eda731b Added one FK (recursive) to course_categories 2006-08-11 18:41:39 +00:00
tjhunt
1b8a7434e2 Bug 6239 - Allow questions to have some teacher-supplied commentary.
While implementing this, I removed the ~100 lines of very similar code from the top of each question type's editquestion.html template, and moved this to a the function print_question_form_start() in the base class, which uses the template question/type/editquestionstart.html. This is described in more detail here: http://moodle.org/mod/forum/discuss.php?d=51590, and is why this patch makes the codebase 523 lines smaller.
2006-08-11 14:59:18 +00:00
tjhunt
712c25b10b Tidy up code flow in helpbutton. 2006-08-11 10:33:29 +00:00
stronk7
f1b2046912 Changing //TRANSLIT to //IGNORE because some weird bug
in the OS iconv libraries was breaking some texts.

Merged from MOODLE_16_STABLE
2006-08-11 09:48:35 +00:00
vyshane
1afecc03f4 Modified to fix installation. 2006-08-11 02:44:02 +00:00
tjhunt
93eb0ea339 Fix comment. 2006-08-10 21:33:53 +00:00
tjhunt
7003072a7f Fix minor HTML validation issue. 2006-08-10 18:58:26 +00:00
tjhunt
78b26f761c Typo in comment. 2006-08-10 15:44:52 +00:00
stronk7
a1bdf659ad Adding latest changes, FKs and indexes. 2006-08-10 09:25:52 +00:00
toyomoyo
2a1ab5ecf2 name should be unique key, and should be length 255 2006-08-10 09:07:15 +00:00
toyomoyo
7952cb34ef changing name field in capabilities table to 255 2006-08-10 09:02:21 +00:00
toyomoyo
171948fd4a bumped up version to add keys, changed some more UI 2006-08-10 08:21:29 +00:00
toyomoyo
bcf214dfc4 adding keys for new tables, added migration support too 2006-08-10 08:20:16 +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
toyomoyo
c04ba75f8f merged fix for a bug when user's lang is not set, fall back to site lang 2006-08-10 02:43:22 +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
tjhunt
dba4e6da97 Document table_column. 2006-08-09 17:46:16 +00:00
moodler
41811960a1 Added patch from Tim (http://moodle.org/mod/forum/discuss.php?d=51323#234978) 2006-08-09 14:16:13 +00:00
moodler
2ad25548c6 Fixed some typos. Thanks Tim! 2006-08-09 14:01:14 +00:00
moodler
f10306b9e2 Removed tabs 2006-08-09 14:00:51 +00:00
moodler
5ec8a4f009 Removed tabs 2006-08-09 13:18:33 +00:00
moodler
9888263703 Removed tabs 2006-08-09 13:14:15 +00:00