Commit graph

7694 commits

Author SHA1 Message Date
dongsheng
ff9b4ea40a "MDL-17570,clean align property, merged from 1.9" 2008-12-10 07:24:11 +00:00
tjhunt
426091ee1f Simple whitespace cleanup. 2008-12-10 05:32:51 +00:00
tjhunt
e452210a18 course request: MDL-17575 and MDL-6160 further improvements:
1/ email notification when course requested
2/ course request capability so that we can limit who can request new course
3/ list of my pending course requests on the request form

Implemented in 1.9 by Petr Skoda, and reviewed and merged to HEAD by me.
2008-12-10 02:57:41 +00:00
skodak
2c4eb0064b MDL-17491 oracle dml: towards full support 2008-12-09 22:24:07 +00:00
skodak
64c6d5db62 MDL-17479 category search: replaced old update capability; merged from MOODLE__STABLE 2008-12-09 20:30:02 +00:00
skodak
3ce50127b9 MDL-17502 accesslib: added warning if incorrect parameters supplied to has_all_capabilities() and fixed parameters in course lib code 2008-12-09 16:25:38 +00:00
skodak
418b74993d MDL-17491 oracle dml: problem notes 2008-12-09 09:03:37 +00:00
dongsheng
b933b378e3 "MDL-17391, fix file_type_to_ext to class, which should return array all the time" 2008-12-09 06:52:27 +00:00
moodler
22ed92de16 MDL-17391, change paramters of repository_get_client. 2008-12-09 06:50:06 +00:00
stronk7
9d510a2ea0 MDL-13746 course shortname up to 100cc (applied to mnet_enrol_course) 2008-12-08 08:21:19 +00:00
tjhunt
8a1b1c328d course categories: MDL-17502 when deleting a category and its contents, check moodle/course:delete capability.
* Note: this would never lead to problems with default role definions.
* Also ended up mostly rewriting delete_category_form to simplify the messages that are displayed.
* New helper function require_all_capabilities, a bit like require_any_capability.
2008-12-08 07:28:19 +00:00
dongsheng
fc11edbfa0 "MDL-17391, enable repository filter in html editor" 2008-12-08 06:53:58 +00:00
dongsheng
014c1ca037 "MDL-17391, filter repository intances by file types" 2008-12-08 05:19:09 +00:00
tjhunt
9136a60c46 course settings: MDL-17501 check for moodle/course:visibility in the course settings form.
1. If a user does not have that capability, don't let them change whether the course is visible.
2. Give teachers that capability by default.
3. To avoid regressions, on upgrade, give moodle/course:visibility to any role that has moodle/course:update.
2008-12-08 02:31:05 +00:00
skodak
745c0ee508 MDL-17537 course request: shortname in course_request is now the same length as in course table - 100 chars 2008-12-07 22:13:39 +00:00
dongsheng
9442670781 TINYMCE, YOUTUBE/MDL-16650 2008-12-05 05:21:24 +00:00
skodak
66e75f8d51 MDL-17491 experimental native oracle driver - still bugy and incomplete, this will require more core changes, grrrrrr 2008-12-05 00:10:27 +00:00
skodak
995821591d MDL-17534 simpletest: temporary fix for exception problems 2008-12-04 23:19:37 +00:00
skodak
9d833e931c MDL-17522 improved dml tests, fixed use of reserved word "number" 2008-12-04 23:16:35 +00:00
skodak
3ff8bf266b MDL-17522 improved dml tests, fixed sql LIMIT support in native drivers 2008-12-04 11:52:53 +00:00
tjhunt
8ed5dd63ee course categories: Fix many bugs with category editing and permissions. Clean up code.
Bugs: MDL-17479, MDL-16426, MDL-16063, MDL-16013, MDL-15658, MDL-15556, MDL-15161, MDL-14925, MDL-13742, MDL-11557.

* Simplify category editing permissions to just moodle/category:manage and moodle/category:seehiddencategories.
* Enforce those correctly. (Note MDL 17502 is still outstanding.)
* Don't screw up category sort order when you just edit name or description.
* Niceties like where redirects go when you cancel or submit forms.
* Make sure a global course creator can see the site admin block.
* Don't allow a category to be made the child of one of its children!
* General code cleanup to bring key files more in line with best pracitice.

Apologies for the fact it is one big patch, rather than a series of smaller patches. However, categoryedit.php, category.php and index.php where in pretty bad shape and needed significant cleaning up. categoryedit.php, in particular, was almost completely rewritten.

