Commit Graph

7320 Commits

Author SHA1 Message Date
moodler f2e21e6c03 Fix error string 2006-08-14 06:03:30 +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 624f2fea76 Removed some old calls to isadmin 2006-08-13 13:12:51 +00:00
moodler 7fad699525 Tidying up some spelling 2006-08-13 09:29:33 +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
vyshane df9c66776d Admin role assignment: changed from using get_string (too brittle) to
get_roles_with_capability (more robust).
2006-08-11 03:58:52 +00:00
vyshane abd896a114 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.
2006-08-11 03:24:37 +00:00
vyshane 0c30fdc924 Modified to support fresh installation of new Roles System. 2006-08-11 02:44:42 +00:00
moodler 5ec8a4f009 Removed tabs 2006-08-09 13:18:33 +00:00
moodler 30725d5a3b Tabs and some random formatting fixes 2006-08-09 13:11:53 +00:00
moodler f21d80947c Fix up the admin listing a bit 2006-08-09 05:53:36 +00:00
moodler 927bf46f3c Tidy-ups 2006-08-09 05:37:53 +00:00
toyomoyo e9871557be some UI change for roles 2006-08-08 08:31:21 +00:00
moodler bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
stronk7 2bcd169775 Hack to link from the admin interface to the XMLDB editor. 2006-08-07 19:47:03 +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 e9515eb3ec Bug #6181 - icelandic doesn't migrate; merged from MOODLE_16_STABLE 2006-07-29 09:44:33 +00:00
skodak 592c30370c Bug #6184 - unexpected T_OBJECT_OPERATOR on Admin/blocks; PHP 4.x compatibility 2006-07-29 09:08:56 +00:00
skodak 0e29ee3af7 Fixed Call to undefined function: print_progress() in /usr/share/moodle/admin/upgradeforumread.php; merged from MOODLE_16_STABLE 2006-07-27 11:49:52 +00:00
skodak 249ab74573 Bug #6075 - file admin/index.php is ISO encoded - headers broken by ob_end_flush(), fixed version check; merged from MOODLE_16_STABLE 2006-07-20 06:39:48 +00:00
skodak 5e60122254 Bug #6141 - Cron output is not plain text - <pre> and missing encoding, minor lang issues; merged from MOODLE_16_STABLE 2006-07-20 06:36:33 +00:00
skodak 6f24e48e1f Improved category and course list display on front page- see bug Bug #5965 - Frontpage Category List also showing courses; new Combo List(categories + courses), fixed categories list and separate settings for not logged in / logged in users; merged from MOODLE_16_STABLE 2006-07-19 12:10:07 +00:00
skodak ad0f9c828e Bug #6136 - Hard coded admin paths; merged from MOODLE_16_STABLE 2006-07-19 08:13:25 +00:00
skodak f90238b303 Bug #2149 - admin/creators.html javascript error; merged from MOODLE_16_STABLE 2006-07-18 07:17:13 +00:00
martinlanghoff 1590773b1c auth: extend API to support auth_validate_form()
Now Auth plugins can register auth_validate_form to get a chance
to validate config form input. Needed on MOODLE_16_STABLE to fix
a bug with auth/db.

The auth API must follow suit with the enrol API, where we can safely
do method_exists().
2006-07-18 01:36:06 +00:00
skodak e25f766dee todo: add detection of incorrect chars in wwwroot; merged from MOODLE_16_STABLE 2006-07-14 20:57:08 +00:00
sam_marshall 44c55d4662 Added hooks so that blocks can create functions that are run when they are installed and uninstalled. The base implementation does nothing. 2006-07-14 11:17:46 +00:00
tjhunt a36f058e53 Bug 6101 - Automatically scroll to any errors when upgrading the database. JavaScript thanks to Andrew Walker. PHP changes are my fault. 2006-07-13 09:48:56 +00:00
toyomoyo 2256c10d36 merged changing of feedback for the function that handles user table 2006-07-11 03:36:13 +00:00
skodak 8a91d7fcf3 changed memory limit test in healthcenter; merged from MOODLE_16_STABLE 2006-07-05 08:38:34 +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 aedbbbcf9c fix for mysqladmin links; merged from MOODLE_16_STABLE 2006-07-04 09:41:47 +00:00
skodak 13d32e2297 Bug #5974 - Course overview report should not error when stats are not up to date; fixed by changing the return value from stats_check_uptodate(), NULL is now OK, string value describes error and adding notify() where needed; merged from MOODLE_16_STABLE 2006-07-03 15:43:41 +00:00
tjhunt 4f9c6e279c Rename lang file as per Martin's request. 2006-07-03 10:04:04 +00:00
tjhunt 3ef8c9362d Bug #5979 - Check in the OU's unit testing framework. Docs at http://docs.moodle.org/en/Unit_tests 2006-06-30 14:59:05 +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
skodak 629c25da67 cleanup in admin/index.php; preparation for health center, loginas gui, password salts; merged from MOODLE_16_STABLE 2006-06-30 13:06:31 +00:00
mudrd8mz 1bd9b44a33 * Hide preview link when editing docs\ files. I have not found any way how to display
local documenation pages in 1.6. More comment in bug 4972
* Hide the form when displaying non-editable files (like en_utf8 ones).
2006-06-28 01:02:54 +00:00
stronk7 83c020ba20 Sending Yu's change to support custom langs to HEAD.
Changed progress info to 1000 records (from 5000). This
makes the script a bit more responsive on browser stops.

If finally approved, this should go to 16_STABLE too. (+1 for it)
2006-06-22 23:39:42 +00:00
stronk7 d3b9dbad78 Added new option to decide if docs will be showed in a new window.
Merged from MOODLE_16_STABLE
2006-06-20 13:41:56 +00:00
moodler fb06b25570 Merged migration fixes from stable 2006-06-18 10:09:58 +00:00
stronk7 c766b9dfaa Avoid empty processing both for PLAIN_SQL_UPDATE and PHP_FUNCTION 2006-06-09 09:16:09 +00:00
mudrd8mz 45428e8614 * Fixed bug 5745 reported by Harry Smith so now can edit en_utf8_local pack
* More notification messages included
2006-06-09 08:48:45 +00:00
toyomoyo 1c994d89f8 merged, changed recordsize to 50 2006-06-08 02:46:45 +00:00
toyomoyo 9073d2ddad merged, small changes to javascript progress bar 1) updates correctly when resuming 2) number of tables not hard coded anymore 2006-06-07 04:32:05 +00:00
toyomoyo 92cf4ecc12 merged, changes made to process user table on row basis. added migrate2utf8_user function. please help test and report bugs! 2006-06-07 04:11:10 +00:00
tjhunt 331ca29783 Make cron a bit more rebust by changing the way the require is done. Merged from MOODLE_16_STABLE. 2006-06-06 14:12:04 +00:00