moodle.git
14 years agoFixes for capability checks.
vyshane [Mon, 14 Aug 2006 07:25:18 +0000 (07:25 +0000)]
Fixes for capability checks.

14 years agoFormatting cleanups and comments
vyshane [Mon, 14 Aug 2006 07:15:03 +0000 (07:15 +0000)]
Formatting cleanups and comments

14 years agoprevent access to filters when disabled in filter settings SC#291; merged from MOODLE...
skodak [Mon, 14 Aug 2006 06:24:34 +0000 (06:24 +0000)]
prevent access to filters when disabled in filter settings SC#291; merged from MOODLE_16_STABLE

14 years agoFixed a typo
moodler [Mon, 14 Aug 2006 06:22:29 +0000 (06:22 +0000)]
Fixed a typo

14 years agoFix error string
moodler [Mon, 14 Aug 2006 06:03:30 +0000 (06:03 +0000)]
Fix error string

14 years agoSWEEPING CLEANUP
moodler [Mon, 14 Aug 2006 05:55:40 +0000 (05:55 +0000)]
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

14 years agoAdvanced search page added.
mchampan [Mon, 14 Aug 2006 02:29:43 +0000 (02:29 +0000)]
Advanced search page added.

14 years agoSC 289, small, but non-exploitable hole in backup permissions checking. Merged from...
tjhunt [Sun, 13 Aug 2006 20:39:21 +0000 (20:39 +0000)]
SC 289, small, but non-exploitable hole in backup permissions checking. Merged from MOODLE_16_STABLE.

14 years agoTemporayr debug a bit more sensible
moodler [Sun, 13 Aug 2006 15:50:58 +0000 (15:50 +0000)]
Temporayr debug a bit more sensible

14 years agoSome wider caching
moodler [Sun, 13 Aug 2006 15:48:57 +0000 (15:48 +0000)]
Some wider caching

14 years agoCache context lookup per page for performance
moodler [Sun, 13 Aug 2006 13:28:01 +0000 (13:28 +0000)]
Cache context lookup per page for performance

14 years agoAdding roles to front page course list "add" button
moodler [Sun, 13 Aug 2006 13:17:38 +0000 (13:17 +0000)]
Adding roles to front page course list "add" button

14 years agoRemoved some old calls to isadmin
moodler [Sun, 13 Aug 2006 13:12:51 +0000 (13:12 +0000)]
Removed some old calls to isadmin

14 years agoTidying up some spelling
moodler [Sun, 13 Aug 2006 09:29:33 +0000 (09:29 +0000)]
Tidying up some spelling

14 years agoMore language-related tidyups and a new get_local_override() function
moodler [Sun, 13 Aug 2006 09:25:45 +0000 (09:25 +0000)]
More language-related tidyups and a new get_local_override() function

14 years agoChanges to string format for capabilities
moodler [Sun, 13 Aug 2006 09:11:45 +0000 (09:11 +0000)]
Changes to string format for capabilities

14 years agoNew strings for Roles and Capabilities
moodler [Sun, 13 Aug 2006 09:10:52 +0000 (09:10 +0000)]
New strings for Roles and Capabilities

14 years agoRemoved all of the "Restricted users" hack because Roles can do it all better.
moodler [Sun, 13 Aug 2006 07:01:57 +0000 (07:01 +0000)]
Removed all of the "Restricted users" hack because Roles can do it all better.

14 years agoAutomatic installer.php lang files by installer_builder (20060813)
moodler [Sun, 13 Aug 2006 02:49:19 +0000 (02:49 +0000)]
installer.php lang files by installer_builder (20060813)

14 years agoLatest changes added + some polish in keys.
stronk7 [Sat, 12 Aug 2006 23:03:59 +0000 (23:03 +0000)]
Latest changes added + some polish in keys.

14 years agoInitial version of the XMLDB file for this plugin
stronk7 [Sat, 12 Aug 2006 22:26:05 +0000 (22:26 +0000)]
Initial version of the XMLDB file for this plugin