Merged from MOODLE_19_STABLE.
2008-12-04 08:53:10 +00:00
ericmerrill
62097c91ed weblib: MDL-16293: background-color attribute stripped from html. Adding 'background-color' attribute to $ALLOWED_PROTOCOLS array so kses doesn't drop it. 2008-12-03 16:31:49 +00:00
skodak
189f3ee9bf MDL-14679 enforce prefix for native pg driver 2008-12-02 10:07:03 +00:00
skodak
1638ad5317 MDL-14679 removed unnecessary CFG from native drivers 2008-12-02 10:01:01 +00:00
dongsheng
b423b4af24 REPOSITORY, FILEMANGER FORM ELEMENT/MDL-16597
new ajax filemanager.
2008-12-02 07:05:15 +00:00
poltawski
f6d3e2c486 lib: class curl does http proxy tunneling if http proxy set. Most
proxies do not permit this so I think its better to just use pure
pure http MDL-17482
2008-12-01 22:23:42 +00:00
mchurch
6795800d8b Fixed addslashes_object deprecated message. 2008-12-01 20:05:00 +00:00
skodak
3c7da16d2d MDL-17485 roles: fixed use and definition of review use of moodle/user:viewuseractivitiesreport 2008-12-01 19:19:29 +00:00
tjhunt
5138f9623d Remove unnecessary extra $Id$ tag. It messes up the unmerged files list, and makes merging extra difficult. 2008-12-01 07:09:37 +00:00
tjhunt
df73f8d4e1 restore: MDL-17480 Potentially expensive function user_can_create_courses called repeatedly from restore UI. 2008-12-01 06:55:11 +00:00
stronk7
30d2832dd0 Added create_database() method (to be used at least by Win32 installers) 2008-11-30 19:29:37 +00:00
poltawski
83b510875d repository: New Picasa Web Albums Plugin MDL-17473 2008-11-30 17:37:06 +00:00
poltawski
ee91cf9591 portfolio: MDL-16417 - Adding googledocs/picasa plugins
* Added simple library for googleapi things
* Respository plugins to follow
2008-11-29 20:24:25 +00:00
skodak
0d13085755 MDL-17463 chnging progress report cap to new standard 2008-11-29 16:41:20 +00:00
skodak
9b1ad47be8 MDL-17372 new course reports string - role definition improvement; merged from MOODLE_19_STABLE 2008-11-29 16:33:58 +00:00
skodak
a2e4bf7f23 MDL-17463 - reparate capabilities for course and admin reports 2008-11-29 14:22:10 +00:00
skodak
088a4df8fc MDL-14679 improved limit handling 2008-11-29 13:32:56 +00:00
skodak
a1442d4e3e MDL-17436 fixed pg issue with char <> num comparison 2008-11-28 09:16:24 +00:00
skodak
b63a6a6338 MDL-17372 admin reports: Added full plugin support for admin reports - fixed sorting regression, plugins now loaded as last category 2008-11-28 08:04:23 +00:00
tjhunt
f24493ec9b random essay questions: MDL-8648 Allow essay questions to be selected by random question.
In the 1.9 branch this is controlled by a new option under Admin -> Experimental. In Moodle 2.0 dev it is not optional, it just works.

The main change is letting the manual grading report know which random questions might need manual grading. MDL-4004 - this depends on the random question under consideration, which requires a new questiontype method.

I also changed the random question code so that I could remove some global variables.
2008-11-28 06:07:11 +00:00
skodak
a7b4fc7f28 MDL-17399 workaround for missing mysqli ext 2008-11-27 22:28:56 +00:00
skodak
95f0446147 MDL-17372 course reports: Added full plugin support for course reports 2008-11-27 20:30:14 +00:00
tjhunt
df4e224454 question bank: MDL-14434 Cannot edit the only question category in a context. 2008-11-27 11:50:29 +00:00
tjhunt
004ff192d4 listlib: MDL-17422 Paging in listlib was badly screwed 2008-11-27 10:53:46 +00:00
tjhunt
1327f08eed formslib file upload: MDL-17403 try adding accept-charset="utf-8" to forms to fix occasional upload problems. 2008-11-27 02:49:02 +00:00
skodak
a0005f678f MDL-17372 admin reports: Added full plugin support for admin reports; added specail capability for unittest execution, minor refactoring 2008-11-26 19:27:40 +00:00
skodak
d994ced22b MDL-17372 admin reports: Added full plugin support for admin reports; added specail capability for unittest execution, minor refactoring 2008-11-26 19:27:39 +00:00
sam_marshall
002f56ef79 MDL-17412: Completion system unit tests were broken 2008-11-26 13:59:24 +00:00
tjhunt
24ada7b2b6 Yay! found a global variable that was not being used anywhere. Kill! Kill! 2008-11-26 08:55:24 +00:00
skodak
78a0635ccd MDL-17408 DML: new sql_modulo() method used in course sorting 2008-11-26 08:51:08 +00:00