14 years agoInitial version of the XMLDB file for this plugin
stronk7 [Sat, 12 Aug 2006 22:19:10 +0000 (22:19 +0000)]
Initial version of the XMLDB file for this plugin

14 years agoInitial version of the XMLDB file for this plugin
stronk7 [Sat, 12 Aug 2006 21:41:46 +0000 (21:41 +0000)]
Initial version of the XMLDB file for this plugin

14 years agoAdded une foreign+unique key
stronk7 [Sat, 12 Aug 2006 21:40:30 +0000 (21:40 +0000)]
Added une foreign+unique key

14 years agoAdded download link for all entries as KML
danstowell [Sat, 12 Aug 2006 19:03:16 +0000 (19:03 +0000)]
Added download link for all entries as KML

14 years agoAnother couple of latlong strings
danstowell [Sat, 12 Aug 2006 19:02:39 +0000 (19:02 +0000)]
Another couple of latlong strings

14 years agoAnother couple of latlong strings
danstowell [Sat, 12 Aug 2006 17:37:08 +0000 (17:37 +0000)]
Another couple of latlong strings

14 years agoNow latlong data types allow you to choose which labels appear in Google Earth
danstowell [Sat, 12 Aug 2006 17:36:22 +0000 (17:36 +0000)]
Now latlong data types allow you to choose which labels appear in Google Earth

14 years agofixed format_text caching - now respects text format, current language and course...
skodak [Sat, 12 Aug 2006 12:44:19 +0000 (12:44 +0000)]
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

14 years agoAn example of how one unitialized variable can generate really
stronk7 [Sat, 12 Aug 2006 09:14:40 +0000 (09:14 +0000)]
An example of how one unitialized variable can generate really
dificult-to-trace bugs. Thanks to Jens Gammelgaard and support  B-)
(http://moodle.org/bugs/bug.php?op=show&bugid=6233)

Merged from MOODLE_16_STABLE

14 years agoXMLDB schema initial commit for the quiz module.
stronk7 [Fri, 11 Aug 2006 19:29:47 +0000 (19:29 +0000)]
XMLDB schema initial commit for the quiz module.
Some doubts are pending to finish it properly.

14 years agoAdded one FK (recursive) to course_categories
stronk7 [Fri, 11 Aug 2006 18:41:39 +0000 (18:41 +0000)]
Added one FK (recursive) to course_categories

14 years agoAdded one comment about recursive FK for the future.
stronk7 [Fri, 11 Aug 2006 18:36:47 +0000 (18:36 +0000)]
Added one comment about recursive FK for the future.

14 years agoXMLDB schema initial commit for the lesson module
stronk7 [Fri, 11 Aug 2006 17:56:18 +0000 (17:56 +0000)]
XMLDB schema initial commit for the lesson module

14 years agoXMLDB schema initial commit for the lams module
stronk7 [Fri, 11 Aug 2006 17:39:38 +0000 (17:39 +0000)]
XMLDB schema initial commit for the lams module

14 years agoXMLDB schema initial commit for the label module
stronk7 [Fri, 11 Aug 2006 17:37:17 +0000 (17:37 +0000)]
XMLDB schema initial commit for the label module

14 years agoOops, filled now. I forgot to save changes before commit.
stronk7 [Fri, 11 Aug 2006 17:31:11 +0000 (17:31 +0000)]
Oops, filled now. I forgot to save changes before commit.

14 years agoXMLDB schema initial commit for the journal module
stronk7 [Fri, 11 Aug 2006 17:29:47 +0000 (17:29 +0000)]
XMLDB schema initial commit for the journal module

14 years agoXMLDB schema initial commit for the hotpot module
stronk7 [Fri, 11 Aug 2006 17:24:55 +0000 (17:24 +0000)]
XMLDB schema initial commit for the hotpot module

14 years agoXMLDB schema initial commit for the glossary module
stronk7 [Fri, 11 Aug 2006 17:11:46 +0000 (17:11 +0000)]
XMLDB schema initial commit for the glossary module

14 years agoGive some more chars to enum fields.
stronk7 [Fri, 11 Aug 2006 16:45:45 +0000 (16:45 +0000)]
Give some more chars to enum fields.

14 years agoXMLDB schema initial commit for forum module
stronk7 [Fri, 11 Aug 2006 16:35:11 +0000 (16:35 +0000)]
XMLDB schema initial commit for forum module

14 years agoBug 6239 - Allow questions to have some teacher-supplied commentary.
tjhunt [Fri, 11 Aug 2006 14:59:18 +0000 (14:59 +0000)]
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.

14 years agoAdding new data field type, latlong, to HEAD
danstowell [Fri, 11 Aug 2006 13:17:29 +0000 (13:17 +0000)]
Adding new data field type, latlong, to HEAD

14 years agoAdded two strings
bobopinna [Fri, 11 Aug 2006 13:11:53 +0000 (13:11 +0000)]
Added two strings

14 years agoFixed a problem during scorm update.
bobopinna [Fri, 11 Aug 2006 12:26:06 +0000 (12:26 +0000)]
Fixed a problem during scorm update.
Now only the lost scoes tracks are deleted
Added support to IMS CP repository

14 years agoMerged from STABLE
thepurpleblob [Fri, 11 Aug 2006 12:16:38 +0000 (12:16 +0000)]
Merged from STABLE

14 years agoTidy up code flow in helpbutton.
tjhunt [Fri, 11 Aug 2006 10:33:29 +0000 (10:33 +0000)]
Tidy up code flow in helpbutton.

14 years agoChanging //TRANSLIT to //IGNORE because some weird bug
stronk7 [Fri, 11 Aug 2006 09:48:35 +0000 (09:48 +0000)]
Changing //TRANSLIT to //IGNORE because some weird bug
in the OS iconv libraries was breaking some texts.

Merged from MOODLE_16_STABLE

14 years agoMerged from STABLE
thepurpleblob [Fri, 11 Aug 2006 08:52:24 +0000 (08:52 +0000)]
Merged from STABLE

14 years agoLatitude and longitude lang strings for en_utf8 for data activity
danstowell [Fri, 11 Aug 2006 08:48:28 +0000 (08:48 +0000)]
Latitude and longitude lang strings for en_utf8 for data activity

14 years agoAdmin role assignment: changed from using get_string (too brittle) to
vyshane [Fri, 11 Aug 2006 03:58:52 +0000 (03:58 +0000)]
Admin role assignment: changed from using get_string (too brittle) to
get_roles_with_capability (more robust).

14 years agoCommented out code that adds the new admin user to user_admins and
vyshane [Fri, 11 Aug 2006 03:24:37 +0000 (03:24 +0000)]
Commented out code that adds the new admin user to user_admins and
user_teachers tables from user.php.

Fixed notices in roles/assign.php.

14 years agoModified to support fresh installation of new Roles System.
vyshane [Fri, 11 Aug 2006 02:44:42 +0000 (02:44 +0000)]
Modified to support fresh installation of new Roles System.

14 years agoModified to fix installation.
vyshane [Fri, 11 Aug 2006 02:44:02 +0000 (02:44 +0000)]
Modified to fix installation.

14 years agoMajor code cleanup of this report (that started as a small code cleanup). None of...
tjhunt [Thu, 10 Aug 2006 21:52:07 +0000 (21:52 +0000)]
Major code cleanup of this report (that started as a small code cleanup). None of the functionality should have changed - crosses fingers.

14 years agoFix comment.
tjhunt [Thu, 10 Aug 2006 21:33:53 +0000 (21:33 +0000)]
Fix comment.

14 years agoFix minor HTML validation issue.
tjhunt [Thu, 10 Aug 2006 18:58:26 +0000 (18:58 +0000)]
Fix minor HTML validation issue.

14 years agoConvert tabs to spaces.
tjhunt [Thu, 10 Aug 2006 18:32:32 +0000 (18:32 +0000)]
Convert tabs to spaces.

14 years agoConvert tabs to spaces.
tjhunt [Thu, 10 Aug 2006 18:23:09 +0000 (18:23 +0000)]
Convert tabs to spaces.

14 years agoXMLDB schema initial commit for exercise module
stronk7 [Thu, 10 Aug 2006 17:12:00 +0000 (17:12 +0000)]
XMLDB schema initial commit for exercise module

14 years agoTypo in comment.
tjhunt [Thu, 10 Aug 2006 15:44:52 +0000 (15:44 +0000)]
Typo in comment.

14 years agoCleaned code
bobopinna [Thu, 10 Aug 2006 11:32:48 +0000 (11:32 +0000)]
Cleaned code

14 years agoComment added.
ethem [Thu, 10 Aug 2006 10:55:42 +0000 (10:55 +0000)]
Comment added.

14 years agoAdding latest changes, FKs and indexes.
stronk7 [Thu, 10 Aug 2006 09:25:52 +0000 (09:25 +0000)]
Adding latest changes, FKs and indexes.

14 years agoname should be unique key, and should be length 255
toyomoyo [Thu, 10 Aug 2006 09:07:15 +0000 (09:07 +0000)]
name should be unique key, and should be length 255

14 years agochanging name field in capabilities table to 255
toyomoyo [Thu, 10 Aug 2006 09:02:21 +0000 (09:02 +0000)]
changing name field in capabilities table to 255

14 years agoFixed a problem with popup window and IE
bobopinna [Thu, 10 Aug 2006 08:27:12 +0000 (08:27 +0000)]
Fixed a problem with popup window and IE

14 years agobumped up version to add keys, changed some more UI
toyomoyo [Thu, 10 Aug 2006 08:21:29 +0000 (08:21 +0000)]
bumped up version to add keys, changed some more UI

14 years agoadding keys for new tables, added migration support too
toyomoyo [Thu, 10 Aug 2006 08:20:16 +0000 (08:20 +0000)]
adding keys for new tables, added migration support too

14 years agoAdded $return=false parameter to the following functions:
moquist [Thu, 10 Aug 2006 06:41:38 +0000 (06:41 +0000)]
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()

14 years agoAdding back lines that mysteriously disapeared.
vyshane [Thu, 10 Aug 2006 05:57:34 +0000 (05:57 +0000)]
Adding back lines that mysteriously disapeared.

14 years agoAdded $return=false parameter to print_footer() using output control functions
moquist [Thu, 10 Aug 2006 05:10:00 +0000 (05:10 +0000)]
Added $return=false parameter to print_footer() using output control functions
to capture include() of themed footer HTML.

14 years agoAdded $return=false parameter to print_header() and print_header_simple() using
moquist [Thu, 10 Aug 2006 05:01:57 +0000 (05:01 +0000)]
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.

14 years agoAdded $return=false parameter to close_window_button() and choose_from_radio().
moquist [Thu, 10 Aug 2006 04:33:55 +0000 (04:33 +0000)]
Added $return=false parameter to close_window_button() and choose_from_radio().

14 years agoAutomatic installer.php lang files by installer_builder (20060810)
moodler [Thu, 10 Aug 2006 03:00:40 +0000 (03:00 +0000)]
installer.php lang files by installer_builder (20060810)

14 years agomerged fix for a bug when user's lang is not set, fall back to site lang
toyomoyo [Thu, 10 Aug 2006 02:43:22 +0000 (02:43 +0000)]
merged fix for a bug when user's lang is not set, fall back to site lang

14 years agoobfuscation of the email addresses; merged from MOODLE_16_STABLE SC#282
skodak [Wed, 9 Aug 2006 20:40:31 +0000 (20:40 +0000)]
obfuscation of the email addresses; merged from MOODLE_16_STABLE SC#282

14 years agoBug #6199 - A typo in edit.php; merged from MOODLE_16_STABLE
skodak [Wed, 9 Aug 2006 19:46:32 +0000 (19:46 +0000)]
Bug #6199 - A typo in edit.php; merged from MOODLE_16_STABLE

14 years agoBug #4936 - Highlighting a question text fragment with different color; merged from...
skodak [Wed, 9 Aug 2006 19:31:09 +0000 (19:31 +0000)]
Bug #4936 - Highlighting a question text fragment with different color; merged from MOODLE_16_STABLE

14 years agoBug #6225 - Moodle bug #4658 Breaks assignment type: Upload Single; merged from MOODL...
skodak [Wed, 9 Aug 2006 18:36:54 +0000 (18:36 +0000)]
Bug #6225 - Moodle bug #4658 Breaks assignment type: Upload Single; merged from MOODLE_16_STABLE

14 years agoDocument table_column.
tjhunt [Wed, 9 Aug 2006 17:46:16 +0000 (17:46 +0000)]
Document table_column.

14 years agoindex2fk performed
stronk7 [Wed, 9 Aug 2006 15:45:27 +0000 (15:45 +0000)]
index2fk performed

14 years agoAdded patch from Tim (http://moodle.org/mod/forum/discuss.php?d=51323#234978)
moodler [Wed, 9 Aug 2006 14:16:13 +0000 (14:16 +0000)]
Added patch from Tim (moodle.org/mod/forum/discuss.php?d=51323#234978)

14 years agoFixed some typos. Thanks Tim!
moodler [Wed, 9 Aug 2006 14:01:14 +0000 (14:01 +0000)]
Fixed some typos.  Thanks Tim!

14 years agoRemoved tabs
moodler [Wed, 9 Aug 2006 14:00:51 +0000 (14:00 +0000)]
Removed tabs

14 years agoFixed a typo, thanks Tim
moodler [Wed, 9 Aug 2006 13:55:05 +0000 (13:55 +0000)]
Fixed a typo, thanks Tim

14 years agoRemoved tabs
moodler [Wed, 9 Aug 2006 13:53:12 +0000 (13:53 +0000)]
Removed tabs

14 years agoRemoved tabs
moodler [Wed, 9 Aug 2006 13:45:49 +0000 (13:45 +0000)]
Removed tabs

14 years agoRemoved tabs
moodler [Wed, 9 Aug 2006 13:39:44 +0000 (13:39 +0000)]
Removed tabs

14 years agoRemoved tabs
moodler [Wed, 9 Aug 2006 13:18:33 +0000 (13:18 +0000)]
Removed tabs

14 years agoRemoved tabs
moodler [Wed, 9 Aug 2006 13:14:15 +0000 (13:14 +0000)]
Removed tabs

14 years agoTabs and some random formatting fixes
moodler [Wed, 9 Aug 2006 13:11:53 +0000 (13:11 +0000)]
Tabs and some random formatting fixes

14 years agoOne more FK in blocks system.
stronk7 [Wed, 9 Aug 2006 11:56:02 +0000 (11:56 +0000)]
One more FK in blocks system.

14 years agoBug #6106 - HTML editor inserting unwanted hard return between images; merged from...
skodak [Wed, 9 Aug 2006 09:37:01 +0000 (09:37 +0000)]
Bug #6106 - HTML editor inserting unwanted hard return between images; merged from MOODLE_16_STABLE

14 years agoMore updates in lib.php
vyshane [Wed, 9 Aug 2006 09:18:31 +0000 (09:18 +0000)]
More updates in lib.php

14 years agoAdded mod/forum:viewhiddentimedposts
vyshane [Wed, 9 Aug 2006 09:17:37 +0000 (09:17 +0000)]
Added mod/forum:viewhiddentimedposts

14 years agoAdded moodle/site:viewfullnames
vyshane [Wed, 9 Aug 2006 09:16:35 +0000 (09:16 +0000)]
Added moodle/site:viewfullnames

14 years agoBug fixes + updated capabilities.
vyshane [Wed, 9 Aug 2006 06:59:28 +0000 (06:59 +0000)]
Bug fixes + updated capabilities.

14 years agoMore Roles-related strings
moodler [Wed, 9 Aug 2006 05:54:27 +0000 (05:54 +0000)]
More Roles-related strings