Compare commits

...

1933 Commits

Author SHA1 Message Date
Sam Hemelryk e8e1ad9100 Moodle 2.0.4 release 2011-08-01 16:55:04 +08:00
Sam Hemelryk f84058a263 weekly release 2.0.3+ (emergency) 2011-07-29 12:22:29 +08:00
Sam Hemelryk 03e29fff56 Merge branch 'install_20_STABLE' of git://github.com/amosbot/moodle into MOODLE_20_STABLE 2011-07-29 10:13:30 +08:00
Sam Hemelryk 3765c3f098 MDL-28503 comment-caps Slight improvement to allow frontpage and guest users to view comments by default 2011-07-29 09:44:18 +08:00
Sam Hemelryk 15125314eb MDL-28503 Removed the ability for plugins to override comment capabilities and the defaults associated with it 2011-07-28 13:41:20 +08:00
AMOS bot 44e6b8ff57 Automatically generated installer lang files 2011-07-28 00:55:21 +00:00
Petr Skoda c46c673568 weekly release 2.0.3+ 2011-07-26 11:08:28 +02:00
Petr Skoda aa79f99d53 Merge branch 'install_20_STABLE' of git://github.com/amosbot/moodle into MOODLE_20_STABLE 2011-07-26 11:07:40 +02:00
AMOS bot ef65eefff8 Automatically generated installer lang files 2011-07-26 00:55:29 +00:00
Tim Hunt df390ba9f0 MDL-28218 allow testclient.php to find the necessary form for services defined in plugins. 2011-07-25 20:05:31 +02:00
Petr Skoda 2a41529f68 Merge branch 'MDL-28437_20' of git://github.com/timhunt/moodle into MOODLE_20_STABLE 2011-07-25 19:55:46 +02:00
Petr Skoda e9adc8f6eb Merge branch 'MDL-28453_MOODLE_20_STABLE' into MOODLE_20_STABLE 2011-07-25 16:30:52 +02:00
Aparup Banerjee 22edb9944a MDL-28453 backup - made temporary restoration courses hidden by default. 2011-07-25 16:46:22 +08:00
Tim Hunt ceedbe876d MDL-28437 Question bank pages should all use General type: admin. 2011-07-25 08:59:25 +01:00
Sam Hemelryk 213eaa94f6 Merge branch 'MDL-28107_m20' of git://github.com/rwijaya/moodle into MOODLE_20_STABLE 2011-07-25 15:14:39 +08:00
Dan Poltawski 2acfb396ec MDL-28232 - Course log text export is missing a new line 2011-07-25 12:57:39 +08:00
Michael Aherne 936f6706c2 MDL-27538 Added deprecation details to functions now in $DB 2011-07-25 11:31:40 +08:00
Sam Hemelryk 2e3a96e192 Merge branch 'w29_MDL-22584_m20_monsterpaths' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-07-25 11:18:45 +08:00
Sam Hemelryk 417fdfab6b Merge branch 'w29_MDL-27464_m20_continue' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-07-25 11:04:02 +08:00
Sam Hemelryk 77c9ae457d Merge branch 'w29_MDL-27653_m20_usercasting' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-07-25 10:59:30 +08:00
Sam Hemelryk a8fd6146e7 Merge branch 'w29_MDL-27796_m20_httphost' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-07-25 10:55:12 +08:00
Sam Hemelryk 538e680d39 Merge branch 'w29_MDL-27994_m20_creatorcaps' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-07-25 10:45:51 +08:00
Sam Hemelryk ec5f521a59 Merge branch 'w29_MDL-28145_m20_renderer' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-07-25 10:40:00 +08:00
Sam Hemelryk 100308ce24 Merge branch 'w29_MDL-28182_m20_userdel' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-07-25 10:37:05 +08:00
Sam Hemelryk f6fc3616de Merge branch 'w29_MDL-28384_m20_nullurl' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-07-25 10:15:05 +08:00
Sam Hemelryk 9a8343cdde Merge branch 'w29_MDL-28432_m20_cohortconfig' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-07-25 09:53:02 +08:00
Sam Hemelryk a4e3607a21 Merge branch 'w29_MDL-28440_m20_jssemicol' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-07-25 09:45:53 +08:00
Mary Evans 27a2c6bffd fix for MDL-27768 removed reference to gradient-sb image 2011-07-25 09:40:17 +08:00
Petr Skoda b6481ac993 MDL-27653 fix incorrect int | object detection 2011-07-24 15:06:07 +02:00
Petr Skoda 2abbe6e2a3 MDL-27994 course creator role is for creating courses only!
The course creator role is designed to be used to create courses, nothing else - that is create new course, create new course from backup + view hidden courses and categories.
2011-07-24 14:25:50 +02:00
Petr Skoda 3687ab70bc MDL-28384 convert empty log urls to ''
The problem is that the log table does not allow nulls, credit goes to Troy Williams.
2011-07-24 14:09:11 +02:00
Petr Skoda 201159335f MDL-27464 continuation link sometimes links off-site
This code was manually merged from MOODLE_19_STABLE, credit goes to Matt Meisberger.
2011-07-23 13:31:20 +02:00
Petr Skoda c3ceb8d218 MDL-28440 add missing semicolon causing JS issues
Credit goes to Mark Nielsen.
2011-07-23 11:50:22 +02:00
Petr Skoda 9df28ce5a3 MDL-22584 deal with oversized dir and file names during upgrade 2011-07-23 11:41:28 +02:00
Petr Skoda 784c24fde1 MDL-28145 fix renderer typo in comments 2011-07-22 23:44:49 +02:00
Petr Skoda cf264063c1 MDL-27796 ignore missing HTTP_HOST header 2011-07-22 23:34:34 +02:00
Petr Skoda 3f51ad2a70 MDL-28182 always use full user object when deleting users 2011-07-22 22:50:17 +02:00
Petr Skoda 6b0b96c581 MDL-28432 use enrol/cohort and enrol/manual capabilities correctly in cohort enrol UI and fix input validation in ajax 2011-07-22 10:11:08 +02:00
Rossiani Wijaya 8190a2911f MDL-28107 course enrolment icon: Fixed logged in user enrolment icons 2011-07-22 13:17:49 +08:00
Petr Skoda ac30618786 weekly release 2.0.3+ 2011-07-19 15:22:21 +02:00
Petr Skoda e9889abe38 Merge branch 'install_20_STABLE' of git://github.com/amosbot/moodle into MOODLE_20_STABLE 2011-07-19 15:18:09 +02:00
Petr Skoda c0e1e425be MDL-27696 initialise arrays
Credit goes to David Mudrak.
2011-07-19 15:05:22 +02:00
Petr Skoda 517d606401 MDL-27696 do not use placeholders in GROUP BY because pg does no like that 2011-07-19 10:55:02 +02:00
Petr Skoda f3cbcc623d MDL-27889 use new recaptcha google urls in lang packs 2011-07-19 10:24:57 +02:00
Petr Skoda be36e2ad1d MDL-27889 use new recaptcha google urls in lang packs 2011-07-19 10:18:31 +02:00
AMOS bot aff1c65c3d Automatically generated installer lang files 2011-07-19 00:55:41 +00:00
Petr Skoda d96d964425 Merge branch 'wip-MDL-28040-m20' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-07-18 15:34:42 +02:00
Petr Skoda 4f76e7ddf7 Merge branch 'wip-MDL-28184-m20' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-07-18 15:29:19 +02:00
Petr Skoda 393d636e25 Merge branch 'wip-MDL-28205-m20' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-07-18 15:25:56 +02:00
Petr Skoda 2b98c3d5e0 Merge branch 'wip-MDL-28137-m20' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-07-18 15:23:21 +02:00
Petr Skoda 2bd3fc4d03 Merge branch 'wip-MDL-27771-m20' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-07-18 15:20:26 +02:00
Petr Skoda 6b43f50c41 Merge branch 'wip-MDL-27696-m20' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-07-18 15:18:24 +02:00
Petr Skoda 533a766447 Merge branch 'wip-MDL-27305-m20' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-07-18 15:15:18 +02:00
Petr Skoda 59f3144e0a Merge branch 'wip-MDL-25870-m20' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-07-18 14:58:38 +02:00
Sam Hemelryk ef5a198d1c Merge branch 'wip-MDL-27756-MOODLE_20_STABLE' of github.com:marinaglancy/moodle into MOODLE_20_STABLE 2011-07-18 22:20:13 +10:00
Sam Hemelryk 60e7f2b113 Merge branch 'MDL-27555_m20' of git://github.com/rwijaya/moodle into MOODLE_20_STABLE 2011-07-18 21:51:39 +10:00
Sam Hemelryk 68bc5b7b68 Merge branch 'w28_MDL-27804_m20_csvauth' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-07-18 20:19:51 +10:00
Sam Hemelryk 45222fc50f Merge branch 'w28_MDL-28253_m20_managerupgrade' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-07-18 20:10:30 +10:00
Sam Hemelryk 78092d6742 Merge branch 'w28_MDL-28313_m20_enroldb' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-07-18 20:04:32 +10:00
Sam Hemelryk a3fe5348ab Merge branch 'w28_MDL-28348_m20_meta' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-07-18 19:39:56 +10:00
Sam Hemelryk e3f6f30896 Merge branch 'w28_MDL-28350_m20_wsra' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-07-18 19:29:01 +10:00
Petr Skoda 50296e134b Merge branch 'wip-MDL-25125-MOODLE_20_STABLE' of github.com:marinaglancy/moodle into MOODLE_20_STABLE 2011-07-18 09:36:20 +02:00
Sam Hemelryk a6c44179e5 Merge branch 'w28_MDL-28363_m20_dimmed' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-07-19 00:48:11 +10:00
Sam Hemelryk ab93b02919 Merge branch 'MDL-28298-workshop-constant_20_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_20_STABLE 2011-07-19 00:40:22 +10:00
Sam Hemelryk 07ea543a1c Merge branch 'MDL-28325-enrol-help_20_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_20_STABLE 2011-07-19 00:35:16 +10:00
Petr Skoda 768dd79e1f MDL-28348 fix spelling and some whitespace issues 2011-07-17 20:42:44 +02:00
Petr Skoda c7f51d2dfe MDL-28348 fix fatal error caused by unenrolling of incorrect enrol instance 2011-07-17 20:42:43 +02:00
Petr Skoda ebbc9e717f MDL-28348 prevent circular references in meta handler for enrolments 2011-07-17 20:42:43 +02:00
Petr Skoda 617027cf84 MDL-28348 fix meta sync when unassigning roles 2011-07-17 20:42:42 +02:00
Petr Skoda 21dc44b4df MDL-28363 make dimmed selectors more specific to prevent overriding from other themes 2011-07-16 21:05:48 +02:00
AMOS bot 922817560c Automatically generated installer lang files 2011-07-16 00:55:24 +00:00
Petr Skoda 4b9cb37191 MDL-28350 prevent bogus role assignment via externallib 2011-07-15 12:30:20 +02:00
Petr Skoda a4673317a7 MDL-27804 allow changing of only auth in csv user uploads 2011-07-15 11:10:38 +02:00
Petr Skoda deba736fbc MDL-28313 fix incorrect enrol database settings upgrade 2011-07-14 22:36:05 +02:00
Petr Skoda badddcab36 MDL-28253 use unique name for new manager role 2011-07-14 13:36:27 +02:00
Marina Glancy be1f4ab759 MDL-27756 Improving move_course() performance 2011-07-14 11:04:37 +08:00
Marina Glancy 01bb865997 MDL-25125 fix YUI bug with overriding styles 2011-07-14 10:02:43 +08:00
AMOS bot 79f544a45f Automatically generated installer lang files 2011-07-14 00:55:24 +00:00
Dan Marsden eadbd73918 MDL-28300 SCORM Fix check for SCORM 2004 thanks to Silvia Bastos for report/patch 2011-07-14 11:02:32 +12:00
David Mudrak bf9f318ead MDL-28325 Enrolment: added help to the duration, start date and end date setting
The patch also fixes one typo in enrol_manual detected while working on
this.
2011-07-13 22:36:00 +02:00
AMOS bot c015236f00 Removing oc_ES that was generated by an accident instead of proper oc_es 2011-07-13 15:36:08 +02:00
Sam Hemelryk 7a3156d001 weekly release 2.0.3+ 2011-07-13 20:24:18 +08:00
Sam Hemelryk b22eb6a987 Merge branch 'install_20_STABLE' of git://github.com/amosbot/moodle into MOODLE_20_STABLE 2011-07-13 20:09:42 +08:00
David Mudrak c7c83663e1 MDL-28298 workshop: do not use a constant without explicit inclusion of the library
Instead of including whole formslib just to get the constant defined, I
decided to hard-code the value and put the reference to the comment so
that eventual grep would spot it. Of course that is is not nice at all
but it's lesser of two evils imho.
2011-07-13 10:23:10 +02:00
Sam Hemelryk 49d85b7cfa MDL-28184 navigation: Tidied up handling of coursenode when adding course essentials 2011-07-13 14:59:59 +08:00
Sam Hemelryk bc5d53c15c MDL-27771 filter-text: Fixed typo contninue 2011-07-13 14:53:18 +08:00
Chris Follin 95f780c200 MDL-27305 forum: Added missing item to forum_get_view_actions 2011-07-13 14:23:18 +08:00
Sam Hemelryk 3656becc4a MDL-25870 enrol-manual: Fixed pagination of AJAX search results for users when changing search 2011-07-13 14:03:08 +08:00
Sam Hemelryk 89ba1d6c2b MDL-28137 unit tests: Fixed up problem with block manager tests when running unit tests after turning editing on 2011-07-13 13:45:23 +08:00
Sam Hemelryk cca30c4795 MDL-28205 RSS: Fixed up notice and set better pagelayout type on manage feeds page 2011-07-13 10:31:50 +08:00
Sam Hemelryk c78b71efb6 MDL-27696 datalib Fixed up misused params in get_logs_usercourse 2011-07-13 10:29:36 +08:00
Sam Hemelryk 35a5d3b2fc MDL-28040 navigation: Fixed up error with navigation when dealing with categories that have a lower sort order than the parent. 2011-07-13 10:01:08 +08:00
AMOS bot 40638405ea Automatically generated installer lang files 2011-07-13 00:55:34 +00:00
Eloy Lafuente (stronk7) a53760ef5a Merge branch 'm20_MDL-28017' of git://github.com/danmarsden/moodle into MOODLE_20_STABLE 2011-07-12 16:31:40 +02:00
Eloy Lafuente (stronk7) 1193e6b023 MDL-28210 messaging: all includes but config.php must use $CFG-based abosolute paths 2011-07-12 12:23:51 +02:00
Eloy Lafuente (stronk7) 8c5b86e044 Merge branch 'MDL-28210_messaging_constants_20_2' of git://github.com/andyjdavis/moodle into MOODLE_20_STABLE 2011-07-12 12:23:19 +02:00
Sam Hemelryk 6bc177e912 MDL-27809 navigation: Fixed up a couple of minor issues after peer-review 2011-07-12 16:04:12 +08:00
Sam Hemelryk 1f7907dac3 MDL-27809 navigation: Reworked the caching within navigation and improved the ordering of events in order to reduce the use of session without serious impact on serverload 2011-07-12 16:04:03 +08:00
Andrew Davis (andyjdavis) 25c53e2b9f MDL-28210 messaging: Fixed requires problems in /message/discussion.php 2011-07-12 10:56:33 +08:00
AMOS bot 83fcca9346 Automatically generated installer lang files 2011-07-12 00:55:27 +00:00
Dan Marsden ab837e6113 MDL-28017 SCORM add unset_config for old config var 2011-07-12 09:51:32 +12:00
Eloy Lafuente (stronk7) 96651cf9ed Merge branch 'MDL-28251_m20' of git://github.com/rwijaya/moodle into MOODLE_20_STABLE 2011-07-11 20:29:01 +02:00
Eloy Lafuente (stronk7) 583c465a3a Merge branch 'm20_MDL-26942' of git://github.com/danmarsden/moodle into MOODLE_20_STABLE 2011-07-11 19:48:54 +02:00
Eloy Lafuente (stronk7) 24f90eedb9 Merge branch 'MDL-27755_m20' of git://github.com/rwijaya/moodle into MOODLE_20_STABLE 2011-07-11 19:44:41 +02:00
Eloy Lafuente (stronk7) 0d81404f9a Merge branch 'MDL-27741_m20' of git://github.com/rwijaya/moodle into MOODLE_20_STABLE 2011-07-11 19:36:16 +02:00
Dan Poltawski 7ba9375e84 MDL-23580 course overview - remove debugging junk 2011-07-11 16:47:43 +02:00
Eloy Lafuente (stronk7) 15ffa46a1a Merge branch 'MDL-27483_20' of git://github.com/timhunt/moodle into MOODLE_20_STABLE 2011-07-11 16:27:04 +02:00
Eloy Lafuente (stronk7) 38bc3c281a Merge branch 'MDL-27931_m20' of git://github.com/rwijaya/moodle into MOODLE_20_STABLE 2011-07-11 15:58:33 +02:00
Rossiani Wijaya 9bb6e09468 MDL-27741 forum subscribe link: Removed 'no' string in social course format to display a subscribe link if user is not enrolled 2011-07-11 17:00:33 +08:00
Sam Hemelryk 77de688b82 Merge branch 'wip-mdl-27954-MOODLE_20_STABLE' of git://github.com/rajeshtaneja/moodle into MOODLE_20_STABLE 2011-07-11 16:02:00 +08:00
Sam Hemelryk dd8e618917 Merge branch 'MDL-28227_20' of git://github.com/timhunt/moodle into MOODLE_20_STABLE 2011-07-11 14:54:48 +08:00
Dan Marsden ea819f2205 MDL-28017 SCORM - remove admin setting incorrectly added as it was never used. 2011-07-11 15:44:19 +12:00
Sam Hemelryk 05deeaacdb Merge branch 'm20_MDL-27947' of git://github.com/danmarsden/moodle into MOODLE_20_STABLE 2011-07-11 11:32:04 +08:00
Sam Hemelryk 19dd687377 Merge branch 'mod_url_decode_m20' of git://github.com/stronk7/moodle into MOODLE_20_STABLE 2011-07-11 11:04:35 +08:00
Sam Hemelryk f2c12522c3 Merge branch 'backup_groups_m20' of git://github.com/stronk7/moodle into MOODLE_20_STABLE 2011-07-11 10:57:33 +08:00
Rajesh Taneja 79a80529f8 MDL-27954 mod_database - fixed search navigation link 2011-07-11 10:31:47 +08:00
AMOS bot 70a649e40c Automatically generated installer lang files 2011-07-11 00:55:22 +00:00
Eloy Lafuente (stronk7) 38a94e0d39 MDL-28156 restore - fix some notices restoring empty courses 2011-07-10 13:12:05 +02:00
Eloy Lafuente (stronk7) 327c88b76b MDL-28156 restore - support restoring files without grade items 2011-07-10 00:53:43 +02:00
Eloy Lafuente (stronk7) b229f563e5 MDL-27438 backup - on course backups add course gropus and groupings 2011-07-09 19:29:21 +02:00
Eloy Lafuente (stronk7) 7769615e76 MDL-27018 restore - decode links missing url->externalurl support 2011-07-09 13:36:14 +02:00
Dan Marsden 056d2682a1 MDL-27947 - fix TOC display on skipview - use correct org in TOC title 2011-07-09 11:50:15 +12:00
Dan Marsden a103d27e06 SCORM MDL-26942 - merge scorm_get_toc into a single global function 2011-07-09 11:15:13 +12:00
AMOS bot d9c90952bb Automatically generated installer lang files 2011-07-08 12:34:55 +02:00
Eloy Lafuente (stronk7) 89b2800f75 weekly release 2.0.3+ 2011-07-08 11:23:10 +02:00
Rossiani Wijaya e12559481f MDL-28251 DB activity module: fixed the argument type error for html_table_row from string to array 2011-07-08 16:54:38 +08:00
Eloy Lafuente (stronk7) 6761018805 Merge branch 'MDL-28015-workshop-sql_20_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_20_STABLE 2011-07-08 01:19:22 +02:00
Eloy Lafuente (stronk7) 9948122905 Merge branch 'MDL-28168-custommenu_20_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_20_STABLE 2011-07-08 00:58:24 +02:00
David Mudrak 308e53f572 MDL-28015 workshop - fixed unique list of columns in ORDER BY clause
MSSQL requires that the columns in the ORDER BY clause list must be
unique. The patch populates the list of fields by combining an array of
explicit sort definition with an array of implicit (default) sort
definition.
2011-07-07 15:02:34 +02:00
David Mudrak 3367e3ee1e MDL-28168 Revert "MDL-27073 Support multi-language content in custom menu"
This reverts commit 87e0230d0a.
2011-07-07 11:26:01 +02:00
Eloy Lafuente (stronk7) c1979ef02d Merge branch 'fix_import_search_course' of git://github.com/hit-moodle/moodle into MOODLE_20_STABLE 2011-07-07 10:38:44 +02:00
Tony Levi 25a5bd96f9 MDL-27483: Fix quiz repaginate enter in a endless loop 2011-07-07 16:19:56 +09:30
Rossiani Wijaya 536c7aa882 MDL-27755 course search: Add course id and shortname to search fields 2011-07-07 11:05:06 +08:00
Sun Zhigang 534eebdd35 MDL-27833 Backup - Fix can't search courses with non-latin characters during importing
PARAM_ALPHANUMEXT filter out all non-latin characters, including
Chinese, Japanese and etc. Use PARAM_NOTAGS instead.
2011-07-07 09:27:48 +08:00
Eloy Lafuente (stronk7) e317113746 Merge branch 'm20_MDL-28110' of git://github.com/danmarsden/moodle into MOODLE_20_STABLE 2011-07-07 03:02:26 +02:00
Tony Levi ac473cb811 MDL-28227: Regrade sometimes grades user attempts for any quiz not selected quiz 2011-07-07 10:01:46 +09:30
Eloy Lafuente (stronk7) fea115dab3 Merge branch 'MDL-27989_MOODLE_20_STABLE' of git://github.com/kordan/moodle into MOODLE_20_STABLE 2011-07-07 02:23:33 +02:00
Dan Poltawski 46306d8a25 MDL-26285 block_rss_client - do not disable with enablerssfeeds
This setting was used in 1.9 and below to control feed generation only, not
for RSS consumption.
2011-07-07 02:12:09 +02:00
Petr Skoda 2c9b8852f0 MDL-27375 add missing lowercasing of external column names
Credit goes to Gail Preuninger.
2011-07-07 01:41:04 +02:00
Petr Skoda 413b73ffe3 MDL-28117 include repo lib when hacking file_picker renderer 2011-07-07 01:34:35 +02:00
Dan Poltawski 5bda351ef7 MDL-27329 course report - correct use of wrong fullname
We are refering to users in this column of the course report not
course full name.

Conflicts:

	course/lib.php
2011-07-07 00:26:26 +02:00
Dan Poltawski e5180a491c MDL-28100 - page resource was not using context for text filtering 2011-07-07 00:12:54 +02:00
Dan Poltawski 5d7b69cd80 MDL-27279 lang/en/xmldb - Fix Typo in confirmcheckforeignkeys 2011-07-07 00:02:04 +02:00
Eloy Lafuente (stronk7) 4bd293ee63 Merge branch 'MDL-27040_20' of git://github.com/timhunt/moodle into MOODLE_20_STABLE 2011-07-06 19:26:56 +02:00
Rossiani Wijaya 8252cd2848 MDL-27931 admin bulk user upload: convert city as required field. Credit goes to Charles Fulton for supplying the patch. 2011-07-06 16:17:01 +08:00
Dan Poltawski a35be2f5ef MDL-27855 navigation - only display participants link with permissions 2011-07-06 13:19:59 +08:00
Sam Hemelryk 668a9eb90b Merge branch 'MDL-27716_20' of git://github.com/timhunt/moodle into MOODLE_20_STABLE 2011-07-06 12:11:14 +08:00
Dan Poltawski 606e175133 MDL-27168 completionstatus block - Use localized strings 2011-07-06 12:03:59 +08:00
Dan Poltawski 2e214b26f3 MDL-26626 course competion block - fix hardcoded string 2011-07-06 11:30:33 +08:00
Dan Poltawski c24ad72ba0 MDL-26611 Roles Language - remove reference to 'legacy role type' 2011-07-06 11:10:47 +08:00
Sam Hemelryk ed26ad33ca Merge branch 'MDL-28135_MOODLE_20_STABLE' of git://github.com/nebgor/moodle into MOODLE_20_STABLE 2011-07-06 11:05:11 +08:00
Petr Skoda 9a380fbb53 MDL-28147 do not double cache theme css/js 2011-07-06 03:15:44 +02:00
Petr Skoda 6893e10840 MDL-28161 precreate htmlpurifier dir when resetting caches
Conflicts:

	lib/moodlelib.php
2011-07-06 02:59:16 +02:00
Eloy Lafuente (stronk7) c18a7f9d94 Merge branch 'MDL-28185_m20' of git://github.com/stronk7/moodle into MOODLE_20_STABLE 2011-07-05 17:58:25 +02:00
Eloy Lafuente (stronk7) 07ca3c6816 Merge branch 'MDL-26618_20' of git://github.com/timhunt/moodle into MOODLE_20_STABLE 2011-07-05 17:48:30 +02:00
Eloy Lafuente (stronk7) 9315fd7200 MDL-28185 upgrade - fix oracle problem upgrading blocks 2011-07-05 15:38:37 +02:00
Kordan 10bc60a163 addition to previous fix for MDL-27989 in MOODLE_20_STABLE 2011-07-05 11:24:09 +02:00
Kordan 0f9a1467e2 MDL-27989 fix for MOODLE_20_STABLE 2011-07-05 10:13:35 +02:00
Aparup Banerjee 8b3405e8f2 MDL-28135 general Updated broken and typo docs links 2011-07-05 15:43:34 +08:00
Aparup Banerjee c5b7c1f627 MDL-28135 general Updated the Copyright notice to point to docs.moodle.org/dev/Releases instead of en/Release 2011-07-05 15:43:23 +08:00
Aparup Banerjee cc56539e51 MDL-28135 general Updated doc links related to Release notes to docs.moodle.org/dev/Releases now 2011-07-05 15:43:13 +08:00
Aparup Banerjee ae8da34929 MDL-28135 general Updating all hardcoded "docs.moodle.org/en/Development:" type doc links to "docs.moodle.org/dev/"
- cherry-picked and resolved conflicts
2011-07-05 15:39:56 +08:00
Rossiani Wijaya 0a6604e525 MDL-27555 assignment module: remove 'submitted' option from optional setting for offline assignment type. 2011-07-05 14:39:59 +08:00
Iñaki Arenaza 385e9d72ec MDL-24666 sync_users.php can throw db exception on sites upgraded from 1.x
From 2.0 on we lowercase all the settings related to LDAP attributes
to cope with differences in LDAP servers when returning attribute
names as array indices (some lowercase them, some leave them as
specified in the query, some normalize them, etc.).

But we only lowercase them when saving the settings page. So on sites
that have been migrated from 1.x, it may happen that we still have
mixed-case attribute names. And this is fatal for the user_attribute
setting, as we might not detect it in the returned array from LDAP and
it will be empty (and the db layer throws and exception).

So we just make sure the attribute name is lowercased (and trimmed,
in case it's got some white space around it).
2011-07-04 21:38:53 +02:00
Tim Hunt ae912070ea MDL-27040 get_users_by_capability generates u.id IN () when no uesrs have accessallgroups 2011-07-04 19:01:06 +01:00
Joseph Rezeau 988f1a05e7 MDL-27716 qtype_multianswer make the work 'Close' in the overlib popup translatable. 2011-07-04 15:53:09 +01:00
Tim Hunt b8369f5e9f MDL-26618 Moving sticky blocks on other pages does not work in Oracle.
This was due to some missing $DB->sql_empty() in a query affecting the
block_positions table.
2011-07-04 14:24:36 +01:00
Eloy Lafuente (stronk7) 020f0ffc5b weekly release 2.0.3+ 2011-07-02 00:01:29 +02:00
Eloy Lafuente (stronk7) 087a329eef Merge branch 'install_20_STABLE' of git://github.com/amosbot/moodle into MOODLE_20_STABLE 2011-07-01 23:37:36 +02:00
Sam Hemelryk 39025fe177 Merge branch 's11_MDL-28121_split_20' of github.com:dongsheng/moodle into MOODLE_20_STABLE 2011-07-01 15:08:59 +08:00
Dan Marsden 473afcbfec SCORM MDL-28110 fix string name 2011-07-01 14:24:52 +12:00
Eloy Lafuente (stronk7) 1dcb107bd4 Merge branch 'MDL-28132_20' of git://github.com/timhunt/moodle into MOODLE_20_STABLE 2011-07-01 01:38:44 +02:00
Tim Hunt 7cf9937724 MDL-28132 truncate very long category names before using them in random question names. 2011-06-30 19:34:44 +01:00
Eloy Lafuente (stronk7) f6c6bb4d39 Merge branch 'MDL-28115_20stable' of git://github.com/rwijaya/moodle into MOODLE_20_STABLE 2011-06-30 17:12:31 +02:00
Rossiani Wijaya 814bce6575 MDL-28115 lesson module: fixed undefined variable for multiple answer, disabled numberical input text during review and fixed bug for essay answer during review process. 2011-06-30 19:11:15 +08:00
Dongsheng Cai f12c714e6f MDL-28121, fixed deprecated split() function 2011-06-30 17:35:33 +08:00
Dan Marsden 74e78f3ad8 SCORM MDL-28110 set default for forcejavascript to yes - add string explaining what it does. 2011-06-30 19:40:01 +12:00
Sam Hemelryk 4a7e2298a3 Merge branch 'MDL-24684_20' of git://github.com/stronk7/moodle into MOODLE_20_STABLE 2011-06-30 10:50:10 +08:00
Eloy Lafuente (stronk7) 910c941fa8 MDL-24684 backup - basic protection against time/memory limits 2011-06-30 03:43:50 +02:00
AMOS bot bfb0183f6d Automatically generated installer lang files 2011-06-30 00:55:15 +00:00
Eloy Lafuente (stronk7) add39c57dd Merge branch 'MDL-28044_MOODLE_20_STABLE' of git://github.com/nebgor/moodle into MOODLE_20_STABLE 2011-06-30 02:01:44 +02:00
Eloy Lafuente (stronk7) 1b024a0b51 Merge branch 'MDL-15587-stable' of git://github.com/grabs/moodle into MOODLE_20_STABLE 2011-06-30 01:54:44 +02:00
Eloy Lafuente (stronk7) 9d12edfcae Merge branch 'm20_MDL-28016' of git://github.com/danmarsden/moodle into MOODLE_20_STABLE 2011-06-30 01:11:28 +02:00
Sam Hemelryk 746f1ac85c MDL-27988 backup grade: Calculated grade items calculation references now corrected and idnumber restore improved 2011-06-29 18:42:34 +02:00
Eloy Lafuente (stronk7) 8277c39c76 Merge branch 'MDL-27955_m20' of git://github.com/rwijaya/moodle into MOODLE_20_STABLE 2011-06-29 15:59:57 +02:00
Eloy Lafuente (stronk7) fb654f651f Merge branch 'wip-mdl-27964-MOODLE_20_STABLE' of git://github.com/rajeshtaneja/moodle into MOODLE_20_STABLE 2011-06-29 15:12:50 +02:00
Rossiani Wijaya 494f645bf4 MDL-27955 lesson module (m20): fixed error for reviewing lesson and update string to continue or finish reviewing 2011-06-29 18:34:54 +08:00
Dan Marsden a26a8c6a6f SCORM MDL-28016 - fix redirect call to use proper moodle_url 2011-06-29 20:32:36 +12:00
Rajesh Taneja 27beb68c4b MDL-27964 lesson - Quick fix added for importing question files in lesson module 2011-06-29 14:09:20 +08:00
Rajesh Taneja 8254083dc9 MDL-27964 lesson - Old file picker is replaced with new filepicker, currently all imported questions will be saved in /temp/questionimport/ where questionbank files are saved. 2011-06-29 14:08:30 +08:00
Aparup Banerjee 9b7ac1ea57 MDL-28044 general - updated print_error() link to point to new versioned docs link. 2011-06-29 10:57:14 +08:00
AMOS bot b214520d8b Automatically generated installer lang files 2011-06-29 00:55:20 +00:00
Sam Hemelryk abfe9dbe6e Merge branch 'MDL-28023_assignment_jabber_20' of git://github.com/andyjdavis/moodle into MOODLE_20_STABLE 2011-06-28 17:05:41 +08:00
Sam Hemelryk 8c75bb5976 Merge branch 's11_MDL-27866_pix_url_20' of git://github.com/dongsheng/moodle into MOODLE_20_STABLE 2011-06-28 10:17:48 +08:00
Sam Hemelryk e78632643c Merge branch 'MDL-28014_stable' of git://github.com/grabs/moodle into MOODLE_20_STABLE 2011-06-28 10:13:15 +08:00
sam marshall f114cff65f MDL-28021 Completion system can create inconsistent database rows
This change includes:

(1) update deletes older versions of inconsistent rows
(2) update drops one index and replaces it with a new unique index
(3) fixed to ensure that when it decides whether to insert or update
    it uses current database state and not cached info
(4) unit tests updated to test #3
2011-06-27 15:26:54 +02:00
Andrew Davis (andyjdavis) 3c18677ad1 MDL-28023_assignment_jabber assignment: added context url to improve the jabber notifications 2011-06-27 11:11:34 +08:00
Andrew Davis (andyjdavis) 1a199937f0 MDL-28023 assignment: assignment wasnt supplying all the data necessary to produce a meaningful jabber notification 2011-06-27 11:11:19 +08:00
AMOS bot b39029f718 Automatically generated installer lang files 2011-06-27 00:55:14 +00:00
Eloy Lafuente (stronk7) 7cb1a84978 Merge branch 'MDL-27922_m20' of git://github.com/rwijaya/moodle into MOODLE_20_STABLE 2011-06-27 00:55:29 +02:00
AMOS bot 8f7c097a09 Automatically generated installer lang files 2011-06-26 00:55:14 +00:00
Andreas Grabs 5dc47fbbc6 MDL-15587 - Course Participation report for a feedback activity 2011-06-24 23:11:10 +02:00
Rossiani Wijaya bac9a5e95e MDL-27922 lesson mod: fixed string for activity link 2011-06-24 16:48:46 +08:00
Eloy Lafuente (stronk7) 4a8d589d41 Merge branch 'MDL-27827_stable' of git://github.com/grabs/moodle into MOODLE_20_STABLE 2011-06-24 00:23:03 +02:00
Eloy Lafuente (stronk7) ffd06a7394 Merge branch 's11_MDL-27999_wiki_preview_20' of github.com:dongsheng/moodle into MOODLE_20_STABLE 2011-06-24 00:14:41 +02:00
Eloy Lafuente (stronk7) ba55e33828 Merge branch 'wip-MDL-27958-MOODLE_20_STABLE' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-06-23 23:58:21 +02:00
Andreas Grabs 3fcd1d05b9 MDL-28014 - unpropitious use of bcmod() 2011-06-23 21:20:49 +02:00
Andreas Grabs 29f02f10f0 MDL-27827 - Missing messageprovider:message language string 2011-06-23 20:31:17 +02:00
Eloy Lafuente (stronk7) ff555b58be emergency release 2.0.3+ 2011-06-23 18:23:51 +02:00
stabijoh 42d1a03acc MDL-27998 canvas theme - fix font sizes 2011-06-23 17:29:45 +02:00
Eloy Lafuente (stronk7) 80a90f8d71 weekly release 2.0.3+ 2011-06-23 11:27:12 +02:00
Eloy Lafuente (stronk7) 4a225b69bb Merge branch 'install_20_STABLE' of git://github.com/amosbot/moodle into MOODLE_20_STABLE 2011-06-23 11:24:19 +02:00
Eloy Lafuente (stronk7) 727242750d Merge branch 's10_MDL-27341_flickr_plugin_20' of git://github.com/dongsheng/moodle into MOODLE_20_STABLE 2011-06-23 11:16:34 +02:00
Dongsheng Cai 454efc509f MDL-26677 flickr repo - fix undefined index usewatermarks 2011-06-23 17:14:30 +08:00
Eloy Lafuente (stronk7) 1bef145b49 Merge branch 'MDL-27920_grade_export_20' of git://github.com/andyjdavis/moodle into MOODLE_20_STABLE 2011-06-23 10:19:13 +02:00
Andrew Davis (andyjdavis) 1a20976561 MDL-27920 gradebook: fixes following integration review 2011-06-23 16:02:04 +08:00
Andrew Davis (andyjdavis) 2558ce3593 MDL-27920 gradebook: export was always excluding course totals and xml export was failing 2011-06-23 16:01:52 +08:00
Dongsheng Cai ab14ec06d2 MDL-27999 mod wiki, fixed broken image in preview 2011-06-23 13:53:12 +08:00
Sam Hemelryk d072124ba4 MDL-27958 Added missing set_context call which would cause errors for all contexts below course 2011-06-23 12:17:55 +08:00
Sam Hemelryk d9c19266c8 Merge branch 'MDL-27169_m20' of git://github.com/stronk7/moodle into MOODLE_20_STABLE 2011-06-23 10:44:32 +08:00
Eloy Lafuente (stronk7) cf93662ffe MDL-26677 repositories - clean one debugging var_dump() 2011-06-23 02:06:16 +02:00
Eloy Lafuente (stronk7) 177f14d6f6 Merge branch 's10_MDL-27341_flickr_plugin_20' of git://github.com/dongsheng/moodle into MOODLE_20_STABLE 2011-06-23 02:05:45 +02:00
Eloy Lafuente (stronk7) bdcea1a221 Merge branch 'MDL-27196-hardcodedstrings_20_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_20_STABLE 2011-06-23 00:26:09 +02:00
Eloy Lafuente (stronk7) 25ebb1df63 MDL-27169 filepicker - add explicit enctype to the js upload form. Credit goes to J Ross Nicoll, thanks! 2011-06-22 19:32:01 +02:00
David Mudrak 39af096daf MDL-27196 workshop - hardcoded strings in the random allocator 2011-06-22 18:02:48 +02:00
David Mudrak 0ff186d7d7 MDL-27196 workshop - hardcoded string in the number of errors strategy form 2011-06-22 18:02:44 +02:00
Eloy Lafuente (stronk7) 26a92149cc Merge branch 'wip-mdl-26281-MOODLE_20_STABLE' of git://github.com/rajeshtaneja/moodle into MOODLE_20_STABLE 2011-06-22 14:28:36 +02:00
Eloy Lafuente (stronk7) 38961259de Merge branch 'MDL-27969-randomallocator-20_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_20_STABLE 2011-06-22 14:16:41 +02:00
Eloy Lafuente (stronk7) 528cde2db2 Merge branch 'MDL-27073_multilang-custommenu_20_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_20_STABLE 2011-06-22 14:12:11 +02:00
David Mudrak 0ca33a3835 MDL-27969 workshop - prevent PHP notices in the random allocator
When generating the output of the allocation results, the names of
reviewers and authors are obtained based on the current state of assigned
roles and the 'musthavesubmission' setting. Therefore, when we want to
display information about a re-used allocation, the name of the author
or the name of the author may not be available.

In case of reviewers, we first try to reload the list including the
users without own submission. If it does not help, we just display the
id of the user instead of the name. In case of authors, we just display
the id the user. I can't see much point of eventual fetching the user
record from the database just to populate the list that almost no-one
reads anyway.
2011-06-22 12:15:47 +02:00
Rajesh Taneja 2a02a3f0de MDL-26281 Lesson - Fixed short answer with apostrophe and other html formats 2011-06-22 17:20:25 +08:00
Sam Hemelryk 8445c4724c Merge branch 'MDL-27966_m20' of git://github.com/stronk7/moodle into MOODLE_20_STABLE 2011-06-22 17:16:00 +08:00
Sam Hemelryk 3e6c1d4d55 Merge branch 'MDL-25811_m20' of git://github.com/stronk7/moodle into MOODLE_20_STABLE 2011-06-22 17:10:53 +08:00
Eloy Lafuente (stronk7) 2c85a824fc Merge branch 's10_MDL-27341_flickr_json_error_20' of git://github.com/dongsheng/moodle into MOODLE_20_STABLE 2011-06-22 03:07:26 +02:00
Eloy Lafuente (stronk7) 6ce26b03e7 Merge branch 'MDL-27860_2.0' of git://github.com/timhunt/moodle into MOODLE_20_STABLE 2011-06-22 03:00:41 +02:00
AMOS bot ae18165edd Automatically generated installer lang files 2011-06-22 00:55:18 +00:00
Eloy Lafuente (stronk7) 5def8d573d Merge branch 'MDL-26948_2.0' of git://github.com/timhunt/moodle into MOODLE_20_STABLE 2011-06-22 02:36:05 +02:00
Eloy Lafuente (stronk7) 41c5f54940 MDL-27966 timezones - updated to 2011g version + fix minor notice 2011-06-21 16:25:18 +02:00
AMOS bot 39b5360e69 Automatically generated installer lang files 2011-06-21 00:55:16 +00:00
Rossiani Wijaya 6409d38377 MDL-27906 calendar event: fixed retrieving coursemodule by replacing get_coursemodule_from_id() to get_coursemodule_from_instance() 2011-06-20 15:13:59 +08:00
Dongsheng Cai 945df69ff3 MDL-27866, set page context for $OUTPUT->pix_url 2011-06-20 13:53:06 +08:00
AMOS bot 16aae71dcd Automatically generated installer lang files 2011-06-20 00:55:14 +00:00
Eloy Lafuente (stronk7) 371e83db2d MDL-25811 automated backups - clean running status after 90 mins of inactivity 2011-06-18 22:12:57 +02:00
Tim Hunt f4bc50d2bb MDL-27860 count quiz attempts properly when checking if a new attempt is allowed. 2011-06-18 18:33:55 +01:00
AMOS bot b32484d582 Automatically generated installer lang files 2011-06-18 00:55:20 +00:00
Tim Hunt 6750bec6c9 MDL-26948 quiz navigation fake block should have an id to allow styling. 2011-06-17 17:26:34 +01:00
David Mudrak 6a8787828e MDL-27073 Support multi-language content in custom menu 2011-06-17 17:05:10 +02:00
Dongsheng Cai 466b23caf7 MDL-27341, fixed flickr public plugin should check
search text, tag and nsid before searching photos
2011-06-17 12:13:42 +08:00
Dongsheng Cai a4d6717aec MDL-26677 fixed undefined index usewatermarks in flickr plugin 2011-06-17 12:11:22 +08:00
Eloy Lafuente (stronk7) cc50a2fbc4 weekly release 2.0.3+ 2011-06-16 19:09:49 +02:00
Eloy Lafuente (stronk7) 3345c20e29 fix permissions 2011-06-16 19:06:33 +02:00
Eloy Lafuente (stronk7) c06e87a410 Merge branch 'install_20_STABLE' of git://github.com/amosbot/moodle into MOODLE_20_STABLE 2011-06-16 19:04:49 +02:00
Eloy Lafuente (stronk7) db005da178 Merge branch 'MDL-24355-MOODLE_20_STABLE2' of git://github.com/andyjdavis/moodle into MOODLE_20_STABLE 2011-06-16 10:39:48 +02:00
Andrew Davis (andyjdavis) cfc9f55ca6 MDL-24355 tag: minor clean up of tags changes 2011-06-16 10:35:29 +08:00
Sam Hemelryk 15f0d2ed37 MDL-24355 Fixed up deletion of tag correlations when deleting tags 2011-06-16 10:07:58 +08:00
Sam Hemelryk a370e4e4fa MDL-24355 Added code to delete any tag correlations that wern't just identified 2011-06-16 10:07:41 +08:00
Eloy Lafuente (stronk7) a9e0bc82fb Merge branch 'wip-mdl-27863-MOODLE_20_STABLE' of git://github.com/rajeshtaneja/moodle into MOODLE_20_STABLE 2011-06-15 11:30:15 +02:00
Rajesh Taneja ec05915767 MDL-27863 moodlelib: - fixed testcase faliure in MDL-27577 2011-06-15 16:38:29 +08:00
Eloy Lafuente (stronk7) b5e8919b7c Merge branch 'm20_MDL-27858' of git://github.com/danmarsden/moodle into MOODLE_20_STABLE 2011-06-15 01:18:33 +02:00
Eloy Lafuente (stronk7) 397262e292 Merge branch 'MDL-27848_for_MOODLE_20_STABLE' of git://github.com/kordan/moodle into MOODLE_20_STABLE 2011-06-15 00:55:08 +02:00
Dan Marsden ea1e93b265 SCORM MDL-27858 - fix typo 2011-06-15 10:33:15 +12:00
AMOS bot 29e42725a4 Automatically generated installer lang files 2011-06-14 18:25:59 +02:00
Eloy Lafuente (stronk7) 91c59dbd8e MDL-27759 backport some improvs from master + whitespace fix 2011-06-14 17:07:03 +02:00
Eloy Lafuente (stronk7) 87c8b752ca Merge branch 'wip-MDL-27759-MOODLE_20_STABLE' of git://github.com/rajeshtaneja/moodle into MOODLE_20_STABLE 2011-06-14 17:01:56 +02:00
Eloy Lafuente (stronk7) 4fcc689dfc Merge branch 'wip-MDL-27825-MOODLE_20_STABLE' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-06-14 12:30:55 +02:00
Eloy Lafuente (stronk7) 27f31cc626 Merge branch 'MDL-27525_m20' of git://github.com/rwijaya/moodle into MOODLE_20_STABLE 2011-06-14 12:12:57 +02:00
Kordan 9660303cc2 MDL-27835_for_MOODLE_20_STABLE fix 2011-06-14 11:45:31 +02:00
Sam Hemelryk 9abec7278b MDL-27825 Improved check of themedesignermode to prevent errors if it isn't set 2011-06-14 15:49:33 +08:00
Kordan ba7c14c1a7 MDL-27834 for MOODLE_20_STABLE fix 2011-06-14 09:54:53 +08:00
Sam Hemelryk 97161e5008 Merge branch 'MDL-27286_m20' of git://github.com/stronk7/moodle into MOODLE_20_STABLE 2011-06-14 09:48:57 +08:00
AMOS bot 25041083d5 Automatically generated installer lang files 2011-06-14 00:55:09 +00:00
Eloy Lafuente (stronk7) a1c5868475 MDL-27822 rename new methods 2011-06-14 00:35:07 +02:00
Tim Hunt d4e94648cf MDL-27822 old module version should be available in restore_activity_structure_step::define_structure() 2011-06-14 00:34:50 +02:00
Eloy Lafuente (stronk7) b651e7bb74 MDL-27286 recent files repo - fix for oracle and cleanup 2011-06-13 18:55:19 +02:00
Eloy Lafuente (stronk7) d527599fcd whitespace fixes 2011-06-13 10:29:18 +02:00
Sam Hemelryk c1d93d47e9 Merged branch 'MDL-26960-for-20_STABLE' of git://git.luns.net.uk/moodle with changes 2011-06-13 15:09:16 +08:00
Sam Hemelryk 6160c1721c Merge branch 'm20_MDL-27404' of git://github.com/danmarsden/moodle into MOODLE_20_STABLE 2011-06-13 14:54:06 +08:00
Sam Hemelryk 71472b0a82 Merge branch 'MDL-16168-CAS-crash-if-no-LDAP-20' of https://github.com/iarenaza/moodle into MOODLE_20_STABLE 2011-06-13 11:32:55 +08:00
Sam Hemelryk ba3721d463 Merge branch 'MDL-27757-20' of git://github.com/srynot4sale/moodle into MOODLE_20_STABLE 2011-06-13 11:18:48 +08:00
Sam Hemelryk 1a1f7b0eec Merge branch 'MDL-27783-20STABLE' of git://github.com/mouneyrac/moodle into MOODLE_20_STABLE 2011-06-13 11:14:02 +08:00
Rossiani Wijaya 0c60b1113e MDL-27525 mod_wiki: Fixed typing error for the variable and assign the value contextid to use mod context id 2011-06-13 11:08:32 +08:00
Sam Hemelryk 79121602c4 Merged branch 'MDL-27801_MOODLE_20_STABLE' of git://github.com/kordan/moodle.git with changes 2011-06-13 10:35:55 +08:00
Rajesh Taneja ba16180449 MDL-27759 user webservice - added new PARAM for timezone PARAM_TIMEZONE, to validate timezone input in webservice while deling with user information 2011-06-13 10:23:46 +08:00
Dan Marsden 01765239b0 MDL-27404 SCORM fix for IE 6 - thanks to Howard Miller 2011-06-13 11:31:48 +12:00
Marina Glancy d65a2b2262 MDL-26430 fixed appearance of one html form within another 2011-06-10 13:15:13 +08:00
Aaron Barnes 4754c0edd1 MDL-27757 lib/completionlib.php: Load "enablecompletion" property if required 2011-06-10 13:54:45 +12:00
kordan ec441b6dd0 MDL-27801 fix for MOODLE_20_STABLE 2011-06-09 22:05:32 +02:00
Dan Poltawski df01a82082 messaging: MDL-26960 Check correct users permissions
When on message profile page, the incorrect capability was checked
2011-06-09 16:01:15 +01:00
Jerome Mouneyrac 00338d8b94 MDL-27783 enabled status of a built-in service should never been updated on upgrade. It is only used during the installation. If a dev really needs to change the status, he can do it in lib/db/upgrade.php 2011-06-09 16:59:35 +08:00
Eloy Lafuente (stronk7) 57e034c094 weekly release 2.0.3+ 2011-06-09 03:42:48 +02:00
Eloy Lafuente (stronk7) c5b9fe0dda Merge branch 'install_20_STABLE' of git://github.com/amosbot/moodle into MOODLE_20_STABLE 2011-06-09 03:38:54 +02:00
Eloy Lafuente (stronk7) 07511dbe6d Merge branch 'wip-MDL-27638-MOODLE_20_STABLE' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-06-09 01:23:30 +02:00
Eloy Lafuente (stronk7) df70dfe4ee Merge branch 'wip-mdl-27577-MOODLE_20_STABLE' of git://github.com/rajeshtaneja/moodle into MOODLE_20_STABLE 2011-06-09 01:10:27 +02:00
Eloy Lafuente (stronk7) f872b32778 Merge branch 'wip-MDL-27676-MOODLE_20_STABLE' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-06-09 00:36:33 +02:00
Iñaki Arenaza beb807e033 MDL-16168 auth/cas CAS crashes if no LDAP is set up
Pending fix for Moodle 2.x. Credit goes to Ivan Dackiewicz.
2011-06-08 19:45:14 +02:00
Sam Hemelryk 98d17b5bad MDL-27676 Requests for a users profile pic that doesnt exist now redirect to the requested f1/f2 rather than just f1 2011-06-08 18:06:22 +08:00
Sam Hemelryk bca840b4bc Merged branch 'MDL-27695_MOODLE_20_STABLE' of git://github.com/nebgor/moodle.git with changes 2011-06-08 16:32:18 +08:00
Sam Hemelryk 80406e9dd8 Merge branch 'MDL-27737_2.0' of git://github.com/timhunt/moodle into MOODLE_20_STABLE 2011-06-08 13:52:39 +08:00
Sam Hemelryk f4c5e50440 Merged branch 'MDL-25775_stable' of git://github.com/grabs/moodle.git 2011-06-08 13:51:10 +08:00
Sam Hemelryk 1382f8a549 Merged branch 'MDL-27118-MOODLE_20_STABLE' of git://github.com/epsd/moodle.git 2011-06-08 13:43:51 +08:00
Aparup Banerjee c372808e97 MDL-27695 Documentation : updated the moodle docs link at the footer of pages to point to new docs url 2011-06-08 13:43:44 +08:00
Sam Hemelryk f279137a86 Merge branch 'MDL-27294-MOODLE_20_STABLE' of git://github.com/epsd/moodle into MOODLE_20_STABLE 2011-06-08 13:39:29 +08:00
Sam Hemelryk 0ad12999d7 MDL-27704 Fixed typo in theme/fusion/style/core.css 2011-06-08 13:36:27 +08:00
Mary Evans a390156411 MDL-27704_master Fix for Overlapping problems in Fusion theme 2011-06-08 13:35:30 +08:00
kordan b84a272faf MDL-27588 Fixed up several bugs with the formal_white theme
-> MDL-26934 has been fixed
-> MDL-27474 has been fixed
-> one more option to have blocks column with different background colours
-> one more option to use custom font size
-> version.php, and b/install.php to handle upgrades
-> increased the font size in the table with plugin list shown at upgrade time
-> minor fixes in IE7 when images from remote web sites are shown in the header
-> conformed the dock background colour to the block background colour to avoid unpleasant color combinations
-> conformed a.link, a.visited and a.active colours in tabs
-> conformed a.link, a.visited and a.active colours in the navigation block
-> deleted an awful box border from enrolment page
-> right aligned commands for resources and activities in the course page
-> increased the width of field item title column in mform
-> increased the padding-top to the help popup box messages
-> user menu restyled to fix some minor tweaks in IE7
-> minor repair to tabs to improve its look
-> restyling of the docked item panel header to look like all the other blocks
-> reduced the distance between elements in headermenu to look better even when only headings are shown in the header
-> links wherever and always black
-> the "search courses" field in the navigation bar does not force extra height
-> some unpleasant generalbox border duplicating some other border have been removed
-> some unpleasant margin/padding in notices and mtables has been removed
2011-06-08 13:14:36 +08:00
Sam Hemelryk f2ba68efc1 Merged branch 'MDL-27692' of git://github.com/MaryE/moodle.git 2011-06-08 13:04:57 +08:00
Sam Hemelryk 629ea4957b Merge branch 'MDL-25477-MOODLE_20_STABLE' of git://github.com/epsd/moodle into MOODLE_20_STABLE 2011-06-08 11:31:14 +08:00
Sam Hemelryk 4c1db5b4ea Merged branch 's9_MDL-26392_wiki_files_20' from git://github.com/dongsheng/moodle.git with fixes 2011-06-07 16:31:38 +08:00
Sam Hemelryk 7ea0f8e519 Merge branch 'MDL-27734-workshop-example-weight_20_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_20_STABLE 2011-06-07 16:25:14 +08:00
Sam Hemelryk ece057943d Merge branch 'MDL-27733-workshop-deadlines_20_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_20_STABLE 2011-06-07 16:22:49 +08:00
Sam Hemelryk edb8d49d35 Merge branch 'MDL-27732-glossary-introformat_20_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_20_STABLE 2011-06-07 16:14:52 +08:00
Sam Hemelryk 8c23e3f5ff Merge branch 'admin_whitespace_cleanup_m20' of git://github.com/stronk7/moodle into MOODLE_20_STABLE 2011-06-07 16:11:33 +08:00
AMOS bot 30a39ee2b7 Automatically generated installer lang files 2011-06-07 00:55:09 +00:00
Tim Hunt c3a68f4496 MDL-27737 numerical qtype upgrade bug 2.0dev -> 2.0. 2011-06-06 18:13:31 +01:00
Andreas Grabs d230fb7bcd MDL-25775 - Site policy page blank 2011-06-06 18:12:14 +02:00
David Mudrak 0f37e97dc6 MDL-27734 Fixed weights of the example submission assessments 2011-06-06 17:27:32 +02:00
David Mudrak c33e534dce MDL-27733 workshop: keep the phase deadlines during the 1.9 => 2.0 upgrade 2011-06-06 15:40:56 +02:00
David Mudrak 65814f90c1 MDL-27732 Include the introformat field in the glossary module backups 2011-06-06 15:16:46 +02:00
Eloy Lafuente (stronk7) 3a1380d81a MDL-27724 wiki - update commented upgrade step to avoid future problems 2011-06-05 19:46:46 +02:00
Eloy Lafuente (stronk7) 743010f779 MDL-27723 whitespace cleanup of admin directory 2011-06-05 19:34:12 +02:00
AMOS bot 5a1a6fc1f0 Automatically generated installer lang files 2011-06-05 00:55:09 +00:00
Dongsheng Cai b0022f8d91 MDL-26392 WIKI added file managment support to wiki editor 2011-06-03 11:24:50 +08:00
Mary Evans 838f1bcdf4 MDL-27692-fixes_bullets_not_numbers_in_ordered_list_in_topic_sectio_in_course_page_view 2011-06-03 03:03:38 +01:00
Rajesh Taneja 014fba4928 MDL-27577 moodlelib - fixed dst offset in userdate, usergetdate and make_timestamp functions 2011-06-03 09:59:52 +08:00
AMOS bot 32eadaf080 Automatically generated installer lang files 2011-06-03 00:55:27 +00:00
Eloy Lafuente (stronk7) dba24103ea weekly release 2.0.3+ 2011-06-02 23:37:12 +02:00
Eloy Lafuente (stronk7) 0a770d5c6c Merge branch 'install_20_STABLE' of git://github.com/amosbot/moodle into MOODLE_20_STABLE 2011-06-02 23:28:02 +02:00
AMOS bot 29775a8e89 Automatically generated installer lang files 2011-06-02 00:55:11 +00:00
Sam Hemelryk f2855813c7 MDL-27638 Removed buggy status line from query as it is being calculated in php anyway 2011-05-31 17:03:17 +08:00
Eloy Lafuente (stronk7) b5e1c2e748 Merge branch 'MDL-25191-m20' of git://github.com/sammarshallou/moodle into MOODLE_20_STABLE 2011-05-31 01:01:24 +02:00
Sam Hemelryk 98c1207c46 Merge branch 'wip-mdl-27603-MOODLE_20_STABLE' of git://github.com/rajeshtaneja/moodle into MOODLE_20_STABLE 2011-05-30 17:22:41 +08:00
Sam Hemelryk 3466a42f31 Merge branch 'MDL-25512' of git://github.com/MaryE/moodle.git 2011-05-30 13:07:24 +08:00
Rajesh Taneja 3fc24f1238 MDL-27603 enrol_user - changed modifier to modifierid which is used in database 2011-05-30 10:20:24 +08:00
Sam Hemelryk 2e8ab7269c Merge branch 'MDL-27636_20stable' of git://github.com/stronk7/moodle into MOODLE_20_STABLE 2011-05-30 09:33:19 +08:00
Sam Hemelryk 72ca02b0b2 Merge branch 'MDL-27009' of git://github.com/aolley/moodle into MOODLE_20_STABLE 2011-05-30 09:04:34 +08:00
Mary Evans 22a7afd577 wip-MDL-25512 Correct CSS rules in Canvas theme to align with YUI3 CSS Fonts 2011-05-30 00:12:27 +01:00
Adam Olley c281550ce5 MDL-25191: Properly destroy all elements of the modinfo cache 2011-05-27 13:31:36 +01:00
AMOS bot 4a94bae470 Automatically generated installer lang files 2011-05-26 00:55:15 +00:00
Eloy Lafuente (stronk7) 92480bc82b MDL-27636 restore - add support for after_restore() to plugins. Credit goes to Mark Nielsen. Thanks! 2011-05-26 02:39:43 +02:00
Eloy Lafuente (stronk7) 2ff8943027 MDL-27541 course reports - allow teachers to view individual reports 2011-05-26 01:31:43 +02:00
Eloy Lafuente (stronk7) da63c93657 weekly release 2.0.3+ 2011-05-26 00:25:27 +02:00
Eloy Lafuente (stronk7) 4e184a9ce6 Merge branch 'install_20_STABLE' of git://github.com/amosbot/moodle into MOODLE_20_STABLE 2011-05-26 00:14:02 +02:00
Eloy Lafuente (stronk7) 36420f78c1 Merge branch 'MDL-27625_20stable' of git://github.com/stronk7/moodle into MOODLE_20_STABLE 2011-05-25 16:38:48 +02:00
Eloy Lafuente (stronk7) 93e980d52b MDL-27625 rating - consider RATING_UNSET_RATING a valid rating value 2011-05-25 16:14:07 +02:00
sam marshall 9e5855cb1a MDL-27532 Add backup support for course report per-course data 2011-05-23 12:16:13 +02:00
Sam Hemelryk f9ba5c5222 Merge branch 'm20_MDL-25177_choice_windowfix' of git://github.com/danmarsden/moodle into MOODLE_20_STABLE 2011-05-23 11:34:29 +08:00
Sam Hemelryk f79dd3b57d Merge branch 'MDL-27530_stable' of git://github.com/grabs/moodle into MOODLE_20_STABLE 2011-05-23 11:25:25 +08:00
AMOS bot f5eec88fb6 Automatically generated installer lang files 2011-05-22 21:22:44 +02:00
AMOS bot f5a4f25375 Automatically generated installer lang files 2011-05-19 11:45:22 +02:00
Dan Marsden d714350a11 MDL-25177 Choice - fix typo for form creation causing pop-up window - thanks to Jason Hardin for fix 2011-05-19 13:03:04 +12:00
Sam Hemelryk a021f72a34 weekly release 2.0.3+ 2011-05-18 18:12:56 +08:00
Sam Hemelryk 32af9814f1 MDL-27161 Improved the 2 new strings in assignment 2011-05-18 17:30:06 +08:00
Sam Hemelryk bcb785fa9e MDL-26704 Fixed up variable typo 2011-05-18 15:33:41 +08:00
Eloy Lafuente (stronk7) 733bd07b8b MDL-27192 Global scope does not need global usage 2011-05-17 18:50:16 +02:00
Eloy Lafuente (stronk7) 19ab387d06 Merge branch 'wip-MDL-27192_MOODLE_20_STABLE' of git://github.com/jason-platts/moodle into MOODLE_20_STABLE 2011-05-17 18:49:49 +02:00
Jason Platts 02a03f4fe2 MDL-27192 Page context error on calendar export with custom user
profile fields
2011-05-17 15:24:39 +01:00
Eloy Lafuente (stronk7) 75c92b6306 MDL-27161: whitespace fix 2011-05-17 14:57:32 +02:00
Eloy Lafuente (stronk7) e56ac08a5c Merge branch 'MDL-27386_m20_b' of git://github.com/rwijaya/moodle into MOODLE_20_STABLE 2011-05-17 14:28:55 +02:00
stabijoh 0cf31e061b MDL-27294 fix for fusion and overlay zoom text issue 2011-05-17 07:32:01 -04:00
Eloy Lafuente (stronk7) 65150b26cd MDL-26704 gradebook: adding TODO comment to avoid forgetting 2011-05-17 12:00:50 +02:00
Eloy Lafuente (stronk7) e1ad9ae4f5 Merge branch 'MDL-26704_user_outline_report' of git://github.com/andyjdavis/moodle into MOODLE_20_STABLE 2011-05-17 12:00:10 +02:00
Andreas Grabs ffa12b8397 MDL-27530 The webdav-repository loads empty files 2011-05-16 15:32:17 +02:00
Eloy Lafuente (stronk7) 890c7fae4e Merge branch 'MDL-26436_close_recordsets3' of git://github.com/andyjdavis/moodle into MOODLE_20_STABLE 2011-05-16 09:26:29 +02:00
Andrew Davis (andyjdavis) 9f2e9b535d MDL-26436 message: reviewed use of recordsets in messaging 2011-05-16 14:00:09 +08:00
Sam Hemelryk c7d4a92ccf Merge branch 'MDL-27161_m20' of git://github.com/rwijaya/moodle.git 2011-05-16 12:32:12 +08:00
Sam Hemelryk 5bd0e7af9f Merge branch 'MDL-27387_rating_scale_validation' of git://github.com/andyjdavis/moodle into MOODLE_20_STABLE 2011-05-16 12:16:26 +08:00
Sam Hemelryk 794fb0e565 Merge branch 'MDL-26075_stable' of git://github.com/grabs/moodle 2011-05-16 12:10:58 +08:00
Glenn Ansley 998b74a160 MDL-27494 choice - fixing incorrectly named column in backup 2011-05-16 03:25:46 +02:00
Eloy Lafuente (stronk7) 9ae0b69f59 Merge branch 'MDL-26436_close_recordsets2' of git://github.com/andyjdavis/moodle into MOODLE_20_STABLE 2011-05-16 02:46:52 +02:00
Rossiani Wijaya f4dc83e6e6 MDL-27161: fixed optional setting for 'require grading' to prevent page lock out 2011-05-13 14:10:45 +08:00
Sam Hemelryk ca2b2eb8af MDL-27456 Fixed typo in comment/lib.php after last refatoring 2011-05-13 11:18:48 +08:00
Andreas Grabs 5399e053d1 MDL-26075 Sending Message through Feedback Component throws an error 2011-05-12 17:10:06 +02:00
Rossiani Wijaya 6ef4ef1ee5 MDL-27161: fixed optional setting for 'require grading' to prevent page lock out 2011-05-12 16:53:55 +08:00
Andrew Davis (andyjdavis) f5a1b068cc MDL-27387 rating: prevent the submission of ratings outside of the range allowed by the current scale 2011-05-12 10:44:46 +08:00
Andrew Davis (andyjdavis) b9d64ab18f MDL-27460 roles: now closing a record set that wasnt being closed 2011-05-12 10:37:33 +08:00
Eloy Lafuente (stronk7) 39d106ee76 weekly release 2.0.3+ 2011-05-11 15:22:32 +02:00
Andrew Davis (andyjdavis) 07373d91a8 MDL-26704 gradebook: added some intelligence to the dates displayed on the user outline activity report 2011-05-10 11:02:22 +08:00
Sam Hemelryk 633fcef536 Merge branch 'MDL-27140_m20' of git://github.com/stronk7/moodle into MOODLE_20_STABLE 2011-05-10 09:54:15 +08:00
Eloy Lafuente (stronk7) dde17843e0 MDL-27140 weeks course format - incorrect roll of dates on hidden sections
Credit goes to Nikhil Gupta, big thanks!
2011-05-09 18:17:35 +02:00
Eloy Lafuente (stronk7) 2430319b52 Merge branch 'MDL-27401-m20' of git://github.com/sammarshallou/moodle into MOODLE_20_STABLE 2011-05-09 17:47:47 +02:00
sam marshall adabef8bf6 MDL-27401 Unit test errors in lib/simpletest/testpagelib_moodlepage.php 2011-05-09 11:17:03 +01:00
Andreas Grabs 22ea14df25 MDL-27422 The excel export fails in some conditions. 2011-05-09 17:47:21 +08:00
Sam Hemelryk 6867fc94b7 Merge branch 'MDL-27325_20' of git://github.com/stronk7/moodle into MOODLE_20_STABLE 2011-05-09 10:52:22 +08:00
Sam Hemelryk 8385249f5b Merge branch 'MDL-27367-20' of git://github.com/srynot4sale/moodle into MOODLE_20_STABLE 2011-05-09 10:22:20 +08:00
Eloy Lafuente (stronk7) 30dc7311ad Merge branch 'wip-MDL-27400-MOODLE_20_STABLE' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-05-09 02:13:26 +02:00
Eloy Lafuente (stronk7) 9784520acb Merge branch 'MDL-27372_MOODLE_20_STABLE' of git://github.com/nebgor/moodle into MOODLE_20_STABLE 2011-05-09 01:55:39 +02:00
Eloy Lafuente (stronk7) d015c2352f Merge branch 'MDL-27391-m20' of git://github.com/sammarshallou/moodle into MOODLE_20_STABLE 2011-05-09 01:01:44 +02:00
Eloy Lafuente (stronk7) 35fa620a2e MDL-27325 Adding some extreme, but 32bits safe, float tests 2011-05-06 16:07:02 +02:00
Eloy Lafuente (stronk7) 15516e6445 MDL-27325 Now also testing update_record and set_field 2011-05-06 16:07:02 +02:00
Eloy Lafuente (stronk7) 280a641232 MDL-27325 mysql: Avoid some implicit casting from float to varchar/text 2011-05-06 16:07:02 +02:00
Tim Hunt 14dac82376 MDL-27325 New DB unit tests to demonstrate the problem. 2011-05-06 16:07:01 +02:00
Eloy Lafuente (stronk7) 06ede85e1f Moodle 2.0.3 release 2011-05-06 15:09:21 +02:00
Sam Hemelryk 31a43cca97 MDL-27400 Fixed up typo in blocklib.php 2011-05-06 16:29:01 +08:00
Tim Hunt 8ad8b7dba8 MDL-27394 Moodle 2.0 backup and restore may randomise the order of multichoice/numerical/shortanswer answers 2011-05-06 00:18:50 +02:00
sam marshall a09897b4b1 MDL-26778 Completion unit tests broken by earlier change 2011-05-05 12:21:10 +01:00
Aparup Banerjee 5e00f29019 MDL-27372 moved blog comments to end of body of blog entry. we now see the entire blog entry without comments in the way. 2011-05-05 15:29:42 +08:00
Sam Hemelryk 36f0835e72 Merge branch 's9_MDL-27382_dropbox_get_file_fix_20' of github.com:dongsheng/moodle into MOODLE_20_STABLE 2011-05-05 13:26:46 +08:00
Sam Hemelryk 259b9d05f3 Merge branch 's9_MDL-27381_overwrite_dialog_safari_20' of github.com:dongsheng/moodle into MOODLE_20_STABLE 2011-05-05 13:23:22 +08:00
Sam Hemelryk da20cd7b43 Merge branch 's9_MDL-26854_spam_comments_20_2' of git://github.com/dongsheng/moodle into MOODLE_20_STABLE 2011-05-05 11:46:05 +08:00
Dongsheng Cai acb4688d29 MDL-26854 Added comments block lib.php, it contains comments callbacks 2011-05-05 11:25:19 +08:00
Jerome Mouneyrac 471952fe82 MDL-26250 Create a web service function that enrols users to a certain course 2011-05-05 11:00:00 +08:00
Dongsheng Cai 0d738689bd MDL-27381 fixed 'overwrite files' dialog zindex in safari 2011-05-05 10:43:17 +08:00
Sam Hemelryk 7390fdde63 Merge branch 's9_MDL-26854_spam_comments_20_2' of git://github.com/dongsheng/moodle into MOODLE_20_STABLE 2011-05-05 10:42:58 +08:00
Sam Hemelryk 1374c61bb4 Merge branch 'MDL-26838_ratings_bad_data3' of git://github.com/andyjdavis/moodle into MOODLE_20_STABLE 2011-05-05 10:19:54 +08:00
Dongsheng Cai 98d9209a34 MDL-27382 repository dropbox plugin, fixed bug of
file downloading path
2011-05-05 09:57:34 +08:00
Eloy Lafuente (stronk7) 8351ce1bd0 weekly release 2.0.2+ 2011-05-05 00:37:10 +02:00
Eloy Lafuente (stronk7) b911ab236c Merge branch 'MDL-25594-20' of git://github.com/srynot4sale/moodle into MOODLE_20_STABLE 2011-05-04 16:09:44 +02:00
Dongsheng Cai b4730465e6 MDL-26854 COMMENT
1. added pluginname_comment_validate callback to comments api
2. change permission callback defaults to false
3. Tidied up serveal areas of comments and implemented callback to
ignore system permissions for view (credits to Sam Hemelryk)

AMOS BEGIN
    MOV [modulerejectcomment,error],[callbackrejectcomment,error]
AMOS END
2011-05-04 17:59:19 +08:00
Eloy Lafuente (stronk7) 78cc7bee62 Merge branch 'MDL-26788_m20' of git://github.com/rwijaya/moodle into MOODLE_20_STABLE 2011-05-04 11:21:02 +02:00
Dongsheng Cai 5d6eafcf10 MDL-26388 Recent repository plugin should return draft url 2011-05-04 17:03:36 +08:00
Dongsheng Cai 090e19328e MDL-26388 Recent repository plugin should return draft url 2011-05-04 15:48:11 +08:00
Andrew Davis (andyjdavis) 34b5e856b0 MDL-26838 rating: multiple fixes after a review of rating validation code 2011-05-04 15:33:35 +08:00
Sam Hemelryk c44a5d5946 Merge branch 's10_MDL-27330_dropbox_authorization_url_20' of github.com:dongsheng/moodle into MOODLE_20_STABLE 2011-05-04 13:56:59 +08:00
Aaron Barnes b7d7679112 MDL-25594 completion: Remove unused column from query
Which is also a reserved word.
2011-05-04 13:01:27 +12:00
Aaron Barnes 90061a6d95 MDL-26190 completion blocks: Completion blocks shouldn't ever be blank 2011-05-04 12:53:02 +12:00
stabijoh c9c031fc90 MDL-25477 fix for Anomoly theme doesn't display bullets for unordered lists in descriptions or labels 2011-05-03 07:06:55 -04:00
Dongsheng Cai 64a17788aa MDL-27330 repository dropbox plugin
Dropbox changed authorization URL, and added a few error check code
2011-05-03 17:42:57 +08:00
Sam Hemelryk 0baa1eee59 Merged MDL-26388 Fixed whitespace 2011-05-03 16:28:38 +08:00
Sam Hemelryk 9f6eeb4abf Merged MDL-25805 Renamed property and function to be a little more descriptive 2011-05-03 15:43:20 +08:00
Sam Hemelryk 6a48b42ae8 Merge branch 'MDL-25805_MOODLE_20_STABLE' of git://github.com/nebgor/moodle into MOODLE_20_STABLE 2011-05-03 15:42:26 +08:00
Sam Hemelryk 2dd90f136c Merge branch 'MDL-26628' of git://github.com/srynot4sale/moodle into MOODLE_20_STABLE 2011-05-03 11:00:15 +08:00
Sam Hemelryk e6647397b9 Merged MDL-27251 Fixed up whitespace, Fixed broken string, reworded new strings 2011-05-03 10:54:44 +08:00
Aparup Banerjee 07fa10d725 MDL-25840 blog - fixed broken image file image attachment display 2011-05-03 01:14:16 +02:00
Eloy Lafuente (stronk7) 98032d512d Merge branch 'MDL-27293-customlang-timeout_20_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_20_STABLE 2011-05-02 16:19:40 +02:00
Aparup Banerjee 389235fb00 MDL-25805 Roles propagated ugly hack for parent seeing child activities into navigation lib to display nav node. 2011-05-02 20:21:51 +08:00
Eloy Lafuente (stronk7) 656237dd55 Merge branch 'MDL-26714_20' of git://github.com/timhunt/moodle into MOODLE_20_STABLE 2011-05-02 12:26:22 +02:00
Sam Hemelryk e3cc5b1a7f Merged changes and fixed whitespace issues for MDL-23188 2011-05-02 15:00:54 +08:00
Sam Hemelryk 0742ea86b2 Merge branch 'MDL-26955-themedir-plugindirectory_20_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_20_STABLE 2011-05-02 14:23:06 +08:00
Sam Hemelryk 41f79b5c07 Merge branch 'MDL-27116-themedir-config_20_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_20_STABLE 2011-05-02 14:12:45 +08:00
Sam Hemelryk ed85c0acd2 Merge branch 'MDL-27155_20' of git://github.com/timhunt/moodle into MOODLE_20_STABLE 2011-05-02 14:09:26 +08:00
Sam Hemelryk 9c39028179 Merge branch 'MDL-27246-cutomlang-version_20_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_20_STABLE 2011-05-02 12:14:05 +08:00
Dongsheng Cai 9fb4a6300b MDL-26388, pop up a dialog when attaching a file already being used in draft area. 2011-05-02 10:27:50 +08:00
Tim Hunt 44c9dc6e7b MDL-27340 tablelib.php fix a notice when is false. 2011-05-01 17:37:54 +01:00
Andrew Davis (andyjdavis) 4af7c9d188 MDL-26838 rating: remove logged in users ability to sidestep rating validity checks 2011-05-01 18:44:12 +08:00
Tim Hunt 847dee60ce MDL-27155 qtype_numerical problem with GIFT import. 2011-04-29 14:16:10 +01:00
stabijoh b7551bdf23 MDL-27118 Text in a highlighted topic box is white on white in the Leatherbound theme. 2011-04-29 07:44:56 -04:00
Rossiani Wijaya e0be8fd6a3 MDL-26788 - grading in lesson containing essays 2011-04-29 18:17:36 +08:00
Tim Hunt 55e03d1233 MDL-26714 qtype_multianswer regression from the previous commit for numerical subquestions. 2011-04-28 23:32:14 +01:00
stabijoh e391f907af MDL-23188 implement custom menu where possible in core themes, 20 stable version 2011-04-27 08:44:53 -04:00
David Mudrak bef867a96c MDL-26955 get_plugin_directory() respects $CFG->themedir
If $CFG->themedir is set (it is not usually) and the given theme is not
found in the standard location, then it is expected to be in the custom
$CFG->themedir directory.

Credit goes to Urs Hunkler for the idea of the patch.
2011-04-27 14:03:53 +02:00
David Mudrak 4207d47742 MDL-27116 theme_config::find_theme_location() respects $CFG->themedir
Credit goes to Jai Gupta for the idea of the patch.
2011-04-27 14:03:10 +02:00
David Mudrak bd7193c7ac MDL-27293 report customlang has extra execution time and displays a progress bar during the checkout
Initial checkout of strings into the translator table may take a long time. The
maximum execution time is increased to one hour and a progress bar is
displayed so the user is informed on what is going on.
2011-04-27 14:01:59 +02:00
David Mudrak 77e4a16c4f MDL-27246 customlang report stores the versions in a char field rather than integer 2011-04-27 14:01:38 +02:00
Petr Skoda 7daba2713e weekly release 2.0.2+ 2011-04-27 12:08:04 +02:00
Aaron Barnes 03b1be3005 MDL-26628 completion report: Fix hard coded strings in Completion report 2011-04-27 15:33:45 +12:00
Aparup Banerjee 5c8511ecf7 MDL-27251 Files API - added timeout re-calculation as an optional argument. added setting for minimum Kbps for large files fetched from internet where the passed in timeout maybe too low.
allowed turning off the http HEAD request timeout calculation with zero (or negative) bitrate

	This was added in to allow servers that have a problem with
	HEAD requests to carry on with the given timeout without re-calculations.
	See PULL-651 for the discussion.

	the optional argument to force recalculation of timeout has been forced within scorm/locallib.php

	timeout re-calculation only increments timeout.
2011-04-27 11:02:21 +08:00
Eloy Lafuente (stronk7) 52435228c5 Merge branch 'w17_MDL-27253_m20_swfsize' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-04-26 11:15:01 +02:00
Eloy Lafuente (stronk7) c9dc3e5564 Merge branch 'w17_MDL-27263_m20_loggedintypo' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-04-26 11:06:31 +02:00
Petr Skoda ffaf18a8c1 MDL-27253 add default swf size and allow #d=100x50 URL resizing in mod/url 2011-04-21 20:36:06 +02:00
Petr Skoda f5fddc6081 MDL-27263 fix already logged in error message typo 2011-04-21 20:35:33 +02:00
stabijoh 9d5a4e2b7c MDL-27252 themes, fix for nonzero current highlight 2011-04-20 13:19:12 -04:00
Eloy Lafuente (stronk7) ba9103b2c6 weekly release 2.0.2+ 2011-04-20 13:36:41 +02:00
Eloy Lafuente (stronk7) 79196c9ed5 Fix permissions 2011-04-20 11:09:11 +02:00
Aparup Banerjee a572cfe5bd MDL-26580 adding precautionary upgrade_set_timeout() calls to some loops which may timeout in very edge cases 2011-04-19 17:58:03 +08:00
Aparup Banerjee 92d7776478 MDL-26580 adding some upgrade_set_timeout() calls to 2010080901 upgrade block, upgrades on questions were timing out 2011-04-19 17:57:56 +08:00
Sam Hemelryk 2715f96932 Merged with small fix branch MDL-26516_m20_calevent_wip4 from git://github.com/rwijaya/moodle.git 2011-04-19 16:29:49 +08:00
John Stabinger 6919d9f790 Fixes for MDL-27138, add correct page headers and footer 2011-04-19 11:03:33 +08:00
Sam Hemelryk 8be0517692 MDL-26835 Fixed up styles being used for suspended users in the grader report. 2011-04-19 10:47:14 +08:00
Sam Hemelryk a4b65c11b9 Merged with conflict resolution branch MDL-26835_MASTER_grader_highlight_suspended_users from git://github.com/andyjdavis/moodle.git 2011-04-19 10:46:54 +08:00
Sam Hemelryk 64e711f04b MDL-25999 Fixed URL bug with admin bookmark changes 2011-04-19 10:26:46 +08:00
Sam Hemelryk e6cf40de78 Merge branch 'MDL-25999_m20' of git://github.com/rwijaya/moodle into MOODLE_20_STABLE 2011-04-19 10:26:30 +08:00
Rossiani Wijaya 174f5a0189 MDL-26516: fix calendar event type (user overides) 2011-04-18 18:12:25 +08:00
Eloy Lafuente (stronk7) dd56fd7c64 MDL-26167 lib/form: minor coding tweaks 2011-04-18 11:45:02 +02:00
Eloy Lafuente (stronk7) 436f83f8ff Merge branch 'MDL-26167-stable' of git://github.com/agwells/moodle into MOODLE_20_STABLE 2011-04-18 11:44:02 +02:00
Rossiani Wijaya d03f904759 MDL-25999: update Admin Bookmarks block to work properly in 2.0 2011-04-18 17:23:36 +08:00
Eloy Lafuente (stronk7) 15a6af91f5 Merge branch 'w16_MDL-17344_m20_uploadprof' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-04-18 11:07:42 +02:00
Andrew Davis (andyjdavis) 0a23dec07a MDL-26835 gradebook: grader report now marks suspended students 2011-04-18 14:25:16 +08:00
Sam Hemelryk 6f8081bef4 MDL-26958 PULL-675 Merged changes and removed border colour style 2011-04-18 10:57:27 +08:00
Andrew Davis (andyjdavis) c643d3ae06 MDL-27153 gradebook - fixed an SQL error in grade export 2011-04-18 02:17:09 +02:00
Eloy Lafuente (stronk7) 507ccf1c4b MDL-27148 whitespace fix 2011-04-18 01:47:11 +02:00
Eloy Lafuente (stronk7) 60bc533ee8 Merge branch 'w16_MDL-27148_m20_stringinc' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-04-18 01:44:10 +02:00
Eloy Lafuente (stronk7) 42f2b8d0dd Merge branch 'w16_MDL-27217_m20_tinyset' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-04-18 01:13:49 +02:00
Eloy Lafuente (stronk7) 84047d1fc9 Merge branch 'w16_MDL-27220_m20_tagprofile' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-04-18 01:08:10 +02:00
Petr Skoda b79ac7e0d6 Merge branch 'm20_MDL-26880_SCORM2004_tracking_fix' of git://github.com/danmarsden/moodle into MOODLE_20_STABLE 2011-04-17 17:16:48 +02:00
Petr Skoda 241ceba38c Merge branch 'm20_MDL-24734_gradefix' of git://github.com/danmarsden/moodle into MOODLE_20_STABLE 2011-04-17 17:09:59 +02:00
Petr Skoda 8e49e0833c Merge branch 'm20_MDL-18392_slash_cleanup' of git://github.com/danmarsden/moodle into MOODLE_20_STABLE 2011-04-17 17:04:09 +02:00
Petr Skoda f6bf9c932d Merge branch 'MDL-27198-m20' of git://github.com/sammarshallou/moodle into MOODLE_20_STABLE 2011-04-17 16:40:10 +02:00
Petr Skoda 1fb2369b09 Merge branch 'wip-MDL-26013-MOODLE_20_STABLE' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-04-17 16:22:34 +02:00
Petr Skoda 4de0925820 Merge branch 'wip-MDL-27145-MOODLE_20_STABLE' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-04-17 16:13:08 +02:00
Petr Skoda 81f2a1686a MDL-27217 use correct editor name in editor settings page
Credit goes to Franck Bellemain.
2011-04-17 11:18:00 +02:00
Petr Skoda 5f509554a5 MDL-27220 add missing tag lib include 2011-04-17 11:07:57 +02:00
Dan Marsden edd5d0693d SCORM MDL-24734 - fix display of grade information on view.php page - also fixes some XHTML in the same function. 2011-04-16 19:32:11 +12:00
Mary Evans d59a75a841 MDL-26958 Core Themes:adding css patch to base theme so hidden elements are dimmed
This patch also fixes MDL-27160 - the same bug which affects many CORE themes like Binarus and Nonzeo. This patch also a small element of a patch supplied by Thomas Lake in Tracker MDL-26958 (most of which already exists in Base theme).
2011-04-15 00:49:22 +01:00
Aaron Wells 9b482d1cbe MDL-26167 lib/form: Altering Javascript so that "disabledIf" will disable the "Choose" button for a filepicker 2011-04-15 10:02:34 +12:00
sam marshall ca090f3262 MDL-27198 Accessibility: For labels, completion/editing icons must appear after content 2011-04-14 17:28:53 +01:00
Petr Skoda 12db898084 MDL-27148 use new get_in_or_equal() param prefix instead of start 2011-04-14 15:13:28 +02:00
Petr Skoda c79345c0f0 MDL-27148 fix unit tests to accept arbitrary named params format from get_in_or_equal 2011-04-14 15:12:21 +02:00
Petr Skoda d691571218 MDL-27148 use static counter instead of incrementing parameter name 2011-04-14 14:44:50 +02:00
Petr Skoda 4e1bb6e10c MDL-17344 fix case and unicode related profile field issues in user upload
This fixes issue with uppercase and non-ascii profile fields and closes the iterator properly when field not found. Please note that profile fields with upper case letters must be specified exactly in CSV file headers. includes improved docs and parameter typo fix (credit for the parameter typo discovery goes to Aparup Banerjee)
2011-04-14 13:18:42 +02:00
Nadav Kavalerchik a7e920fbfb CSS MDL-26013 Fixed several display bugs when using right to left languages 2011-04-14 15:59:03 +08:00
Matteo Scaramuccia 7a725d6b59 PULL-498 - Fixed potential issues about UTF-8 and multilang filter by adopting pure ASCII chars, the SCO primary key 2011-04-14 10:26:41 +12:00
Matteo Scaramuccia 489c6ef357 MDL-26880 - Fixed missing of activity id
Moved errorCode as global, to allow GetLastError() to work
Applied MDL-17891 mechanism against AJAX failures, "true if true, false otherwise"
Limited what added to log when in debug, to be compliant with mdl_log.action as VARCHAR(40)
2011-04-14 10:26:18 +12:00
Dan Marsden dbb6157aa1 Merge remote branch 'moodle/MOODLE_20_STABLE' into m20_MDL-18392_slash_cleanup 2011-04-14 09:15:17 +12:00
Petr Skoda 50467e50c9 weekly release 2.0.2+ 2011-04-13 22:08:30 +02:00
Petr Skoda 85a91fb98e Merge branch 'MDL-24355_emergency_20' of git://github.com/stronk7/moodle into MOODLE_20_STABLE 2011-04-13 16:49:29 +02:00
Eloy Lafuente (stronk7) 75454e2567 MDL-24355 tags - fix correlation sql to be cross-db 2011-04-13 16:37:37 +02:00
Petr Skoda 06c09f30e3 Revert "MDL-25840 fixed image files link not rendered correctly when attached as file (instead of inline)."
The reason is failed testing. This reverts commit 3d0e3ade75.
2011-04-13 15:07:22 +02:00
Dan Marsden 26daa23d9d SCORM MDL-18392 - remove old call to stripslashes 2011-04-13 20:00:59 +12:00
Matteo Scaramuccia 74a2ee73ed SCORM MDL-18392 MDL-26282 - Fixed calls to add/strip slashes 2011-04-13 19:58:44 +12:00
Petr Skoda fca41d2589 MDL-25718 fix incorrect 'no grade' test and improve coding style 2011-04-12 10:07:05 +02:00
Petr Skoda 6de6a45a10 Merge branch 'MDL-25718_enrol_grades_alternative2' of git://github.com/andyjdavis/moodle into MOODLE_20_STABLE 2011-04-12 09:55:28 +02:00
Sam Hemelryk 0f1fac1f1f form-dateselector MDL-27145 Fixed up error resulting from incorrectly required 'optional' argument on create event 2011-04-12 14:15:51 +08:00
andyjdavis 692134ecd4 enrol MDL-25718 added ability to recover grades when enrolling users 2011-04-12 11:05:02 +08:00
Eloy Lafuente (stronk7) d7706bac2c Merge branch 'MDL-26778-m20' of git://github.com/sammarshallou/moodle into MOODLE_20_STABLE 2011-04-11 17:54:21 +02:00
Eloy Lafuente (stronk7) 391e054c03 Merge branch 'w15_MDL-26577_m20_groupscleanup' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-04-11 16:02:10 +02:00
Eloy Lafuente (stronk7) 71f2316fe6 Merge branch 'w15_MDL-26805_m20_userpol' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-04-11 15:18:31 +02:00
Petr Skoda 16d610019a Merge branch 'wip-MDL-27024-MOODLE_20_STABLE' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-04-11 14:13:34 +02:00
Petr Skoda 4f5791da64 Merge branch 'wip-MDL-26599-MOODLE_20_STABLE' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-04-11 14:10:38 +02:00
sam marshall c5e3a242b1 MDL-26778 Change to completion should immediately affect nav block
Includes change so that updating completion resets the cache, and a debugging
warning if any module calls the completion viewed thing after it's already
printed navigation (which will mean navigation obviously doesn't update right
away). All existing modules that currently update after printing navigation
were updated.
2011-04-11 12:40:50 +01:00
Petr Skoda 13ad1eaf37 Merge branch 'MDL-25840_m20' of git://github.com/nebgor/moodle into MOODLE_20_STABLE 2011-04-11 13:30:44 +02:00
Petr Skoda 7ca448fa83 MDL-26805 cleanup default role selections
Frontpage role selection now allows only guest and frontpage roles. Default forntpage role is selected duuring install. Unused nodefaultuserrolelists option was removed completely. Coding style improvements.
2011-04-11 13:08:35 +02:00
Eloy Lafuente (stronk7) 37efb4f1ee Merge branch 's9_MDL-27098_filemanager_strings_20' of git://github.com/dongsheng/moodle into MOODLE_20_STABLE 2011-04-11 11:20:31 +02:00
Dongsheng Cai 81bd2292bc MDL-27098
1. Fixed add file language string
2. Fixed hard-coded 'moving' string
3. Fixed hard-coded 'Files' string
2011-04-11 17:10:30 +08:00
Eloy Lafuente (stronk7) 8fa13d155d Merge branch 'w15_MDL-25826_m20_htmlpurifier' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-04-11 11:08:23 +02:00
Sam Hemelryk 465846f082 Merge branch 'MDL-25746_m20' of git://github.com/nebgor/moodle into MOODLE_20_STABLE 2011-04-11 15:38:48 +08:00
Aparup Banerjee f68815ffcf MDL-25746 fixed db tempate page layout to prevent hidden content layers 2011-04-11 15:16:54 +08:00
Sam Hemelryk 67b5d74b2c Merge branch 'MDL-27034_xhprof_table_sql_20' of git://github.com/stronk7/moodle into MOODLE_20_STABLE 2011-04-11 14:34:57 +08:00
Aparup Banerjee 3d0e3ade75 MDL-25840 fixed image files link not rendered correctly when attached as file (instead of inline). 2011-04-11 14:24:22 +08:00
Sam Hemelryk 7d1fb2f6ec Merged branch 'MDL-26185_m20' of git://github.com/andyjdavis/moodle.git and fixed conflicts 2011-04-11 11:54:50 +08:00
Sam Hemelryk 227e54d65a Merge branch 'MDL-27063' of git://github.com/MaryE/moodle into MOODLE_20_STABLE 2011-04-11 11:38:21 +08:00
Sam Hemelryk ee6181b1e7 comment MDL-27024 Removed last check within comment.js for block_comment env 2011-04-11 10:43:25 +08:00
Sam Hemelryk 3962c89bbf comment MDL-27024 Fixed bug that arose when a comment section didnt require pagination but the JS still looked for pageination HTML in the page 2011-04-11 10:43:21 +08:00
Sam Hemelryk 59137c2c5b comment MDL-27024 Removed last reference to the comment block within the comment API and used the options properly 2011-04-11 10:43:17 +08:00
Sam Hemelryk b83e494d6f comment MDL-27024 Fixed up whitespace issues 2011-04-11 10:43:12 +08:00
Sam Hemelryk 3b2164bdca comment MDL-27024 made notoggle and autoload into proper options to remove comment block conditions from comment API 2011-04-11 10:43:06 +08:00
Sam Hemelryk aa54d70440 comment MDL-27024 Cleaned up HTML output in comment class 2011-04-11 10:43:01 +08:00
Sam Hemelryk d2d4bccec1 comment MDL-27024 Cleaned up use of undefined property $this->link 2011-04-11 10:42:56 +08:00
Sam Hemelryk f3a3c59f48 mod-lesson MDL-26599 Fixed echo causing incorrect nesting. 2011-04-11 10:27:58 +08:00
Eloy Lafuente (stronk7) 3d62a46b26 Merge branch 'w15_MDL-27094_m20_assval' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-04-11 01:32:15 +02:00
Eloy Lafuente (stronk7) 9aacfedb22 Merge branch 'w15_MDL-27007_m20_userupload' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-04-11 01:23:04 +02:00
Eloy Lafuente (stronk7) 12b734434b Merge branch 'w15_MDL-26910_m20_httpd' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-04-11 00:17:23 +02:00
Eloy Lafuente (stronk7) f9068e531c Merge branch 'w15_MDL-27121_m20_phpreq' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-04-10 23:55:11 +02:00
Eloy Lafuente (stronk7) 96506c474a Merge branch 'MDL-26319_MOODLE_20_STABLE' of git://github.com/nebgor/moodle into MOODLE_20_STABLE 2011-04-10 23:49:59 +02:00
Tony Levi 0d66e33da5 MDL-27084: mod/feedback fix bad syntax in database query 2011-04-10 23:43:56 +02:00
Petr Skoda 934fa3ed6c MDL-27094 fix incorrect assignment form validation method name
Credit goes to H. Hanna
2011-04-10 21:01:53 +02:00
Petr Skoda 6743d6c520 MDL-26910 add HTTPD server name whitelisting 2011-04-10 13:59:17 +02:00
Petr Skoda cf76e10e4a MDL-26577 fix several groups and groupings issues
The current group in verified on each page which prevents problems when group settings are changed. The default group for course level is now using correct grouping id which solves problems when activity and course are using different grouping. The grouping is now displayed in group selector if user has access to all groups.
2011-04-10 13:28:02 +02:00
Mary Evans c800e31213 MDL-27063 tt styled incorrectly in canvas theme 2011-04-10 00:48:35 +01:00
Petr Skoda 23580ddacb MDL-27121 fix incorrect check_moodle_environment() version parameter
This prevents Moodle 2.0 from using environment info for 2.1 in the installer and CLI upgrade.
2011-04-09 17:42:53 +02:00
Petr Skoda 827fcdb347 MDL-27007 fix incorrectly suspended user enrolment when uploading users
This bug surfaced after the recent change in enrol API, credit goes to Chaim Schendowich and Micky Fokken.
2011-04-09 12:09:53 +02:00
Petr Skoda 60aaf1dc77 MDL-25826 add more HTMLPurifier integration tests 2011-04-09 11:51:55 +02:00
Petr Skoda fd8fa6f9d0 MDL-25826 integrate HTMLPurifier 4.3.0 and improve performance
The new HTMLPurifier finally caches the schema properly eliminating both extra CPU cycles and disk writes. The repeated dir exists tests might cause problems on NFS shares.
2011-04-09 11:51:49 +02:00
Petr Skoda 8adf19eda8 MDL-25826 import HTMLPurifier 4.3.0 2011-04-09 11:51:35 +02:00
Andrew Davis (andyjdavis) a6e29ac6a3 message MDL-26185 fixed the logic around email addy in user profile Vs in messaging preferences 2011-04-07 15:39:03 +08:00
Aparup Banerjee 52e184904f MDL-26319 moved cancel_backup() from backup_ui to cancel_process() in base_ui and renamed callers. fix for method inheritance in restore_ui. 2011-04-07 10:40:45 +08:00
Eloy Lafuente (stronk7) b8d80c062e MDL-27034 profiling - xhprof_table_sql improvement 2011-04-07 00:46:33 +02:00
Petr Skoda eb9d692f8b weekly release 2.0.2+ 2011-04-06 14:55:57 +02:00
Petr Skoda a805d653d1 MDL-26804 fix undefined CFG langcache property during install
Sorry, I have committed fix for this in master incorrectly with MDL-26914.
2011-04-06 10:56:30 +02:00
Sam Hemelryk fe4a0cfe63 PULL-574 MDL-26185 Reverted changes due failed testing + review 2011-04-06 16:35:24 +08:00
Petr Skoda d0e3447e43 revert MDL-26577 added session cleaning to groups_get_activity_group() that fixes an issue with dirty session data. refactored session cleaning into one function, added caching to reduce queries.
(reverse-merged from commit 77335e76e9) This change was causing fatal errors on the course level, I am going to fix it myself.
2011-04-05 18:35:01 +02:00
Sam Hemelryk f046221272 messaging MDL-26185 Last minute fix of bug during integration, empty user preference causing error 2011-04-05 16:53:03 +08:00
Petr Skoda 42a50a0a45 Merge branch 'MDL-26577_groups_api_refactor_take2_m20' of git://github.com/nebgor/moodle into MOODLE_20_STABLE 2011-04-05 10:21:21 +02:00
Aparup Banerjee 77335e76e9 MDL-26577 added session cleaning to groups_get_activity_group() that fixes an issue with dirty session data. refactored session cleaning into one function, added caching to reduce queries. 2011-04-05 12:23:56 +08:00
Eloy Lafuente (stronk7) ddf3e875f3 Merge branch 'wip-MDL-26560-MOODLE_20_STABLE' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-04-04 23:16:53 +02:00
Eloy Lafuente (stronk7) 91fa7abf3d Merge branch 'wip-MDL-26858-MOODLE_20_STABLE' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE 2011-04-04 21:50:22 +02:00
Eloy Lafuente (stronk7) b060e5b0b8 Merge branch 'MDL-26931-blog-post-order_20_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_20_STABLE 2011-04-04 12:02:17 +02:00
Andrew Davis (andyjdavis) f9c8746704 gradebook MDL-20946 fixed average calculation where users have multiple gradeable roles 2011-04-04 11:27:09 +02:00
Petr Skoda c629aeabe3 MDL-25651 fix incorrect indentation 2011-04-04 10:01:30 +02:00
Petr Skoda 27614a5e5d Merge branch 'wip-MDL-25651_MOODLE_20_STABLE' of git://github.com/jennymgray/moodle into MOODLE_20_STABLE 2011-04-04 09:59:04 +02:00
Sam Hemelryk ba32fc0042 enrolments MDL-26560 Fixed panel.user bug with role assignments dialogue 2011-04-04 14:50:15 +08:00
Sam Hemelryk 87b05ba3e0 enrolments MDL-26858 Added finish user enrolments button to JS dialogue 2011-04-04 14:38:23 +08:00
Sam Hemelryk 728f3c9d08 Merge branch 'MDL-26185_m20' of git://github.com/rwijaya/moodle into MOODLE_20_STABLE 2011-04-04 13:21:24 +08:00
Mary Evans d7dd177eb4 Fix for MDL-27016 added min-width 2011-04-04 13:10:06 +08:00
Rossiani Wijaya 507de745e3 MDL-26185: simplify the logic of email message output and removing email cache 2011-04-01 11:12:54 +08:00
Jenny Gray bf8ff4889b MDL-25651 add capability check to my private files navigation link 2011-03-31 14:54:36 +01:00
Ankit Agarwal f9112bda35 MDL-26931 Order blog entries by the creation date 2011-03-31 11:56:53 +02:00
Tim Hunt ba63612bfa MDL-27035 table_sql forgets to set countparams. 2011-03-30 20:26:34 +01:00
Petr Skoda 408612d111 updating digits to match the .2 release 2011-03-30 18:01:09 +02:00
Petr Skoda 60e837038a weekly release 2011-03-30 14:29:56 +02:00
Petr Skoda 4cb05cea9d Merge branch 'MDL-26964-moodle_url-anchor_20_STABLE' of git://github.com/mudrd8mz/moodle into MOODLE_20_STABLE 2011-03-29 10:00:04 +02:00
Adam Olley 0960f2f417 MDL-27009: Fix role group by statement for statistics 2011-03-29 11:46:17 +10:30
Eloy Lafuente (stronk7) 09c1e72a56 Merge branch 'MDL-26744-metasyncstring_20_STABLE' of git://github.com/wildgirl/moodle into MOODLE_20_STABLE 2011-03-28 23:56:08 +02:00
Eloy Lafuente (stronk7) d2455301b7 Merge branch 'w13_MDL-22733_20_youtubeiframe' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-03-28 23:53:40 +02:00
Eloy Lafuente (stronk7) 1be2b904ab Merge branch 'w13_MDL-26909_20_mediatests' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-03-28 23:30:35 +02:00
Eloy Lafuente (stronk7) 337817e669 Merge branch 'w13_MDL-26987_20_sclean' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-03-28 21:59:21 +02:00
Eloy Lafuente (stronk7) b17a3a5591 Merge branch 'w13_MDL-26913_20_sitecreated' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-03-28 20:10:57 +02:00
Eloy Lafuente (stronk7) c44c552efa Merge branch 'w13_MDL-26951_20_archetypes' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-03-28 19:40:35 +02:00
Eloy Lafuente (stronk7) faa297ce6f Merge branch 'w13_MDL-26991_20_legacy' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-03-28 19:26:28 +02:00
Petr Skoda e1ce68c2f9 MDL-26991 use archetypes instead of deprecated 'legacy' when defining roles in enrol plugins 2011-03-28 19:19:54 +02:00
Eloy Lafuente (stronk7) b6225c0f2f Merge branch 'w13_MDL-26966_20_urlparsing' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-03-28 19:07:00 +02:00
Eloy Lafuente (stronk7) 50496af78b Merge branch 'w13_MDL-26985_20_branching' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-03-28 18:41:22 +02:00
Tim Hunt 8fc52ccf46 MDL-26425 tablelib ability for table_sql to add a class to the row based on the data. 2011-03-28 17:12:26 +02:00
Tim Hunt 9f9324f408 MDL-26425 tablelib better validation of the sort code, also some cleanup.
You may think that the extra validation is unnecessary, since the sort fields are already validated when the URL parameters are parsed, however that overlooks an important point. There may be other options that affect which columns are in the SQL, for example the quiz show individual question grades setting. These other options can cause a column that was in the table, and being sorted on, to disappear. Therefore, it is necessary to re-validate the sort columns when they are used, to make sure they are still present, otherwise you can get ORDER BY sql that refers to non-existant columns, which then causes DB errors.
2011-03-28 17:10:53 +02:00
Helen Foster d4dc367a5b MDL-26744 enrol meta lang string improvement thanks to Ray Lawrence 2011-03-28 17:07:55 +02:00
Eloy Lafuente (stronk7) 3ede344b5c Merge branch 'w13_MDL-26990_20_missingrebuild' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-03-28 16:35:18 +02:00
Petr Skoda 5c686792c6 Merge branch 'MDL-26335' of github.com:mouneyrac/moodle into MOODLE_20_STABLE 2011-03-28 15:13:47 +02:00
David Mudrak 91a4b3bd3e MDL-26804 core_string_manager::get_list_of_translations() can use a cache again
This patch reimplements the internal cache that was used to store the
list of available translations in Moodle 1.x. By default, the method
get_list_of_translations() still uses the file
moodledata/cache/languages to store the list of available translations.
The location of that file can be redefined in config.php. The internal
format of the cache file is JSON now (used to be a plain text list).

The patch also fixes a usage of the global $CFG in translation_exists()
methods where the internal property should be used instead.
2011-03-28 14:49:17 +02:00
Dongsheng Cai 1a6a1487f4 MOD-WIKI MDL-26213
1. Rewrite the image urls in diff.php and viewdiff.php
2. Fxied image urls in search.php
3. Add modcontext variable to avoid using duplicated
get_context_instance calls
2011-03-28 11:50:37 +02:00
Jenny Gray a5286ae4cc MDL-26932 full url path for toggle completion form POST 2011-03-28 11:04:39 +02:00
Dan Marsden 5b97bff526 Plagiarism MDL-26939 - missing return 2011-03-28 10:53:13 +02:00
Dongsheng Cai 1c4873ba1b MDL-26916, MDL-26917
1. Fix filepicker paging issue MDL-26916
2. Highlight view as icon button by default MDL-26917
2011-03-28 16:13:27 +08:00
Dan Marsden 9a8f8cea49 Forum Overview MDL-26957 add classes to allow better control by theme 2011-03-28 16:11:30 +08:00
stabijoh c37f03543b Revised fix for MDL-26906, magazine and formal white secure browser quiz window 2011-03-28 16:04:21 +08:00
Andrew Davis (andyjdavis) cd4ca97611 message MDL-26077 fixed up a problem with html tags being stripped out 2011-03-28 16:00:36 +08:00
Myles Carrick 77bfc4ce0f MDL-26798 encode file path in dropbox repository plugin, credits to Myles Carrick 2011-03-28 15:57:38 +08:00
Sam Hemelryk 13c53a4a2e Merge branch 'w13_MDL-26992_20_uploadtemplates' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-03-28 14:33:27 +08:00
Sam Hemelryk d3796a2c61 Merge branch 'w13_MDL-26989_20_enrolroles' of git://github.com/skodak/moodle into MOODLE_20_STABLE 2011-03-28 14:17:08 +08:00
Petr Skoda 43070e6193 MDL-26992 fix broken upload users templates 2011-03-27 23:48:41 +02:00
Nikhil Gupta d099348e32 MDL-26989 fix incorrect disabling of assignable roles 2011-03-27 20:34:15 +02:00
Petr Skoda c4dd3bb86f MDL-26913 set timecreated in fortpage of a newly installed site 2011-03-27 18:22:11 +02:00
Petr Skoda ce8b66c67f MDL-26881 work around the block context setting problems 2011-03-27 16:39:27 +02:00
Petr Skoda d38f419d5c MDL-26987 fix invalid DML syntax in spam cleaner tool 2011-03-27 16:14:22 +02:00
Petr Skoda c102060deb MDL-26951 fix removing of archetype from role 2011-03-27 16:04:33 +02:00
Petr Skoda 0ae36f6638 MDL-26966 improve self URL validation 2011-03-27 12:29:36 +02:00
Petr Skoda 3c3d544700 MDL-26909 fix outdated mediaplugin filter unittests 2011-03-26 23:54:45 +01:00
Petr Skoda c4b491a417 MDL-22733 enable youtube iframe embedding 2011-03-26 23:38:40 +01:00
Petr Skoda 112d3b4962 MDL-26990 fix undefined rebuild_course_cache() regression 2011-03-26 22:49:04 +01:00
Petr Skoda 7bb8ae5911 MDL-26985 new Moodle 2.1 requirements
For now only extra PHP 5.3.2 requirement compared to 2.0.
2011-03-26 22:03:00 +01:00
David Mudrak dbe6d9f821 MDL-26964 URL anchor support for single_button and single_select
If the single_button or single_select use HTTP method 'get' then the
eventual anchor part of the URL is used.
2011-03-24 22:15:47 +01:00
David Mudrak 4927443761 MDL-26964 URL returned by moodle_url::out_omit_querystring() may contain the anchor part 2011-03-24 22:15:47 +01:00
Petr Skoda 92a387b467 weekly release 2011-03-23 11:33:20 +01:00
Jerome Mouneyrac ac3e0b3c8c MDL-26335 fix capability name typo in the description of the web service function moodle_user_get_users_by_id 2011-03-23 11:35:46 +08:00
Eloy Lafuente (stronk7) 34c0b5bd86 MDL-26848 I left one remaining "xxx" there, grrr 2011-03-22 12:28:57 +01:00
Petr Skoda a93bd90b97 bump version to detect integration reset problems 2011-03-22 11:16:16 +01:00
Eloy Lafuente (stronk7) 18e3cba749 MDL-26848 fixing some "stupid" comments and specs of 1 field 2011-03-21 22:20:17 +01:00
Eloy Lafuente (stronk7) c6f7c3e7f3 Merge branch 'MDL-26848' of git://github.com/timhunt/moodle 2011-03-21 21:56:46 +01:00
Eloy Lafuente (stronk7) bc35885cb4 Merge branch 'MDL-25834' of git://github.com/samhemelryk/moodle 2011-03-21 21:54:57 +01:00
Eloy Lafuente (stronk7) b9c6ce2d19 Merge branch 'm20_MDL-26905_AICC_API_missing_currentorg_init' of git://github.com/scara/moodle 2011-03-21 21:38:23 +01:00
Eloy Lafuente (stronk7) bf1a4d75e0 Merge branch 'MDL-26570' of git://github.com/samhemelryk/moodle 2011-03-21 21:34:17 +01:00
Eloy Lafuente (stronk7) 8c2e4c90d7 Merge branch 'MDL-25621' of git://github.com/samhemelryk/moodle 2011-03-21 21:32:50 +01:00
Eloy Lafuente (stronk7) be5eb0013e Merge branch 'MDL-26863_wrong_appendtolog_statement' of git://github.com/scara/moodle 2011-03-21 21:15:54 +01:00
Eloy Lafuente (stronk7) c031f2c1e7 Merge branch 'MDL-26875' of git://github.com/samhemelryk/moodle 2011-03-21 21:10:55 +01:00
Eloy Lafuente (stronk7) 63187a6887 Merge branch 'm20_MDL-26894_SCORM13_PHP_notice_undefined_prop_id' of git://github.com/scara/moodle 2011-03-21 21:03:15 +01:00
Eloy Lafuente (stronk7) 1595b8120f Merge branch 'MDL-26861' of git://github.com/timhunt/moodle 2011-03-21 20:59:32 +01:00
Eloy Lafuente (stronk7) 4c2ce98b42 Merge branch 'master' of git.moodle.org:/git/integration 2011-03-21 20:55:20 +01:00
Petr Skoda c20d07074c Merge branch 'MDL-23022' of git://github.com/samhemelryk/moodle 2011-03-21 19:16:37 +01:00
Petr Skoda 3bfb75a9ed Merge branch 'wip-MDL-26781' of git://github.com/sammarshallou/moodle 2011-03-21 19:10:15 +01:00
Eloy Lafuente (stronk7) 83ee4693c5 Merge branch 'MDL-26908' of git://github.com/samhemelryk/moodle 2011-03-21 19:08:46 +01:00
Petr Skoda 7b2dde5a80 Merge branch 'wip-MDL-26747' of git://github.com/sammarshallou/moodle 2011-03-21 19:06:28 +01:00
Petr Skoda 94ff0f08f3 Merge branch 'MDL-26922' of git://github.com/stronk7/moodle 2011-03-21 19:02:16 +01:00
Eloy Lafuente (stronk7) f80de2f25c MDL-26922 dml - avoid PHP_INT_MAX overflow on limit queries 2011-03-21 18:49:08 +01:00
Petr Skoda 25bd4d9a37 Merge branch 'MDL-26847_amended' of git://github.com/timhunt/moodle 2011-03-21 18:10:35 +01:00
Eloy Lafuente (stronk7) 4386e0d101 Merge branch 'master' of git.moodle.org:/git/integration 2011-03-21 18:04:25 +01:00
Petr Skoda 2c23734a7f Merge branch 'MDL-25975' of git://github.com/samhemelryk/moodle 2011-03-21 18:02:46 +01:00
Petr Skoda 61baea5d22 Merge branch 'MDL-26903' of git://github.com/samhemelryk/moodle 2011-03-21 18:00:07 +01:00
Eloy Lafuente (stronk7) 1f95c9a4af Merge branch 'w12_MDL-26842_20_ociparams' of git://github.com/skodak/moodle 2011-03-21 17:55:40 +01:00
Petr Skoda cd278cd454 MDL-26842 fix invalid parameter mix discovered by the new test 2011-03-21 17:19:36 +01:00
Eloy Lafuente (stronk7) 1997d9dc1d Merge branch 'w12_MDL-26842_20_ociparams' of git://github.com/skodak/moodle 2011-03-21 16:38:19 +01:00
Petr Skoda 4c1638c10f MDL-26842 fix o_ prefix regression 2011-03-21 16:32:09 +01:00
Eloy Lafuente (stronk7) c0c232ab63 Merge branch 'master' of git.moodle.org:/git/integration 2011-03-21 16:31:27 +01:00
Tim Hunt af7b3673d7 MDL-26847 new method file_storage::delete_area_files_select for efficient bulk file deletion. 2011-03-21 15:21:02 +00:00
Petr Skoda 10464ffb33 Merge branch 'MDL-26887' of git://github.com/timhunt/moodle 2011-03-21 15:39:31 +01:00
Eloy Lafuente (stronk7) 7a5852c857 Merge branch 'w12_MDL-26844_20_limittests' of git://github.com/skodak/moodle 2011-03-21 15:35:17 +01:00
Eloy Lafuente (stronk7) 9c3865c81c MDL-25565 - fix borked merge. The power of one curly bracket! 2011-03-21 15:32:24 +01:00
Petr Skoda dca072aedc Merge branch 'MDL-26571_lesson_scale' of git://github.com/andyjdavis/moodle 2011-03-21 14:52:11 +01:00
Petr Skoda e5be555c27 Merge branch 'MDL-26768_0_grade' of git://github.com/andyjdavis/moodle 2011-03-21 14:49:18 +01:00
Petr Skoda 949fe7154c Merge branch 's8_MDL-26919_search_dialog_event' of git://github.com/dongsheng/moodle 2011-03-21 14:46:59 +01:00
Petr Skoda d96b0a969b Merge branch 'wip-MDL-26822' 2011-03-21 14:03:33 +01:00
Petr Skoda ae8c1f3d06 MDL-26822 fix whitespace 2011-03-21 14:02:50 +01:00
Dongsheng Cai e4e9e853d2 Fix three minor filepicker bugs: 1. use language string in search dialog instead of hard code filepicker MDL-26915 2. search dialog now response to enter key MDL-26919 3. search dialog should be modal mode MDL-26918 2011-03-21 20:56:36 +08:00
Sam Hemelryk 8196e3c08d Merge branch 'MDL-26557' of git://git.luns.net.uk/moodle 2011-03-21 17:32:06 +08:00
Sam Hemelryk 587a4ee42c Merge branch 'MDL-26827' of git://git.luns.net.uk/moodle 2011-03-21 17:23:13 +08:00
Sam Hemelryk c889fb8372 Merge branch 'w12_MDL-26904_20_PHPLOL' of git://github.com/skodak/moodle 2011-03-21 17:19:06 +08:00
Sam Hemelryk beb81f4947 Merged PULL-496/MDL-26859 and fixed incorrect defines 2011-03-21 17:13:20 +08:00
Sam Hemelryk ee780aeeaf Merge branch 'w12_MDL-26876_20_blogformat' of git://github.com/skodak/moodle 2011-03-21 16:50:07 +08:00
Sam Hemelryk d9738e84d6 Merged PULL-480/MDL-24877 and bumped version number to fix conflict 2011-03-21 15:58:19 +08:00
Sam Hemelryk 161ba40d03 Merge branch 'w12_MDL-26808_20_enrolpageurl' of git://github.com/skodak/moodle 2011-03-21 15:47:36 +08:00
Sam Hemelryk ca3fce634f Merge branch 'w12_MDL-26826_20_youtubedim' of git://github.com/skodak/moodle 2011-03-21 14:27:45 +08:00
Sam Hemelryk 909fc3ff2e Merge branch 'w12_MDL-26726_20_typocat' of git://github.com/skodak/moodle 2011-03-21 14:16:51 +08:00
Sam Hemelryk e460480080 Merge branch 'w12_MDL-26825_20_cancelform' of git://github.com/skodak/moodle 2011-03-21 14:10:44 +08:00
Sam Hemelryk d1f5425171 Merge branch 'w12_MDL-26837_20_algebra' of git://github.com/skodak/moodle 2011-03-21 13:37:36 +08:00
Sam Hemelryk 1698268db1 Merge branch 'w12_MDL-26834_20_inactiveparticipants' of git://github.com/skodak/moodle 2011-03-21 13:30:59 +08:00
Sam Hemelryk 885e86b108 Merge branch 'w12_MDL-26833_20_inactiveforum' of git://github.com/skodak/moodle 2011-03-21 12:36:47 +08:00
Sam Hemelryk 37fff87398 Merge branch 'w12_MDL-26803_20_userupload' of git://github.com/skodak/moodle 2011-03-21 12:28:45 +08:00
Sam Hemelryk b89d39bfcb Merge branch 'w12_MDL-26842_20_ociparams' of git://github.com/skodak/moodle 2011-03-21 12:22:23 +08:00
Sam Hemelryk 9d61397181 Merge branch 'MDL-26607_search_error' of git://github.com/andyjdavis/moodle 2011-03-21 11:54:20 +08:00
Sam Hemelryk 0235bd8706 Merged MDL-25565 PULL-451 and fixed conflicts 2011-03-21 11:16:50 +08:00
Sam Hemelryk 553669ae17 navigation MDL-26908 Fixed up positioning of icons for items that are both expandable and have an icon 2011-03-21 10:45:23 +08:00
Sam Hemelryk c78262b542 navigation MDL-26903 Fixed regression to navigation ajax after CM changes 2011-03-21 10:22:28 +08:00
Matteo Scaramuccia c6e46d37bc MDL-26905 - Fixed missing of currentorg initialization in AICC API 2011-03-20 23:54:39 +01:00
Petr Skoda 7119e1a0a7 MDL-26904 fix funny constant typo 2011-03-20 19:25:47 +01:00
Petr Skoda 8f6c1f3488 MDL-26859 improve blog access control and prevent unnecessary blog includes 2011-03-20 13:34:51 +01:00
Petr Skoda 5b183f51a8 MDL-26859 do not show "my blog" link to guests and not-logged-in users 2011-03-20 12:34:41 +01:00
Petr Skoda fd85ceac57 MDL-26859 improve coding style in blog related blocks 2011-03-20 12:29:22 +01:00
Petr Skoda d9e0b80ffb MDL-26859 automatically enable and disable blog related blocks when bloglevel changed 2011-03-20 12:28:34 +01:00
Petr Skoda 61c32b7b27 MDL-26808 solve chicken-egg problem with moodle url on the user enrolments page 2011-03-20 11:03:16 +01:00
Petr Skoda d6614d667d MDL-26876 use correct blog post format when migrating to forum posts 2011-03-20 08:28:46 +01:00
Matteo Scaramuccia 36c0108a2f MDL-26894: merged from SCORM 1.2 (scorm_12lib.php) after an XDebug audit session 2011-03-19 11:15:10 +01:00
Tim Hunt 8c448e1c83 MDL-26861 quiz view align Summary of your previous attempts table consistenty
Fix thanks to Joseph Rézeau.
2011-03-19 09:31:27 +00:00
Tim Hunt c08643da97 MDL-26887 Refactor file_save_draft_area_files to separate out the file_rewrite_urls_to_pluginfile bit. 2011-03-18 16:41:29 +00:00
Eloy Lafuente (stronk7) 00570de599 MDL-26883 ddl - fix some function declarations 2011-03-18 14:40:20 +01:00
Sam Hemelryk ced9fc4453 theme-anomaly MDL-25621 Added support for the langmenu to the config.php file 2011-03-18 16:53:03 +08:00
Sam Hemelryk 34b9d4d4a5 portfolio MDL-23022 Fixed navigation when cancelling a portfolio export 2011-03-18 16:19:59 +08:00
Adam Olley 9bf6815753 user-selector MDL-25975 Fixed timeout bug in user selector that was affecting IE8 2011-03-18 15:02:55 +08:00
Sam Hemelryk 4c2820fbd8 navigation MDL-26875 Moved course type check into object check and moved JS string call to navigation block where the navigation JS is initialised. 2011-03-18 14:45:10 +08:00
Sam Hemelryk dd18964703 navigation MDL-26570 Removed test from navigation simpletests which is no longer possible due to new cm_info object implementation 2011-03-18 13:51:35 +08:00
Sam Hemelryk c755c87437 navigation MDL-26570 branchid was renamed to key in previous fixes, unit tests updated to reflect this 2011-03-18 13:35:46 +08:00
Jonathon Fowler c683165a4a insert a 'View all courses' link when loading category navigation entries from AJAX 2011-03-18 15:00:14 +10:00
Sam Hemelryk d30d67aad5 theme-overlay MDL-25834 Added images to replace the standard dropdown arrows (new images are white) 2011-03-18 11:26:33 +08:00
Sam Hemelryk 53b1445eeb theme-overlay MDL-25834 Added CSS to better display the custom menu in the overlay theme 2011-03-18 11:23:58 +08:00
Petr Skoda a3516c4908 MDL-26826 add resizing of youtube and vimeo and remove non-functional % embedding sizes, only pixel sizes work in object tags 2011-03-17 22:13:07 +01:00
Petr Skoda 3e7069e70b MDL-26726 fix whitespace and a few debug and comment typos 2011-03-17 21:34:34 +01:00
Petr Skoda d2b322ae3c MDL-26825 do not return any form data if form cancelled 2011-03-17 20:43:35 +01:00
Matteo Scaramuccia 77e889a0ef MDL-26863: fixed regression by an appropriate Merging From Branch using 1.9 2011-03-17 18:15:42 +01:00
Petr Skoda 10793e570c MDL-26837 remove blacklisted markup from algebra conversion 2011-03-17 15:36:21 +01:00
Tim Hunt ea003cd59a MDL-26848 get rid of stupid unsigned columns in the quiz statistics report. 2011-03-17 12:48:01 +00:00
Petr Skoda 72650054f4 MDL-26833 send forum notifications to active enrolled users only 2011-03-16 23:26:00 +01:00
Petr Skoda 505c641a52 MDL-26834 remove suspended users from the participants list 2011-03-16 22:10:12 +01:00
Petr Skoda 22a7796343 MDL-26803 fix switched values of autosubscribe defaults in user upload 2011-03-16 20:00:06 +01:00
Petr Skoda bc61aa4085 MDL-26803 add missing forcing of password reset when new password created in cron 2011-03-16 19:59:33 +01:00
Petr Skoda 4335aa296e MDL-26844 ugly workaround for PHP int size limitation in query limits
It looks like the pg driver or database is internally overflowing at least on my 64bit test setup, I think we can safely return all results when from + num is over our max PHP integer.
2011-03-16 16:15:43 +01:00
Petr Skoda 3d24c50144 MDL-26844 fix use of invalid integers in dml tests 2011-03-16 16:08:55 +01:00
sam marshall adaeccb66d MDL-26781 Ensure get_fast_modinfo $cm is compatible with get_record $cm 2011-03-16 15:03:01 +00:00
Tim Hunt b6eb984a45 MDL-26747 Allow course reports to have settings.php 2011-03-16 14:45:02 +00:00
Petr Skoda 200b4556d7 MDL-26842 make sure query parameter names are not reserved words in oracle driver 2011-03-16 15:20:32 +01:00
Andrew Robert Nicols d8e7d1a085 formslib: MDL-26557 Use correct variable name and specify defaults in function declaration
Signed-off-by: Andrew Robert Nicols <andrew.nicols@luns.net.uk>
2011-03-16 10:50:07 +00:00
Andrew Davis (andyjdavis) f51cda3d09 lesson MDL-26571 made lesson accept a custom scale 2011-03-16 17:27:59 +08:00
Dan Poltawski f723bd3df5 blocks admin MDL-26827- allow blocks settings to be an admin externalpage
This borrows from Tim's technique for qtypes in 1650a33cb
2011-03-16 09:12:22 +00:00
Petr Skoda 56babbcb76 weekly release 2011-03-16 09:35:33 +01:00
Andrew Davis (andyjdavis) b6e526585a message MDL-26607 fixed sql error when searching for users and limiting search to your courses 2011-03-16 10:58:07 +08:00
Andrew Davis (andyjdavis) 76027a9f65 lesson MDL-26768 lesson was inserting a grade of 0 when a user id and a null raw grade were supplied 2011-03-16 10:26:12 +08:00
Eloy Lafuente (stronk7) 93d8fdc201 MDL-26697 take out unused vars from formal white 2011-03-15 15:33:36 +01:00
Eloy Lafuente (stronk7) e5e64a4886 Merge branch 'w11_MDL-26697_20_media' of git://github.com/skodak/moodle
Conflicts:
	theme/formal_white/config.php
2011-03-15 15:21:02 +01:00
Jerome Mouneyrac d587f077ef MDL-26822 enrol_user now save the status + trivial typo change in a (bit) related file 2011-03-15 17:27:27 +08:00
Mary Evans 1bb4846249 Fix for MDL-25565 2011-03-15 01:34:40 +00:00
Petr Skoda b0b4ab1aff Merge branch 'MDL-26464_m20_v2' of github.com:skodak/moodle 2011-03-14 20:55:04 +01:00
Petr Skoda 0393a8b706 MDL-26464 improve coding style and fix phpdocs 2011-03-14 20:54:00 +01:00
Petr Skoda cd3d2823af Merge branch 'MDL-26228_grade_full_view2' of git://github.com/andyjdavis/moodle 2011-03-14 18:21:33 +01:00
Petr Skoda 65361ab836 Merge branch 'MDL-24724_course_profile' of git://github.com/andyjdavis/moodle 2011-03-14 18:18:24 +01:00
Petr Skoda e7104d2dba PULL-400 fix incorrect format_white theme file permissions from recent commits 2011-03-14 18:11:09 +01:00
Petr Skoda 3908f7ca1a Merge branch 'MDL-4633_m20' of git://github.com/rwijaya/moodle 2011-03-14 18:01:19 +01:00
Eloy Lafuente (stronk7) 6326817e0f Merge branch 'MDL-26767' of git://github.com/timhunt/moodle 2011-03-14 12:07:41 +01:00
Eloy Lafuente (stronk7) 3d63eb08f6 Merge branch 'MDL-22478-alternative-langcacheroot' of git://github.com/mudrd8mz/moodle 2011-03-14 12:03:36 +01:00
Dan Marsden 571ae25286 MDL-21432 backup - add plagiarism plugin hooks for course and module 2011-03-14 11:44:14 +01:00
Sam Hemelryk f786f01115 Merge rebased branch 'formal_white_2011030507' of git://github.com/kordan/moodle.git 2011-03-14 18:02:18 +08:00
Sam Hemelryk e1f517fcc7 theme-formal_white MDL-26300, MDL-25628 , MDL-25520 Fixed whitespace and nesting issues 2011-03-14 17:59:57 +08:00
kordan 8b759a9a48 theme-formal_white MDL-26789 Fixed up vertical centering in navbar 2011-03-14 17:33:58 +08:00
kordan 5e911b2ea5 theme-formal_white MDL-26300, MDL-25628 , MDL-25520 fixed problems in admin report section pages 2011-03-14 17:33:38 +08:00
kordan 0e412e87a4 theme-formal_white MDL-26300, MDL-25628 , MDL-25520 one more setting and logos with transparent background to allow custom header background color 2011-03-14 17:33:03 +08:00
kordan 4afb01dbb4 formal white from scratch fixing MDL-26300, MDL-25628 , MDL-25520 2011-03-14 17:33:02 +08:00
Kordan 3718dfc771 theme-formal_white MDL-26300, MDL-25628 , MDL-25520 FW last version 2011-03-14 17:32:14 +08:00
Dongsheng Cai 2848b97948 MDL-24877, do not display all courses in course category tree if there are too many courses in moodle 2011-03-14 17:04:06 +08:00
Sam Hemelryk e96aa1a669 Merge branch 's7_MDL-26583_filepicker_lang' of git://github.com/dongsheng/moodle 2011-03-14 16:05:37 +08:00
Sam Hemelryk 4bbe460316 Merge branch 'w11_MDL-26480_20_redirect' of git://github.com/skodak/moodle 2011-03-14 15:41:51 +08:00
Sam Hemelryk 85f1abe304 Merge branch 'MDL-13983' of git://github.com/timhunt/moodle 2011-03-14 15:33:49 +08:00
Sam Hemelryk 9fed82de9c Merge branch 'MDL-26785' of git://github.com/stronk7/moodle 2011-03-14 11:22:05 +08:00
Sam Hemelryk 2012d82a96 Fixed merge conflicts in nonzero theme 2011-03-14 10:59:58 +08:00
Sam Hemelryk 66c6e870ef Merge branch 'MDL-25304' of git://github.com/epsd/moodle 2011-03-14 10:54:24 +08:00
Sam Hemelryk b146486613 Merge branch 'MDL-25786-2' of git://github.com/epsd/moodle 2011-03-14 10:43:42 +08:00
Sam Hemelryk e9fda1c945 Merge branch 'MDL-25212' of git://github.com/epsd/moodle 2011-03-14 10:36:17 +08:00
Sam Hemelryk af99e7286b Merge branch 'MDL-25939-3' of git://github.com/epsd/moodle 2011-03-14 10:33:17 +08:00
Sam Hemelryk 77a5af1f12 Merge branch 'MDL-26084' of git://github.com/epsd/moodle 2011-03-14 10:19:52 +08:00
Sam Hemelryk df94dbd825 Merge branch 'MDL-24743' of git://github.com/epsd/moodle 2011-03-14 09:57:55 +08:00
Sam Hemelryk e2d50a6a00 Merge branch 'MDL-26711' of git://github.com/epsd/moodle 2011-03-14 09:51:27 +08:00
Eloy Lafuente (stronk7) 64f3208b7c Merge branch 'w11_MDL-26698_20_helphttps' of git://github.com/skodak/moodle 2011-03-14 02:12:46 +01:00
Eloy Lafuente (stronk7) 3c38ad5d79 Merge branch 'MDL-26643' of git://github.com/nebgor/moodle 2011-03-14 01:57:08 +01:00
Eloy Lafuente (stronk7) 98fd7dcb72 Merge branch 'w11_MDL-24071_20_tex' of git://github.com/skodak/moodle 2011-03-14 01:53:29 +01:00
Eloy Lafuente (stronk7) b8f249b43a Merge branch 'w11_MDL-26634_20_ldapsep' of git://github.com/skodak/moodle 2011-03-14 01:26:22 +01:00
Eloy Lafuente (stronk7) 9f091bcd45 Merge branch 's7_MDL-9376_qaforum' of git://github.com/dongsheng/moodle 2011-03-14 01:22:10 +01:00
Eloy Lafuente (stronk7) 008011875c MDL-25352 fix tiny typo 2011-03-14 01:12:38 +01:00
Eloy Lafuente (stronk7) 5869d05bb7 Merge branch 'w11_MDL-25352_20_replace' of git://github.com/skodak/moodle 2011-03-14 01:10:35 +01:00
Eloy Lafuente (stronk7) 2b1a23a6aa Merge branch 'MDL-26594' of git://github.com/nebgor/moodle 2011-03-14 00:54:36 +01:00
Eloy Lafuente (stronk7) d47070248f Merge branch 'MDL-26748' of git://github.com/timhunt/moodle 2011-03-14 00:53:28 +01:00
Petr Skoda c3b5e8290b MDL-25352 fix multiple issues in admin/replace.php
Make sure admins know things can go wrong, MSSQL and Oracle were never working, fix block_html config saving issue, skip a lot more tables because the data there is serialised() or can not be changed in case of config tables, more warnings and checkbox confirmation.
2011-03-14 00:51:42 +01:00
Eloy Lafuente (stronk7) 6bfddc2e38 Merge branch 'MDL-26773' of git://github.com/timhunt/moodle 2011-03-14 00:49:11 +01:00
Eloy Lafuente (stronk7) 7e0579cb8c Merge branch 'MDL-26714' of git://github.com/timhunt/moodle 2011-03-14 00:43:58 +01:00
Eloy Lafuente (stronk7) 9929445926 Merge branch 'MDL-19555_m20' of git://github.com/rwijaya/moodle 2011-03-14 00:35:03 +01:00
Eloy Lafuente (stronk7) f934143c6c Merge branch 'AMOS-install-strings' of git://github.com/mudrd8mz/moodle 2011-03-14 00:32:01 +01:00
Eloy Lafuente (stronk7) e9579e548d Merge branch 'w11_MDL-26621_20_profilemail' of git://github.com/skodak/moodle 2011-03-14 00:25:04 +01:00
Eloy Lafuente (stronk7) 5cd0d27089 Merge branch 'MDL-26730' of git://github.com/timhunt/moodle 2011-03-13 23:50:20 +01:00
Eloy Lafuente (stronk7) b5686d021b Merge branch 'MDL-26735' of git://github.com/timhunt/moodle 2011-03-13 23:41:48 +01:00
Eloy Lafuente (stronk7) d93c27ec95 Merge branch 'MDL-26734' of git://github.com/timhunt/moodle 2011-03-13 23:33:09 +01:00
Eloy Lafuente (stronk7) 908b892d9c Merge branch 'MDL-21446' of git://github.com/timhunt/moodle 2011-03-13 23:31:05 +01:00
Eloy Lafuente (stronk7) 22acfde076 Merge branch 'MDL-26733' of git://github.com/timhunt/moodle 2011-03-13 23:28:07 +01:00
Eloy Lafuente (stronk7) 40b204b863 Merge branch 'wip-MDL-26606' of git://github.com/sammarshallou/moodle 2011-03-13 23:22:04 +01:00
Eloy Lafuente (stronk7) 4f7fd61a7a Merge branch 'MDL-26724' of git://github.com/timhunt/moodle 2011-03-13 22:57:06 +01:00
AMOS bot 8dc0b786d0 Automatic installer lang files (20110313) 2011-03-13 19:45:51 +01:00
Petr Skoda 69542fb3af MDL-26698 use https for help ajax loginhttps pages 2011-03-13 17:08:50 +01:00
Petr Skoda f7f0909ce5 PULL-442 multiple TeX related fixes
Prevent moodle_url error, cleanup entity encoding and decoding, disable tex source view when TeX and Algebra plugins disabled, localise TeX source popup and prevent phishing attempts, fix executable permission of Algebra pearl script, prevent image error in tex debug when Tex/Ghostscript not configured properly, fix copyright blocks and phpdocs, improve coding style, fix wrong source display link in Algebra filter.
2011-03-13 15:18:07 +01:00
Petr Skoda b399e43592 MDL-26480 IIS redirect bug workaround
Credit goes to Zenger Sergey
2011-03-13 10:47:47 +01:00
Petr Skoda ee69d85a1f MDL-26634 LDAP NTLM SSO Multiple subnet separator is not specified and people use a wrong one
Credit goes to Inaki Arenaza.
2011-03-13 10:14:20 +01:00
Petr Skoda 181991e791 MDL-26621 respect email privacy settings on the main user profile and fix missing context 2011-03-12 19:04:26 +01:00
Petr Skoda fcd2cbaf1f MDL-26697 multiple media filtering fixes and improvements
Bug fixes:
    * fixed broken flash resizing via URL
    * upgraded Flowplayer
    * fixed invalid context in format_text()
    * all media related CSS moved from themes to filter and resources
    * fixed automatic pdf resizing in resources

Changes:
    * reworked filter_mediaplugin system settings - grouped by player type instead of individual extensions, added more information
    * improved regex url matching
    * removed old unused players, Eolas fix and UFO embedding
    * image embedding moved to filter_urltolink
    * new Flowplayer embedding API
    * accessibility and compatibility tweaks in Flowplayer
    * SWF embedding now works only in trusted texts, it is now enabled by default (works everywhere if "Allow EMBED and OBJECT tags" enabled)
    * new default video width and height

New features:
    * automatic Flash video resizing using information from video metadata
    * Flash HD video support (*.f4v)
    * Flash video embedding with HTML5 fallback - compatible with iOS and other mobile devices
    * Vimeo embedding
    * no-cookie YouTube site supported
    * HTML 5 audio and video with multiple source URLs and QuickTime fallback
    * more video and audio extensions in filelib.php
    * MP3 player colours customisable via CSS in themes
    * nomediaplugin class in a tag prevents media embedding
2011-03-12 17:42:52 +01:00
Eloy Lafuente (stronk7) e140197481 MDL-26785 module edit - icon in heading missing sometimes 2011-03-12 01:39:58 +01:00
stabijoh fab058e5d5 Added custom menu to nonzero theme, MDL-26711 2011-03-11 07:22:56 -05:00
David Mudrak c198593b0e MDL-22478 Allow alternative location of strings disk cache
Administrators can now specify $CFG->langcacheroot in their config.php for
alternative location of strings disk cache. If the alternative location is
not set, Moodle uses default $CFG->dataroot/cache/lang
2011-03-11 12:34:52 +01:00
Tim Hunt 74a43c7487 MDL-26773 PHP error notice when editing multianswer question
$course was removed from the save question methods in 2.0, but this occurrence was missed.
Thanks to Joseph Rezeau for the fix
2011-03-11 08:51:47 +00:00
Tim Hunt c159b07046 MDL-26767 responses report has the same unsigned subtract issue as overview (MDL-26416) 2011-03-11 07:37:29 +00:00
Aparup Banerjee 2a5302b62d MDL-26643 added missing message property to discussion object used to upgrade blog 2011-03-11 14:28:45 +08:00
Dongsheng Cai 67fc4f0025 MDL-9376, disallow student to see the other users posts in max editing time, credits to Vlas Voloshin and Charles Fulton 2011-03-11 11:22:13 +08:00
Rossiani Wijaya 6e571603c0 MDL-19555: add NULL string test to format_test(). Credit goes to Matej Vela. Thanks 2011-03-11 11:16:18 +08:00
Rossiani Wijaya e4e9611570 MDL-26464: remove 'add entry' link on setting block when it reachs the max number of records. Link removal does not apply to user who has data:manageentries capability (eg: teacher). 2011-03-11 10:03:14 +08:00
Tim Hunt c5169f4e78 MDL-26748 file links in qtype essay feedback broken.
Fix thanks to Respondus Inc.
2011-03-10 21:40:00 +00:00
stabijoh 66e937a44b MDL-25304 minor fix to Fusion theme forum post style 2011-03-10 13:52:26 -05:00
stabijoh d60cc8dbec Added custom menu support to Leatherbound theme, MDL-25212 2011-03-10 09:54:59 -05:00
sam marshall 69ae86ea5f MDL-26606 Theme backup: Minor improvement to make it more consistent with other backup 2011-03-10 12:57:27 +00:00
stabijoh ec5ced0d9d Additional work for MDL-25939, fix splash orange blog titles 2011-03-10 07:33:55 -05:00
stabijoh 2ef9c4eb67 MDL-26084 fix in Canvas theme for hide section icon 2011-03-10 07:15:03 -05:00
Rossiani Wijaya 91c2b0f068 MDL-4633: remove 'required' rule for user's profile description 2011-03-10 15:45:49 +08:00
Tim Hunt 9316d66121 MDL-26714 qtype_multianswer needs an implementation of compare_responses.
The main problem lack of this was causing is if you click through a quiz without answering any questions, mulitanswer questions would get marked as answered.
2011-03-09 18:08:18 +00:00
Rod Norfor 1e668c4d85 MDL-13983 show frozen radio buttons in a more accessible way. 2011-03-09 16:26:37 +00:00
Tim Hunt b053dcab0f MDL-26730 when going back from modedit.php to the course, go to the right section. 2011-03-09 15:51:15 +00:00
Tim Hunt f11672d84a MDL-26735 Questions file links broken when quiz_attempts.id and .uniqueid differ. 2011-03-09 15:46:59 +00:00
Tim Hunt 5f36713765 MDL-26734 fatal error on the quiz review page when reviews are not allowed.
Sorry silly error by me, merging code from my 2.1 work.
2011-03-09 15:22:15 +00:00
Tim Hunt 0484f1ef01 MDL-21446 truncate >31 char worksheet names that otherwise break Excel export. 2011-03-09 14:43:44 +00:00
stabijoh cea5d97b4c Additional fix for MDL-25786, use of #header in theme Magazine 2011-03-09 09:35:42 -05:00
stabijoh ca8f828cb5 MDL-24743 fix for Magazine theme forced font size 2011-03-09 08:01:27 -05:00
Aparup Banerjee c4a88609fe MDL-26594 renamed named param causing oracle reserved word error. - thanks to Luca Mazzola 2011-03-09 17:04:09 +08:00
Dongsheng Cai a6b53a7cbe FILEPICKER MDL-26583 filepicker should use core language string not string from modules 2011-03-09 17:00:01 +08:00
Petr Skoda c09604234a weekly release 2011-03-09 09:07:01 +01:00
Andrew Davis (andyjdavis) 48c235941f gradebook MDL-26228 moved scrollbar css from standard theme into base 2011-03-09 15:55:25 +08:00
Andrew Davis (andyjdavis) 8d22e342a9 user MDL-24724 added email to user course profile 2011-03-09 13:29:55 +08:00
Tim Hunt d93cafeaa1 MDL-26733 avoid possible notice in admin/user.php. 2011-03-08 17:48:05 +00:00
Tim Hunt 7e0218e79f MDL-26724 notice from numerical qtype when no answer is given. 2011-03-08 10:43:48 +00:00
Petr Skoda ed66022935 MDL-26625 do not look for session size if session not started 2011-03-08 10:31:16 +01:00
Petr Skoda 23c799459d Revert "MDL-26392, nwiki and creole format wiki pages should support file attachments"
This reverts commit 0c5e812ba7  because UI is going to be reimplemented.
2011-03-08 10:11:07 +01:00
Mary Evans 2150d1580f Added Custom CSS Settings - Fix for MDL-26700 2011-03-07 15:01:21 -08:00
Mary Evans 2fb0b3bd3b Edited theme/nonzero/style/core.css via GitHub 2011-03-07 09:27:30 -08:00
Eloy Lafuente (stronk7) 97b4297e13 Merge branch 'MDL-26517' of git://github.com/timhunt/moodle 2011-03-07 14:49:17 +01:00
Tim Hunt 71575a152c MDL-26517 display responses in reports by converting to plain text.
Following Eloy's testing, that seems to be the only safe way. It is also consistent with what has been done in Moodle 2.1.
2011-03-07 11:57:38 +00:00
Petr Skoda 4eca364392 Merge branch 'MDL-26458_PULL' of git://github.com/nebgor/moodle 2011-03-07 12:52:51 +01:00
Petr Skoda 8eade3d773 Merge branch 'MDL-26392_wiki_images' of git://github.com/dongsheng/moodle 2011-03-07 12:40:04 +01:00
Petr Skoda 25ca24d59f Merge branch 'MDL-25388_restore_activities_target' of git://github.com/stronk7/moodle 2011-03-07 12:32:46 +01:00
Petr Skoda 2c10c5f4e5 Merge branch 'wip-MDL-26423' of git://github.com/sammarshallou/moodle 2011-03-07 12:28:27 +01:00
Eloy Lafuente (stronk7) 5f9f0717fe Merge branch 'MDL-26609-version-maturity' of git://github.com/mudrd8mz/moodle 2011-03-07 11:49:28 +01:00
Petr Skoda 29c852088a Merge branch 'wip-MDL-26625' of git://github.com/sammarshallou/moodle 2011-03-07 10:25:28 +01:00
Petr Skoda 7a2f4c12b6 Merge branch 'MDL-26433_message_constants' of git://github.com/andyjdavis/moodle 2011-03-07 10:18:31 +01:00
Eloy Lafuente (stronk7) 9f3813016c Merge branch 'MDL-26190' of git://github.com/srynot4sale/moodle 2011-03-07 02:58:09 +01:00
Eloy Lafuente (stronk7) 34700d60f2 Merge branch 'MDL-20562-report-link-string' of git://github.com/mudrd8mz/moodle 2011-03-07 02:48:42 +01:00
Eloy Lafuente (stronk7) 51ecc3255b Merge branch 'm20_MDL-26672_aiccfix' of git://github.com/danmarsden/moodle 2011-03-07 02:37:28 +01:00
Eloy Lafuente (stronk7) 500422e6d0 Merge branch 'workshop-submissions-anonymity-and-availability' of git://github.com/mudrd8mz/moodle 2011-03-07 01:56:28 +01:00
Eloy Lafuente (stronk7) 5ff33ba14b Merge branch 'MDL-26324' of git://github.com/timhunt/moodle 2011-03-07 01:22:43 +01:00
Eloy Lafuente (stronk7) 34e30d9bce Merge branch 'MDL-26445' of git://github.com/timhunt/moodle 2011-03-07 01:12:55 +01:00
Eloy Lafuente (stronk7) 7d754148c4 Merge branch 'MDL-26685' of git://github.com/timhunt/moodle 2011-03-07 01:06:51 +01:00
Eloy Lafuente (stronk7) 2875c1507f Merge branch 'MDL-26520' of git://github.com/timhunt/moodle 2011-03-07 00:29:14 +01:00
Eloy Lafuente (stronk7) 5878504958 Merge branch 'MDL-26636' of git://github.com/timhunt/moodle 2011-03-07 00:25:54 +01:00
Eloy Lafuente (stronk7) 4b43b1074f backup MDL-26572 add new param to plugin and subplugin functions 2011-03-07 00:16:25 +01:00
Eloy Lafuente (stronk7) 07a36633f9 Merge branch 'MDL-26572_backup_sum' of git://github.com/andyjdavis/moodle 2011-03-07 00:10:16 +01:00
David Mudrak d67c20b873 MDL-26535 workshop: fixed availability of published and assessed submissions
While working on the new capability to view authors of published
submissions, I realized that published submissions are correctly listed
(implemented in 00bc77ee) but they can't be viewed by submission.php.
This patch fixes submission.php so that it allows to view published
submissions.

Also, I noticed that when the workshop is closed, the submissions that
were assessed by the user are not listed (as they were in the previous
phases) but submission.php provides access to them correctly. So I added
a code that lists assessed submissions in the closed phase.
2011-03-06 23:49:49 +01:00
Dan Marsden 69c3d39a9c AICC MDL-26672 fix for handling of value = 0 2011-03-07 09:54:33 +13:00
andyjdavis 25bd5c75ab message MDL-26433 refactored the constants in messaging 2011-03-06 22:03:49 +08:00
ppichet 8f63ab1f44 MDL-26445 question -fix numerical unit grade
fix unit penalty grading and display


Signed-off-by: ppichet <pichet.pierre@uqam.ca>
2011-03-05 20:13:50 +00:00
Tim Hunt 209442ce24 MDL-26517 HTML tags visible in the response history table and quiz reports. 2011-03-05 19:51:38 +00:00
Tim Hunt 4a6f461830 MDL-26685 each attempt builds on last did not work when quiz_attemts.id and question_attempts.id were not equal. 2011-03-05 19:27:32 +00:00
Tim Hunt 231ec77323 MDL-26520 random tf questions that had not been answered were shown as answered on the summary page.
This was a regression from MDL-26236 thanks to some brain-dead PHP behaviour.
2011-03-05 16:33:42 +00:00
Tim Hunt b302591de8 MDL-26636 fix typo in language string.
Thanks to Luis de Vasconcelos.
2011-03-05 15:19:49 +00:00
Eloy Lafuente (stronk7) 165b7bd987 MDL-25388 restore - confusing options restoring 1-activity 2011-03-04 19:45:43 +01:00
Tim Hunt 0357171e68 MDL-26324 overall feedback problem when quiz changed to being graded out of 0 2011-03-04 17:20:12 +00:00
Aparup Banerjee 7fedc2c25e lib MDL-26458 adding unit tests to test cursors.
-added test with limits and order by with table aliases to test_get_records_sql()
 -added test_recordset_locks_delete() and test_recordset_locks_update()
 - added out of range limits test to test_get_records_sql()
2011-03-05 01:18:36 +08:00
sam marshall 89213d0041 backup MDL-26606 Backup should allow themes to have course data; also fix course theme restore 2011-03-04 15:53:48 +00:00
sam marshall b031caf858 lib MDL-26423 Added support for ->allowid option in format_text 2011-03-04 15:53:10 +00:00
sam marshall f07704d2a2 lib MDL-26625 Add session size info to perfdebug block 2011-03-04 15:52:19 +00:00
David Mudrak e13d02f544 MDL-26535 workshop: new capability to control the anonymity of published submissions
Re-using 'mod/workshop:viewauthornames' would not be a happy option here
because teacher would have to change local overrides every time when
they were closing or re-opening the workshop (if they wanted anonymous
assessment but non-anonymous hall of fame).
2011-03-04 14:08:00 +01:00
David Mudrak 757bade1f6 MDL-26684 workshop: fixed missing href attribute in the link to the own submission
This was caused by incorrect construction of workshop_submission_summary.
Instead of direct initiation, the helper method should be used. The
helper adds a property 'url' needed to render 'href' later.
2011-03-04 14:07:50 +01:00
David Mudrak de6aaa7295 MDL-26683 workshop: fixed typos in code comments 2011-03-04 13:03:49 +01:00
Eloy Lafuente (stronk7) 3479ba4d48 MDL-26458 sqlsrv - limit impl using scrollable sets 2011-03-04 16:12:37 +08:00
Dongsheng Cai 0c5e812ba7 MDL-26392, nwiki and creole format wiki pages should support file attachments 2011-03-04 15:44:20 +08:00
David Mudrak ea118bed0c MDL-20562 Do not use a capability name as a navigation node title
Ideally all reports should use their pluginname in the navigation tree.
In this particular case, the patch fixes two issues: using the
capability name as the report title in the navigation and incorrect
pluginname defined for coursereport_log.
2011-03-04 06:03:39 +01:00
David Mudrak 1a4d6a5b60 MDL-26609 Display information about the current version during the upgrade
As Eloy Lafuente noticed in the tracker discussion, we display the
information about the current version in the browser window title but
not at the screen itself. The patch fixes that by displaying the
information in the page heading instead of the page title.

Eloy's original idea to put the information into the grey message box
would require a change of [upgradesure,core_admin] string because
unfortunately it does not expect $a as an object but as a plain string.
2011-03-04 05:59:08 +01:00
David Mudrak dc41abd808 MDL-26609 Provide a link to a docs page for more help with Moodle versions and their maturity
Thanks Martin Dougiamas for this suggestion.
2011-03-04 05:59:08 +01:00
David Mudrak 3d673fc474 MDL-26609 Admins are warned if they try to install or upgrade to unstable version
The commit introduces four new constants that can be used to declare a
maturity level of Moodle core and, in the future, of extension plugins.
If the administrator is about to install or upgrade Moodle to a version
that is not considered as production-ready yet, a warning is displayed
before any change in the database.
2011-03-04 05:59:08 +01:00
Andrew Davis (andyjdavis) 98529b009b backup MDL-26572 made restore store null instead of 0 2011-03-04 12:14:00 +08:00
Petr Skoda 48fe5c6cf9 weekly release 2011-03-03 18:26:24 +01:00
Petr Skoda 84fed015d8 Revert "gradebook MDL-26228 moved scroll bar css from standard theme into base"
This reverts commit 54c3b90ec6.
2011-03-02 09:09:06 +01:00
Aaron Barnes 0b15b43b3e MDL-26190 completion blocks: Show messages rather than hiding the block 2011-03-02 16:34:19 +13:00
Eloy Lafuente (stronk7) 5eb1e14aa4 Merge branch 'w09_MDL-26564_20_uploadusers' of git://github.com/skodak/moodle 2011-03-01 19:02:04 +01:00
Petr Skoda 2197b642b3 MDL-26564 print password when changed 2011-03-01 17:29:52 +01:00
Petr Skoda faceca9176 MDL-26564 fix reversed password policy check 2011-03-01 17:22:00 +01:00
Petr Skoda 431ac39634 MDL-26623 fix file permissions
The permissions are now going to be verified as part of the weekly release process.
2011-03-01 12:26:49 +01:00
Petr Skoda 2a921ee985 MDL-26047 fix string letter case and whitespace 2011-03-01 12:11:31 +01:00
Eloy Lafuente (stronk7) 8cf42d248e Merge branch 'w09_MDL-26564_20_uploadusers' of git://github.com/skodak/moodle 2011-03-01 12:05:52 +01:00
Eloy Lafuente (stronk7) 847753d497 Merge branch 'w09_MDL-26616_20_resourcelinks' of git://github.com/skodak/moodle 2011-02-28 18:41:03 +01:00
Eloy Lafuente (stronk7) 8ef8ec689e MDL-26047 nimble theme - changing 2 "fusion" ocurrences 2011-02-28 12:28:44 +01:00
Eloy Lafuente (stronk7) c2a975e68d Merge branch 'MDL-26047' of git://github.com/ptrkmkl/moodle 2011-02-28 12:27:46 +01:00
Eloy Lafuente (stronk7) a8ccca5325 MDL-26404 messages - move textlib instance out from loop 2011-02-28 10:35:21 +01:00
Eloy Lafuente (stronk7) 77e4bb774b Merge branch 'MDL-26404_nav_too_wide' of git://github.com/andyjdavis/moodle 2011-02-28 10:17:51 +01:00
Petr Skoda 70e6628ea3 Merge branch 'MDL-26576' of git://github.com/timhunt/moodle 2011-02-28 10:06:03 +01:00
Petr Skoda 589028b203 Merge branch 'MDL-25760' of git://github.com/ptrkmkl/moodle 2011-02-28 10:03:57 +01:00
Petr Skoda bca4fa81a8 Merge branch 'MDL-26451_alfresco_repo' of git://github.com/dongsheng/moodle 2011-02-28 10:01:03 +01:00
Petr Skoda ed9fd13fd6 Merge branch 'MDL-26228_grade_full_view' of git://github.com/andyjdavis/moodle 2011-02-28 09:59:13 +01:00
Petr Skoda 7c4c754a89 Merge branch 'MDL-26442_qtype_match' of git://github.com/stronk7/moodle 2011-02-28 09:56:36 +01:00
Petr Skoda 16fd74a3a5 Merge branch 'm20_MDL-26545_userpicfix' of git://github.com/danmarsden/moodle 2011-02-28 09:48:38 +01:00
David Mudrak 29cbe43189 MDL-13481 Strings fullname and shortname are now deprecated
This is a final cleanup commit of fullname and shortname issue. All
places where these strings were detected yet have been replaced with
proper fullnamecourse or fullnameuser or some other context specific
string.

AMOS BEGIN
 CPY [fullname,core],[outcomefullname,core_grades]
 CPY [shortname,core],[outcomeshortname,core_grades]
 CPY [name,core],[rolefullname,core_role]
 CPY [shortname,core],[roleshortname,core_role]
AMOS END
2011-02-28 09:42:50 +01:00
Petr Skoda 8bdb31ed54 MDL-26564 fix regressions and other problems in csv user upload
This patch fixes incorrect password creating, updating and resetting, updating of user fields, unsupported auth plugins are correctly identified, modification of mnethostid is prevented, fixed problem with email duplicates, new password is generated for users without email, etc. It also includes coding style improvements, more inline docs, future TODOs and license information.
2011-02-28 08:27:31 +01:00
Dan Marsden 629f5021b3 SCORM MDL-26545 - fix user object passed to user_picture renderer 2011-02-28 12:33:29 +13:00
Petr Skoda 3d8f1d3abc MDL-26616 fix broken resource modinfo caused by invalid sortorder upgrade 2011-02-27 22:54:41 +01:00
Andrew 54c3b90ec6 gradebook MDL-26228 moved scroll bar css from standard theme into base 2011-02-27 21:49:00 +08:00
Dongsheng Cai b9825e8e29 REPOSITORY MDL-23951 alfresco repository plugin supports returning external links 2011-02-24 10:56:30 +08:00
Eloy Lafuente (stronk7) 303c04f7d0 MDL-26442 restore - missing new in qtype match exception 2011-02-24 02:24:18 +01:00
Eloy Lafuente (stronk7) 2b37004c28 weekly release 2011-02-23 20:03:30 +01:00
Tim Hunt 92c4354ff9 MDL-26576 avoid notices one quizzes with no overall feedback. 2011-02-23 11:42:37 +00:00
Andrew b2bce32ff0 message MDL-26404 trimming course short to prevent long names messing up the UI 2011-02-23 11:00:41 +08:00
Eloy Lafuente (stronk7) fa188aa0a2 Merge branch 'MDL-26546-workshop-restore' of git://github.com/mudrd8mz/moodle 2011-02-22 23:00:46 +01:00
David Mudrak 1dade8b185 MDL-26546 Workshop: fixed embedded images in Number of errors grading form
Because of this typo, embedded images were not loaded when the
assessment form was re-edited. Thanks Helen Foster for spotting this.
2011-02-22 22:19:16 +01:00
Eloy Lafuente (stronk7) d6211dce9a Merge branch 'MDL-25816_jabber_preference' of git://github.com/andyjdavis/moodle 2011-02-22 16:51:49 +01:00
Eloy Lafuente (stronk7) ec58c9ddf0 Merge branch 'MDL-26537-flickr-callback-url' of git://github.com/mudrd8mz/moodle 2011-02-22 16:23:08 +01:00
Eloy Lafuente (stronk7) 5df4d6ccab Merge branch 'MDL-26513_restrict_modules' of git://github.com/stronk7/moodle 2011-02-22 16:12:43 +01:00
Eloy Lafuente (stronk7) 9da0fc11ac Merge branch 'MDL-26532' of git://github.com/nebgor/moodle 2011-02-22 15:40:30 +01:00
Eloy Lafuente (stronk7) 0783533066 Merge branch 'AMOS-install-strings' of git://github.com/mudrd8mz/moodle 2011-02-22 15:37:24 +01:00
Eloy Lafuente (stronk7) a8f690e4e6 Merge branch 'MDL-21250-capitalized-strings' of git://github.com/mudrd8mz/moodle 2011-02-22 15:35:50 +01:00
Helen Foster 6cb66ae00e MDL-21250 Get rid of capitalized words in titles 2011-02-22 14:15:58 +01:00
Eloy Lafuente (stronk7) 908053e21d Merge branch 'MDL-25122' of git://github.com/timhunt/moodle 2011-02-22 12:41:28 +01:00
Eloy Lafuente (stronk7) 915a20f5a5 Merge branch 'MDL-26546-workshop-restore' of git://github.com/mudrd8mz/moodle 2011-02-22 12:24:48 +01:00
Eloy Lafuente (stronk7) 0797530336 Merge branch 'MDL-26416' of git://github.com/timhunt/moodle 2011-02-22 12:18:52 +01:00
Eloy Lafuente (stronk7) c5530f4151 Merge branch 'fix-symbian' of git://github.com/darenc/moodle 2011-02-22 11:45:57 +01:00
Eloy Lafuente (stronk7) f7edca80b0 Merge branch 'MDL-26524' of git://github.com/grabs/moodle 2011-02-22 11:35:29 +01:00
Eloy Lafuente (stronk7) 3521e87f06 Merge branch 'MDL-26060' of git://github.com/grabs/moodle 2011-02-22 11:30:33 +01:00
Eloy Lafuente (stronk7) f44872427f Merge branch 'MDL-26435_rem_commented_out_code' of git://github.com/andyjdavis/moodle 2011-02-22 11:26:56 +01:00
Eloy Lafuente (stronk7) d33d813d91 Merge branch 'lesson-rendering' of git://github.com/mudrd8mz/moodle 2011-02-22 11:25:03 +01:00
Eloy Lafuente (stronk7) e49c60345e Merge branch 'wip-MDL-26507' of git://github.com/sammarshallou/moodle 2011-02-22 11:17:16 +01:00
Eloy Lafuente (stronk7) 29336fb13c Merge branch 'MDL-26461_change_rating_scale' of git://github.com/andyjdavis/moodle 2011-02-22 11:06:23 +01:00
Eloy Lafuente (stronk7) cc31313c4b Merge branch 'MDL-26440_uid' of git://github.com/andyjdavis/moodle 2011-02-22 10:27:38 +01:00
Andrew Davis (andyjdavis) 6c0f13a5bc message MDL-25816 added safety checks in form processing 2011-02-22 16:05:01 +08:00
David Mudrak 7c26c3f875 MDL-26546 Workshop: fixed incorrect mapping name in the restore of assessment forms
There was a regression of 8fa86f and ac0f8f where I changed the mapping
names but did not use the new names in add_related_files() call.

All credit goes to Eloy Lafuente for spotting the problem and giving me
a hint on how to fix it.
2011-02-22 00:54:13 +01:00
AMOS bot d5a1cca1af Automatic installer lang files (20110222) 2011-02-22 00:27:05 +01:00
David Mudrak dd2645d304 MDL-26537 Portfolio: Flickr setup instruction contains correct callback URL
There was a bug due to the code copied from portfolio_boxnet plugin.
2011-02-21 16:00:12 +01:00
Eloy Lafuente (stronk7) e4f72d1428 MDL-26513 restore - observe target site restrictmodulesfor setting 2011-02-21 15:58:20 +01:00
Charles Fulton fdef13e692 MDL-26507: improper use of assignment operater causes grade checks to fail 2011-02-21 12:54:37 +00:00
Martin Dougiamas eabbb121bb Moodle 2.0.2 release 2011-02-21 13:05:57 +01:00
Aparup Banerjee d042ff06b3 assignment MDL-26532 fixed regression in assignment_cron() while processing messaging. 2011-02-21 15:43:30 +08:00
Andrew Davis (andyjdavis) aafa4f324a rating MDL-26461 fixed an off by 1 bug that made the safeguard against too high ratings not work 2011-02-21 10:48:38 +08:00
Andreas Grabs 5cf4fa4684 MDL-26524 - Group Filtering Errors 2011-02-20 18:18:44 +01:00
Andreas Grabs 7cc5cec6e1 MDL-26060 - Sorting by date on user list for responses list throws an error 2011-02-20 17:45:10 +01:00
Petr Skoda d20b9662fc emergency release 2011-02-18 20:01:50 +01:00
Tim Hunt 79c6e3a096 MDL-25122 Quiz review page does not check and enforce separate groups mode. 2011-02-18 18:53:37 +00:00
Eloy Lafuente (stronk7) 78106a24ad Merge branch 'em_MDL-25944_20_forummail' of git://github.com/skodak/moodle 2011-02-18 18:42:45 +01:00
Eloy Lafuente (stronk7) 395181f9bb Merge branch 'master' of git.moodle.org:/git/integration 2011-02-18 18:25:18 +01:00
Eloy Lafuente (stronk7) f5c452a3b3 Merge branch 'em_MDL-26476_20_grp' of git://github.com/skodak/moodle 2011-02-18 18:25:04 +01:00
Petr Skoda ed3eb9ea74 Merge branch 'PULL-314' of git://github.com/mudrd8mz/moodle 2011-02-18 18:20:44 +01:00
David Mudrak ed79b89b85 MDL-26010 Reformatting SQL of the previous Andrew's fix
I have reformatted the SQL according to the style used in Moodle code to
improve readability of the query. Added sql_compare_text() to the right
side of the comparison, even though the current callers provide integers
here (just in case).
2011-02-18 17:33:37 +01:00
Andrew Davis 42291c6161 MDL-26010 External blog synchronization removes non-relevant post records 2011-02-18 17:19:41 +01:00
Tim Hunt 19a9f1124d MDL-26416 avoid subtracting two unsigned ints, which breaks MySQL since 5.5.5. 2011-02-18 14:10:06 +00:00
Tim Hunt bbc2d0ba31 MDL-26416 quiz overview report, clean up the code before making the real bug fix.
Cleaning up the code like this will make the real bug-fix easier to understand.
2011-02-18 14:10:04 +00:00
Daren Chandisingh cb6b733232 Change 'Simbian' to 'Symbian' 2011-02-18 12:28:26 +00:00
David Mudrak ffdf7f8a24 MDL-25899 Lesson: fixed page content rendering
Form element 'header' used to be used for rendering the page contents.
This led to layout problems in non-gecko browsers. This patch fixes the
issue by using raw 'html' element to render the page contents.
2011-02-18 11:43:24 +01:00
Petr Skoda 18ff4d427e MDL-25944 fix broken images in forum emails and fix invalid $group variable name 2011-02-18 11:00:43 +01:00
Joseph Rezeau c76cd2ede1 MDL-26113 Lesson: temporary fix of page content alignment
That rendering method should not use cell style attribute at all.
Instead, the alignment should be controlled by CSS. However, this will
require more massive changes in the Lesson code to be done by the module
maintainer. As a temporary fix, left alignment is set as it usually
matches the layout that students see.
2011-02-18 10:43:25 +01:00
andyjdavis 7bbe971548 general MDL-26440 removed references to uid in SQL queries as its a reserved word in Oracle 2011-02-18 15:51:50 +08:00
Petr Skoda 12923c92b1 MDL-26476 fix incorrect fetching of user groups in modinfo 2011-02-17 18:19:41 +01:00
Eloy Lafuente (stronk7) 3b3e2cecf3 MDL-26361 scorm - fix upgrade on change to not null
Every time one column is changed from null to not null
we must ensure that there aren't nulls at all or the
DDL statement will fail, as was reported here. The
simplest way, just apply for the default when the column is null.
2011-02-17 17:25:44 +01:00
andyjdavis 731f8516bc message MDL-26435 removed commented out code 2011-02-17 11:03:18 +08:00
Petr Skoda 99faefb29b weekly release 2011-02-17 01:21:29 +01:00
Eloy Lafuente (stronk7) 2e629eb861 Merge branch 'w07_MDL-26452_20_resmess' of git://github.com/skodak/moodle 2011-02-16 21:51:12 +01:00
Petr Skoda f3a7f485c4 MDL-26452 fix resource mod regression breaking upgrade on Windows 2011-02-16 21:41:04 +01:00
Petr Skoda 3bc644ce70 Merge branch 'MDL-26405_take_two' of git://github.com/stronk7/moodle 2011-02-16 20:24:54 +01:00
Eloy Lafuente (stronk7) 0149e6c713 MDL-26405 restore - dispatch able to skip branches
after this change any restore_structure_step processor
method is able to instruct the dispatcher about to skip
any path below it. Until now, we were doing the checks on
each child processor method, but that was inneficient and
prone to errors (easy to miss the check in a child so some
orphaned piezes of restore may be causing mess here and there).
Once implemented, it's simlpy a matter of the parent deciding if
all its children must be processed or no. Easier for developers
and also small speed improvement because avoids unnecesary
dispatching/processing to happen.

Surely only will be used in parts of core, like in question_categories,
saving 50-60 sub processors (sub-paths) to be dispatched.
2011-02-16 19:13:56 +01:00
Petr Skoda c9e12de4e3 Merge branch 'MDL-26405_qtype_exception_wip' of git://github.com/stronk7/moodle 2011-02-16 09:59:14 +01:00
Aparup Banerjee 37695a6ff6 glossary MDL-22970 uid is reserved in ORACLE! changed to userid 2011-02-16 04:46:20 +01:00
Eloy Lafuente (stronk7) 0ff7159edb MDL-26405 restore - incorrectly thrown exception 2011-02-15 23:28:00 +01:00
Eloy Lafuente (stronk7) 534f22d141 Merge branch 'w07_MDL-26381_20_changepw' of git://github.com/skodak/moodle 2011-02-15 22:03:00 +01:00
Petr Skoda 7ea77a571f MDL-26381 prevent security warning when changing password and loginhttps is enabled 2011-02-15 21:54:29 +01:00
Eloy Lafuente (stronk7) c04c06dc8e Merge branch 'MDL-25616_recent_messages' of git://github.com/andyjdavis/moodle
Conflicts fixed:
	message/index.php
	message/lib.php
2011-02-15 19:26:21 +01:00
Eloy Lafuente (stronk7) 07e21f6054 Merge branch 'w07_MDL-26211_20_https' of git://github.com/skodak/moodle 2011-02-15 16:45:22 +01:00
Petr Skoda 2a9c0d0578 MDL-26211 improve detection of https from _SERVER 2011-02-15 15:33:29 +01:00
Petr Skoda d83bad412a MDL-26119 fixing regression caused by previous merge in PULL-294
We can not use empty() on function directly, the PHP docs were incorrect.
2011-02-15 15:06:24 +01:00
Eloy Lafuente (stronk7) da622b497b Merge branch 'w07_MDL-25778_20_defaultcity' of git://github.com/skodak/moodle 2011-02-15 12:40:43 +01:00
Eloy Lafuente (stronk7) 9aaa767c80 Merge branch 'w07_MDL-26351_20_instquotes' of git://github.com/skodak/moodle 2011-02-15 12:32:39 +01:00
Eloy Lafuente (stronk7) 418b3b6e98 MDL-26414 gloosary - fix wrong init introduced by MDL-26371 2011-02-15 10:53:23 +01:00
Petr Skoda 64529cb6d2 Merge branch 'MDL-26119_message_logging' of git://github.com/andyjdavis/moodle 2011-02-15 10:39:54 +01:00
jeromemoodle c73f196391 MDL-26179 implement the new 5 registration use cases 2011-02-15 10:24:32 +01:00
Petr Skoda 438e22cc50 MDL-26351 fix property and docs typo
Credit goes to David Mudrak.
2011-02-15 09:46:35 +01:00
Aparup Banerjee fb473042ae glossary MDL-22970 changed fieldname so that MSSQL does not complain about same fieldnames
something should be done about this in the driver
2011-02-15 09:33:25 +01:00
Petr Skoda 9449d0c5e8 MDL-25778 fix default country and city on user upload form and revert change in auth plugins
Auth plugins should have separate defaults from site defaults).
2011-02-15 09:13:33 +01:00
andyjdavis 3a00a167c6 message MDL-26119 fixed up the logged URL 2011-02-15 14:24:13 +08:00
andyjdavis bcab42daf2 message MDL-25616 adding recent conversations and recent notifications screens 2011-02-15 11:17:38 +08:00
Eloy Lafuente (stronk7) aabd2f0064 Merge branch 'w07_MDL-24125_20_admintreecache' of git://github.com/skodak/moodle 2011-02-15 01:38:12 +01:00
Eloy Lafuente (stronk7) b180a11998 Merge branch 'MDL-26236' of git://github.com/timhunt/moodle 2011-02-15 01:16:33 +01:00
Eloy Lafuente (stronk7) bcbb590227 Merge branch 'MDL-26365' of git://github.com/timhunt/moodle 2011-02-15 01:03:23 +01:00
Eloy Lafuente (stronk7) 46388c9cf9 Merge branch 'MDL-26369' of git://github.com/timhunt/moodle 2011-02-15 00:58:01 +01:00
Aparup Banerjee fe1776b9f2 MDL-22970 glossary - perf. improvements in recent activity 2011-02-15 00:33:13 +01:00
Eloy Lafuente (stronk7) 2623f6bef2 Merge branch 'w07_MDL-25778_20_defaultcity' of git://github.com/skodak/moodle 2011-02-14 23:24:52 +01:00
Petr Skoda 2453531f03 Merge branch 'MDL-26337' of git://github.com/timhunt/moodle 2011-02-14 22:15:30 +01:00
Petr Skoda 3fa0670a98 Merge branch 'MDL-26109' of git://github.com/nebgor/moodle 2011-02-14 22:10:37 +01:00
Petr Skoda 5d41c24d9f Merge branch 'MDL-26312-workshop-upgrade' of git://github.com/mudrd8mz/moodle 2011-02-14 21:45:57 +01:00
Petr Skoda 7a8fe6fa41 Merge branch 'MDL-25863_automated_backups_wip' of git://github.com/stronk7/moodle 2011-02-14 21:42:50 +01:00
David Mudrak 0c3c0de198 MDL-26312 Workshop: unset temporary arrays in upgrade code
Spotted by Petr Skoda during the code review.
2011-02-14 21:38:50 +01:00
Eloy Lafuente (stronk7) 8afbe44f7d MDL-25863 backup - fix removal of old automated backup, both in filearea and filesystem 2011-02-14 21:38:45 +01:00
Petr Skoda 9ceaf7b5a0 Merge branch 'm20_MDL-26212_resizefix' of git://github.com/danmarsden/moodle 2011-02-14 21:37:37 +01:00
Eloy Lafuente (stronk7) 02cf691951 MDL-25863 backup - take rid of dupe code for filename calculations 2011-02-14 21:36:27 +01:00
Petr Skoda cbbc272542 Merge branch 'MDL-26371_distinct_text' of git://github.com/stronk7/moodle 2011-02-14 21:19:35 +01:00
Petr Skoda 251e5a8b62 Merge branch 'MDL-22146_backup_course_format_wip' of git://github.com/stronk7/moodle 2011-02-14 21:08:19 +01:00
Petr Skoda 995b6ff605 Merge branch 'MDL-26229_restore_attempts_wip' of git://github.com/stronk7/moodle 2011-02-14 21:02:49 +01:00
Petr Skoda e027bfcfaa Merge branch 'MDL-24898_strip_and_trunc_subjects_wip' of git://github.com/stronk7/moodle 2011-02-14 20:57:13 +01:00
Petr Skoda a60a943696 Merge branch 'MDL-25553_lesson_jumpto_wip' of git://github.com/stronk7/moodle 2011-02-14 20:39:31 +01:00
Petr Skoda 47a13ff99a Merge branch 'MDL-25612_rss_block' of git://github.com/stronk7/moodle 2011-02-14 20:37:28 +01:00
Petr Skoda d2592c9b54 Merge branch 'MDL-26399_oracle_restore_wip' of git://github.com/stronk7/moodle 2011-02-14 20:34:58 +01:00
Eloy Lafuente (stronk7) 15ffec3698 Merge branch 'w07_MDL-25626_20_completionerror' of git://github.com/skodak/moodle 2011-02-14 20:15:37 +01:00
Petr Skoda fa7f750c60 MDL-25778 add defaultcity option
This is based on patch by Jonathan Harker.
2011-02-14 20:10:50 +01:00
Eloy Lafuente (stronk7) 89bf60cdbc Merge branch 'MDL-26338' of git://github.com/timhunt/moodle 2011-02-14 19:57:38 +01:00
Eloy Lafuente (stronk7) d84fe4c8a6 MDL-26399 restore - fix oracle/mssql problems 2011-02-14 19:42:57 +01:00
Petr Skoda 2e98a7475a MDL-25626 fix previous incorrect fix incorrect cm id in completion report 2011-02-14 19:41:05 +01:00
Eloy Lafuente (stronk7) 1ae279b448 Merge branch 'MDL-26356' of git://github.com/ppichet/moodle 2011-02-14 18:29:46 +01:00
Eloy Lafuente (stronk7) 68e05ea6e6 Merge branch 'MDL-26332' of git://github.com/timhunt/moodle 2011-02-14 18:26:33 +01:00
Eloy Lafuente (stronk7) 69c53045ba Merge branch 'mdl-26299' of git://github.com/mackensen/moodle 2011-02-14 18:23:56 +01:00
Eloy Lafuente (stronk7) 396dca7cb9 Partially merge w07_MDL-25575_20_contexttrouble. See PULL-299 2011-02-14 17:58:21 +01:00
Petr Skoda cde44edc7a MDL_24125 admin tree fast category lookup 2011-02-14 17:47:43 +01:00
Eloy Lafuente (stronk7) 7d87147203 Merge branch 'w07_MDL-26142_20_immediatelly' of git://github.com/skodak/moodle 2011-02-14 17:38:22 +01:00
Eloy Lafuente (stronk7) 0dd8cb88e9 Merge branch 'w07_MDL-23939_20_completeuser' of git://github.com/skodak/moodle 2011-02-14 17:10:29 +01:00
Eloy Lafuente (stronk7) 76b7e2d1d6 Merge branch 'w07_MDL-26389_20_profile' of git://github.com/skodak/moodle 2011-02-14 15:58:26 +01:00
Petr Skoda 81b58cc227 MDL-26389 improve profile and search engine privacy 2011-02-14 15:42:26 +01:00
Eloy Lafuente (stronk7) 4acc624d62 Merge branch 'w07_MDL-26131_20_collapsible' of git://github.com/skodak/moodle 2011-02-14 15:06:28 +01:00
Eloy Lafuente (stronk7) f0e28c7e67 Merge branch 'w07_MDL-26223_20_calblock' of git://github.com/skodak/moodle 2011-02-14 14:38:02 +01:00
Eloy Lafuente (stronk7) a49d8aa25a Merge branch 'w07_MDL-25974_20_switchhidden' of git://github.com/skodak/moodle 2011-02-14 14:23:05 +01:00
Eloy Lafuente (stronk7) 0db846acda Merge branch 'w07_MDL-25998_20_enrolrole' of git://github.com/skodak/moodle 2011-02-14 12:41:16 +01:00
Eloy Lafuente (stronk7) d2a201c83b Merge branch 'w07_MDL-26314_20_initcall' of git://github.com/skodak/moodle 2011-02-14 12:35:18 +01:00
Eloy Lafuente (stronk7) 222a500b31 Merge branch 'w07_MDL-26383_20_blogupg' of git://github.com/skodak/moodle 2011-02-14 12:31:50 +01:00
David Mudrak f593111b67 MDL-26312 Workshop: data integrity check to detect eventual course_modules corruption
Because of a bug in Workshop upgrade code, multiple workshop course_modules can
potentially point to a single workshop instance. The chance is pretty low as in most cases,
the upgrade failed. But under certain circumstances, workshop could be upgraded with
this data integrity issue. We want to detect it now and let the admin know.
2011-02-14 10:11:42 +01:00
Petr Skoda a8759c65e4 Merge branch 'AMOS-install-strings' of git://github.com/mudrd8mz/moodle 2011-02-14 09:52:28 +01:00
Petr Skoda db30cfca84 MDL-25215 fix file.JPG.jpg extension problems 2011-02-14 09:50:07 +01:00
Petr Skoda 419814db02 Merge branch 'm20_MDL-25215_filepicker_saveas' of git://github.com/dongsheng/moodle 2011-02-14 09:43:06 +01:00
AMOS bot 0ef1f80e3b Automatic installer lang files (20110214) 2011-02-14 09:36:04 +01:00
Petr Skoda cbe4cbc268 Merge branch 'MDL-26353-database-import-help' of git://github.com/mudrd8mz/moodle 2011-02-14 09:20:53 +01:00
Petr Skoda 3c5b312b8d Merge branch 'MDL-25991_actionnav' of github.com:skodak/moodle 2011-02-14 08:57:58 +01:00
Dan Marsden 71550f6fa1 MDL-26212 - fix scorm player size on resize of browser window - bump scorm version as JS is changed. Kudos to Piers for patch 2011-02-14 14:50:43 +13:00
Eloy Lafuente (stronk7) 478d281815 Merge branch 'w07_MDL-26153_20_yuicombo' of git://github.com/skodak/moodle 2011-02-14 02:10:11 +01:00
Eloy Lafuente (stronk7) 102cb3c1a6 Merge branch 'w07_MDL-26294_20_byteserving' of git://github.com/skodak/moodle 2011-02-14 02:08:06 +01:00
Eloy Lafuente (stronk7) 0e9fe664b6 Merge branch 'w07_MDL-26307_20_dbport' of git://github.com/skodak/moodle 2011-02-14 02:00:19 +01:00
Eloy Lafuente (stronk7) 64c74b8f7b Merge branch 'w07_MDL-25626_20_completionerror' of git://github.com/skodak/moodle 2011-02-14 01:53:45 +01:00
Eloy Lafuente (stronk7) 264184625d Merge branch 'w07_MDL-26355_20_installsize' of git://github.com/skodak/moodle 2011-02-14 01:50:55 +01:00
Eloy Lafuente (stronk7) 378906a273 Merge branch 'MDL-26274_rating_delete' of git://github.com/andyjdavis/moodle 2011-02-14 01:48:03 +01:00
Eloy Lafuente (stronk7) 2e6bd88f3b Merge branch 'w07_MDL-26376_20_shib' of git://github.com/skodak/moodle 2011-02-14 01:44:08 +01:00
Eloy Lafuente (stronk7) 42bdecde6d Merge branch 'w07_MDL-26380_20_mediafilterperf' of git://github.com/skodak/moodle 2011-02-14 01:41:19 +01:00
Eloy Lafuente (stronk7) 64ff7d5c14 Merge branch 'w07_MDL-26351_20_instquotes' of git://github.com/skodak/moodle 2011-02-14 01:25:44 +01:00
Eloy Lafuente (stronk7) 345f4176dc Merge branch 'w07_MDL-26030_20_mediafilter' of git://github.com/skodak/moodle 2011-02-14 01:09:07 +01:00
Eloy Lafuente (stronk7) c87a7e44e8 Merge branch 'w07_MDL-26379_20_minify' of git://github.com/skodak/moodle 2011-02-14 00:56:02 +01:00
Eloy Lafuente (stronk7) c0d0dd4a5a Merge branch 'w07_MDL-26352_20_metacourse' of git://github.com/skodak/moodle 2011-02-14 00:52:09 +01:00
Eloy Lafuente (stronk7) 798e6fcba2 Merge branch 'w07_MDL-26271_20_forumsearch' of git://github.com/skodak/moodle 2011-02-14 00:38:21 +01:00
Eloy Lafuente (stronk7) b60f77ca29 Merge branch 'w07_MDL-26322_20_wantsurl' of git://github.com/skodak/moodle 2011-02-14 00:19:08 +01:00
Eloy Lafuente (stronk7) a537e50725 MDL-24898 external blogs - strip html and truncate subject 2011-02-13 23:03:55 +01:00
Petr Skoda 28765cfcb5 MDL-25575 fix broken block support in get_courseid_from_context() 2011-02-13 18:59:53 +01:00
Petr Skoda 9c14c1c55b MDL-26223 prevent getting content of hidden blocks in edit mode 2011-02-13 18:14:55 +01:00
Petr Skoda 3b073254bc MDL-26314 fix phpdocs typo 2011-02-13 17:44:01 +01:00
Petr Skoda 44303ca67a MDL-25974 fix access to activities when role switched in hidden course and some coding style strict comparison fixes
The problem with strict comparison of numerical values fails badly if one is int and the other is string, moodle core apis do not guarantee return types much.
2011-02-13 16:17:47 +01:00
Petr Skoda d07f2def92 MDL-25998 fix default manual enrol role 2011-02-13 13:58:18 +01:00
Petr Skoda ad9ab4dfe5 MDL-26131 fix several collapsible_region issues
1/ the $default was not passed from print_collapsible_region()
2/ incorrect php docs describing $userpref
3/ missing empty() check on $userpref
2011-02-13 11:52:09 +01:00
Petr Skoda 743fff98dc MDL-26142 fix immediately spelling in strings, comments and code 2011-02-13 11:36:46 +01:00
Petr Skoda ae3a794781 MDL-26355 increase size of installer forms fields 2011-02-13 10:52:28 +01:00
Petr Skoda b3929ae981 MDL-26383 add missing bloglevelupgrade admin section 2011-02-13 10:22:19 +01:00
Petr Skoda 4f97de7624 MDL-23939 do not load groups and profile for guest user because they can not have both 2011-02-12 23:22:22 +01:00
Petr Skoda cc10c0b979 MDL-23939 minor course_display coding style improvements and inline docs 2011-02-12 23:06:11 +01:00
Aparup Banerjee 13801a49a2 MDL-23939 lazy load course_display with new course_get_display()
This change speeds up user login and makes the session smaller.
2011-02-12 22:45:17 +01:00
Petr Skoda 6e6034e550 MDL-26153 fix yui combo loading for images with numbers in file name 2011-02-12 21:56:03 +01:00
Petr Skoda dd3b7e7dfc MDL-26294 fix byteserving regression
Credit goes to James Mitchell.
2011-02-12 20:39:53 +01:00
Eloy Lafuente (stronk7) 3612c3be4a MDL-25612 sql - make rss_client block cross-db 2011-02-12 20:38:03 +01:00
Petr Skoda 9e9543e54b MDL-26307 fix dbport and dbsocket support when creating mysql database 2011-02-12 20:08:49 +01:00
Petr Skoda a2ee26bf3e MDL-26030 more mediaplugin fixes
Improved youtube id parsing, fixed url quoting and fixed unittests.
2011-02-12 19:47:52 +01:00
Petr Skoda b69f9a08d9 MDL-25626 fix incorrect cm id in completion report
credit goes to Aaron Barnes
2011-02-12 17:35:41 +01:00
Eloy Lafuente (stronk7) e07c51c481 MDL-26371 sql - avoid distinct + text in lesson essay & report 2011-02-12 17:34:03 +01:00
Eloy Lafuente (stronk7) b37d06c2ed MDL-26371 sql - avoid distinct + text in glossary search 2011-02-12 17:05:32 +01:00
Petr Skoda cd138b26f1 MDL-26376 fix incorrect Shibboleth string and undefined property during first config saving 2011-02-12 17:00:36 +01:00
Petr Skoda e68789c559 MDL-26380 improve perf of mediaplugin filter if no links found in text 2011-02-12 16:48:32 +01:00
Petr Skoda a2d242bc09 MDL-26351 add support for postgresql running with standard_conforming_strings 2011-02-12 16:16:52 +01:00
Eloy Lafuente (stronk7) f320cb76c3 MDL-26371 sql - avoid distinct + text in db enrol 2011-02-12 15:46:44 +01:00
Rossiani Wijaya 3f5192c088 MDL-26030 update filter regex and create unittest for filter mediaplugin 2011-02-12 12:23:04 +01:00
Petr Skoda ed7f5ee27c MDL-26379 remove unused readme 2011-02-12 11:11:44 +01:00
Petr Skoda 1d29fc9e5d MDL-26379 disable Minify URI builder and allow only execution of Minify from Moodle codebase 2011-02-12 11:11:22 +01:00
Petr Skoda d21feffdd7 MDL-26352 ignore invalid course_meta entries during upgrade
This fixes upgrade problems when course_meta points to deleted course or somebody hacked the table contents manually.
2011-02-12 10:27:43 +01:00
Petr Skoda b1d5d0155b MDL-26271 fix borked sql parameters in forum_search_posts and add missing modinfo field
This is the perfect example why there must not be duplicate parameter names in SQL queries.
2011-02-12 10:11:27 +01:00
Petr Skoda 9337cf32ca MDL-26329 fix incorrect draft url rewriting when slasharguments off
tinymce editor encodes '/' in the ?file= parameter, we have to decode %2F before doing our standard @@PLUGINFILE@@ processing.
2011-02-12 09:43:14 +01:00
Eloy Lafuente (stronk7) bd9e662953 MDL-25553 lesson restore - add missing jumpto remapping. Credit goes to Mike Churchward 2011-02-12 04:02:10 +01:00
Eloy Lafuente (stronk7) 7cff4927be MDL-26229 backup & restore - fix quiz & lesson conflicts 2011-02-12 03:03:26 +01:00
Eloy Lafuente (stronk7) 945962a45d MDL-26229 restore - prevent tag-conflicting structures to be created 2011-02-12 02:40:38 +01:00
Eloy Lafuente (stronk7) 5539e69862 MDL-26229 restore - parser improvements (repetitions and skipped tags) 2011-02-12 02:19:02 +01:00
David Mudrak dd8ab1fb4a MDL-26353 Database activity module: display help icon with the new help strings
This commit makes the new strings added by Helen used at the Import
entries page. Note that the syntax of the strings had to be fixed as
there must not be leading whitespace before the asterisk in Markdown format.

Also as requested by Helen, the wording or export/import links is
improved now.

As a bonus for free, the patch fixes incorrect API usage of get_record()
and friends.
2011-02-12 00:02:20 +01:00
Helen Foster 76179aac08 MDL-26353 Database activity module new help string 2011-02-11 23:09:02 +01:00
Tim Hunt 2e5ce83f11 MDL-26369 fix notice caused by the fix for MDL-26098. 2011-02-11 14:15:43 +00:00
Petr Skoda b792a64ab2 MDL-26322 always allow https in login local redirection test
This fixes problems for sites that use loginhtts where the redirection after login did not work for pages that require https such as the forgotten passowrds page.
2011-02-11 11:24:30 +01:00
Tim Hunt 5ec3e4a8eb MDL-26365 New GIFT unit test. 2011-02-11 10:15:26 +00:00
Petr Skoda d480b970b7 MDL-25991 add icon when action_link used in navigation
Alos removing old TODO.
2011-02-11 10:01:06 +01:00
Sam Hemelryk 625943586b navigation MDL-25991 Fixed reference to output in core_renderer 2011-02-11 16:26:20 +08:00
andyjdavis 66cb20f6c0 rating MDL-26274 made rating_ajax.php use the current scale rather than the scale from the users previously submitted rating 2011-02-11 15:15:49 +08:00
David Mudrak d0fb170520 MDL-26312 Workshop: fixed upgrade of module instances from 1.9 to 2.0
The patch changes workshop_upgrade_module_instances() so that it
processes old workshop records ordered by their id and it keeps the
instances id by using import_record() instead of insert_record().
Thanks to this, there is no mapping of workshop ids needed so the
function workshop_upgrade_workshop_id_mappings() is dropped and all
callers use plain workshop record.
2011-02-11 07:43:04 +01:00
ppichet ff6b824e6d MDL-26356:Correcting the texts of Numerical Units grading select element
Signed-off-by: ppichet <pichet.pierre@uqam.ca>
2011-02-10 23:50:30 -05:00
Aparup Banerjee dde36f9d65 blocks MDL-26109 adding docking option to empty blocks as well. 2011-02-11 12:36:19 +08:00
Eloy Lafuente (stronk7) a90659d6ba DL-22146 backup & restore - course formats remaining hooks 2011-02-11 00:07:32 +01:00
Tim Hunt c991ecb49d MDL-26236 random essay questions do not work due to bad regex.
Essays can have multi-line answers that start with a newline, which breaks the regex here.
2011-02-10 23:06:22 +00:00
Eloy Lafuente (stronk7) e5169d5229 MDL-22146 backup & restore - copy/paste fix 2011-02-10 15:36:03 +01:00
Eloy Lafuente (stronk7) 4ab111b9bf MDL-22146 backup & restore - extending the backup plugins API 2011-02-10 12:14:00 +01:00
Eloy Lafuente (stronk7) 1e37c39180 MDL-22146 backup & restore - extending the restore plugins API 2011-02-10 11:34:41 +01:00
Eloy Lafuente (stronk7) 4fda584f28 MDL-22146 backup & restore - course formats first cut 2011-02-10 10:37:36 +01:00
Dongsheng Cai 7d2882c476 MDL-25215, file extension should remain unchanged when using save as field in filepicker UI 2011-02-10 09:40:09 +08:00
Tim Hunt dc3826eed7 MDL-26338 fix mixed types in quiz reports SQL. This was breaking Oracle 2011-02-09 20:48:21 +00:00
Tim Hunt 8711360225 MDL-26337 Improve close_window. Fix bug when $reloadopener is false, and better usability when it is true. 2011-02-09 19:02:31 +00:00
Eloy Lafuente (stronk7) d911c72bf9 MDL-26333 dml - fix test (AS not in tables/views) 2011-02-09 18:21:37 +01:00
Eloy Lafuente (stronk7) f30a13ab2b MDL-26333 ddl - better/safer temp column names 2011-02-09 17:36:57 +01:00
Tim Hunt b729648032 MDL-26332 cannot type Enter into a textarea in a quiz.
This was breaking the essay question type.
2011-02-09 14:52:30 +00:00
Petr Skoda f7d843d167 weekly release 2011-02-09 12:26:58 +01:00
Sam Hemelryk ada93b58fb Revert "message MDL-26119 now logs when a user sends a message" because the log URL generated is incorrect
This reverts commit 88c9987e89.
2011-02-09 16:25:39 +08:00
Eloy Lafuente (stronk7) cd03ecce8e Merge branch 'MDL-24870_rss_error' of git://github.com/andyjdavis/moodle 2011-02-08 10:21:55 +01:00
Eloy Lafuente (stronk7) 2f564be4e5 Merge branch 'MDL-24355_20_tagcorrelations_rev1' of git://github.com/samhemelryk/moodle 2011-02-08 00:11:40 +01:00
Petr Skoda 4478743ca4 MDL-26265 use cm_info in PAGE->cm because it has more useful information; add context property to cm_info 2011-02-07 23:11:43 +01:00
Petr Skoda f2f45270ee Merge branch 'MDL-26267' of git://github.com/samhemelryk/moodle 2011-02-07 23:07:16 +01:00
Petr Skoda 81c29ae06d Merge branch 'MDL-26266' of git://github.com/samhemelryk/moodle 2011-02-07 23:05:08 +01:00
Eloy Lafuente (stronk7) 9ac8ff207c dml-sqlsrv MDL-26025 whitespace fix 2011-02-07 22:33:26 +01:00
Eloy Lafuente (stronk7) 9597afb572 Merge branch 'MDL-26025' of git://github.com/samhemelryk/moodle 2011-02-07 22:26:33 +01:00
Eloy Lafuente (stronk7) 5df4947cb8 Merge branch 'w06_MDL-26234_20_customfields' of git://github.com/skodak/moodle 2011-02-07 22:21:21 +01:00
Eloy Lafuente (stronk7) 9beb04e1d5 Merge branch 'w06_MDL-26290_20_mysqlport' of git://github.com/skodak/moodle 2011-02-07 21:56:07 +01:00
Petr Skoda c055cebfbb Merge branch 'MDL-25780' of git://git.luns.net.uk/moodle 2011-02-07 21:49:32 +01:00
Eloy Lafuente (stronk7) e32d5f9b88 Merge branch 'w06_MDL-26256_20_collator' of git://github.com/skodak/moodle 2011-02-07 21:41:04 +01:00
Petr Skoda 476b123a72 Merge branch 'm20_MDL-25468_coding_error' of git://github.com/dongsheng/moodle 2011-02-07 21:37:16 +01:00
Petr Skoda 8c4a6a4fe8 Merge branch 'MDL-21250-capitalized-strings' of git://github.com/mudrd8mz/moodle 2011-02-07 21:31:35 +01:00
Petr Skoda a052bf8ba0 Merge branch 'AMOS-install-strings' of git://github.com/mudrd8mz/moodle 2011-02-07 21:28:20 +01:00
Eloy Lafuente (stronk7) 8fc84ff1c1 Merge branch 'w06_MDL-26219_20_upgradelog' of git://github.com/skodak/moodle 2011-02-07 20:22:29 +01:00
Petr Skoda bb8b29715a MDL-26219 fix borked upgrade logging and add new fileversion column 2011-02-07 20:00:20 +01:00
Charles Fulton 7038944105 MDL-26299: missing break causes incorrect value for unitrole 2011-02-07 09:53:31 -08:00
Helen Foster 72d484ddb6 MDL-21250 capital letters removal 2011-02-07 15:55:18 +01:00
Eloy Lafuente (stronk7) 20ba9a2e47 Merge branch 'MDL-17357-duplicate-strings' of git://github.com/mudrd8mz/moodle 2011-02-07 15:53:15 +01:00
David Mudrak d5b7f35d65 MDL-17357 Removed duplicate string definitions 2011-02-07 15:08:07 +01:00
Sam Hemelryk 0032523aed Merge branch 'PULL-226-workshop' of git://github.com/mudrd8mz/moodle 2011-02-07 17:58:12 +08:00
David Mudrak 32ea207a48 MDL-26298 Workshop: fixed trivial typos in phpDoc blocks 2011-02-07 10:49:34 +01:00
David Mudrak d239b952a5 MDL-26296 Workshop: trivial change in manual allocator CSS
When only two rows of the allocations table are displayed with the new
allocation highlighted, it is better not highlight the odd row.
2011-02-07 10:49:30 +01:00
Sam Hemelryk 6ae16d7fff Merge branch 'w06_MDL-26262_20_onlineblock' of git://github.com/skodak/moodle 2011-02-07 16:31:38 +08:00
AMOS bot a4f9369548 Automatic installer lang files (20110207) 2011-02-07 09:27:45 +01:00
Dongsheng Cai 100e0d4989 NAVIGATION MDL-25468 remove optional_param from navigationlib.php, use override_active_url to help find the correct node 2011-02-07 16:25:58 +08:00
Sam Hemelryk 9cb70adc33 Merge branch 'w06_MDL-26238_20_group' of git://github.com/skodak/moodle 2011-02-07 16:20:02 +08:00
Sam Hemelryk 9377348eb0 Merge branch 'w06_MDL-26221_20_courserole' of git://github.com/skodak/moodle 2011-02-07 16:11:50 +08:00
Sam Hemelryk dedda4abc3 Merge branch 'MDL-26272' of git://github.com/stronk7/moodle 2011-02-07 16:03:27 +08:00
Sam Hemelryk c1a974983a Merge branch 'MDL-26245-typo_in_exception_string' of git://github.com/mudrd8mz/moodle 2011-02-07 15:41:26 +08:00
Sam Hemelryk 82bbf32d3c Merge branch 'MDL-26252-import-groups-help' of git://github.com/mudrd8mz/moodle 2011-02-07 15:32:23 +08:00
Sam Hemelryk d44327efd9 Merge branch 'MDL-26119_message_logging' of git://github.com/andyjdavis/moodle 2011-02-07 15:16:40 +08:00
Sam Hemelryk 89652edd6c Merge branch 'MDL-26242' of git://github.com/timhunt/moodle 2011-02-07 15:13:53 +08:00
Sam Hemelryk 449adacbc3 Merge branch 'MDL-25639' of git://git.luns.net.uk/moodle 2011-02-07 14:21:24 +08:00
Sam Hemelryk 1ca95a13f3 Merge branch 'MDL-25874' of git://git.luns.net.uk/moodle 2011-02-07 14:01:00 +08:00
Sam Hemelryk e8d6d24729 Merge branch 'm20_MDL-25671_data_template_editor' of git://github.com/dongsheng/moodle 2011-02-07 13:50:36 +08:00
Sam Hemelryk ed4801f4f0 Merge branch 'MDL-25939' 2011-02-07 13:40:51 +08:00
Sam Hemelryk e896935574 MDL-25939 Fixed whitespace issues in the splash theme 2011-02-07 13:40:43 +08:00
Sam Hemelryk 2addb4ba1b mod-workshop MDL-26267 workshop_extend_navigation argument 4 is now always going to be a cm_info object 2011-02-07 13:20:09 +08:00
Sam Hemelryk f0dcc21259 navigation MDL-26266 Refactored code to ensure when loading activities is a cm_info object 2011-02-07 12:16:13 +08:00
Sam Hemelryk 046ff94ec8 dml-sqlsrv MDL-26025 Fixed up typo in simpletests and added a couple more tests 2011-02-07 11:23:30 +08:00
Sam Hemelryk fe1dd7ebde dml-sqlsrv MDL-26025 Removed use of property to track rownumber field in favor of always unsetting it 2011-02-07 10:46:50 +08:00
Sam Hemelryk 7e1bd89d32 sqlsrv MDL-26025 Fixed up numerous issues with the limit_to_top_n function 2011-02-07 10:33:49 +08:00
Petr Skoda 0b661c7d52 MDL-26256 detect missing collator support and use workaround instead 2011-02-06 22:27:25 +01:00
Petr Skoda 8c4b142cb2 MDL-26290 add experimental windows mysqli named pipe support 2011-02-06 22:11:28 +01:00
Petr Skoda 801dea0605 MDL-26262 fix online users block error on non-course pages 2011-02-06 22:04:44 +01:00
Petr Skoda 77f9f23b0f MDL-26290 make sure ini_get('mysqli.default_port') returns number 2011-02-06 21:21:23 +01:00
Petr Skoda bb98eea114 MDL-26234 fix fatal user upload error when custom text area field present
Please note this does not fix problems with the actual upload of custon text area fields.
2011-02-06 20:57:21 +01:00
Charles Fulton 9250bf8172 MDL-26238 remove deprecated second parameter from groups_get_group() calls 2011-02-06 18:15:36 +01:00
Petr Skoda 8f0eb9fd7a MDL-26221 add missing course/lib.php include when using make_categories_list() 2011-02-06 17:58:47 +01:00
Eloy Lafuente (stronk7) 195a0848ec MDL-26272 ratings - fix uses breaking after last modinfo changes 2011-02-04 17:30:51 +01:00
David Mudrak 51abc39695 MDL-26188 Workshop: get rid of a method that is not used anyway
The protected method get_allocations_recordset() is a relict from
earlier development phases of Workshop module. Removing it as it
confuses recent Eloy's recordset usage detection tool.
2011-02-04 14:33:48 +01:00
David Mudrak f672d6a0f5 Fixed import groups page layout and navigation
While working on MDL-26252, I realized that group/import.php page had
issues with layout. Side blocks were missing and the breadcrumb navigation
broken (leading to a non-existing script and having the link to the
current course duplicated).

This patch sets the standard layout for the page so that block are
displayed, fixes the page position in the navigation tree and the
breadcrumb navigation.
2011-02-04 10:45:30 +01:00
David Mudrak b74ceb3ff5 MDL-26252 Added help icon at import groups page
AMOS BEGIN
 MOV [importgroups,core],[importgroups,core_group]
AMOS END
2011-02-04 10:45:30 +01:00
David Mudrak 73f99ca18f MDL-26245 Fixed typo in dbtransfer exception string 2011-02-04 10:45:21 +01:00
Petr Skoda 54b7b5993f emergency weekly release
fixes fatal error in mod/workshop and other places caused by missing backwards compatibility with old cminfo stdClass
2011-02-04 09:31:15 +01:00
Sam Hemelryk 1e4cb18940 lib-modinfolib MDL-26264 cm_info and course_modinfo classes both now extend stdClass 2011-02-04 16:22:57 +08:00
andyjdavis 3ad3f24808 rss MDL-24870 fixed the capability checks to access module rss feeds 2011-02-04 10:27:52 +08:00
andyjdavis d95a02faa9 rss MDL-24870 latest news block was supplying the wrong context ID when creating its RSS feed link 2011-02-03 15:24:27 +08:00
andyjdavis 88c9987e89 message MDL-26119 now logs when a user sends a message 2011-02-03 13:37:01 +08:00
Sam Hemelryk 78defd5c64 tags MDL-24355 Improved computation of tag correlations. Thanks Jonathan Robson for the 1.9 patch. 2011-02-03 10:06:25 +08:00
Tim Hunt 5f11e00db1 MDL-26242 quiz reports. No students in course => get_in_or_equal doesn't like empty arrays error 2011-02-02 16:40:14 +00:00
Dongsheng Cai 08a7fbb027 mod-data MDL-25671 disable editor in data list template editor will not save the changes 2011-02-02 22:17:15 +08:00
Petr Skoda eef3578af0 weekly release 2011-02-02 14:10:02 +01:00
Petr Skoda 260d857de3 MDL-25834 revert unresolved PULL-174 2011-02-02 14:03:44 +01:00
Petr Skoda e27b5b6b29 Merge branch 'MDL-26237' of git://github.com/stronk7/moodle 2011-02-02 13:49:16 +01:00
Eloy Lafuente (stronk7) bd654f0ced MDL-26237 code coverage - prevent execution of not used stuff 2011-02-02 11:21:01 +01:00
Petr Skoda 5a6094137d MDL-25942 fix another Oracle compatibility issue 2011-02-02 09:59:56 +01:00
Dan Marsden db1f94ce4e MDL-26201 fix Lang - Thanks Petr 2011-02-02 09:23:24 +01:00
Petr Skoda ffcb837973 MDL-26177 compare 255 chars when checking custom field uniqueness 2011-02-02 09:15:42 +01:00
Sam Hemelryk 78f0f64d47 blog MDL-25981 PULL-162 Removed typehinting in blog after changed from stdClass to cm_info 2011-02-02 10:37:33 +08:00
Petr Skoda af0a06cb5a MDL-26177 fix non-working unique custom field check 2011-02-01 14:34:31 +01:00
Eloy Lafuente (stronk7) 909d2b8f63 MDL-25791 quiz - bump version 2011-02-01 09:37:36 +01:00
Eloy Lafuente (stronk7) 278de0eb52 Merge branch 'MDL-25791_20_quizdb_rev1' of git://github.com/samhemelryk/moodle 2011-02-01 09:35:49 +01:00
Sam Hemelryk 16da818528 mod-quiz MDL-25791 Fixed database discrepancies between a fresh install and an upgraded site within the Quiz module 2011-02-01 12:54:16 +08:00
Eloy Lafuente (stronk7) 12fc00c951 Merge branch 'm20_MDL-25501_wiki_upgrade_improvement' of git://github.com/dongsheng/moodle 2011-02-01 01:53:47 +01:00
Petr Skoda 46df3c6059 Merge branch 'MDL-25981' 2011-01-31 22:44:17 +01:00
Petr Skoda 4714815123 MDL-25981 fix inverted instanceof in require_login 2011-01-31 22:35:17 +01:00
Petr Skoda d6f4508c36 MDL-25981 add missing global DB when fetching course modinfo 2011-01-31 22:23:34 +01:00
Petr Skoda d4fb0e26e2 MDL-25981 make sure cm is defined 2011-01-31 22:19:36 +01:00
Eloy Lafuente (stronk7) eb183178c8 Merge branch 'w05_MDL-26034_20_myprofile' of git://github.com/skodak/moodle 2011-01-31 20:10:27 +01:00
Petr Skoda b6f3e4f8f0 Merge branch 'MDL-26098' of git://github.com/timhunt/moodle 2011-01-31 19:25:41 +01:00
Eloy Lafuente (stronk7) 9de8515b2e MDL-26201 scorm & js - CSS changes => version bump 2011-01-31 19:23:31 +01:00
Eloy Lafuente (stronk7) 8e1ad9c60f Merge branch 'm20_MDL-26201_forcejs' of git://github.com/danmarsden/moodle 2011-01-31 19:14:55 +01:00
Eloy Lafuente (stronk7) 9f58e26db6 Merge branch 'w05_MDL-26046_20_noemailever' of git://github.com/skodak/moodle 2011-01-31 18:02:02 +01:00
Eloy Lafuente (stronk7) e030faee3e Take out debugging & merge branch 'w05_MDL-26198_20_completion' of git://github.com/skodak/moodle 2011-01-31 17:43:22 +01:00
Eloy Lafuente (stronk7) 45289c3e79 Merge branch 'w05_MDL-26196_20_tags' of git://github.com/skodak/moodle 2011-01-31 17:17:48 +01:00
Eloy Lafuente (stronk7) b6a0ec4238 Merge branch 'w05_MDL-26140_20_experimental' of git://github.com/skodak/moodle 2011-01-31 16:17:13 +01:00
Eloy Lafuente (stronk7) d98c661428 Merge branch 'w05_MDL-26104_20_blockconflick' of git://github.com/skodak/moodle 2011-01-31 16:02:51 +01:00
Eloy Lafuente (stronk7) 133a9b738e Merge branch 'w05_MDL-25921_20_tablemissing' of git://github.com/skodak/moodle 2011-01-31 16:01:02 +01:00
Eloy Lafuente (stronk7) e89a57dc10 Fixed conflicts & merge branch 'MDL-17201_index' of git://github.com/andyjdavis/moodle 2011-01-31 15:34:40 +01:00
Eloy Lafuente (stronk7) 9700d6835d Merge branch 'w05_MDL-26172_20_groupupgrade' of git://github.com/skodak/moodle 2011-01-31 15:17:33 +01:00
Eloy Lafuente (stronk7) 7164db694c Merge branch 'w05_MDL-26189_20_imse' of git://github.com/skodak/moodle 2011-01-31 14:57:22 +01:00
Petr Skoda 57d51199b7 Merge branch 'AMOS-install-strings' of git://github.com/mudrd8mz/moodle 2011-01-31 14:26:03 +01:00
Petr Skoda 8afc38bd39 Merge branch 'MDL-25708' of git://github.com/stronk7/moodle 2011-01-31 14:21:53 +01:00
stabijoh 6290dddd35 MDL-25939-2 Updated fix for Splah theme blog labels 2011-01-31 07:23:49 -05:00
Petr Skoda 6fde0dac70 MDL-26189 protect imsenterprise enrol file 2011-01-31 13:22:55 +01:00
Eloy Lafuente (stronk7) 43bbf28849 Merge branch 'w05_MDL-26182_20_nginx' of git://github.com/skodak/moodle 2011-01-31 12:33:16 +01:00
Sam Hemelryk 2b1f6ced64 Merge branch 'MDL-26178' of git://github.com/timhunt/moodle 2011-01-31 17:47:30 +08:00
Dan Marsden 334d8b94f5 SCORM MDL-25850 - check for viewscores cap before adding score to toc 2011-01-31 17:38:01 +08:00
Sam Hemelryk 1f5a33439e Merge branch 'm20_MDL-26176_cleanup' of github.com:danmarsden/moodle 2011-01-31 17:16:56 +08:00
Sam Hemelryk dfc05681f2 Merge branch 'm20_MDL-25781_TOC_fix' of git://github.com/danmarsden/moodle 2011-01-31 17:06:53 +08:00
Petr Skoda cb3c4b448e Merge branch 'MDL-25942' of git://github.com/stronk7/moodle 2011-01-31 09:38:51 +01:00
Petr Skoda bee34e2b6d Merge branch 'MDL-26177' of git://github.com/timhunt/moodle 2011-01-31 09:36:15 +01:00
Sam Hemelryk d44d6448db Merge branch 'w05_MDL-26069_20_filecheck' of git://github.com/skodak/moodle 2011-01-31 16:28:28 +08:00
Petr Skoda a84299fee5 Merge branch 'm20_MDL-25895_repository_ajax' of git://github.com/dongsheng/moodle 2011-01-31 09:06:31 +01:00
Petr Skoda 63786031f2 Merge branch 'MDL-25573_m20' of git://github.com/rwijaya/moodle 2011-01-31 09:04:29 +01:00
Petr Skoda 1c6a1e12aa Merge branch 'MDL-25291_20_admintreeflag' of git://github.com/samhemelryk/moodle 2011-01-31 08:56:25 +01:00
Rossiani Wijaya 469aa3ba50 create youtube playlist filter. Fixed regex, removed addslash_js, use variable param instead of url because the variable contains the value of the url parameter. 2011-01-31 15:03:58 +08:00
Sam Hemelryk cf59f747d0 Merge branch 'MDL-25913' 2011-01-31 14:58:08 +08:00
Sam Hemelryk 3fd8c6055e MDL-25931 Fixed up whitespace during integration. 2011-01-31 14:57:48 +08:00
Sam Hemelryk 0c6ab77c58 Merge branch 'MDL-25914' 2011-01-31 14:41:04 +08:00
Sam Hemelryk af5222b1bd MDL-25914 Fixed whitespace in binarius theme core.css 2011-01-31 14:40:54 +08:00
Sam Hemelryk 1c4b778376 Merge branch 'MDL-25892' of git://github.com/epsd/moodle 2011-01-31 14:16:46 +08:00
Sam Hemelryk 16ce82a4d3 Merge branch 'MDL-25834' 2011-01-31 14:10:12 +08:00
Sam Hemelryk 8874905e77 MDL-25834 Fixed white space issues during integration 2011-01-31 14:09:57 +08:00
Sam Hemelryk 3721781dfe Merge branch 'MDL-26168' of git://github.com/timhunt/moodle 2011-01-31 13:50:21 +08:00
Sam Hemelryk 60177f84a8 Merge branch 'MDL-25786' of git://github.com/epsd/moodle 2011-01-31 13:31:40 +08:00
Sam Hemelryk 13b9fe035c Merge branch 'MDL-25723' of git://github.com/epsd/moodle 2011-01-31 13:17:26 +08:00
Sam Hemelryk 8dadee2499 Merge branch 'MDL-21250-capitalized_strings' of git://github.com/mudrd8mz/moodle 2011-01-31 13:05:09 +08:00
Sam Hemelryk 299a3e7081 Merge branch 'MDL-26158' 2011-01-31 12:09:53 +08:00
Sam Hemelryk 2c1aa96042 MDL-26158 fixed xhtml problem 2011-01-31 12:09:43 +08:00
Dan Marsden 30bce58eb9 SCORM MDL-26201 setting to allow admin to force users to enable JS in their browser before allowing them to view/use SCORM objects. 2011-01-31 16:53:10 +13:00
Sam Hemelryk 3e6d0ac628 Merge branch 'w05_MDL-25743_20_selfenrol' of git://github.com/skodak/moodle 2011-01-31 11:52:40 +08:00
AMOS bot 4723b4b33e Automatic installer lang files (20110130) 2011-01-30 21:57:11 +01:00
Petr Skoda 9cedb80c5d MDL-26198 fix CSRF and missing access control + fix xhtml strict 2011-01-30 21:50:04 +01:00
Petr Skoda ff03c5b6b5 MDL-26198 make user_has_role_assignment() check parent contexts too 2011-01-30 21:49:22 +01:00
Eloy Lafuente (stronk7) 62d3738246 MDL-25942 upgrade - fix use of reserved word in binding 2011-01-30 19:59:13 +01:00
Petr Skoda 73de6fa06f MDL-26196 fix param validation 2011-01-30 19:27:04 +01:00
Eloy Lafuente (stronk7) cc65dc366d MDL-25708 recordsets - found one more recent use. fixed. 2011-01-30 13:43:06 +01:00
Petr Skoda c259e5f636 MDL-25921 show error when module table is missing 2011-01-30 13:02:42 +01:00
Petr Skoda dc80b14251 MDL-26140 hide unfinished experimental DTL pages 2011-01-30 11:50:19 +01:00
Petr Skoda 28ec73dc5b MDL-26182 add detection of misconfigured nginx server 2011-01-30 11:38:16 +01:00
Petr Skoda 38d93cb0ff MDL-26046 prevent jabber messages wehn noemailever active
Standardise also the debug when emailing message.
2011-01-30 11:01:27 +01:00
Petr Skoda c1ddac83b3 MDL-26104 fix blocknameconflict component in get_string()
creadit goes to Howard Miller
2011-01-29 19:37:56 +01:00
Petr Skoda 73af286bc8 MDL-26172 skip invalid group records during upgrade 2011-01-29 19:20:34 +01:00
Petr Skoda 31da70cce4 MDL-26158 fix form printing and processing 2011-01-29 18:04:50 +01:00
Petr Skoda 893fe4b6b2 MDL-26069 detect missing file postprocessing 2011-01-29 17:50:12 +01:00
Tim Hunt 25f44c72bd custom profile fields MDL-26177 fields with unique were broken because you cannot use get_field with TEXT columns. 2011-01-29 15:42:09 +00:00
Tim Hunt 3fa5724a1f javascript MDL-26098 manual grading was not working when quiz_attempts.id and question_attempts.id were out of synch. 2011-01-29 14:03:02 +00:00
Tim Hunt 3708abd0f2 javascript MDL-26098 make the review this question in a previous state popup work. 2011-01-29 13:59:51 +00:00
Tim Hunt 1db6b9b886 javascript MDL-26098 close_window and close_window_reloading_opener were both broken. 2011-01-29 13:55:47 +00:00
Tim Hunt 2cb01c9205 mod_quiz MDL-26178 it let you try to preview a quiz with several empty pages.
You should not be allowed to preview an empty quiz, to make it correctly detect this case.
2011-01-29 12:11:10 +00:00
Dan Marsden 39340358b4 MDL-26176 - cleanup garbage/pointless code 2011-01-29 21:27:12 +13:00
Dan Marsden 7cc7cf58f5 SCORM MDL-25781 fix links in TOC on view.php 2011-01-29 21:27:12 +13:00
Dan Marsden 08868f58e4 SCORM MDL-25781 fix links in TOC on view.php 2011-01-29 21:25:26 +13:00
Tim Hunt 5bb96cf618 qtype_multianswer MDL-26168 fix invalid HTML from the editing form.
Fix by Tony Levi. Thanks.
2011-01-28 12:20:01 +00:00
Helen Foster 82b15e2811 MDL-21250 capital letters removal
Also some spotted leading and trailing whitespace was removed from some
strings.
2011-01-27 16:24:30 +01:00
Sam Hemelryk 7e90d3a450 navigation MDL-25291 Added a session variable so that admin tree is skipped if it is found to be empty. 2011-01-27 15:54:11 +08:00
Daren Chandisingh e92977d3de [MDL-25780] Fixed missing error string substitution 2011-01-26 15:20:28 +00:00
Daren Chandisingh 6110e008cb [MDL-25639] Fixed page output before redirection 2011-01-26 12:28:35 +00:00
Petr Skoda 0ab727fb35 MDL-26034 myprofile block cleanup 2011-01-26 13:26:46 +01:00
Petr Skoda 03531e2790 MDL-25743 fix inverted timestart/end logic 2011-01-26 13:26:31 +01:00
Petr Skoda ae36bc3dd8 MDL-26117 skip invalid resource records during upgrade 2011-01-26 13:24:33 +01:00
sam marshall 0d8b6a69ce lib MDL-25981 Improved modinfo
This commit:
a) moves modinfo code into new library modinfolib.php
b) uses classes instead of stdClass objects, allowing a huge amount of documentation (and IDE completion)
c) adds hooks so that plugins other than forum can display messages like forum's 'unread', and plugins other than label can display html (apart from/as well as their view.php link) on the course view page
d) removes current hacks for forum and label (mainly in print_section but also across the code), replacing with new 'content' and similar variables [this is the reason for the changes in blocks, etc]
e) reduces size of modinfo in database (only when rebuilt) by excluding empty fields

The change is intended to be backward compatible and does not affect the format of modinfo in database.
2011-01-26 10:29:16 +00:00
Petr Skoda 8cdc85ac62 weekly release 2011-01-25 19:30:03 +01:00
Sam Hemelryk ac36bda238 PULL-157, MDL-26116 Fixed merge conflicts 2011-01-25 12:18:05 +08:00
andyjdavis 0d92d04f2e profiles MDL-17201 added an index on the table user_info_data 2011-01-25 11:58:35 +08:00
Dongsheng Cai b1db1b6e8a MDL-26116, added default value to tag_instance.tiuserid field 2011-01-25 11:24:03 +08:00
Eloy Lafuente (stronk7) 29650825ad PULL-99, MDL-25929 progresstrackedroles out. Fixed conflicts and whitespace 2011-01-24 11:55:57 +01:00
Eloy Lafuente (stronk7) a81d26ac36 NOBUG: Fix whitespace 2011-01-24 11:43:59 +01:00
Eloy Lafuente (stronk7) 21c91e2e11 Merge branch 'wip-MDL-26044' of git://github.com/sammarshallou/moodle 2011-01-24 10:48:08 +01:00
Sam Hemelryk 912d099cc9 Merge branch 'MDL-25637' 2011-01-24 16:20:51 +08:00
Sam Hemelryk 80c1289773 MDL-25637 Fixed whitespace 2011-01-24 16:20:30 +08:00
Aparup Banerjee 2b9ce62e23 performance MDL-25637 converted tabs to spaces 2011-01-24 15:49:18 +08:00
Sam Hemelryk c9b2e8bf61 Merge branch 'w04_MDL-26035_20_installtest' of git://github.com/skodak/moodle 2011-01-24 15:05:55 +08:00
Aparup Banerjee b692e4aa29 Performance MDL-25637 moved static count/sizeof functions out of for loop conditions 2011-01-24 14:51:21 +08:00
Aparup Banerjee f179cdb73e performance MDL-25637 some of more similar performance tweaks to come 2011-01-24 14:51:21 +08:00
Sam Hemelryk c053c86c5b Merge branch 'w04_MDL-26066_20_dbenrol' of git://github.com/skodak/moodle 2011-01-24 13:26:51 +08:00
Sam Hemelryk b6c7558c2d Merge branch 'w04_MDL-26096_20_catenrol' of git://github.com/skodak/moodle 2011-01-24 11:57:06 +08:00
Sam Hemelryk 0243d7eb2f Merge branch 'w04_MDL-25855_20_filerequire' of git://github.com/skodak/moodle 2011-01-24 11:51:38 +08:00
Sam Hemelryk 2e725dd72b Merge branch 'MDL-26061-no_remote_users' of git://github.com/mudrd8mz/moodle.git with changes 2011-01-24 11:38:29 +08:00
Sam Hemelryk 48b01a217c MDL-26061 Revised new string before integration. 2011-01-24 11:37:29 +08:00
Sam Hemelryk c7a8c36233 Merge branch 'w04_MDL-26008_20_creator' of git://github.com/skodak/moodle 2011-01-24 11:10:40 +08:00
Sam Hemelryk 12cd15aeaa Merge branch 'w04_MDL-26106_20_lebletypo' of git://github.com/skodak/moodle 2011-01-24 11:07:29 +08:00
Sam Hemelryk 4fd25ab95c Merge branch 'm20_MDL-26063_SCORM_grouping' of git://github.com/danmarsden/moodle 2011-01-24 11:02:07 +08:00
Sam Hemelryk 88c3ba8c06 Merge branch 'w04_MDL-26041_20_resources' of git://github.com/skodak/moodle 2011-01-24 11:00:27 +08:00
Sam Hemelryk f8b214e1cd Merge branch 'w04_MDL-26045_20_onlineblock' of git://github.com/skodak/moodle 2011-01-24 10:45:46 +08:00
Sam Hemelryk e53a87dcb5 Merge branch 'MDL-25841' of git://github.com/timhunt/moodle 2011-01-24 10:31:34 +08:00
Sam Hemelryk ab8bc2ee1c Merge branch 'MDL-25884' of git://github.com/timhunt/moodle 2011-01-24 10:20:22 +08:00
Sam Hemelryk 34b681701a Merge branch 'MDL-26059' of git://github.com/timhunt/moodle 2011-01-24 10:08:32 +08:00
Petr Skoda cde91f5a9b MDL-26096 added missing return 2011-01-23 20:10:10 +01:00
Petr Skoda 99d19c13ae MDL-25855 some more missing filelib includes 2011-01-23 18:34:41 +01:00
Petr Skoda e83a6a22d4 MDL-26106 fix lable typo
credit goes to fautrero
2011-01-23 15:36:06 +01:00
Petr Skoda 87e88690b2 MDL-26066 fix invalid type comparison when course id used and typo fix 2011-01-23 14:56:28 +01:00
Petr Skoda 3e858ea737 MDL-26035 more detection of invalid plugin dir names 2011-01-23 14:27:51 +01:00
Petr Skoda 25b355b623 MDL-26008 improved creator role description 2011-01-23 12:53:12 +01:00
Petr Skoda a915dedb2a MDL-26041 do not include lables in the list of resources 2011-01-23 12:32:08 +01:00
Eloy Lafuente (stronk7) cd5fdfd87a MDL-25708 recordsets - tag and user directory 2011-01-22 13:34:28 +01:00
Eloy Lafuente (stronk7) cfd62f13a1 MDL-25708 recordsets - url module 2011-01-22 12:54:40 +01:00
Eloy Lafuente (stronk7) a1d870aa95 MDL-25708 recordsets - survey module 2011-01-25 19:59:02 +01:00
Eloy Lafuente (stronk7) 676874df1d MDL-25708 recordsets - scorm module 2011-01-25 19:59:02 +01:00
Eloy Lafuente (stronk7) 8ce9a2b26d MDL-25708 recordsets - resource module 2011-01-25 19:59:01 +01:00
Eloy Lafuente (stronk7) 3f2efc20ad MDL-25708 recordsets - page and quiz modules 2011-01-25 19:59:01 +01:00
Eloy Lafuente (stronk7) a8307c22c2 MDL-25708 recordsets - imscp and lesson modules 2011-01-25 19:59:01 +01:00
Eloy Lafuente (stronk7) ec577b0538 MDL-25708 recordsets - glossary module 2011-01-25 19:59:01 +01:00
Eloy Lafuente (stronk7) 56d1c48f24 MDL-25708 recordsets - forum module 2011-01-25 19:59:01 +01:00
Eloy Lafuente (stronk7) 05c707dacc MDL-25708 recordsets - folder module 2011-01-25 19:59:00 +01:00
Eloy Lafuente (stronk7) 6b1b1d0339 MDL-25708 recordsets - assignment and data modules 2011-01-25 19:59:00 +01:00
Eloy Lafuente (stronk7) 20222a3d7b MDL-25708 recordsets - fix message/lib.php 2011-01-25 19:59:00 +01:00
Eloy Lafuente (stronk7) 1b42e67747 MDL-25708 recordsets - fix lib/grade/xxx stuff 2011-01-25 19:59:00 +01:00
Eloy Lafuente (stronk7) be981316f4 MDL-25708 recordsets - fix file_storage 2011-01-25 19:59:00 +01:00
Eloy Lafuente (stronk7) 5a4a7b425b MDL-25708 recordsets - fix upgradelib and dml stuff 2011-01-25 19:59:00 +01:00
Eloy Lafuente (stronk7) 419178d713 MDL-25708 recordsets - fix completion 2011-01-25 19:59:00 +01:00
Eloy Lafuente (stronk7) b967c54185 MDL-25708 recordsets - fix events/grade/group/moodle libs 2011-01-25 19:58:59 +01:00
Eloy Lafuente (stronk7) afa559e9bc MDL-25708 recordsets - fix accesslib and datalib uses 2011-01-25 19:58:59 +01:00
Eloy Lafuente (stronk7) fc5016fcc8 MDL-25708 recordsets - fix group dir uses 2011-01-25 19:58:59 +01:00
Eloy Lafuente (stronk7) a0c3fc6304 MDL-25708 recordsets - fix course & enrol dir uses 2011-01-25 19:58:59 +01:00
Eloy Lafuente (stronk7) 755d2c74f6 MDL-25708 recordsets - fix admin dir uses 2011-01-25 19:58:59 +01:00
Daren Chandisingh fe4457ae29 [MDL-25874] Handle 'Cancel' action when editing lessons 2011-01-20 11:07:14 +00:00
Dan Marsden c371e39316 SCORM MDL-26063 incorrect context used - thanks to Matteo Scaramuccia for fix 2011-01-20 10:40:22 +13:00
David Mudrak d47b972fa9 MDL-26061 Prevent fatal error in remote enrolment client when there are no roaming users 2011-01-19 19:39:19 +01:00
Petr Skoda fb7dd39ce7 MDL-26045 fix invalid sql join when separate group mode enabled 2011-01-19 15:40:20 +01:00
Petr Skoda 17e03900c9 weekly release 2011-01-19 14:13:54 +01:00
Tim Hunt 90c2f51031 qtype_multianswer MDL-25841 feedback pop-up was appearing in the wrong place.
It seems that overlib was getting confused by its div being inside another positioned div. The simplest solution is to not create the div at all. Then the overlib JS creates it when needed, and that works.
2011-01-18 23:30:40 +00:00
Tim Hunt 151c2284dd quiz MDL-25884 mod/quiz/index.php broken when logged in as a student. 2011-01-18 23:17:46 +00:00
Tim Hunt 2c00fa161e qformat_gift MDL-26059 fails to import truefalse questions with answer true. 2011-01-18 21:38:34 +00:00
ptrkmkl ee3b46d8bf MDL-26047 - added new theme called Nimble 2011-01-18 08:42:48 -05:00
sam marshall 89b4ffe617 completion MDL-25929 Added upgrade change to remove unused setting 2011-01-18 12:55:58 +00:00
sam marshall 27d6ab5712 lib MDL-26044 Optimise moodle_url based on profiler data 2011-01-18 12:39:51 +00:00
Sam Hemelryk 69f9e678a3 Merge branch 'MDL-25988_20_wip_enrolroles' of git://github.com/skodak/moodle 2011-01-18 17:41:23 +08:00
Sam Hemelryk a1e26b5e46 gradebook MDL-20617 Fixed SQL formatting 2011-01-18 17:17:14 +08:00
andyjdavis a071dbb66b gradebook MDL-20617 added more control over what columns are displayed on the user report 2011-01-18 17:13:06 +08:00
Sam Hemelryk 13738840b2 Merge branch 'MDL-26031_20_wip_guestsession' of git://github.com/skodak/moodle 2011-01-18 15:40:50 +08:00
Sam Hemelryk 07d4c7ac6e Merge branch 'MDL-26007_20_wip_enverror' of git://github.com/skodak/moodle 2011-01-18 15:34:43 +08:00
Sam Hemelryk dcad74e406 Merge branch 'MDL-25910_20_wip_mysqlsocket' of git://github.com/skodak/moodle 2011-01-18 14:18:24 +08:00
Sam Hemelryk e5654cad1e Merge branch 'MDL-25754_20_wip' of git://github.com/skodak/moodle 2011-01-18 13:47:31 +08:00
Sam Hemelryk ec9b044d12 Merge rebased branch 'MDL-25769' of git://github.com/andyjdavis/moodle.git 2011-01-18 12:03:11 +08:00
Sam Hemelryk 25081b95f9 gradebook MDL-25769 Fixed SQL syntax formatting 2011-01-18 11:56:21 +08:00
andyjdavis f2491a11a1 gradebook MDL-25769 switched a query over to use named params 2011-01-18 11:56:20 +08:00
andyjdavis 2dc5e58466 gradebook MDL-25769 fixed some problems identified by peer review 2011-01-18 11:56:06 +08:00
andyjdavis 387815db61 gradebook MDL-25769 fixed up the grader report 2011-01-18 11:49:46 +08:00
andyjdavis b61e4f4624 gradebook MDL-25769 fixed grade/import/lib.php get_unenrolled_users_in_import() 2011-01-18 11:49:46 +08:00
andyjdavis ef8f084cc6 gradebook MDL-25769 fixed the loading of users in the grader report 2011-01-18 11:49:40 +08:00
Sam Hemelryk 3d12d1682e Merge branch 'MDL-25887' of git://github.com/andyjdavis/moodle.git 2011-01-18 10:56:51 +08:00
Sam Hemelryk e8aad16f7e gradebook MDL-25887 Fixed whitespace 2011-01-18 10:55:36 +08:00
Petr Skoda e565c9baf7 Merge branch 'MDL-25789' of git://github.com/samhemelryk/moodle 2011-01-17 21:22:43 +01:00
Petr Skoda 696a6ee12f Merge branch 'MDL-25790' of git://github.com/samhemelryk/moodle 2011-01-17 21:13:07 +01:00
Petr Skoda 2f20e23ba6 MDL-25791 PULL-125 reverting commits that create null problems during upgrade 2011-01-17 21:08:05 +01:00
Petr Skoda 1f50b85867 Merge branch 'MDL-25791' of git://github.com/samhemelryk/moodle 2011-01-17 20:52:31 +01:00
Petr Skoda 9c170a4323 Merge branch 'MDL-25792' of git://github.com/samhemelryk/moodle 2011-01-17 20:49:53 +01:00
Petr Skoda 5cfe8aecb8 Merge branch 'MDL-25672' of git://github.com/samhemelryk/moodle 2011-01-17 20:45:53 +01:00
Petr Skoda 295710b069 Merge branch 'MDL-25750' of git://github.com/samhemelryk/moodle 2011-01-17 20:42:17 +01:00
Petr Skoda dd265e3091 Merge branch 'MDL-25987' of git://github.com/timhunt/moodle 2011-01-17 20:25:56 +01:00
Petr Skoda 39e316e167 Merge branch 'MDL-25722' of git://github.com/timhunt/moodle 2011-01-17 20:22:26 +01:00
Petr Skoda c6947dd878 Merge branch 'MDL-26029' of git://github.com/timhunt/moodle 2011-01-17 20:20:43 +01:00
Petr Skoda af929b8d09 Merge branch 'MDL-25881' of git://git.luns.net.uk/moodle 2011-01-17 19:12:33 +01:00
Petr Skoda bb871bc4ca Merge branch 'workshop_random_allocator' of git://github.com/mudrd8mz/moodle 2011-01-17 19:02:55 +01:00
Petr Skoda a477c0da6e Merge branch 'MDL-25980-mnet_remote_enrolment' of git://github.com/mudrd8mz/moodle 2011-01-17 19:01:02 +01:00
Petr Skoda 3827ee9415 Merge branch 'AMOS-install-strings' of git://github.com/mudrd8mz/moodle 2011-01-17 18:57:22 +01:00
John Stabinger a7302c7128 MDL-25913 fix for Arialist custom menu 2011-01-17 12:33:00 -05:00
Petr Skoda 673a8f7781 MDL-26031 purge timed-out sessions of guest user 2011-01-17 18:25:00 +01:00
Tim Hunt 897fee6b6f unit tests MDL-26029 fix notices from CheckSpecifiedFieldsExpectation. 2011-01-17 16:19:26 +00:00
John Stabinger 2e84ebda4d MDL-25892 fix for nonzero theme layout 2011-01-17 09:15:08 -05:00
Tim Hunt c97325f6e8 quiz MDL-25722 get rid of annoying alerts when quiz is in 'secure' mode.
See http://moodle.org/mod/forum/discuss.php?d=165772, where people have tried out this fix and found that it works.
2011-01-17 13:34:46 +00:00
John Stabinger 91227f9cee MDL-25914 fix for Binarius custom menu 2011-01-17 07:44:06 -05:00
John Stabinger 2553bf60e2 MDL-25834 fix for Overlay theme custom menu 2011-01-17 07:20:08 -05:00
AMOS bot 64edd130f3 Automatic installer lang files (20110117) 2011-01-17 10:26:47 +01:00
Sam Hemelryk 9498654c1d Merge branch 'MDL-17884_m20' of git://github.com/rwijaya/moodle 2011-01-17 16:00:20 +08:00
Sam Hemelryk fe1f367a11 Merge branch 'MDL-25729_m20' of git://github.com/rwijaya/moodle 2011-01-17 15:54:27 +08:00
Sam Hemelryk ca08b132e3 Merge branch 'MDL-25860_20_wip_grpblocks' of git://github.com/skodak/moodle 2011-01-17 15:36:10 +08:00
Sam Hemelryk 83be8fce3a Merge branch 'MDL-25973_20_wip_charset' of git://github.com/skodak/moodle 2011-01-17 15:24:01 +08:00
Sam Hemelryk c4592a2ac0 Merge branch 'MDL-25971' of git://github.com/timhunt/moodle 2011-01-17 15:12:18 +08:00
Dongsheng Cai a7db0a260e MDL-25895, prevent repository_ajax.php being downloaded by IE when php file is associated with other programs 2011-01-17 13:56:57 +08:00
Sam Hemelryk 616e81cee9 Merge branch 'MDL-25962_20_wip_removeyui' of git://github.com/skodak/moodle 2011-01-17 13:17:04 +08:00
Sam Hemelryk 242c4319ab Merge branch 'MDL-25936_wip' of git://github.com/skodak/moodle 2011-01-17 13:08:33 +08:00
Sam Hemelryk bec662a0f6 Merge branch 'MDL-25837_wip' of git://github.com/skodak/moodle 2011-01-17 11:35:06 +08:00
Sam Hemelryk 227d6da5d8 Merge branch 'MDL-25907_wip' 2011-01-17 10:53:24 +08:00
Sam Hemelryk 3b15d04013 sessions MDL-25907 Fixed typo prior to integration 2011-01-17 10:48:00 +08:00
Sam Hemelryk 0f13630691 Merge branch 'MDL-25836_wip' of git://github.com/skodak/moodle 2011-01-17 10:17:40 +08:00
Sam Hemelryk c5ea8d0bcc Merge branch 'MDL-25935-user_picture_fields' of git://github.com/mudrd8mz/moodle 2011-01-17 09:35:34 +08:00
Petr Skoda 5f01417372 MDL-26007 fix error message when can not found env data 2011-01-16 20:47:22 +01:00
David Mudrak 241e58e44b MDL-25982 Workshop: users from the same group may be excluded from allocation in visible group mode
If the Workshop is in the visible group mode, members of the same group
can be now optionally excluded from random allocation for a given user.
2011-01-16 19:38:56 +01:00
David Mudrak a1dc301ed5 MDL-25523 Workshop: not-grouped users are excluded from allocation in visible group mode
There was a bug as these users were ignored only as squares but not as
circles. This patch makes sure that no new allocation are added to
not-grouped users in visible group mode. However, the options 'Remove current
allocations' and 'Add self-assessments' apply to them intentionally.

Also, the user is warned if there are some not-grouped users found in a
workshop in visible groups mode or separate groups mode.
2011-01-16 19:38:37 +01:00
Dan Poltawski 3b9a74ce53 course reports MDL-25881 - incorrect string 2011-01-16 14:58:41 +00:00
John Stabinger defbd5b0f5 MDL-25723 fix for all course listing in IE 2011-01-14 14:23:10 -05:00
Tim Hunt 1650a33cb4 qtype admin MDL-25987 also allow question type settings to be on an admin_externalpage. 2011-01-14 19:10:47 +00:00
Petr Skoda 3093ce8021 MDL-25988 fixed overriding of roles variable
credit goes to Michael Landis
2011-01-14 19:04:55 +01:00
Tim Hunt 63b5318e86 qtype admin MDL-25987 use get_plugin_list, rather than including questionlib.php.
This should be a small be significant performance win for people who are logged in as admin.
2011-01-14 17:26:31 +00:00
David Mudrak 47ce9385e8 MDL-25526 Workshop: fixed random allocation of reviews
The patch wraps that foreach ($circles as $circleid => $circle)
loop by yet another one for() loop. Reviews are allocated iteratively
now. During the first iteration, we try to make sure that at least one
circle link exists. During the second iteration, we try to allocate two,
etc. Circles are shuffled at the beginning of each iteration.
This is supposed to improve the randomness of the allocation.

The patch also fixes shuffle_assoc() implementation. The previous
implementation actually did not work at all. Also, that removed called
to shuffle_assoc() was redundant here.
2011-01-14 14:20:41 +01:00
John Stabinger 217947351b MDL-25786 fix for magazine theme 2011-01-14 06:57:44 -05:00
David Mudrak 538dcf896c NOMDL MNet remote enrolment client: display a button to go back to the course selection
Without this button, the user has to go through the admin menu again,
selecting the same host. This improves the usability when enrolling
local users to multiple remote courses.
2011-01-14 12:53:01 +01:00
Petr Skoda 3c1293fe97 MDL-25910 custom socket location for postgresql driver, improved config-dist.php info 2011-01-14 12:11:49 +01:00
David Mudrak 34685a5992 MDL-25980 MNet: missing remotecourseid parameter in SQL clearing stale cache records
Because the remotecourseid parameter was missing in SQL, all cache
records for other courses from that host were cleared.
2011-01-14 11:31:57 +01:00
David Mudrak 4841fda1bc NOMDL MNet: Fixed incorrect remote course ID passed
The param is deprecated anyway, it had to be blindly copied from a
legacy code.
2011-01-14 11:31:26 +01:00
Sam Hemelryk e4e19a65f9 mod-quiz MDL-25791 bumped version number, rebased patch, and removed unwanted phpdoc global 2011-01-14 17:49:12 +08:00
Sam Hemelryk b3abfc46e3 mod-quiz MDL-25791 Added conditions around upgrade code so that it is only executed if needed 2011-01-14 17:44:10 +08:00
Sam Hemelryk 0022ea3669 mod-quiz MDL-25791 Fixed database discrepancies between a fresh install and an upgraded site within the Quiz module 2011-01-14 17:44:06 +08:00
Petr Skoda 7c725a24b3 MDL-25860 adding missing blocks to groupings page 2011-01-14 10:41:12 +01:00
Petr Skoda 79ac5a8cf2 MDL-25910 add support for custom mysql socket location 2011-01-14 10:20:04 +01:00
Petr Skoda 8a7703ce53 MDL-25973 add missing charset 2011-01-14 09:32:17 +01:00
Sam Hemelryk 6d02316093 lib-db MDL-25790 Added missing rating indexs on existing 2.0 sites 2011-01-14 16:19:12 +08:00
Sam Hemelryk ffec817ed3 lib-db MDL-25789 Corrected discrepancies in old upgrade code and install.xml 2011-01-14 15:36:59 +08:00
Sam Hemelryk 15257dd181 lib-db MDL-25790 Added code to drop adodb_logsql if it exists 2011-01-14 15:26:48 +08:00
Rossiani Wijaya 2d572444e1 MDL-17884: Add test_download_file_content and componentlib to unittest. Credit goes to Tomasz Muras 2011-01-14 14:52:24 +08:00
Sam Hemelryk 43c984578a lib-db MDL-25790 Fixed up version numbers now that 2.0.1 has been released 2011-01-14 14:22:46 +08:00
Dongsheng Cai 79f0bac62e WIKI MDL-25501 1. check if wiki entry exists before insert new entry 2. check wiki version record mimetype, if it is not empty, try to export the content to file pool 2011-01-14 14:17:24 +08:00
Sam Hemelryk 39f0ceb2cb lib-db MDL-25790 Added conditional checks around upgrade code so that it is only executed if needed. See MDL-25789 2011-01-14 11:52:52 +08:00
Sam Hemelryk 2bddef731a lib-db MDL-25790 Added upgrade code to fix database discrepancies between a fresh install and an upgrade 2011-01-14 11:52:52 +08:00
Rossiani Wijaya 5419885ff8 MDL-25729_m20: fix invalid string in splash theme 2011-01-14 11:20:55 +08:00
Sam Hemelryk 631cefc35f mod-scorm MDL-25792 Changed forcecompleted to have lenght 1 and bumbed version number 2011-01-14 11:09:59 +08:00
Sam Hemelryk b964171cbf mod-scorm MDL-25792 Fixed database discrepancies between a fresh install and an upgraded site within the SCORM module 2011-01-14 11:01:30 +08:00
Sam Hemelryk 5dd7e903ff lib-db-access MDL-25672 editingteacher can no longer delete courses by default. 2011-01-14 10:23:37 +08:00
Sam Hemelryk 3e82d63328 theme-overlay MDL-25750 Fixed overflow problem with report layout. 2011-01-14 10:15:24 +08:00
Petr Skoda 34b93e39a6 MDL-25754 improved tag sanitisation and fixed tag autocomplete 2011-01-13 23:40:43 +01:00
Tim Hunt 1a09fa6dfa html_writer MDL-25971 Support disabled => boolean, as well as disabled => disabled in html_writer::select. 2011-01-13 19:28:54 +00:00
Petr Skoda 8a13ce4def MDL-25962 removing obsolete YUI 2.8.1 library 2011-01-13 10:13:52 +01:00
Petr Skoda 4cb02426ff MDL-25936 fixed user upload when manual plugin not first 2011-01-12 22:07:48 +01:00
Ashley Holman 85b8f8dfd0 MDL-25837 adding missing modinfo course property 2011-01-12 21:44:16 +01:00
Petr Skoda 4e70708de9 MDL-25837 detect invalid course parameter when getting fast modinfo 2011-01-12 21:40:34 +01:00
Ashley Holman d0c3f54770 MDL-25907 purge sessions of not-logged-in users 2011-01-12 20:14:00 +01:00
Petr Skoda 79abc6d1eb MDL-25836 fixed stripped src attribute from script tag 2011-01-12 19:33:18 +01:00
Petr Skoda 5a7f931ee5 weekly version bump 2011-01-12 10:50:18 +01:00
Petr Skoda f4f374176d Merge branch 'MDL-25596-fixed' of git://github.com/samhemelryk/moodle 2011-01-12 09:57:18 +01:00
Sam Hemelryk 0022a97f24 blocks-navigation MDL-25596 Fixed notice when block config doesn't already exist 2011-01-12 09:53:08 +08:00
Petr Skoda 90c42e0f43 MDL-25501 reverting PULL-95 2011-01-11 22:53:16 +01:00
Petr Skoda 65beff8ea4 Merge branch 'AMOS-install-strings' of git://github.com/mudrd8mz/moodle 2011-01-11 16:21:58 +01:00
AMOS bot b9fe01bf1a Automatic installer lang files (20110111) 2011-01-11 16:08:58 +01:00
andyjdavis 99c228aa11 gradebook MDL-25887 closed a file handle that was being left open and added more descriptive grade item titles 2011-01-11 16:11:02 +08:00
andyjdavis 83e364c465 gradebook MDL-25887 removed some commented out code 2011-01-11 11:58:02 +08:00
andyjdavis df2f526877 gradebook MDL-25887 fixed a problem with grade import user mapping 2011-01-11 11:50:04 +08:00
Eloy Lafuente (stronk7) 742d877eaf Merge branch 'MDL-25793' of git://github.com/samhemelryk/moodle 2011-01-11 00:33:56 +01:00
David Mudrak 9ecbf8018f MDL-25935 user_picture::unalias() now handles null values correctly 2011-01-11 00:27:42 +01:00
Eloy Lafuente (stronk7) ff14fd71fd Merge branch 'MDL-24521' of git://github.com/samhemelryk/moodle 2011-01-10 23:20:30 +01:00
Eloy Lafuente (stronk7) a9af868943 Merge branch 'MDL-24561_forum_subscribe_sesskey' of git://github.com/mudrd8mz/moodle 2011-01-10 21:38:13 +01:00
Eloy Lafuente (stronk7) a3c896ae4d Merge branch 'm20_MDL-25794_sections_typo' of git://github.com/danmarsden/moodle 2011-01-10 21:22:02 +01:00
sam marshall b64a827c4d completion MDL-25929 Reordered SQL to make it clearer (after tim's review) 2011-01-10 15:35:46 +00:00
sam marshall 1c6ed50500 completion MDL-25929 Remove progresstrackedroles option 2011-01-10 15:20:24 +00:00
Petr Skoda 4bbcdcec0d Merge branch 'wip-MDL-25927' of git://github.com/sammarshallou/moodle 2011-01-10 15:16:22 +01:00
sam marshall 2af26b123d completion MDL-25927 Added old function back as deprecated, to preserve API compatibility 2011-01-10 14:08:10 +00:00
Petr Skoda 9c15755633 Merge branch 'm20_MDL-25501_wiki_upgrade_improvement' of git://github.com/dongsheng/moodle 2011-01-10 14:54:53 +01:00
Petr Skoda 4761e6334f Merge branch 'm20_MDL-25669_course_sortorder' of git://github.com/dongsheng/moodle 2011-01-10 14:51:22 +01:00
Petr Skoda d0dbd5a345 Merge branch 'm20_MDL-25219_question_text' of git://github.com/dongsheng/moodle 2011-01-10 14:44:26 +01:00
Petr Skoda 6fa8c7ea86 Merge branch 'MDL-25596' of git://github.com/samhemelryk/moodle 2011-01-10 14:41:04 +01:00
Petr Skoda 0e3fdf10c2 Merge branch 'MDL-24984' of git://git.luns.net.uk/moodle 2011-01-10 14:38:16 +01:00
Petr Skoda 5301285d87 Merge branch 'MDL-24742' of git://git.luns.net.uk/moodle 2011-01-10 14:37:21 +01:00
Petr Skoda 2f1b1abc83 Merge branch 'MDL-25232' of git://git.luns.net.uk/moodle 2011-01-10 14:35:38 +01:00
Petr Skoda e168f8cca6 Merge branch 'MDL-25675' of git://git.luns.net.uk/moodle 2011-01-10 14:34:18 +01:00
Petr Skoda 29612524f3 Merge branch 'MDL-25854' of git://github.com/samhemelryk/moodle 2011-01-10 14:31:21 +01:00
Petr Skoda d32c077bf6 Merge commit 'ed5c4cf44d0b38e129ad57747dfaf16d9677d465' 2011-01-10 14:21:15 +01:00
Petr Skoda b2d6484598 Merge commit '246cc0e6b52f455dcb1ab23039202d7498d91d30'
Conflicts:
	course/request.php
2011-01-10 14:12:34 +01:00
sam marshall 563e97b8b9 completion MDL-25927 Change print_help_icon to display_help_icon (returns html instead of printing) 2011-01-10 13:04:54 +00:00
Petr Skoda b2f806cd92 Merge branch 'MDL-25886-user_picture_fields' of git://github.com/mudrd8mz/moodle 2011-01-10 13:43:00 +01:00
Sam Hemelryk d481e2a8e3 mod-wiki MDL-25793 Bumped version number and adjusted version number in new upgrade code. 2011-01-10 17:31:40 +08:00
Sam Hemelryk 4b3c86b152 Merge branch 'MDL-24133' of git://git.luns.net.uk/moodle 2011-01-10 16:40:30 +08:00
Sam Hemelryk 5539372b27 Merge branch 'MDL-25909' of git://git.luns.net.uk/moodle 2011-01-10 16:36:49 +08:00
Sam Hemelryk 0017173f1a Merge branch 'MDL-23393' of git://git.luns.net.uk/moodle 2011-01-10 16:26:17 +08:00
Sam Hemelryk 1cc0c36e04 Merge branch 'MDL-23425' of git://git.luns.net.uk/moodle 2011-01-10 16:12:50 +08:00
Sam Hemelryk 03364f9e2f Merge branch 'MDL-25869' of git://git.luns.net.uk/moodle 2011-01-10 16:10:46 +08:00
Sam Hemelryk 726bc52504 Merge remote branch 'mouneyrac/MDL-25768' 2011-01-10 16:01:08 +08:00
Sam Hemelryk 6b9240c55e Merge branch 'MDL-23657' of git://git.luns.net.uk/moodle 2011-01-10 13:39:44 +08:00
Sam Hemelryk 9e41043ca4 Merge branch 'MDL-23224' of git://github.com/mouneyrac/moodle 2011-01-10 13:33:48 +08:00
Sam Hemelryk 1861a2875a Merge branch 'MDL-24299' of git://git.luns.net.uk/moodle 2011-01-10 13:10:33 +08:00
Sam Hemelryk 34e54bbb62 Merge branch 'MDL-25478' of git://git.luns.net.uk/moodle 2011-01-10 13:02:52 +08:00
Sam Hemelryk 0d2d7a6553 Merge branch 'MDL-25709-2' of git://git.luns.net.uk/moodle 2011-01-10 12:08:10 +08:00
Dongsheng Cai 77064d2b4f WIKI MDL-25501 1. check if wiki entry exists before insert new entry 2. check wiki version record mimetype, if it is not empty, try to export the content to file pool 2011-01-10 10:07:34 +08:00
Dongsheng Cai 3acbe663af MDL-25669, fix_course_sortorder should check MAX_COURSE_CATEGORIES limit, and print debugging message when the number of courses in a category reach the limit 2011-01-10 09:57:15 +08:00
Dan Marsden 2e3c31bca3 SCORM MDL-25794 fix db call to use select_menu to pass into single_select renderer - also fix small typo for label/lable 2011-01-10 11:22:50 +13:00
Dan Poltawski ed4a7e4b07 forum MDL-25232 - fix unbalanced divs 2011-01-09 21:11:01 +00:00
Paul Vaughan 43fa145137 course/lib MDL-24984 - fix lack of spacing on category list
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2011-01-09 20:35:21 +00:00
Dan Marsden ed5c4cf44d SCORM MDL-25891 typo causing general exception for some SCORM objects - thanks to Hais Deakin for report/fix 2011-01-10 09:24:16 +13:00
Dan Poltawski 7de9bfad15 course-format-weeks MDL-24742 dont redefine maincontent
It was breaking XHTML validation due to duplicate id
2011-01-09 20:02:21 +00:00
Dan Poltawski e594fc8d13 mod/data MDL-24133 - footer called before header 2011-01-09 19:31:25 +00:00
Myles Carrick 94b8fa5aad course: MDL-23425 use correct config setting in check for displaying course request buttons
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2011-01-09 18:28:41 +00:00
Dan Poltawski 9268148966 blog MDL-23393 - Tidy up preferences form
Make form display set value and use mforms type checking
2011-01-09 18:03:58 +00:00
ptrkmkl 6f2257ae0d Removed white color from course section content and added white color to section content left side for topic number styling 2011-01-08 12:39:05 -05:00
Dan Poltawski 065bee4b70 forum MDL-25909 - Fix undefined variable 2011-01-08 15:19:41 +00:00
Dan Poltawski 15217303ae blocks/rss_client MDL-25869 Prevent sharing id
The form was generating an element id of "header", causing theme
breakage
2011-01-08 00:17:33 +00:00
David Mudrak 5c0d03ea1c MDL-25886 method to convert aliased fields returned by user_picture::fields() back to unaliased form
The new public static method user_picture::unalias() picks the user
picture fields from the given record and maps the properties back to
unaliased form so that the result can be rendered.
Also fixes a forgotten bug in previous commit and adds a unit test for
both aliasing and unaliasing.
2011-01-07 14:05:25 +01:00
David Mudrak 9958e561d8 MDL-25886 allow user_picture::fields() to be used multiple times within a single query
When user table is joined twice or more within a single query, it is
important to be able to provide aliases to all returned files. This
patch adds optional parameter that, if provided, is used as a prefix
for columns aliases. Does not apply to the 'id' column, use $idalias for
that.
2011-01-07 02:12:43 +01:00
Dongsheng Cai 365e53d1d4 QUESTION MDL-25219 fixed image links in description question type, credit to Sam Hemelryk 2011-01-06 15:29:07 +08:00
Sam Hemelryk 8e5c23e04f blocks-navigation MDL-25596 Fixed up redundant AJAX calls when navigation was limited by config 2011-01-06 11:50:01 +08:00
Sam Hemelryk 603087b87e enrol MDL-25522 Fixed up duplicate fields in search_other_users method that was causing problems in Oracle 2011-01-06 10:20:28 +08:00
Andrew Robert Nicols 218a465980 lib/ajax/ MDL-25675 Use className instead of classList.toString()
Signed-off-by: Andrew Robert Nicols <andrew.nicols@luns.net.uk>
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2011-01-05 23:26:28 +00:00
David Mudrak c56ed7bb85 MDL-24561 forum: require sesskey for the course-wide subscriptions
mod/forum/index.php allows to subscribe to and unsubscribe from all
forums in the course. However, sesskey was not checked here.
2011-01-05 13:01:46 +01:00
David Mudrak 6f7d65c724 MDL-24561 forum subscription checks sesskey
The only case when sesskey is not available is when we came to
subscribe.php from a link in email. In that case, we display a
confirmation page that redirects back providing the sesskey.
All other links to subscribe.php are fixed now so they provide sesskey
as a parameter.
I also polished $mode parameter handling a bit because the check
against empty string was not correct as the value is cast to PARAM_INT.
2011-01-05 13:01:46 +01:00
Petr Skoda 46f4c3932f weekly release 2011-01-05 11:54:01 +01:00
jeromemoodle 1ede3cb37f javascript lib MDL-23224 dropdown onclick event is not trigger in Chrome 2011-01-05 16:12:52 +08:00
andyjdavis 246cc0e6b5 course MDL-25831 removed trailing whitespace 2011-01-05 15:08:18 +08:00
jeromemoodle 6a658c9173 community hub finder MDL-25768 private hubs weren't displayed in the hub list 2011-01-05 14:27:54 +08:00
Sam Hemelryk 712b55e1ba javascript MDL-24521 Fixed confirm dialog bug. Kudos to John Anderson for his work on the patch and James Brisland for help testing. 2011-01-05 14:02:42 +08:00
Sam Hemelryk dfcf4e0819 Merge branch 'MDL-25525' of git://git.luns.net.uk/moodle 2011-01-04 13:47:55 +08:00
andyjdavis a170818189 course MDL-25831 made course request notifications work 2011-01-04 13:35:08 +08:00
Sam Hemelryk 724125bdd4 Merge branch 'MDL-25657' of git://git.luns.net.uk/moodle 2011-01-04 13:30:32 +08:00
Sam Hemelryk 1be9192173 mod-wiki MDL-25793 Fixed database discrepancies between a fresh install and an upgraded site within the Wiki module 2011-01-04 09:43:45 +08:00
Dan Poltawski 047c3b6cd3 lib/accesslib.php MDL-25709 - fix docs 2011-01-03 23:41:10 +00:00
Dan Poltawski e60a00f9a4 blocks/calendar_month MDL-23657 - don't assume id param is courseid
This was casuing context creation on invalid courses..

There remains a problem with previous/next buttons on non course pages.
2011-01-03 23:21:44 +00:00
Tomasz Muras 936a0ae07e roles/assign MDL-24299 Fix back link
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2011-01-03 21:09:32 +00:00
Sergey Vidusov ebb32067bf MDL-25478 - stop fatal errors adding blocks on the module edit page
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2011-01-03 19:09:56 +00:00
Adam Olley adc3cfc744 calendar/lib.php MDL-25525 - Tooltip icons broken
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2011-01-03 18:26:50 +00:00
Dan Poltawski 03a50532be user/filters MDL-25657 Obsolete reference to timestart 2011-01-03 18:08:30 +00:00
Petr Skoda b095f16947 Merge branch 'MDL-25847' of git://git.luns.net.uk/moodle 2011-01-03 18:16:04 +01:00
Petr Skoda 89881a345b MDL-25589 removing extra align value 2011-01-03 18:08:44 +01:00
Petr Skoda e1ce9a6670 Merge branch 'MDL-25589' of git://git.luns.net.uk/moodle 2011-01-03 18:02:44 +01:00
Petr Skoda 6a81ececb3 Merge branch 'MDL-25808' of git://git.luns.net.uk/moodle 2011-01-03 17:59:53 +01:00
Petr Skoda 01f6035ea1 Merge branch 'MDL-25822' of git://git.luns.net.uk/moodle 2011-01-03 17:53:51 +01:00
Dan Poltawski 50542ff06a user/profile.php MDL-25847 - Missing library dependency 2011-01-03 16:49:30 +00:00
Dan Poltawski f8f384b5b4 coursereqest MDL-25589 set context 2010-12-30 15:56:35 +00:00
Dan Poltawski b5a49647e2 course/approval.php MDL-25589 Table misaligned 2010-12-30 15:52:52 +00:00
Dan Poltawski 85fd37d396 enrol/meta MDL-25808 - error when deleting metacourse
Using incorrect dmllib function & testing on non-existant courseid column
2010-12-30 15:10:32 +00:00
Dan Poltawski 9e202d38c8 statistics MDL-25822 Fix broken navigation 2010-12-30 12:42:50 +00:00
Dan Poltawski f9c2702ece statistics MDL-25822 Fix get_records_sql returning non-unique first column 2010-12-30 12:42:41 +00:00
Dan Poltawski 5b903967de statistics MDL-25822 multiple values in get_field_sql
A variety of get_field_sql calls returning multiple values, switched
to using MIN/MAX selects.
2010-12-30 10:30:07 +00:00
Tim Lock 6c7b6efcf6 courseoverview report MDL-25727 Graphs Broken
Typo preventing graphs from displaying

Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2010-12-30 09:50:21 +00:00
Petr Skoda c63ebd4311 weekly version 2010-12-29 17:48:42 +01:00
Petr Skoda 07f31e9f82 MDL-25813 fixed silly typo 2010-12-28 22:33:26 +01:00
Eloy Lafuente (stronk7) a3b474ffa0 Merge branch 'wip-MDL-25370' of git://github.com/sammarshallou/moodle 2010-12-27 17:55:35 +01:00
Eloy Lafuente (stronk7) 1ac3e1f208 Merge branch 'MDL-25720' of git://github.com/timhunt/moodle 2010-12-27 16:36:17 +01:00
Eloy Lafuente (stronk7) e5137f247e MDL-25341 blogs import - unused vars and mktime() fix 2010-12-27 16:20:39 +01:00
Eloy Lafuente (stronk7) b7c1da93ec MDL-25341 blogs import - minor whitespace clean 2010-12-27 15:56:58 +01:00
Eloy Lafuente (stronk7) e38610e4d4 Merge branch 'blog_MDL-25341_entry_sync' of git://github.com/andyjdavis/moodle 2010-12-27 15:55:14 +01:00
Petr Skoda bf97304ac3 Merge branch 'MDL-25596' of git://github.com/samhemelryk/moodle 2010-12-27 13:51:25 +01:00
Petr Skoda c81f657b4a MDL-22449 bumping major version to lang invalidate caches and fix phpdocs 2010-12-27 13:48:10 +01:00
Petr Skoda c03b6176a6 Merge branch 'm20_MDL-22449_wiki_help_buttons' of git://github.com/dongsheng/moodle 2010-12-27 13:44:54 +01:00
Petr Skoda 1310964bb3 Merge branch 'MDL-24860_messaging_providers' of git://github.com/andyjdavis/moodle
Conflicts:
	mod/lesson/version.php
2010-12-27 13:39:20 +01:00
Petr Skoda 8729e5999f Merge branch 'MDL-25321-R1' of git://github.com/samhemelryk/moodle 2010-12-27 12:46:01 +01:00
Petr Skoda 82517e2b78 Merge branch 'MDL-25749' of git://github.com/stronk7/moodle 2010-12-27 12:41:29 +01:00
Petr Skoda 554efaebae MDL-25682 bumping major version to invalidate JS caches 2010-12-27 12:39:40 +01:00
Petr Skoda e2bbe5ff7d Merge branch 'MDL-25682' of git://github.com/danpoltawski/moodle 2010-12-27 12:37:37 +01:00
Petr Skoda afaeb83ce1 MDL-25676 bumping version number to invalidate JS caches 2010-12-27 12:35:07 +01:00
Petr Skoda c72077c4ed Merge branch 'MDL-25676' of git://github.com/danpoltawski/moodle 2010-12-27 12:31:19 +01:00
Petr Skoda 1af9fd3879 Merge branch 'MDL-25761_data_portfolio' of git://github.com/mudrd8mz/moodle 2010-12-27 12:29:15 +01:00
Petr Skoda 9bb5a6f037 Merge branch 'MDL-25186_m20a' of git://github.com/rwijaya/moodle 2010-12-27 12:25:06 +01:00
Petr Skoda 3b8929e84b Merge branch 'MDL-25713_m2_recordset' 2010-12-27 12:05:22 +01:00
Petr Skoda c3b1c4f097 MDL-25713 fixing trailing whitespace 2010-12-27 12:04:26 +01:00
sam marshall f140ee3d17 accessibility MDL-24613 Fixed (sort of) bug with rtl languages 2010-12-27 11:43:08 +01:00
Petr Skoda 5221d1b569 Bumping to 2.0.1 2010-12-25 23:20:58 +01:00
andyjdavis 2948757873 blog MDL-25341 fixed 2 more whitespace issues 2010-12-24 09:31:58 +08:00
sam marshall cd092eceee cron MDL-25370 Update to use simpler api to get component directory 2010-12-23 10:32:42 +00:00
Sam Hemelryk 8ad24c1a44 navigation MDL-25596 Fixed whitespace issue 2010-12-23 16:55:52 +08:00
Sam Hemelryk 48d8d09063 navigation MDL-25596 Improvements for the navigation blocks JS
The biggest change is that the navigation block has been converted to a proper YUI module.
The following are the other changes made at the same time:
 * A loading icon is displayed when a branch is being loaded by AJAX.
 * Fixed a bug where you could trigger multiple AJAX requests by rapidly clicking an unloaded branch.
 * Fixed a bug where empty branches weren't being marked as such after a successful AJAX load.
 * When docked the width of the blocks dock panel is now inspected an increased if required to try avoid horizontal scrolling.
 * Removed the no longer needed inclusion of the YUI2 dom library from the navigation and settings block.
 * Expandable nodes are now passed as JS data allowing the navigation JS to be initialised through block_navigation::get_required_javascript.
 * AJAX is now focused around the branch in question rather than the tree in general.
 * Expansion of branches is now delegated to the tree rather than being an individual event on all branches.
 * Tidied up the code in general removing unneeded-unused parameters.
2010-12-23 11:21:07 +08:00
Sam Hemelryk 875851a195 dml-sqlserver MDL-25321 Changed bigint-1 to a variable and used that instead of the int 2010-12-23 11:01:12 +08:00
andyjdavis fc61acce12 gradebook MDL-25713 now closing the recordset even when theres a problem 2010-12-23 10:07:08 +08:00
Sam Hemelryk 35d19ea685 dml-sqlserver MDL-25321 Fixed limit_to_top_n function that was breaking badly. 2010-12-23 10:02:08 +08:00
Eloy Lafuente (stronk7) 4cf2e5d571 MDL-25749 dml - pgsql fix for integer-exclusive concats 2010-12-22 18:50:05 +01:00
Eloy Lafuente (stronk7) e8615eaf0e MDL-25749 dml - added integer-exclusive concat tests 2010-12-22 18:48:45 +01:00
Andrew Robert Nicols a8a44f2845 MDL-25682 Set the iconsmall class correctly on all section icons.
When using AJAX the icons are not styled correctly. I've taken out
all of the non-css style from the move icon since this is all covered
by the iconsmall and img classes anyway.

Signed-off-by: Andrew Robert Nicols <andrew.nicols@luns.net.uk>
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2010-12-22 15:23:07 +00:00
Andrew Robert Nicols 1a0d7bd785 MDL-25676 Add back missing test for editing_assign class
This had caused the assign roles button disappeared in AJAX view.

Note - this does not fix the issue with the cloned buttons being resized
(MDL-25682)

Signed-off-by: Andrew Robert Nicols <andrew.nicols@luns.net.uk>
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2010-12-22 14:51:03 +00:00
Tim Hunt 652599ecc3 MDL-25720 moodlelib new PARAM_RAW_TRIMMED.
Will be required by the new question engine.
2010-12-22 10:51:48 +00:00
Rossiani Wijaya 39f2bbf3fb MDL-25186: add environmental check to recommend PHP 5.3.3 2010-12-22 16:45:17 +08:00
Petr Skoda f056cb544d Updated the master build version 2010-12-22 08:29:03 +01:00
andyjdavis 694fb770b9 blog MDL-25341 removed another whitespace 2010-12-22 13:29:01 +08:00
andyjdavis c484c852f4 blog MDL-25341 removed some whitespaces inserted by netbeans 2010-12-22 13:27:46 +08:00
andyjdavis bb8a75e72d blog MDL-25341 fixed some whitespace issues 2010-12-22 13:24:55 +08:00
andyjdavis 54672f15b4 lesson MDL-24860 added mod/lesson/db/messages.php 2010-12-22 12:12:35 +08:00
andyjdavis d8f1412819 message MDL-24860 fixed messaging code in mod_lesson and marked spots that are directly sending email 2010-12-22 12:05:49 +08:00
Eloy Lafuente (stronk7) b739d51be6 MDL-25674 fix phpdocs 2010-12-21 19:19:35 +01:00
sam marshall e4a626b983 cron MDL-25370 Update Petr's changes to fix bug regarding lastcron, add comments/doc 2010-12-21 16:37:22 +00:00
Petr Skoda b554173562 MDL-25370 general cron support for nearly all plugin types 2010-12-21 15:18:29 +00:00
David Mudrak ee314f4019 MDL-25761 Database module: missing portfolio library inclusion
Portfolios are not officially supported in Database module yet. But this
missing library inclusion is a coding error because the class defined in
the library is already used in the code.
2010-12-21 10:40:19 +01:00
Petr Skoda ab12793355 Merge branch 'xhprof' of git://github.com/stronk7/moodle 2010-12-20 22:59:20 +01:00
Eloy Lafuente (stronk7) 6af80cae01 MDL-24600 profiling - add xhprof integration 2010-12-20 21:41:45 +01:00
Eloy Lafuente (stronk7) dde5bfbcf7 MDL-25178 glossary - add completionentries rule 2010-12-20 20:02:04 +01:00
Petr Skoda ab6e79718c Merge branch 'MDL-25632' of git://github.com/samhemelryk/moodle 2010-12-20 19:21:20 +01:00
Dongsheng Cai b72ca9f81a category editing MDL-21671 fixed deprecated function call, check capability when parent category changed 2010-12-20 19:03:14 +01:00
Dongsheng Cai 450498bff1 MDL-21671, site level categroy manage capability when edit category, credits to Vadim Dvorovenko 2010-12-20 19:03:14 +01:00
Eloy Lafuente (stronk7) 6fe79e7fba MDL-25656 glossary filter - make alias links to work 2010-12-20 18:25:50 +01:00
Tim Hunt d9c26e2174 blocklib MDL-25654 fix API inconsistency be renaming add_pretend_block to add_fake_block.
I added a deprecated method add_pretend_block that forwards to add_fake_block, so old code should be break. However, I aslo updated all the callers in core code.
2010-12-20 18:22:37 +01:00
Eloy Lafuente (stronk7) 958c04e450 Merge branch 'master' of git.moodle.org:/git/integration 2010-12-20 17:02:02 +01:00
Dongsheng Cai cc26cb3b33 MDL-10783, added span class and tag title 2010-12-20 17:00:34 +01:00
Dongsheng Cai 7b8b366218 Linking wiki pages to other moodle stuff by tag, and remove an unused function in wiki 2010-12-20 17:00:34 +01:00
David Mudrak 800bd78548 MDL-25647 mnet: fixed checkbox handling at peer services form
We must use advcheckbox here so that unticked checkbox is considered as
0 and not as not-submitted in this case.
2010-12-20 16:58:25 +01:00
Tim Hunt ccdd15962a MDL-25715 simpletestlib new expectations for testing renderer output.
With unit tests.
2010-12-20 16:24:23 +01:00
Tim Hunt 6cc09234be MDL-24060 text_to_html tests. Make sure alt text for LaTeX images doesn't break. 2010-12-20 15:01:43 +01:00
Petr Skoda 07cd46d84d MDL-25674 detection of invalid $user parameter when synchronising user enrolments 2010-12-20 14:41:18 +01:00
Petr Skoda c35ae13691 MDL-25674 forum must send full user record when setting up different session user in cron 2010-12-20 14:41:17 +01:00
Petr Skoda 5d6ab05435 MDL-25674 prevent modification of cached admin record 2010-12-20 14:41:17 +01:00
Eloy Lafuente (stronk7) 011c956ba1 Merge branch 'm20_MDL-14934_excel_time' of github.com:dongsheng/moodle 2010-12-20 12:21:21 +01:00
Rossiani Wijaya 81284044d8 Fix course ajax to be compatible with language packs. 2010-12-20 12:15:16 +01:00
Eloy Lafuente (stronk7) 94aff78e40 NOBUG: Some more testing of integration server 2010-12-20 12:05:16 +01:00
Sam Hemelryk d1b0cfa85e NOBUG: Testing the setup of the integration server 2010-12-20 18:23:53 +08:00
Dongsheng Cai b83f54f895 MDL-23930 fixed javascript insert into tinymce 2010-12-20 18:07:15 +08:00
andyjdavis 2f9ea7d78e gradebook MDL-25713 switched grade_object fetch_all_helper() over to using a recordset 2010-12-20 16:39:46 +08:00
andyjdavis 50ff50daaa blog MDL-25341 added removal of deleted external blog posts 2010-12-20 14:58:02 +08:00
andyjdavis cc52e53dd1 blog MDL-20617 adding checking for deleted blog posts 2010-12-20 11:16:11 +08:00
andyjdavis afce96f07b blog MDL-25341 updated external blog syncing code after peer review 2010-12-17 09:46:46 +08:00
andyjdavis 9829e3d8fa blog MDL-25341 made external blog syncronization not delete all previously retreieved blog posts 2010-12-16 16:21:41 +08:00
Dongsheng Cai 869bbb302b MDL-14934 fixed excel time in master branch, credits to Jonathon Fowler 2010-12-15 16:26:26 +08:00
Sam Hemelryk 86d99db3a0 mod-lesson MDL-25632 Fixed incorrect comment in matching question code. 2010-12-15 13:12:33 +08:00
Sam Hemelryk 26063f4b55 mod-lesson MDL-25632 Fixed bug where the number of attempts on a question for the current lesson attempt was being wrongly calculated. 2010-12-15 13:12:33 +08:00
Sam Hemelryk 981debb706 mod-lesson MDL-25632 Fixed bug whereby excess answers were being created when creating a page and then when updating it 2010-12-15 13:12:33 +08:00
Sam Hemelryk 1c510e2ee1 mod-lesson MDL-25632 Added support for displaying and progressing through a question page with no answers 2010-12-15 13:12:33 +08:00
Sam Hemelryk 36a60f0ff6 mod-lesson MDL-25632 Added upgrade code to correct page jumps for matching questions after Moodle 1.9 upgrade. 2010-12-15 13:12:33 +08:00
Sam Hemelryk 9170dea7d6 mod-lesson MDL-25632 Set a default jump to display when a question has no answers (after 1.9 upgrade) 2010-12-15 13:12:33 +08:00
Sam Hemelryk 2a03a824c4 mod-lesson MDL-25632 Fixed undefined var notice for responseformat in the lesson report. 2010-12-15 13:12:33 +08:00
Eloy Lafuente (stronk7) f4c23f03dc MDL-25609 frontpage combo list - avoid filter linking too much 2010-12-15 00:05:39 +01:00
Martin Dougiamas 88e5c58677 This is my last commit to CVS. Goodbye old friend - you've served us well. 2010-12-14 07:39:48 +00:00
Moodle Robot 602f1c10dd Updated the HEAD build version to 20101214 2010-12-14 00:51:53 +00:00
AMOS bot 430ecb29fc Automatic installer lang files (20101214) 2010-12-14 00:40:11 +00:00
Petr Skoda 2df1126b2d MDL-25663 debugging does not print html any more in CLI mode 2010-12-13 20:53:19 +00:00
Petr Skoda 883deb3eb5 MDL-25659 fixed borked creation of enrol instances enrol/database, fixed detection of misconfigured sync 2010-12-13 20:48:29 +00:00
Dongsheng Cai d92b5e7f01 mod-wiki MDL-22449 wiki module needs more help text 2010-12-14 02:43:17 +08:00
Petr Skoda 12c3ba99e7 MDL-25659 fixed overriding of fields variable and improved coding style in similar places
credit goes to Bill Johnson
2010-12-13 18:07:40 +00:00
sam marshall 546380244f cron MDL-25370 Added support for course report cron
- Adds support for course report cron
- Moves existing admin report cron support to end of cron function
- Adds new core API get_plugin_list_with_function

note: default shipping course and admin reports do not use cron
function, this is only to support plugins.
2010-12-13 13:00:44 +00:00
Andrew Davis 8d9db9e549 gradebook MDL-24330 unit tests now function differently so produce different results 2010-12-13 06:55:32 +00:00
Moodle Robot 8aba33660e Updated the HEAD build version to 20101213 2010-12-13 00:49:02 +00:00
Moodle Robot a49e07fbf7 Updated the HEAD build version to 20101212 2010-12-12 00:49:04 +00:00
AMOS bot 98a40ee4e2 Automatic installer lang files (20101212) 2010-12-12 00:40:09 +00:00
Moodle Robot e6d7ac56a0 Updated the HEAD build version to 20101211 2010-12-11 00:49:01 +00:00
AMOS bot 884b5e680a Automatic installer lang files (20101211) 2010-12-11 00:40:09 +00:00
David Mudrak 07f59c9049 NOMDL mnet: do not display 'All Hosts' in the Network servers block 2010-12-10 22:18:26 +00:00
Dongsheng Cai cd4559654d "MDL-25634 Filepicker upload should handle files which exceed max_post_size directive in php.ini" 2010-12-10 04:13:09 +00:00
Dongsheng Cai 1298a11935 "MDL-25633 Filepicker upload should display better error report" 2010-12-10 03:16:59 +00:00
Andrew Davis 2b574cc4e0 gradebook MDL-24330 massively reduced grade objects unit tests execution time so I can actually run them 2010-12-10 03:05:49 +00:00
Moodle Robot 25fa031fd8 Updated the HEAD build version to 20101210 2010-12-10 00:50:04 +00:00
AMOS bot e5b2142f7a Automatic installer lang files (20101210) 2010-12-10 00:40:09 +00:00
Eloy Lafuente 20d3bf6100 MDL-25418 glossary - fix incorrect LOWER() call also present in glossary import & entry export functionalities 2010-12-09 22:50:23 +00:00
David Mudrak fda6946eb2 MDL-22676 language customization: enlarge the input textarea fields
This patch combines the solution submitted by Ray Guo (computed
min-height) and the one used in AMOS (set the height of the textarea so
that it takes all available space in the row).
2010-12-09 11:48:55 +00:00
Petr Skoda 424d60d9c1 MDL-25623 fix incorrect use of DISTINCT on text fields 2010-12-09 11:02:53 +00:00
Petr Skoda a290625efb fixed incorrect progress bar name 2010-12-09 09:09:21 +00:00
Aparup Banerjee 000c881e98 lib MDL-25595 added dbport option handling to mssql connect() 2010-12-09 07:01:03 +00:00
Andrew Davis 323409c54c message MDL-25240 switched personal messages from FORMAT_PLAIN to FORMAT_MOODLE 2010-12-09 06:39:53 +00:00
Andrew Davis 4e226c99d5 message MDL-25240 add explanatory comment 2010-12-09 06:39:10 +00:00
Petr Skoda 3bcc53cd83 MDL-25607 respect visibility of news forum in the Latest news block 2010-12-09 06:23:18 +00:00
Aparup Banerjee bac1401534 lib MDL-25532 added dbport handling for during db creation 2010-12-09 06:18:20 +00:00
Petr Skoda 59186c92b3 MDL-25614 add missing group lib 2010-12-09 06:14:38 +00:00
Andrew Davis 77fb01833e rss MDL-25563 made the rss block unescape item URLs to prevent double escaping 2010-12-09 03:02:26 +00:00
Moodle Robot 026011c098 Updated the HEAD build version to 20101209 2010-12-09 00:49:16 +00:00
AMOS bot 90f4a864f7 Automatic installer lang files (20101209) 2010-12-09 00:40:09 +00:00
David Mudrak 7e514cd768 MDL-25619 portfolio: exported HTML output can not be cleaned 2010-12-08 23:20:04 +00:00
Helen Foster f085c3eccb MDL-21250 capital letters removal 2010-12-08 19:47:46 +00:00
Helen Foster 351d05ead4 MDL-21250 capital letters removal 2010-12-08 19:42:42 +00:00
Helen Foster 9825422e02 MDL-21250 capital letters removal 2010-12-08 19:34:47 +00:00
Helen Foster 600962e843 MDL-21250 capital letters removal 2010-12-08 19:16:17 +00:00
Helen Foster c8761a0b23 MDL-21250 capital letters removal 2010-12-08 15:37:34 +00:00
Helen Foster bbe6f6e113 MDL-21250 capital letters removal and greylisted string removal 2010-12-08 15:35:52 +00:00
Helen Foster e5a0920419 MDL-21250 capital letters removal 2010-12-08 14:34:03 +00:00
Helen Foster dcc5fd59f8 MDL-21250 capital letters removal also license info added 2010-12-08 11:01:20 +00:00
Helen Foster 6fa35f8aae MDL-21250 capital letters removal 2010-12-08 10:50:53 +00:00
Petr Skoda 3aa2fd20c0 MDL-25593 added missing filelib include
credit goes to Adam Olley
2010-12-08 08:15:21 +00:00
Petr Skoda 320e50b783 MDL-25472 support non-standard dir separators in zip archives and other anomalies 2010-12-08 08:08:45 +00:00
Petr Skoda 8d33799d46 MDL-25543 fixed borked preupgrade script support
credit goes to Chris B Stones
2010-12-08 07:51:00 +00:00
Petr Skoda 2168425a9e MDL-25611 more browser detection cleanup and improvements
general WebKit support, adding version support for android, fixing android browser name (engine name first), adding more tests
2010-12-08 07:39:58 +00:00
Petr Skoda 0667103514 MDL-25611 browser detection cleanup and improvements 2010-12-08 06:51:54 +00:00
Sam Hemelryk 82721a2f9f NOBUG: Fixed up annoying type in moodle_page @property list 2010-12-08 02:04:47 +00:00
Sam Hemelryk afc45eb160 navigation MDL-25578 Fixed up navbar when viewing categories. 2010-12-08 02:03:07 +00:00
Moodle Robot 668c450956 Updated the HEAD build version to 20101208 2010-12-08 00:49:40 +00:00
AMOS bot d57043de88 Automatic installer lang files (20101208) 2010-12-08 00:40:09 +00:00
Petr Skoda e67cfbd4c7 MDL-23733 Disable TinyMCE on iPod Touch and Android devices
Credit goes to Paul Nicholls
2010-12-07 15:49:57 +00:00
David Mudrak d1571da6c8 MDL-25068 forum: fixed error string usage
The string [cannotsubscribe,mod_forum] is supposed to be used for group
membership check only. I have fixed the two other usages of the string.
Note that the condition if (forum_subscribe()) was useless as the
function return true values only now after $DB conversion.
2010-12-07 12:34:35 +00:00
David Mudrak 9a3adb2032 NOMDL forum: fixed the string wording to match the current code condition
Previous string was used together with the legacy:guest capability.
However, the current code checks is_enrolled() instead. This led to a
weird situation when non-enrolled admin or manager could not subscribe
to a forum and the error message was completely confusing for them.
2010-12-07 12:34:11 +00:00
David Mudrak 99eb51d9e4 MDL-22114 forum: fixed PAGE url param set
I am pretty sure Sam overlooked this is in the commit afef965e
2010-12-07 12:33:24 +00:00
David Mudrak 95d28f044e MDL-25524 workshop: fixed random allocator removing current allocations
The bug was in filter_current_assessments() being applied before get_unkept_assessments()
so actually no current assessment records could be detected.
2010-12-07 11:39:50 +00:00
Tim Hunt 6eee65e4b5 deprecatedlib NOBUG fix typo. 2010-12-07 10:34:15 +00:00
Sam Hemelryk 0f229b906f output MDL-25597 Bumping version after the three new settings were added. 2010-12-07 08:50:18 +00:00
Sam Hemelryk 90e920c7f4 output MDL-25597 Added three new config settings that allow you to add additional HTML to every page. 2010-12-07 08:48:38 +00:00
Aparup Banerjee feaddca9e9 lib MDL-25532 added dbport option to mysqli driver 2010-12-07 07:30:35 +00:00
David Mudrak b876a003b4 MDL-25588 report_customlang: removed redundant safe path check
Only the $lang part of the the path comes from the browser and it is
checked in get_localpack_location() anyway.
2010-12-07 06:08:51 +00:00
Moodle Robot 2f698d2a0b Updated the HEAD build version to 20101207 2010-12-07 00:49:33 +00:00
David Mudrak ff7670e79b MDL-25582 Fixed inconsistence in FEATURE_MOD_INTRO evaluation 2010-12-06 16:07:31 +00:00
john St 162f4e19d9 fix for magazine theme MDL-25581 2010-12-06 16:00:16 +00:00
David Mudrak 44790d21ec MDLSITE-1162 .gitignore file for Moodle git mirror 2010-12-06 12:57:38 +00:00
Petr Skoda 365bf67699 MDL-25536 fixed incorrect reading of plugin options in imsenterprise enrol plugin 2010-12-06 05:52:55 +00:00
Sam Hemelryk 83da094204 NOBUG: Removed unused variable 2010-12-06 03:21:01 +00:00
Moodle Robot db7cab67c7 Updated the HEAD build version to 20101206 2010-12-06 00:54:02 +00:00
Dongsheng Cai 70cb0769d5 "COMMENTING MDL-25540 fixed bullet point displayed over user pics, credits to Davo Smith" 2010-12-05 18:44:01 +00:00
Dongsheng Cai a9f19d81b9 "DATA MODULE MDL-25564 fixed $PAGE->url, credits to Davo Smith" 2010-12-05 18:36:44 +00:00
Dongsheng Cai 7be06fa535 "MDL-25529 revert changes, it broke module instance creating page" 2010-12-05 18:01:33 +00:00
jerome mouneyrac 4a67d7c84d course MDL-25529 $introeditor not declared in some cases (=> it was displaying php notice when adding the official newmodule template) 2010-12-05 08:24:33 +00:00
Moodle Robot 70913ab324 Updated the HEAD build version to 20101205 2010-12-05 00:51:35 +00:00
AMOS bot ac952d6b87 Automatic installer lang files (20101205) 2010-12-05 00:40:09 +00:00
Helen Foster 90699ee515 removing backslash 2010-12-04 19:44:51 +00:00
Moodle Robot 183614cdde Updated the HEAD build version to 20101204 2010-12-04 00:53:41 +00:00
AMOS bot e59a0f862f Automatic installer lang files (20101204) 2010-12-04 00:40:09 +00:00
Pierre Pichet fe75941008 MDL-25535 Testing default values when editing numerical options 2010-12-03 14:57:30 +00:00
Aparup Banerjee 93b4ecb2cd enrol MDL-25522 removed extra redundant definition of field names in query causing oracle issues 2010-12-03 09:31:31 +00:00
Petr Skoda de2d81fad5 MDL-25459 removing option to set picture and tags in admin profile setup form, we can use these only after setup is finished 2010-12-03 05:26:17 +00:00
Moodle Robot de8a84e3e4 Updated the HEAD build version to 20101203 2010-12-03 00:49:18 +00:00
Helen Foster 4997ee5543 MDL-21250 capital letters removal 2010-12-02 21:48:04 +00:00
Helen Foster 1973cf9be8 MDL-21250 capital letters removal 2010-12-02 19:18:08 +00:00
Helen Foster f705b4347a MDL-21250 capital letters removal 2010-12-02 18:22:19 +00:00
David Mudrak d774e8171a MDL-25316 quiz_get_extra_capabilities() does not need to fetch subcapabilities explicitly 2010-12-02 16:51:52 +00:00
David Mudrak 61869c550f MDL-25316 capabilities defined in subplugins are available when overriding the module permissions 2010-12-02 16:51:41 +00:00
Helen Foster e6f6fa179b MDL-21250 capital letters removal 2010-12-02 16:48:22 +00:00
Helen Foster ae1790109d MDL-21250 capital letters removal 2010-12-02 16:18:41 +00:00
Helen Foster 7a35fe4ffd MDL-21250 capital letters removal 2010-12-02 15:42:24 +00:00
Sam Marshall 9ea98a6e15 local NOBUG Improved my settings example (probably typical usage) in local/readme.txt 2010-12-02 11:26:55 +00:00
Sam Hemelryk cf5a0dbdd4 course-reports MDL-24173 Course reports now use the report page layout + minor tweaks to the serenity theme. 2010-12-02 07:31:48 +00:00
Dongsheng Cai 75d138a312 "MDL-25497, fixed Non-JavaScript file uploader generates warnings, credits to Tim Lock" 2010-12-02 07:26:25 +00:00
Sam Hemelryk 480f906e25 block-navigation MDL-23838 There is now an option that you can enable so that categories in the navigation are links as well. 2010-12-02 07:13:07 +00:00
Aparup Banerjee 2282039660 search MDL-25153 fixed performance problem 2010-12-02 06:24:50 +00:00
Sam Hemelryk 57bedaeeea output-custommenu MDL-25447 Fixed up the processing of the custom menu removing the hard-coded single step down 2010-12-02 06:11:27 +00:00
Petr Skoda 621df74e00 MDL-25474 do not try to use caching for dynamic JS - it can not work 2010-12-02 05:46:09 +00:00
Petr Skoda 6d5b79c51d MDL-25474 do not use html editor for css and js editing 2010-12-02 05:35:26 +00:00
Sam Hemelryk 1ded6e1f69 theme-base MDL-25498 Fixed up z-index overlay issue with YUI3 custom menu. 2010-12-02 05:20:37 +00:00
Moodle Robot 669a26af48 Updated the HEAD build version to 20101202 2010-12-02 00:50:07 +00:00
Sam Marshall 2528fe1408 local NOBUG Added another settings example (probably typical usage) to the excellent documentation about local plugins 2010-12-01 17:48:58 +00:00
Helen Foster bea9531a78 MDL-25475 lang string update thanks to Inaki Arenaza and Angelo Pappano 2010-12-01 12:17:44 +00:00
David Mudrak 4b457a71cc MDL-25369 mnet: do not show deleted peers in the remote enrolment client 2010-12-01 10:00:18 +00:00
Eloy Lafuente 3e7d386625 MDL-25418 glossary - fixed and improved duplicate entries buggy queries 2010-12-01 09:23:18 +00:00
David Mudrak 9c5cafd6d7 NOMDL Fixed profile pictures size in the list of participants
Because the 'size' option was not specified, the renderer used the
default size 35 for both modes. Therefore, the f2.png profile picture
was used even though the detailed expects 100x100 pictures. With this
patch, both sizes are specified explicitly and do not rely on the
default value.
2010-12-01 08:53:05 +00:00
jerome mouneyrac ed2441128f webservice MDL-21658 add moodle_add_groupmembers, moodle_create_groups, moodle_delete_groupmembers, moodle_delete_groups unit tests 2010-12-01 08:20:52 +00:00
Sam Hemelryk 2138d893f8 output MDL-25445 Corrected standard_end_of_body_html, returns rather than echoes now as suggested by docs and use. Kudos Urs for spotting. 2010-12-01 06:04:05 +00:00
Moodle Robot 164768bbb6 Updated the HEAD build version to 20101201 2010-12-01 00:49:06 +00:00
Andrew Davis 0077f57198 gradebook MDL-16103 prevented outcomes in gradebook showing the same icon as the activity they are attached to as it makes them hard to find. 2010-11-30 09:03:43 +00:00
jerome mouneyrac e76e431c66 webservice MDL-21658 add moodle_group_get_groupmembers() and moodle_group_get_course_groups() unit test functions 2010-11-30 07:52:05 +00:00
jerome mouneyrac 3acb709515 webservice MDL-21658 add moodle_role_unassign() unit test function 2010-11-30 06:18:05 +00:00
jerome mouneyrac cae9c119c6 webservice MDL-21658 add moodle_role_assign() unit test function 2010-11-30 05:51:52 +00:00
jerome mouneyrac ceb1bad4ad webservice MDL-25444 indicate which field are unexpected in case of web service error 2010-11-30 01:55:17 +00:00
Moodle Robot a7a1dbd632 Updated the HEAD build version to 20101130 2010-11-30 00:52:28 +00:00
Helen Foster 9936e3b00f MDL-21250 capital letters removal 2010-11-29 16:23:19 +00:00
Helen Foster af842c4309 MDL-21250 capital letters removal 2010-11-29 16:03:59 +00:00
Helen Foster 5735fefc93 MDL-21250 capital letters removal 2010-11-29 15:49:58 +00:00
Helen Foster 2a1a268136 MDL-25426 typo fix 2010-11-29 15:39:10 +00:00
David Mudrak 95840a8e7b MDL-24939 block mnet_hosts now displays error message if the dependencies test fails
The site must be switch at least to DEBUG_NORMAL level and
$CFG->debugdisplay must be turned on. It helps administrators to detect
the problems in their MNet setups.
2010-11-29 13:44:28 +00:00
David Mudrak 0b5549de93 Workshop index page cleanup 2010-11-29 12:24:16 +00:00
David Mudrak 32a979e9a8 MDL-25436 workshop: fixed deprecated function call
Credit goes to Paul Ortman for the patch.
2010-11-29 12:23:42 +00:00
jerome mouneyrac a9f07c4130 webservice MDL-21658 add moodle_user_update_users() unit test function 2010-11-29 09:15:14 +00:00
Dongsheng Cai d2d1db7a84 "MDL-25406 WIKI, use swid instead of wid, gid, uid" 2010-11-29 08:30:15 +00:00
Dongsheng Cai 33ea845ab2 "MDL-25406 WIKI, fixed wid parameter" 2010-11-29 08:25:03 +00:00
Sam Hemelryk c89fa3fe4c mod-forum MDL-25386 Fixed up the navigation for the forum. 2010-11-29 06:27:22 +00:00
jerome mouneyrac d1d0788d47 webservice MDL-21658 add moodle_user_delete_users() unit test function + fix moodle_user_get_users_by_id unit test + add support of options for the SOAP client (important to force synchronous SOAP mode) 2010-11-29 06:26:38 +00:00
Sam Hemelryk c3863f0d56 theme-standardold MDL-25431 Fixed up a block header display issue in standardold ie6 and added readme file 2010-11-29 06:03:33 +00:00
Moodle Robot a7703e6aa3 Updated the HEAD build version to 20101129 2010-11-29 00:51:40 +00:00
AMOS bot 1aa620373c Automatic installer lang files (20101129) 2010-11-29 00:40:10 +00:00
Moodle Robot 382b132fdd Updated the HEAD build version to 20101128 2010-11-28 00:49:45 +00:00
AMOS bot ec87333479 Automatic installer lang files (20101128) 2010-11-28 00:40:08 +00:00
Moodle Robot 21505b1f7b Updated the HEAD build version to 20101127 2010-11-27 00:51:13 +00:00
AMOS bot 8c28461917 Automatic installer lang files (20101127) 2010-11-27 00:40:09 +00:00
Sam Marshall 3371ff92da Conditional activities MDL-24180 Change wording of 'accessible' dates to 'access', make a bit more consistent 2010-11-26 13:52:16 +00:00
David Mudrak b68af0358e MDL-21250 Fixed uppercase characters in blog strings 2010-11-26 11:13:58 +00:00
David Mudrak cfa11fd610 Fixed a string usage - no placeholder is expected here 2010-11-26 09:42:02 +00:00
David Mudrak 82c3f5d848 Do not record encrypted XML-RPC responses in error_log
Such an information is not readable anyway and it make debugging
actually harder. If somebody needs it, they can uncomment the line.
2010-11-26 09:20:28 +00:00
David Mudrak 42ae4ff290 MNet: fixed wrong column name in SQL cleanup code 2010-11-26 09:20:16 +00:00
David Mudrak ee4cd8f16d Prevent MNet error message when multiple records for the user are found in mnet_session table 2010-11-26 09:20:06 +00:00
David Mudrak 35d76df31d MDL-25367 user images are sent a received over MNet during SSO again 2010-11-26 09:19:55 +00:00
David Mudrak 13b78fda00 Profile fields to be synced via MNet now respect the 'use defaults' option 2010-11-26 09:19:44 +00:00
David Mudrak 19414fa47b Fixed trivial typo in a string 2010-11-26 09:17:43 +00:00
Sam Hemelryk ed6af5425c navigation MDL-25397 Converted use of can_edit_category to check capabilities instead. 2010-11-26 06:07:46 +00:00
Sam Hemelryk c55e1d2945 navigation MDL-25410 Fixed up marking of active item/items and fixed blog links on navigation so they only display for current user. 2010-11-26 06:04:59 +00:00
Petr Skoda b0b63da977 MDL-25400 user_created/updated events not generated at login 2010-11-26 02:36:09 +00:00
Moodle Robot bc8a69951a Updated the HEAD build version to 20101126 2010-11-26 00:51:36 +00:00
AMOS bot 4151217945 Automatic installer lang files (20101126) 2010-11-26 00:40:09 +00:00
Andrew Davis ae27608564 rating MDL-22412 removed references to legacy ratings tables 2010-11-25 06:40:27 +00:00
Dan Marsden a7ab614d3a SCORM MDL-25298 escape html vars correctly - thanks to Xavier Paz for report/fix 2010-11-25 01:32:03 +00:00
AMOS bot 683513daee Automatic installer lang files (20101125) 2010-11-25 00:40:09 +00:00
Piers Harding ef297a213d MDL-24738 - fix up height and width calculations for scorm player 2010-11-24 22:57:38 +00:00
Moodle Robot 4905617e40 Updated the HEAD build version to 20101125 2010-11-24 17:40:47 +00:00
Martin Dougiamas 64063ad95a Bump version number to 2.0! 2010-11-24 17:11:30 +00:00
Eloy Lafuente 77151075dc NOBUG: Changed to _sql() variant to properly use sql_compare_text(). Kudos to aparup for latest improvs. in where_clause() 2010-11-24 14:55:29 +00:00
Eloy Lafuente 636444e8b6 MDL-25019 backup - course_startdate may not exist 2010-11-24 10:46:15 +00:00
Tim Hunt f2956c9813 quiz editing MDL-25391 creating a new question and adding it directly to the quiz was broken.
Thanks to Chad Outten for finding this before it was too late, and skodak for the review.
2010-11-24 09:05:22 +00:00
Dongsheng Cai ad85f2629d "NOMDL, fixed wiki upgrade, credits to David Mudrak" 2010-11-24 08:50:29 +00:00
Andrew Davis 156205fc97 message MDL-25380 preventing html tags appearing in emailed messages when a message is sent to course participants 2010-11-24 04:17:52 +00:00
Petr Skoda a864e5ddc3 MDL-24699 fixed performance and other potential problems in update_user_record 2010-11-24 02:52:26 +00:00
jerome mouneyrac 08509f0a6b webservice MDL-25389 Add some information about web service into the local/readme.txt 2010-11-24 02:14:45 +00:00
Sam Hemelryk 48561e1b94 weblib MDL-25390 Minor fix of incorrect use of moodle_url object 2010-11-24 02:08:30 +00:00
Moodle Robot 79007ae74c Updated the HEAD build version to 20101124 2010-11-24 00:50:39 +00:00
Andreas Grabs f42f567afc MDL-25384 - the file mod/feedback/easy_excel.php is not used anymore 2010-11-23 18:07:11 +00:00
Andreas Grabs 51c49cc056 MDL-25375 - mod/feedback/complete.php throws exception if email notifications are enabled 2010-11-23 17:56:24 +00:00
Tim Hunt 423b992ee3 quiz editing MDL-25374 recent change broke JS on the order and paging tab. 2010-11-23 09:56:14 +00:00
jerome mouneyrac 820b42c57b webservice MDL-25323 clean get_ws_authorised_usersget_ws_authorised_users from obsolete code 2010-11-23 09:16:34 +00:00
Moodle Robot b14e97df82 Updated the HEAD build version to 20101123 2010-11-23 00:49:25 +00:00
AMOS bot 9003aed803 Automatic installer lang files (20101123) 2010-11-23 00:40:09 +00:00
Andreas Grabs 794cc28da9 MDL-25363 - Regression in feedback module show_entries.php 2010-11-22 19:48:52 +00:00
Sam Hemelryk ca787a923f navigation MDL-25364 Fixed up AJAX loading for guest users within a course. 2010-11-22 10:19:39 +00:00
Tim Hunt 94dbfb3a82 quiz editing MDL-24750 The Add random button should also let you add questions from an existing category.
Also includes a fix for MDL-24749 by Sam Hemelryk. Thanks Sam.

This commit also includes a certain amount of code cleaning up.
2010-11-22 09:52:42 +00:00
Andrew Davis d2e66a60a0 gradebook MDL-25358 improved validation of scales 2010-11-22 05:52:13 +00:00
Sam Hemelryk c96c3b7dbe calendar MDL-25302 Fixed typo in calendar language pack. Thanks Bente for spotting. 2010-11-22 05:41:23 +00:00
Sam Hemelryk c8ffba95b0 course MDL-24595 Fixed expand all collapse all links on front page. 2010-11-22 05:35:39 +00:00
Sam Hemelryk 1b32bc234a categories MDL-24936 Added turn editing on/off links to the category settings in the settings block 2010-11-22 05:31:46 +00:00
Pierre Pichet 79b067e911 MDL-25362 adding isset() line 2292 2010-11-22 04:25:53 +00:00
Dongsheng Cai 7cb854fe60 MDL-25331, fixed comment javascript 2010-11-22 02:20:05 +00:00
Andrew Davis 536a56e771 message MDL-25359 now specifying message recipient in IM email notification footer link to avoid weirdness on servers with autologin as guest turned on 2010-11-22 01:44:10 +00:00
Moodle Robot bcf6d8f0f8 Updated the HEAD build version to 20101122 2010-11-22 00:52:56 +00:00
AMOS bot aeef24f64c Automatic installer lang files (20101122) 2010-11-22 00:40:10 +00:00
Pierre Pichet a3130f2cf7 MDL-25353 Correcting lang string 2010-11-21 04:55:25 +00:00
David Mudrak d6f50ce6d1 portfolio: fixed email body text so that html body matches the plain text version 2010-11-21 01:13:33 +00:00
David Mudrak 3278dfeb5f MDL-21250 fixed capitalized words and redundant spaces 2010-11-21 01:13:15 +00:00
Moodle Robot e3f031dcb0 Updated the HEAD build version to 20101121 2010-11-21 00:52:22 +00:00
David Mudrak 5b2b977db7 MDL-21250 capitalized words in core_question 2010-11-20 20:38:31 +00:00
David Mudrak 432ef80368 Fixed the error string wording 2010-11-20 19:38:23 +00:00
Petr Skoda c4cef1fe39 MDL-25314 weaker misconfiguration detection
seems like there are too many problems in buffer flushing in different PHP/browser configurations; flushing the buffers after all headers are sent, this is the safest way
2010-11-20 11:39:11 +00:00
Petr Skoda 116ee3e433 MDL-25314 coding style improvement 2010-11-20 03:56:34 +00:00
Petr Skoda 596c71156d MDL-25314 some more header diagnostics when preparing to send file 2010-11-20 03:55:53 +00:00
Petr Skoda 871ed45870 MDL-25314 adding some header/session related notes 2010-11-20 03:49:20 +00:00
Petr Skoda 5e21cac896 MDL-25336 fixed &amp; in mod/url and fixed incomplete click url when embedding 2010-11-20 03:17:19 +00:00
Petr Skoda 56e507b2ee MDL-25335 prevent errors when invalid format specified in resource text page 2010-11-20 02:51:26 +00:00
Petr Skoda 6c796bb6bd MDL-25338 optional param: newcourseidnumber is treated like required param resulting in logic error, credit goes to Nick Thompson 2010-11-20 02:27:34 +00:00
Petr Skoda 3338a72fa0 MDL-25337 fixed invalid config test in enrol course sync, credit goes to Nick Thompson 2010-11-20 02:24:05 +00:00
Moodle Robot db9701d901 Updated the HEAD build version to 20101120 2010-11-20 00:58:40 +00:00
Eloy Lafuente 6bfe81293f MDL-25268 dml - change whitespace capture in limitfrom/limitnum regexp. Fixes some border cases 2010-11-20 00:49:01 +00:00
AMOS bot a5c55a58c2 Automatic installer lang files (20101120) 2010-11-20 00:40:10 +00:00
Eloy Lafuente 8be6dfcc4a MDL-25340 external blof - fix problem with extra tags processing 2010-11-19 23:58:53 +00:00
Dan Marsden 1ed0a96c28 SCORM MDL-25320 removes spaces from children patterns - thanks to Ian Wright for report 2010-11-19 23:35:12 +00:00
Eloy Lafuente a742eb1f8b MDL-25340 external blog - fix sql_compare_text() use 2010-11-19 21:57:15 +00:00
Eloy Lafuente 296f6c99b1 NOBUG: moodle/blog:manageexternal is SYSTEM cap, not USER at all 2010-11-19 18:25:27 +00:00
Eloy Lafuente 33a87f14c6 NOBUG: Add one missing cap. definition string 2010-11-19 17:45:38 +00:00
Sam Marshall b09b6ed8dd MDL-25301 'Upload this file' button should not have ... 2010-11-19 16:27:30 +00:00
Tim Hunt 06f1bd03be question XML import/export MDL-18916 Fix import of questions with images exported from Moodle 1.9.
Thanks again to Patrick Pollet
2010-11-19 14:24:18 +00:00
David Mudrak ae440dec90 Fixed string typo 2010-11-19 13:28:56 +00:00
David Mudrak 072e9d9a39 TinyMCE tool to generate upstream pack to be imported into AMOS
I have tweaked Petr's script so that now it generates files in a
suitable format for importing into AMOS.
2010-11-19 13:04:26 +00:00
Tim Hunt 4f2900771d question XML import/export MDL-18916 should include question tags. 2010-11-19 12:33:48 +00:00
Tim Hunt 4ec6d4e692 question export NOBUG delete obsolete code. 2010-11-19 12:16:23 +00:00
Tim Hunt fe857668d4 NOBUG whitespace fixes. 2010-11-19 12:13:59 +00:00
Tim Hunt 6680966c84 qtype_multichoice MDL-25208 another problem with editing.
Thanks to Patrick Pollet for spotting this.
2010-11-19 11:36:15 +00:00
Tim Hunt b81653e0af question export MDL-25324 Better file names for question exports - argh! missed lang stings
Grr!
2010-11-19 11:11:33 +00:00
Tim Hunt 87214c4e89 question export MDL-25324 Better file names for question exports - argh! missed lang stings
AMOS BEGIN
 MOV [exportfilename,mod_quiz],[exportfilename,core_question]
 MOV [exportnameformat,mod_quiz],[exportnameformat,core_question]
AMOS END
2010-11-19 11:11:19 +00:00
Tim Hunt b80d424c50 question export MDL-25324 Better file names for question exports. 2010-11-19 11:02:28 +00:00
Tim Hunt 5b744492a6 gift import/export MDL-25088 another attempt at fixing it, this time with unit tests. 2010-11-19 10:27:29 +00:00
Andrew Davis 94263cca87 quiz MDL-25297 fixing quiz messaging issues 2010-11-19 09:50:12 +00:00
Tim Hunt a5e8e6e5de qtype multicoice xml export MDL-25208 / MDL-25104 revert incorrect change in qtype_multichoice and do a proper fix in XML export. 2010-11-19 09:35:54 +00:00
jerome mouneyrac ceac2af394 registration MDL-25322 fix average participant and module display (only two digital) 2010-11-19 09:23:12 +00:00
Helen Foster dc084e42f9 MDL-25305 typo fix 2010-11-19 09:22:24 +00:00
Petr Skoda 6e65fcd9b9 trying to work around gzip issue 2010-11-19 08:51:49 +00:00
Aparup Banerjee 70b082fa6d wiki MDL-24862 fixed wiki upgrade error (tested for mssql and mysql) 2010-11-19 08:36:49 +00:00
jerome mouneyrac 05d7a48dc5 registration MDL-25322 fix average participant and module display (only two digital) 2010-11-19 08:34:20 +00:00
Andrew Davis 235da58d8c quiz MDL-25297 fixed erroneous inline comments 2010-11-19 08:18:48 +00:00
Dongsheng Cai 2c5b8e8ea3 "MDL-25104, fixed answernumbering parameter" 2010-11-19 08:08:39 +00:00
Dongsheng Cai 49550e4964 "MDL-24862 revert previous change, sub query works better" 2010-11-19 07:43:13 +00:00
Andrew Davis f8df6aebcf blog MDL-25318 fixed an sql error in blog_delete_external_entries() 2010-11-19 07:38:29 +00:00
Sam Hemelryk 6117bd9780 theme-formal_white MDL-25090 Further tweaking of region-pre-layout 2010-11-19 07:16:41 +00:00
Andrew Davis c02f338e5e rss MDL-25319 replicating my optimization made to forum rss in glossary rss and database rss 2010-11-19 06:56:23 +00:00
Martin Dougiamas e3c21e8c13 Fixing a string 2010-11-19 06:46:19 +00:00
Andrew Davis c05ccf3fa7 rss MDL-25319 removing unnecessary call to isguestuser() 2010-11-19 06:39:00 +00:00
Andrew Davis da8ae44ead rss MDL-25319 adding a check to avoid some work if the same rss feed is requested repeatedly 2010-11-19 06:33:38 +00:00
Aparup Banerjee bb7603e900 wiki MDL-24862 fixed the upgrade code breaking in mssql. 2010-11-19 06:10:33 +00:00
Sam Hemelryk dbfcdb80c5 theme-formal_white MDL-25090 Fixed up positioning on side-pre-only layouts in formal white. 2010-11-19 05:53:14 +00:00
Andrew Davis bc68fc9a9b message MDL-25297 refactored quiz to make message notifications work 2010-11-19 05:18:34 +00:00
Sam Hemelryk 060cd0c887 course MDL-25269 Fixed up module/resource indentation on the course view page. Now uses div margins rather than spacer images. 2010-11-19 04:02:21 +00:00
Dan Marsden 32944e8d54 CHOICE MDL-24102 remove unused var - which should never be used anyway as it isn't cleaned!! 2010-11-19 03:42:33 +00:00
Petr Skoda cbad562eee MDL-25314 improved prevention of output buffering + detection of misconfigured servers
Scripts that do not want buffered output just define NO_OUTPUT_BUFFERING before including config.php.
The fileserving code now checks if the headers are already sent which detects misconfigured servers.
2010-11-19 03:40:43 +00:00
Dan Marsden 6e4453f5f8 CHOICE MDL-24102 use correct url in form submission 2010-11-19 03:23:14 +00:00
Dongsheng Cai cece1791b0 MDL-23929 WIKI, fixed has_capability parameter 2010-11-19 02:59:10 +00:00
Sam Hemelryk 7a534d7a5c mod-data MDL-25281 Removed format_text call that we messing up database entries. 2010-11-19 02:58:42 +00:00
Dan Marsden e076641f77 CHOICE MDL-24102 fix tabs in code 2010-11-19 02:57:35 +00:00
Sam Hemelryk edf577d2cd backup-cancel MDL-25244 Added missing YUI module requirement 2010-11-19 02:51:07 +00:00
Dan Marsden f51d388c78 CHOICE MDL-24102 fix lang string 2010-11-19 02:48:39 +00:00
Sam Hemelryk a467d243f9 navigation MDL-25317 Fixed scroll issue and ajax expansion bug within the navigation JS 2010-11-19 02:41:05 +00:00
Dongsheng Cai 134d38ff18 MDL-22553, fixed wiki upgrade sql to running on sql server 2010-11-19 02:30:00 +00:00
Sam Hemelryk 653bc47ff2 mod-forum MDL-25299 Fixed up whitespace issue in forum lib 2010-11-19 01:57:23 +00:00
Petr Skoda 27466303d9 MDL-25314 getting rid of @ hiding error
We were using these because we added them in stable and did not want to risk any regression, in the long term it is better to show all errors caused by random PHP restrictions introduced by shared hosting admins.
2010-11-19 01:39:30 +00:00
Moodle Robot 193795b61f Updated the HEAD build version to 20101119 2010-11-19 00:53:57 +00:00
AMOS bot 906010b864 Automatic installer lang files (20101119) 2010-11-19 00:40:09 +00:00
Tim Hunt 26f09e62e7 qtype multichoice MDL-25208 and another problem with saving Multiple choice questions. 2010-11-18 23:43:12 +00:00
Tim Hunt 679f7963cf qtype_multichoice MDL-25208 fix my earlier screw-up 2010-11-18 22:39:09 +00:00
Tim Hunt d744fc392a quiz NOBUG improve a comment. 2010-11-18 22:38:50 +00:00
Eloy Lafuente 295474bda9 MDL-25310 backup - Bump! 2010-11-18 21:35:40 +00:00
Eloy Lafuente cbb9e9b8b4 MDL-25310 backup - some minor tasks related to cleaning/old options 2010-11-18 21:34:01 +00:00
Tim Hunt 49da759b30 qtype_multichoice MDL-25208 problem with editing. 2010-11-18 17:59:23 +00:00
David Mudrak 63e859f59f Fixed capability names 2010-11-18 16:13:39 +00:00
john St 2184f7a740 Formfactor theme custom menu style fixes, MDL-25213 2010-11-18 15:30:39 +00:00
john St cea441e856 fix for Arialist theme submenu arrow, MDL-25211 2010-11-18 14:55:14 +00:00
john St c7a90e1069 Overlay theme fix for MDL-25214 2010-11-18 14:48:42 +00:00
David Mudrak fc2b54691a Removing obsolete permission explanation strings 2010-11-18 14:06:57 +00:00
Eloy Lafuente 39cf0e8e74 MDL-24863 unit tests - tidy up a bit some tests 2010-11-18 14:02:02 +00:00
David Mudrak 3b8b116ec3 Removing legacy hidden role assignment strings 2010-11-18 13:56:49 +00:00
David Mudrak 29ec4d26ff Fixed the anchor of Show parent link in the Forum
The anchor link led to the post itself instead of to the parent.
2010-11-18 12:47:24 +00:00
Dongsheng Cai 2675ca53f4 MDL-25104, fixed answertext in mulitchoice questoin type 2010-11-18 07:35:27 +00:00
Andrew Davis 35eed0ca48 message MDL-25267 improved the test for Jabber configuration 2010-11-18 07:17:19 +00:00
Sam Hemelryk 92f3345773 backup MDL-25283 Fixed regression in restore by adding destroy method to independent restore stages. 2010-11-18 07:09:09 +00:00
Andrew Davis 0d447fe634 message MDL-25264 removed another reference to $USER 2010-11-18 07:05:47 +00:00
Petr Skoda 9ecf4f44e4 fixing regression in the last commit 2010-11-18 06:26:27 +00:00
Petr Skoda de542ff813 NOBUG explaining why textlib sorting fails 2010-11-18 06:14:59 +00:00
Aparup Banerjee 011bfd2a54 database MDL-24863
- added restricting text conditions to where_clause , it throws a dml_exception when detected.
- also added to where_clause throwing dml_exception for field that doesn't exist in table.
- added unit tests for text condition restricting.
- added 2 unit tests for set_field_select() testing 'auto-casting params to int problem' fix
2010-11-18 06:00:51 +00:00
Andrew Davis fa8f03efbb message MDL-25264 made it possible to edit another user's message preferences 2010-11-18 05:28:51 +00:00
Andrew Davis 861fa9120d message MDL-25267 made jabber processor detect if it hasnt been configured 2010-11-18 02:59:23 +00:00
Sam Hemelryk 0b4cede202 NOBUG: Added missing backup message provider string 2010-11-18 02:54:46 +00:00
Andrew Davis c40cfb8cfc message MDL-25265 message_send() now uses a success flag rather than returning false immediately if a processor fails to prevent a single bad processor preventing others from running 2010-11-18 02:19:59 +00:00
Sam Hemelryk 44bb101dfe backup MDL-24962 Backup, Restore, and Import all now explicitly destroy the UI, controller, and stage objects upon completion. 2010-11-18 02:09:23 +00:00
Andrew Davis 696b250217 gradebook MDL-25238 made things line up in IE and Safari with static student columns enabled 2010-11-18 01:56:16 +00:00
Sam Hemelryk ca1292e014 backup MDL-24962 Automated backups now explicitly destroy the backup controller created at the end of a backup for a course. 2010-11-18 01:35:16 +00:00
Eloy Lafuente 9882b2c824 MDL-25276 dml - fix/implement sql_cast2int/real() across the 5 drivers. Tests passing. 2010-11-18 01:27:49 +00:00
Eloy Lafuente a018adf038 MDL-25276 dml - completed sql_cast_char2int/real tests to reveal some problems 2010-11-18 01:10:41 +00:00
Inaki 40293947bb auth/cas: MDL-25062 CAS authentication plugin does not validate the CAS server certificate
If we enable the server validation but don't specify a certificate file path
flag the error and don't let the user save the settings.
2010-11-18 00:57:06 +00:00
Moodle Robot 1a92193c7f Updated the HEAD build version to 20101118 2010-11-18 00:48:15 +00:00
AMOS bot 293d6a11da Automatic installer lang files (20101118) 2010-11-18 00:40:09 +00:00
Inaki 387d1dc0d5 auth/cas: MDL-25062 CAS authentication plugin does not validate the CAS server certificate
The CAS protocol security model requires that you verify the cas server
certificate before you trust the answer (valid authentication and username
etc.).

Credit goes to Joachim Fritschi for reporting it and providing a patch.
2010-11-18 00:12:23 +00:00
Eloy Lafuente 80c2a742b6 MDL-21437 data - fixed navigation from list to single 2010-11-17 21:47:08 +00:00
Eloy Lafuente 6e6878b5ec MDL-21437 data - fixed the sort by fuctionality to be cross-db for all fields 2010-11-17 21:18:53 +00:00
Eloy Lafuente be4d5a927b MDL-21437 data - latlong, menu, radiobutton, text, textarea, url 2010-11-17 19:27:47 +00:00
Eloy Lafuente 15a182827f MDL-21437 data - checkbox and multimenu fields search working + require all too 2010-11-17 19:13:26 +00:00
Eloy Lafuente 1675129e35 MDL-21437 data - number and date fields search under mssql and oracle 2010-11-17 17:54:00 +00:00
Eloy Lafuente eca891267c MDL-21437 data - latlong, radio menu and multimenu now working under sqlserver & oracle 2010-11-17 16:57:56 +00:00
David Mudrak 05e7fca43f Yet another string using proper placeholder in Javascript 2010-11-17 12:44:17 +00:00
Petr Skoda e98a39260a NOBUG standardising prevention of output buffering
we should really add some new define before the config.php inclusion soon
2010-11-17 12:25:36 +00:00
Eloy Lafuente b9e8c6a6f2 NOBUG: I hate the shut-up operator, really! 2010-11-17 11:02:32 +00:00
Eloy Lafuente 3a55ee2f5e MDL-25268 dml - improved limitnum/limitfrom regexp in ms drivers + tests 2010-11-17 10:39:56 +00:00
Dongsheng Cai d4800079b7 MDL-22898, fixed wiki preview 2010-11-17 09:41:25 +00:00
Dongsheng Cai 6f1b029b6f MDL-22449, improve wiki help info 2010-11-17 09:04:46 +00:00
jerome mouneyrac d4f866ea5f community block MDL-25262 improve hub listing css 2010-11-17 09:03:26 +00:00
Dongsheng Cai af857b05c2 MDL-25250, fixed php coding error in wiki module 2010-11-17 08:43:16 +00:00
Dongsheng Cai 1d5bd3d2ed MDL-24941, fixed nopermission error when student entering scheduled chat session 2010-11-17 07:56:40 +00:00
jerome mouneyrac 5bf725440c registration MDL-25261 trivial confirmation regitration page improvement 2010-11-17 07:53:10 +00:00
Aparup Banerjee 08d3898c7c installation MDL-24863 fixed area that is calling get_site() to catch dml_exception instead of dml_read_exception. (This is to handle other possible types of dml_exceptions during calling get_site()) 2010-11-17 07:40:48 +00:00
Aparup Banerjee 4f8b9632f8 database MDL-24863 applied fix like MDL-23997 which converts number to string. 2010-11-17 07:36:02 +00:00
Sam Hemelryk 49084fe104 NOBUG: Fixed up docs 2010-11-17 07:04:02 +00:00
Sam Hemelryk e99033b059 NOBUG: Documenting CFG->extramemorylimit within config-dist 2010-11-17 06:57:22 +00:00
Andrew Davis 2846b9a6a2 message MDL-25240 made filters work when displaying messages 2010-11-17 06:36:26 +00:00
Andrew Davis affefa8cc3 message MDL-25240 corrected index.php's description 2010-11-17 06:34:59 +00:00
Petr Skoda 516c5eca68 MDL-24698 hopefully fixed all completion_info problems 2010-11-17 06:23:56 +00:00
Petr Skoda 2c0b6ab223 MDL-23610 increasing version number to trigger environment test 2010-11-17 03:52:05 +00:00
jerome mouneyrac cbe80ba5c3 community block MDL-25256 fix hub description on the search form (previous hub description was assigned to the following) 2010-11-17 03:29:35 +00:00
Sam Hemelryk 9a424c711e navigation MDL-25247 Fixed regression in the navigation. 2010-11-17 02:20:05 +00:00
Petr Skoda cd4f18595a MDL-23610 finally fixed the broken utf8 detection in mysqli driver
this was actually causing tons of false reports because people are often creating the database without the encoding parameter, especially when testing upgrades
2010-11-17 01:58:38 +00:00
Moodle Robot e53162b9d2 Updated the HEAD build version to 20101117 2010-11-17 00:48:28 +00:00
AMOS bot 87b28cb7dc Automatic installer lang files (20101117) 2010-11-17 00:40:13 +00:00
David Mudrak 416b3d8110 Fixed trivial typo in enrolment string 2010-11-16 18:25:28 +00:00
David Mudrak 049e880cce AJAX enrolment uses proper {$a} placeholder
We now have M.util.get_string() that should be used instead of custom
replacement. Otherwise the placeholder is not detected in AMOS
web translator.
2010-11-16 18:02:14 +00:00
David Mudrak 2246f9f6bd Fixed typo in the capability name 2010-11-16 17:36:01 +00:00
Helen Foster 77d9f6143d MDL-22449 wiki lang string polishing plus adding link strings 2010-11-16 16:59:00 +00:00
Pierre Pichet b800dc1990 MDL-25194 setting 'returnurl' and removing display of correctanswerfeedback... , left these only on calculatedmultichoice 2010-11-16 15:53:11 +00:00
Pierre Pichet f9ce698969 MDL-25194 removing display of correctanswerfeedback... , left these only on calculatedmultichoice 2010-11-16 15:50:50 +00:00
Pierre Pichet f065391d6d MDL-25194 settig 'returnurl' 2010-11-16 15:47:42 +00:00
Tim Hunt 341be301fc theme MDL-22492 / MDL-25204 hack it so that help popups never appear under other things. 2010-11-16 14:09:39 +00:00
David Mudrak 45e8775911 MDL-13379 mnet: course overview at my home page displays remote courses, too
The patch submitted by Hubert Chathi. I just changed it a bit to use
moodle_url instead of string URLs and to use s() instead of format_string()
when putting the course fullname into title="" attribute value.
2010-11-16 13:40:34 +00:00
Petr Skoda 43206af618 MDL-25235 fixed param type for OS paths
paths to executable are not PARAM_TEXT, we have to use PARAM_RAW there + whitespace fixes
2010-11-16 10:27:00 +00:00
Sam Hemelryk 1d67258eb9 mod-forum-search MDL-25239 Fixed double encoding of the search param during pagination 2010-11-16 09:00:47 +00:00
jerome mouneyrac 9d1b6ea35c webservice MDL-25195 fix web service admin pages navigation bar/navigation 2010-11-16 07:45:31 +00:00
Pierre Pichet f5382dd25e MDL-25194 replace protected options of default_question_type by public optionsa defined in calculated.
the same parameter is used in calculatedsimple and caculatedmulti which extends question_calculated_qtype
2010-11-16 03:43:54 +00:00
jerome mouneyrac 0c92f1138f publication MDL-25221 destroy backup controller once backup is done. 2010-11-16 03:04:40 +00:00
Dan Marsden 2004f2eef0 SCORM MDL-24273 fix typo in SCORM 2004 code 2010-11-16 01:03:56 +00:00
Dan Marsden 5c58d55a4d SCORM MDL-24273 fix typo in SCORM 2004 code 2010-11-16 01:02:17 +00:00
Dan Marsden a4347c6937 SCORM MDL-24273 fix typo in SCORM 2004 code 2010-11-16 00:56:24 +00:00
Dan Marsden 70e3605358 SCORM MDL-24273 fix typo in SCORM 2004 code 2010-11-16 00:49:37 +00:00
Moodle Robot e5228e541a Updated the HEAD build version to 20101116 2010-11-16 00:49:07 +00:00
Dan Marsden 72ef83b9ab SCORM MDL-24273 fix typo in SCORM 2004 code 2010-11-16 00:21:59 +00:00
Dan Marsden 020f27dbfb SCORM MDL-24273 fix typo in SCORM 2004 code 2010-11-16 00:19:41 +00:00
Dan Marsden 522aafc73b SCORM MDL-24273 fix typo in SCORM 2004 code 2010-11-16 00:16:56 +00:00
David Mudrak b0f5d070e7 MDL-23978 portfolio: do not cleanup images with portfolio URI scheme
The problem was in the order of the content preparing. Now when the
filters are always skipped (they have to) we must always run
format_text() first. That will prepare nice HTML in which we just
rewrite the portfolio URIs.
Note that we are still calling clean_text() so that we do not export
malicious code for portfolios like File download. In the future, this
may be changed, made format specific or even per-export configurable.
As a side product of the patch, I have re-enabled online assignment
portfolio export and switched $options->para to false consistently.
2010-11-15 22:59:06 +00:00
Helen Foster fca0c7b9af MDL-25205 help string improvement 2010-11-15 20:47:07 +00:00
Tim Hunt 8b1e050bd0 qtype multichoice MDL-25208 Saving questions was broken. 2010-11-15 17:17:48 +00:00
Eloy Lafuente f81f513325 MDL-25161 restore - keep course->numsections unmodified 2010-11-15 17:10:11 +00:00
Tim Hunt 16cad79ba9 quiz editing MDL-25205 help for the order and paging page. 2010-11-15 17:00:38 +00:00
Tim Hunt 6577832390 quiz reports MDL-25206 Make it more obvious how to review the students responses. 2010-11-15 16:41:42 +00:00
David Mudrak c0b7391d0b report_customlang: regenerate foreign key after recent tables rename
Thanks to Tim Hunt for spotting this overlooked key definition.
2010-11-15 16:13:06 +00:00
Eloy Lafuente 8231bb159b MDL-24962 backup - clean plan/settings circular refs on restore 2010-11-15 16:08:02 +00:00
Eloy Lafuente 32df07b4c3 MDL-24959 glossary_random - render images in picked entries properly 2010-11-15 15:46:14 +00:00
Tim Hunt 9dd460390c question import MDL-25200 was ignoring the category specified in the file. 2010-11-15 15:27:24 +00:00
Eloy Lafuente 3b953472ac MDL-25227 glossary - fix delete_instance() and clean orphaned entries 2010-11-15 15:16:57 +00:00
David Mudrak f3cc571af2 MDL-25225 forum: fixed discussion control layout
The display mode selector is supposed to display in the middle of the
row. Move discussion selector should be on the right, portfolio export
selector on the left. Thanks Sam Marshall for the report and testing the
patches.
2010-11-15 14:18:24 +00:00
Pierre Pichet ab152de445 MDL-25192 and MDL-25194 import and saving images using instructions ['files'] array 2010-11-15 14:14:43 +00:00
Pierre Pichet dec3f2128b MDL-25192 editing and saving instructions image usng question->id 2010-11-15 14:09:19 +00:00
Helen Foster ca6dd3edc5 MDL-24405 reverting lang strings thanks to Chris Collman for review 2010-11-15 12:19:37 +00:00
Sam Marshall 15e48a1a49 Forum MDL-25170 Discussion move feature should have button so you don't do it by accident (again) 2010-11-15 10:41:26 +00:00
David Mudrak afe38b79c6 MDL-21657 fixed regression in function call after its API change
The API of the function forum_print_posts_threaded() was changed in
63e87951e6 but this call was not updated.
This led to not displaying other replies when replying to a forum post.
2010-11-15 10:02:44 +00:00
Andrew Davis 112fdf4792 gradebook MDL-25171 made it possible to deselect all grade items when exporting grades 2010-11-15 09:03:32 +00:00
jerome mouneyrac dafd2eb308 publication MDL-25040 fix ugly css (hub logo image has border) 2010-11-15 08:51:44 +00:00
jerome mouneyrac 6dfa3c07e8 publication MDL-25040 display hub information (logo - description - link) on the publication metadata page 2010-11-15 08:38:02 +00:00
Petr Skoda ddd11b6c78 MDL-25123 description of more hidden debug settings
credit goes to Matteo Scaramuccia
2010-11-15 08:05:02 +00:00
Petr Skoda 8082d3abf7 MDL-25187 upgrade log debugging to use new DML style
all credit goes to Eloy Lafuente (stronk7)
2010-11-15 07:38:02 +00:00
Eloy Lafuente f2364c93ed MDL-24962 backup - cache xmldb_tables for multiple operations. Apply destroyer to temp controller. 2010-11-15 07:17:24 +00:00
Eloy Lafuente ab1c069e11 MDL-24962 backup - circular refs. cleaner in backup_controller 2010-11-15 07:16:51 +00:00
Eloy Lafuente 287e804058 MDL-24962 backup - circular refs destroyer for backup settings 2010-11-15 07:16:24 +00:00
Eloy Lafuente 4f6ed68c1c MDL-24962 backup - circular refs destroyer for backup plan 2010-11-15 07:15:48 +00:00
Dongsheng Cai 41dcc2a508 MDL-25220 Question editors need to support subdirs 2010-11-15 06:37:13 +00:00
Petr Skoda 785d2cf2bd MDL-25031 fixed question ugprade - credit goes to Mark Nelson 2010-11-15 05:53:22 +00:00
Petr Skoda e47c78f929 MDL-25031, MDL-25198 fixed use of proper table prefixes in blocks upgrade and fixed invalid DML call in questions ugprade 2010-11-15 05:52:33 +00:00
Andrew Davis 99cd408f81 blog MDL-25217 now checking for null creation and modified timestamps when importing external blog entries 2010-11-15 03:56:12 +00:00
Dongsheng Cai 675e7a425b MDL-25198, fixed incorrect sql, protect question image migration code by field_exists check 2010-11-15 02:54:31 +00:00
Moodle Robot 2b05a3bb9b Updated the HEAD build version to 20101115 2010-11-15 00:48:37 +00:00
Patrick Malley 662078965d MDL-25210 - Creating consistency in README files. 2010-11-14 21:33:37 +00:00
Pierre Pichet b21aea7408 MDL-25104 removing unnecessary $options = array_shift($oldoptions) line 192 that generates 2 question_numerical records,
this was added by inadvertence  in the last many lines modifications
2010-11-14 03:51:35 +00:00
Petr Skoda 7415aed103 MDL-11728 finally defining the exact meaning of is_internal() in auth plugins
internal means "uses password hash for user authentication", there is a new is_synchronised_with_external() method that indicates if moodle should automatically sync user info with external system after login; I have also improved the default for prevent_local_passwords() which is now defaulting to !is_internal()
2010-11-14 02:01:59 +00:00
Moodle Robot 44afba9701 Updated the HEAD build version to 20101114 2010-11-14 00:47:59 +00:00
2499 changed files with 50795 additions and 299926 deletions
+27
View File
@@ -0,0 +1,27 @@
# This file specifies intentionally untracked files that all Moodle git
# repositories should ignore. It is recommended not to modify this file in your
# local clone. Instead, use .git/info/exclude and add new records there as
# needed.
#
# Example: if you deploy a contributed plugin mod/foobar into your site, put
# the following line into .git/info/exclude file in your Moodle clone:
# /mod/foobar/
#
# See gitignore(5) man page for more details
#
/config.php
/lib/editor/tinymce/extra/tools/temp/
*~
*.swp
/tags
/TAGS
/cscope.*
/.patches/
/.idea/
/nbproject/
CVS
.DS_Store
/.settings/
/.project
/.buildpath
/.cache
+5 -1
View File
@@ -147,7 +147,11 @@
$settings = ''; // By default, no configuration
if ($blockobject and $blockobject->has_config()) {
if (file_exists($CFG->dirroot.'/blocks/'.$block->name.'/settings.php')) {
$blocksettings = admin_get_root()->locate('blocksetting' . $block->name);
if ($blocksettings instanceof admin_externalpage) {
$settings = '<a href="' . $blocksettings->url . '">' . get_string('settings') . '</a>';
} else if ($blocksettings instanceof admin_settingpage) {
$settings = '<a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/settings.php?section=blocksetting'.$block->name.'">'.$strsettings.'</a>';
} else {
$settings = '<a href="block.php?block='.$blockid.'">'.$strsettings.'</a>';
+5 -5
View File
@@ -1,6 +1,8 @@
<?php
/// Create "blog" forums in each course and copy blog entries from these courses' participants in these forums
define('NO_OUTPUT_BUFFERING', true);
require_once('../config.php');
require_once($CFG->dirroot.'/course/lib.php');
require_once($CFG->dirroot.'/blog/lib.php');
@@ -28,9 +30,7 @@ echo $OUTPUT->box_start();
/// Turn off time limits, sometimes upgrades can be slow.
@set_time_limit(0);
@ob_implicit_flush(true);
while(@ob_end_flush());
set_time_limit(0);
$i = 0;
@@ -88,9 +88,9 @@ function bloglevelupgrade_entries($blogentries, $forum, $cm, $groupid=-1) {
$discussion->course = $forum->course;
$discussion->forum = $forum->id;
$discussion->name = $blogentry->subject;
$discussion->intro = $blogentry->summary;
$discussion->assessed = $forum->assessed;
$discussion->messageformat = $forum->introformat;
$discussion->message = $blogentry->summary;
$discussion->messageformat = $blogentry->summaryformat;
$discussion->messagetrust = 0;
$discussion->attachments = 0;
$discussion->mailnow = false;
+1 -1
View File
@@ -92,7 +92,7 @@ mtrace("Server Time: ".date('r',$timenow)."\n\n");
// Run automated backups if required.
require_once($CFG->dirroot.'/backup/util/includes/backup_includes.php');
require_once($CFG->dirroot.'/backup/util/helper/backup_cron_helper.class.php');
backup_cron_automated_helper::run_automated_backup(backup_cron_automated_helper::RUN_IMMEDIATLY);
backup_cron_automated_helper::run_automated_backup(backup_cron_automated_helper::RUN_IMMEDIATELY);
mtrace("Automated cron backups completed correctly");
+28 -3
View File
@@ -70,6 +70,8 @@ Options:
problem encountered.
--agree-license Indicates agreement with software license,
required in non-interactive mode.
--allow-unstable Install even if the version is not marked as stable yet,
required in non-interactive mode.
-h, --help Print out this help
Example:
@@ -136,9 +138,6 @@ $CFG->early_install_lang = true;
$parts = explode('/', str_replace('\\', '/', dirname(dirname(__FILE__))));
$CFG->admin = array_pop($parts);
require($CFG->dirroot.'/version.php');
$CFG->target_release = $release;
//point pear include path to moodles lib/pear so that includes and requires will search there for files before anywhere else
//the problem is that we need specific version of quickforms and hacked excel files :-(
ini_set('include_path', $CFG->libdir.'/pear' . PATH_SEPARATOR . ini_get('include_path'));
@@ -154,6 +153,9 @@ require_once($CFG->libdir.'/deprecatedlib.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/componentlib.class.php');
require($CFG->dirroot.'/version.php');
$CFG->target_release = $release;
//Database types
$databases = array('mysqli' => moodle_database::get_driver_instance('mysqli', 'native'),
'pgsql' => moodle_database::get_driver_instance('pgsql', 'native'),
@@ -193,6 +195,7 @@ list($options, $unrecognized) = cli_get_params(
'adminpass' => '',
'non-interactive' => false,
'agree-license' => false,
'allow-unstable' => false,
'help' => false
),
array(
@@ -402,6 +405,28 @@ $CFG->langotherroot = $CFG->dataroot.'/lang';
$CFG->langlocalroot = $CFG->dataroot.'/lang';
get_string_manager(true);
// make sure we are installing stable release or require a confirmation
if (isset($maturity)) {
if (($maturity < MATURITY_STABLE) and !$options['allow-unstable']) {
$maturitylevel = get_string('maturity'.$maturity, 'admin');
if ($interactive) {
cli_separator();
cli_heading(get_string('notice'));
echo get_string('maturitycorewarning', 'admin', $maturitylevel) . PHP_EOL;
echo get_string('morehelp') . ': ' . get_docs_url('admin/versions') . PHP_EOL;
echo get_string('continue') . PHP_EOL;
$prompt = get_string('cliyesnoprompt', 'admin');
$input = cli_input($prompt, '', array(get_string('clianswerno', 'admin'), get_string('cliansweryes', 'admin')));
if ($input == get_string('clianswerno', 'admin')) {
exit(1);
}
} else {
cli_error(get_string('maturitycorewarning', 'admin'));
}
}
}
// ask for db type - show only drivers available
if ($interactive) {
$options['dbtype'] = strtolower($options['dbtype']);
+39 -4
View File
@@ -40,8 +40,16 @@ require_once($CFG->libdir.'/environmentlib.php');
// now get cli options
list($options, $unrecognized) = cli_get_params(array('non-interactive'=>false, 'help'=>false),
array('h'=>'help'));
list($options, $unrecognized) = cli_get_params(
array(
'non-interactive' => false,
'allow-unstable' => false,
'help' => false
),
array(
'h' => 'help'
)
);
$interactive = empty($options['non-interactive']);
@@ -59,6 +67,8 @@ Site defaults may be changed via local/defaults.php.
Options:
--non-interactive No interactive questions or confirmations
--allow-unstable Upgrade even if the version is not marked as stable yet,
required in non-interactive mode.
-h, --help Print out this help
Example:
@@ -73,17 +83,18 @@ if (empty($CFG->version)) {
cli_error(get_string('missingconfigversion', 'debug'));
}
require("$CFG->dirroot/version.php"); // defines $version and $release
require("$CFG->dirroot/version.php"); // defines $version, $release and $maturity
$CFG->target_release = $release; // used during installation and upgrades
if ($version < $CFG->version) {
cli_error(get_string('downgradedcore', 'error'));
}
$oldversion = "$CFG->release ($CFG->version)";
$newversion = "$release ($version)";
// test environment first
if (!check_moodle_environment($version, $environment_results, false, ENV_SELECT_RELEASE)) {
if (!check_moodle_environment(normalize_version($release), $environment_results, false, ENV_SELECT_RELEASE)) {
$errors = environment_get_errors($environment_results);
cli_heading(get_string('environment', 'admin'));
foreach ($errors as $error) {
@@ -93,6 +104,30 @@ if (!check_moodle_environment($version, $environment_results, false, ENV_SELECT_
exit(1);
}
if ($interactive) {
$a = new stdClass();
$a->oldversion = $oldversion;
$a->newversion = $newversion;
echo cli_heading(get_string('databasechecking', '', $a)) . PHP_EOL;
}
// make sure we are upgrading to a stable release or display a warning
if (isset($maturity)) {
if (($maturity < MATURITY_STABLE) and !$options['allow-unstable']) {
$maturitylevel = get_string('maturity'.$maturity, 'admin');
if ($interactive) {
cli_separator();
cli_heading(get_string('notice'));
echo get_string('maturitycorewarning', 'admin', $maturitylevel) . PHP_EOL;
echo get_string('morehelp') . ': ' . get_docs_url('admin/versions') . PHP_EOL;
cli_separator();
} else {
cli_error(get_string('maturitycorewarning', 'admin', $maturitylevel));
}
}
}
if ($interactive) {
echo html_to_text(get_string('upgradesure', 'admin', $newversion))."\n";
$prompt = get_string('cliyesnoprompt', 'admin');
+1 -13
View File
@@ -40,24 +40,12 @@
// CLI via web interface, please do not use this hack elsewhere
define('CLI_SCRIPT', true);
define('WEB_CRON_EMULATED_CLI', 'defined'); // ugly ugly hack, do not use elsewhere please
define('NO_OUTPUT_BUFFERING', true);
require('../config.php');
require_once($CFG->libdir.'/clilib.php');
require_once($CFG->libdir.'/cronlib.php');
// disable compression, it would prevent closing of buffers
if (ini_get('zlib.output_compression')) {
ini_set('zlib.output_compression', 'Off');
}
// no more headers and buffers
ob_implicit_flush(true);
while(ob_get_level()) {
if (!ob_end_clean()) {
// prevent infinite loop
break;
}
}
// extra safety
session_get_instance()->write_close();
+1 -1
View File
@@ -26,7 +26,7 @@ function dbtransfer_export_xml_database($description, $mdb) {
session_get_instance()->write_close(); // release session
header('Content-Type: application/xhtml+xml');
header('Content-Type: application/xhtml+xml; charset=utf-8');
header('Content-Disposition: attachment; filename=database.xml');
header('Expires: 0');
header('Cache-Control: must-revalidate,post-check=0,pre-check=0');
+119
View File
@@ -321,6 +321,125 @@
</PHP_SETTING>
</PHP_SETTINGS>
<CUSTOM_CHECKS>
<CUSTOM_CHECK file="lib/customcheckslib.php" function="php_check_php533" level="optional">
<FEEDBACK>
<ON_CHECK message="php533warning" />
</FEEDBACK>
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
<MOODLE version="2.1" requires="1.9">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mysql" version="5.0.25">
<FEEDBACK>
<ON_ERROR message="mysql416required" />
</FEEDBACK>
</VENDOR>
<VENDOR name="postgres" version="8.3" />
<VENDOR name="mssql" version="9.0" />
<VENDOR name="odbc_mssql" version="9.0" />
<VENDOR name="mssql_n" version="9.0" />
<VENDOR name="oracle" version="10.2" />
<VENDOR name="sqlite" version="2.0" />
</DATABASE>
<PHP version="5.3.2" level="required">
</PHP>
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="required">
<FEEDBACK>
<ON_CHECK message="iconvrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="optional">
<FEEDBACK>
<ON_CHECK message="mbstringrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="required">
<FEEDBACK>
<ON_CHECK message="curlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="optional">
<FEEDBACK>
<ON_CHECK message="opensslrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="tokenizer" level="optional">
<FEEDBACK>
<ON_CHECK message="tokenizerrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlrpc" level="optional">
<FEEDBACK>
<ON_CHECK message="xmlrpcrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="soap" level="optional">
<FEEDBACK>
<ON_CHECK message="soaprecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="ctype" level="required">
<FEEDBACK>
<ON_ERROR message="ctyperequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zip" level="required">
<FEEDBACK>
<ON_ERROR message="ziprequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="gd" level="optional">
<FEEDBACK>
<ON_CHECK message="gdrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="simplexml" level="required">
<FEEDBACK>
<ON_CHECK message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_CHECK message="splrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="pcre" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="dom" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xml" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="intl" level="optional">
<FEEDBACK>
<ON_CHECK message="intlrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="json" level="required">
</PHP_EXTENSION>
</PHP_EXTENSIONS>
<PHP_SETTINGS>
<PHP_SETTING name="memory_limit" value="40M" level="required">
<FEEDBACK>
<ON_ERROR message="settingmemorylimit" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="safe_mode" value="0" level="optional">
<FEEDBACK>
<ON_CHECK message="settingsafemode" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="file_uploads" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="settingfileuploads" />
</FEEDBACK>
</PHP_SETTING>
</PHP_SETTINGS>
</MOODLE>
</COMPATIBILITY_MATRIX>
Executable → Regular
+2 -2
View File
@@ -387,10 +387,10 @@ class generator {
.$this->get('number_of_modules')." modules in each section, for each course...");
list($modules_list_sql, $modules_params) =
$DB->get_in_or_equal($this->get('modules_list'), SQL_PARAMS_NAMED, 'param0000', true);
$DB->get_in_or_equal($this->get('modules_list'), SQL_PARAMS_NAMED, 'mod', true);
list($modules_ignored_sql, $ignore_params) =
$DB->get_in_or_equal($this->modules_to_ignore, SQL_PARAMS_NAMED, 'param2000', false);
$DB->get_in_or_equal($this->modules_to_ignore, SQL_PARAMS_NAMED, 'ignore', false);
$wheresql = "name $modules_list_sql AND name $modules_ignored_sql";
$modules = $DB->get_records_select('modules', $wheresql, array_merge($modules_params, $ignore_params));
+33 -24
View File
@@ -38,19 +38,7 @@ if (version_compare(phpversion(), '5.2.0') < 0) {
die;
}
// disable compression, it would prevent closing of buffers
if (ini_get('zlib.output_compression')) {
ini_set('zlib.output_compression', 'Off');
}
// try to flush everything all the time
ob_implicit_flush(true);
while(ob_get_level()) {
if (!ob_end_clean()) {
// prevent infinite loop
break;
}
}
define('NO_OUTPUT_BUFFERING', true);
require('../config.php');
require_once($CFG->libdir.'/adminlib.php'); // various admin-only functions
@@ -98,7 +86,7 @@ if (!isset($CFG->version)) {
$version = null;
$release = null;
require("$CFG->dirroot/version.php"); // defines $version and $release
require("$CFG->dirroot/version.php"); // defines $version, $release and $maturity
$CFG->target_release = $release; // used during installation and upgrades
if (!$version or !$release) {
@@ -142,17 +130,29 @@ if (!core_tables_exist()) {
if (empty($confirmrelease)) {
$strcurrentrelease = get_string('currentrelease');
$PAGE->navbar->add($strcurrentrelease);
$PAGE->set_title($strinstallation.' - Moodle '.$CFG->target_release);
$PAGE->set_heading($strinstallation);
$PAGE->set_title($strinstallation);
$PAGE->set_heading($strinstallation . ' - Moodle ' . $CFG->target_release);
$PAGE->set_cacheable(false);
echo $OUTPUT->header();
echo $OUTPUT->heading("Moodle $release");
$releasenoteslink = get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes');
if (isset($maturity)) {
// main version.php declares moodle code maturity
if ($maturity < MATURITY_STABLE) {
$maturitylevel = get_string('maturity'.$maturity, 'admin');
echo $OUTPUT->box(
$OUTPUT->container(get_string('maturitycorewarning', 'admin', $maturitylevel)) .
$OUTPUT->container($OUTPUT->doc_link('admin/versions', get_string('morehelp'))),
'generalbox maturitywarning');
}
}
$releasenoteslink = get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/dev/Releases');
$releasenoteslink = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $releasenoteslink); // extremely ugly validation hack
echo $OUTPUT->box($releasenoteslink, 'generalbox boxaligncenter boxwidthwide');
echo $OUTPUT->box($releasenoteslink, 'generalbox releasenoteslink');
require_once($CFG->libdir.'/environmentlib.php');
if (!check_moodle_environment($release, $environment_results, true, ENV_SELECT_RELEASE)) {
if (!check_moodle_environment(normalize_version($release), $environment_results, true, ENV_SELECT_RELEASE)) {
print_upgrade_reload("index.php?agreelicense=1&amp;lang=$CFG->lang");
} else {
echo $OUTPUT->notification(get_string('environmentok', 'admin'), 'notifysuccess');
@@ -201,11 +201,20 @@ if ($version > $CFG->version) { // upgrade
$strdatabasechecking = get_string('databasechecking', '', $a);
if (empty($confirmupgrade)) {
$PAGE->navbar->add($strdatabasechecking);
$PAGE->set_title($strdatabasechecking);
$PAGE->set_heading($stradministration);
$PAGE->set_title($stradministration);
$PAGE->set_heading($strdatabasechecking);
$PAGE->set_cacheable(false);
echo $OUTPUT->header();
if (isset($maturity)) {
// main version.php declares moodle code maturity
if ($maturity < MATURITY_STABLE) {
$maturitylevel = get_string('maturity'.$maturity, 'admin');
echo $OUTPUT->box(
$OUTPUT->container(get_string('maturitycorewarning', 'admin', $maturitylevel)) .
$OUTPUT->container($OUTPUT->doc_link('admin/versions', get_string('morehelp'))),
'generalbox maturitywarning');
}
}
$continueurl = new moodle_url('index.php', array('confirmupgrade' => 1));
$cancelurl = new moodle_url('index.php');
echo $OUTPUT->confirm(get_string('upgradesure', 'admin', $a->newversion), $continueurl, $cancelurl);
@@ -220,7 +229,7 @@ if ($version > $CFG->version) { // upgrade
$PAGE->set_cacheable(false);
echo $OUTPUT->header();
echo $OUTPUT->heading("Moodle $release");
$releasenoteslink = get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/en/Release_Notes');
$releasenoteslink = get_string('releasenoteslink', 'admin', 'http://docs.moodle.org/dev/Releases');
$releasenoteslink = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $releasenoteslink); // extremely ugly validation hack
echo $OUTPUT->box($releasenoteslink);
@@ -431,7 +440,7 @@ if (!empty($CFG->maintenance_enabled)) {
//////////////////////////////////////////////////////////////////////////////////////////////////
//// IT IS ILLEGAL AND A VIOLATION OF THE GPL TO HIDE, REMOVE OR MODIFY THIS COPYRIGHT NOTICE ///
$copyrighttext = '<a href="http://moodle.org/">Moodle</a> '.
'<a href="http://docs.moodle.org/en/Release" title="'.$CFG->version.'">'.$CFG->release.'</a><br />'.
'<a href="http://docs.moodle.org/dev/Releases" title="'.$CFG->version.'">'.$CFG->release.'</a><br />'.
'Copyright &copy; 1999 onwards, Martin Dougiamas<br />'.
'and <a href="http://docs.moodle.org/en/Credits">many other contributors</a>.<br />'.
'<a href="http://docs.moodle.org/en/License">GNU Public License</a>';
Executable → Regular
-5
View File
@@ -53,11 +53,6 @@ define('INSTALLATION_OF_SELECTED_LANG', 2);
define('DELETION_OF_SELECTED_LANG', 4);
define('UPDATE_ALL_LANG', 5);
//reset and diagnose lang cache permissions
remove_dir($CFG->dataroot.'/cache/languages');
if (file_exists($CFG->dataroot.'/cache/languages')) {
print_error('cannotdeletelangcache', 'error');
}
get_string_manager()->reset_caches();
$notice_ok = array();
+1 -1
View File
@@ -21,7 +21,7 @@
* Displays the list of found local plugins, their version (if found) and
* a link to delete the local plugin.
*
* @see http://docs.moodle.org/en/Development:Local_customisation
* @see http://docs.moodle.org/dev/Local_customisation
* @package admin
* @copyright 2010 David Mudrak <david.mudrak@gmail.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+2 -2
View File
@@ -60,13 +60,13 @@ class mnet_services_form extends moodleform {
if (!empty($version['hostsubscribes'])) {
$pubstr .= ' <a class="notifysuccess" title="'.s(get_string('issubscribed','mnet', $mnet_peer->name)).'">&radic;</a> ';
}
$mform->addElement('checkbox', 'publish[' . $version['serviceid'] . ']', $pubstr);
$mform->addElement('advcheckbox', 'publish[' . $version['serviceid'] . ']', $pubstr);
$substr = get_string('subscribe','mnet');
if (!empty($version['hostpublishes'])) {
$substr .= ' <a class="notifysuccess" title="'.s(get_string('ispublished','mnet', $mnet_peer->name)).'">&radic;</a> ';
}
$mform->addElement('checkbox', 'subscribe[' . $version['serviceid']. ']', $substr);
$mform->addElement('advcheckbox', 'subscribe[' . $version['serviceid']. ']', $substr);
$count++;
}
$this->add_action_buttons();
+8 -3
View File
@@ -141,12 +141,17 @@
$settings = "";
}
$count = $DB->count_records_select($module->name, "course<>0");
try {
$count = $DB->count_records_select($module->name, "course<>0");
} catch (dml_exception $e) {
$count = -1;
}
if ($count>0) {
$countlink = "<a href=\"{$CFG->wwwroot}/course/search.php?modulelist=$module->name" .
"&amp;sesskey=".sesskey()."\" title=\"$strshowmodulecourse\">$count</a>";
}
else {
} else if ($count < 0) {
$countlink = get_string('error');
} else {
$countlink = "$count";
}
+28 -29
View File
@@ -1,6 +1,8 @@
<?php
/// Search and replace strings throughout all texts in the whole database
define('NO_OUTPUT_BUFFERING', true);
require_once('../config.php');
require_once($CFG->dirroot.'/course/lib.php');
require_once($CFG->libdir.'/adminlib.php');
@@ -33,8 +35,6 @@ echo $OUTPUT->box_start();
/// Turn off time limits, sometimes upgrades can be slow.
@set_time_limit(0);
@ob_implicit_flush(true);
while(@ob_end_flush());
echo '<strong>Progress:</strong>';
$i = 0;
@@ -56,35 +56,34 @@ foreach ($tables as $table) {
if (in_array($data->type, array('text','mediumtext','longtext','varchar'))) { // Text stuff only
// first find candidate records
$sql = "SELECT id, $column FROM $fulltable WHERE $column LIKE '%</lang>%' OR $column LIKE '%<span lang=%'";
if ($rs = $DB->get_recordset_sql($sql)) {
foreach ($rs as $data) {
$text = $data->$column;
$id = $data->id;
if ($i % 600 == 0) {
echo '<br />';
}
if ($i % 10 == 0) {
echo '.';
}
$i++;
if (empty($text) or is_numeric($text)) {
continue; // nothing to do
}
$search = '/(<(?:lang|span) lang="[a-zA-Z0-9_-]*".*?>.+?<\/(?:lang|span)>)(\s*<(?:lang|span) lang="[a-zA-Z0-9_-]*".*?>.+?<\/(?:lang|span)>)+/is';
$newtext = preg_replace_callback($search, 'multilangupgrade_impl', $text);
if (is_null($newtext)) {
continue; // regex error
}
if ($newtext != $text) {
$DB->execute("UPDATE $fulltable SET $column=? WHERE id=?", array($newtext, $id));
}
$rs = $DB->get_recordset_sql($sql);
foreach ($rs as $data) {
$text = $data->$column;
$id = $data->id;
if ($i % 600 == 0) {
echo '<br />';
}
if ($i % 10 == 0) {
echo '.';
}
$i++;
if (empty($text) or is_numeric($text)) {
continue; // nothing to do
}
$search = '/(<(?:lang|span) lang="[a-zA-Z0-9_-]*".*?>.+?<\/(?:lang|span)>)(\s*<(?:lang|span) lang="[a-zA-Z0-9_-]*".*?>.+?<\/(?:lang|span)>)+/is';
$newtext = preg_replace_callback($search, 'multilangupgrade_impl', $text);
if (is_null($newtext)) {
continue; // regex error
}
if ($newtext != $text) {
$DB->execute("UPDATE $fulltable SET $column=? WHERE id=?", array($newtext, $id));
}
$rs->close();
}
$rs->close();
}
}
}
Executable → Regular
View File
+5 -1
View File
@@ -247,7 +247,11 @@
}
// Settings link, if available.
if (file_exists($qtype->plugin_dir() . '/settings.php')) {
$settings = admin_get_root()->locate('qtypesetting' . $qtypename);
if ($settings instanceof admin_externalpage) {
$row[] = '<a href="' . $settings->url .
'">' . get_string('settings') . '</a>';
} else if ($settings instanceof admin_settingpage) {
$row[] = '<a href="' . admin_url('settings.php?section=qtypesetting' . $qtypename) .
'">' . get_string('settings') . '</a>';
} else {
+9 -3
View File
@@ -47,7 +47,7 @@ $error = optional_param('error', '', PARAM_ALPHANUM);
admin_externalpage_setup('registrationindex');
if (!empty($error) and $error == 'urlalreadyexist') {
throw new moodle_exception('urlalreadyregistered', 'hub',
throw new moodle_exception('urlalreadyregistered', 'hub',
$CFG->wwwroot . '/' . $CFG->admin . '/registration/index.php');
}
@@ -65,11 +65,17 @@ if (!empty($registeredhub) and $registeredhub->token == $token) {
$registeredhub->hubname = $hubname;
$registrationmanager->update_registeredhub($registeredhub);
//display notficiation message
$notificationmessage = $OUTPUT->notification(
get_string('registrationconfirmedon', 'hub', $hublink), 'notifysuccess');
echo $notificationmessage;
//display continue button
$registrationpage = new moodle_url('/admin/registration/index.php');
$continuebutton = $OUTPUT->render(new single_button($registrationpage, get_string('continue', 'hub')));
$continuebutton = html_writer::tag('div', $continuebutton, array('class' => 'mdl-align'));
echo $continuebutton;
if (!extension_loaded('xmlrpc')) {
//display notice about xmlrpc
$xmlrpcnotification = $OUTPUT->doc_link('admin/environment/php_extension/xmlrpc', '');
@@ -79,7 +85,7 @@ if (!empty($registeredhub) and $registeredhub->token == $token) {
echo $OUTPUT->footer();
} else {
throw new moodle_exception('wrongtoken', 'hub',
throw new moodle_exception('wrongtoken', 'hub',
$CFG->wwwroot . '/' . $CFG->admin . '/registration/index.php');
}
+2 -2
View File
@@ -368,8 +368,8 @@ class site_registration_form extends moodleform {
$questioncount = $DB->count_records('question');
$resourcecount = $DB->count_records('resource');
require_once($CFG->dirroot . "/course/lib.php");
$participantnumberaverage = average_number_of_participants();
$modulenumberaverage = average_number_of_courses_modules();
$participantnumberaverage = number_format(average_number_of_participants(), 2);
$modulenumberaverage = number_format(average_number_of_courses_modules(), 2);
if (HUB_MOODLEORGHUBURL != $huburl) {
$mform->addElement('checkbox', 'courses', get_string('sendfollowinginfo', 'hub'),
+2 -2
View File
@@ -148,12 +148,12 @@ if (empty($cancel) and $unregistration and !$confirm) {
$moodleorghub = $registrationmanager->get_registeredhub(HUB_MOODLEORGHUBURL);
if (!empty($moodleorghub)) {
$registeredonmoodleorg = true;
}
}
echo $OUTPUT->heading(get_string('registeron', 'hub'), 3, 'main');
echo $renderer->registrationselector($registeredonmoodleorg);
if (extension_loaded('xmlrpc')) {
if (extension_loaded('xmlrpc')) {
$hubs = $registrationmanager->get_registered_on_hubs();
if (!empty($hubs)) {
echo $OUTPUT->heading(get_string('registeredon', 'hub'), 3, 'main');
+27
View File
@@ -84,6 +84,33 @@ class registration_manager {
}
}
/**
* Return the site secret for a given hub
* site identifier is assigned to Mooch
* each hub has a unique and personal site secret.
* @param string $huburl
* @return string site secret
*/
public function get_site_secret_for_hub($huburl) {
global $DB;
$existingregistration = $DB->get_record('registration_hubs',
array('huburl' => $huburl));
if (!empty($existingregistration)) {
return $existingregistration->secret;
}
if ($huburl == HUB_MOODLEORGHUBURL) {
$siteidentifier = get_site_identifier();
} else {
$siteidentifier = random_string(32) . $_SERVER['HTTP_HOST'];
}
return $siteidentifier;
}
/**
* When the site register on a hub, he must call this function
* @param object $hub where the site is registered on
+2 -16
View File
@@ -49,21 +49,6 @@ if (!confirm_sesskey()) {
throw new moodle_exception('missingparameter');
}
/* TO DO
if DB config plugin table is not good for dealing with token reference and token confirmation
=> create other DB table
-----------------------------------------------------------------------------
Local Type | Token | Local WS | Remote Type | Remote URL | Confirmed
-----------------------------------------------------------------------------
HUB 4er4e server HUB-DIRECTORY http...moodle.org Yes
HUB 73j53 client HUB-DIRECTORY http...moodle.org Yes
SITE dfsd7 server HUB http...hub Yes
SITE fd8fd client HUB http...hub Yes
HUB ds78s server SITE http...site.com Yes
HUB-DIR. d7d8s server HUB http...hub Yes
-----------------------------------------------------------------------------
*/
$registrationmanager = new registration_manager();
$registeredhub = $registrationmanager->get_registeredhub($huburl);
@@ -132,7 +117,8 @@ if (!empty($fromform) and empty($update) and confirm_sesskey()) {
if (empty($unconfirmedhub)) {
//we save the token into the communication table in order to have a reference
$unconfirmedhub = new stdClass();
$unconfirmedhub->token = get_site_identifier();
$unconfirmedhub->token = $registrationmanager->get_site_secret_for_hub($huburl);
$unconfirmedhub->secret = $unconfirmedhub->token;
$unconfirmedhub->huburl = $huburl;
$unconfirmedhub->hubname = $hubname;
$unconfirmedhub->confirmed = 0;
+76
View File
@@ -0,0 +1,76 @@
<?php
///////////////////////////////////////////////////////////////////////////
// //
// This file is part of Moodle - http://moodle.org/ //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// //
// Moodle is free software: you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation, either version 3 of the License, or //
// (at your option) any later version. //
// //
// Moodle is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. //
// //
///////////////////////////////////////////////////////////////////////////
/*
* @package moodle
* @subpackage registration
* @author Jerome Mouneyrac <jerome@mouneyrac.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com
*
* The administrator is redirect to this page from the hub to renew a registration
* process because
*/
require('../../config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->dirroot . '/' . $CFG->admin . '/registration/lib.php');
$url = optional_param('url', '', PARAM_URL);
$hubname = optional_param('hubname', '', PARAM_TEXT);
$token = optional_param('token', '', PARAM_TEXT);
admin_externalpage_setup('registrationindex');
//check that we are waiting a confirmation from this hub, and check that the token is correct
$registrationmanager = new registration_manager();
$registeredhub = $registrationmanager->get_unconfirmedhub($url);
if (!empty($registeredhub) and $registeredhub->token == $token) {
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('renewregistration', 'hub'), 3, 'main');
$hublink = html_writer::tag('a', $hubname, array('href' => $url));
$registrationmanager->delete_registeredhub($url);
//Mooch case, need to recreate the siteidentifier
if ($url == HUB_MOODLEORGHUBURL) {
$CFG->siteidentifier = null;
get_site_identifier();
}
$deletedregmsg = get_string('previousregistrationdeleted', 'hub', $hublink);
$button = new single_button(new moodle_url('/admin/registration/index.php'),
get_string('restartregistration', 'hub'));
$button->class = 'restartregbutton';
echo html_writer::tag('div', $deletedregmsg . $OUTPUT->render($button),
array('class' => 'mdl-align'));
echo $OUTPUT->footer();
} else {
throw new moodle_exception('wrongtoken', 'hub',
$CFG->wwwroot . '/' . $CFG->admin . '/registration/index.php');
}
+18 -26
View File
@@ -1,36 +1,42 @@
<?php
/// Search and replace strings throughout all texts in the whole database
define('NO_OUTPUT_BUFFERING', true);
require_once('../config.php');
require_once($CFG->dirroot.'/course/lib.php');
require_once($CFG->libdir.'/adminlib.php');
// workaround for problems with compression
if (ini_get('zlib.output_compression')) {
@ini_set('zlib.output_compression', 'Off');
}
admin_externalpage_setup('replace');
$search = optional_param('search', '', PARAM_RAW);
$replace = optional_param('replace', '', PARAM_RAW);
$sure = optional_param('sure', 0, PARAM_BOOL);
###################################################################
echo $OUTPUT->header();
echo $OUTPUT->heading('Search and replace text throughout the whole database');
if ($DB->get_dbfamily() !== 'mysql' and $DB->get_dbfamily() !== 'postgres') {
//TODO: add $DB->text_replace() to DML drivers
echo $OUTPUT->notification('Sorry, this feature is implemented only for MySQL and PostgreSQL databases.');
echo $OUTPUT->footer();
die;
}
if (!data_submitted() or !$search or !$replace or !confirm_sesskey()) { /// Print a form
if (!data_submitted() or !$search or !$replace or !confirm_sesskey() or !$sure) { /// Print a form
echo $OUTPUT->notification('This script is not supported, always make complete backup before proceeding!<br />This operation can not be reverted!');
echo $OUTPUT->box_start();
echo '<div class="mdl-align">';
echo '<form action="replace.php" method="post">';
echo '<form action="replace.php" method="post"><div>';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo 'Search whole database for: <input type="text" name="search" /><br />';
echo 'Replace with this string: <input type="text" name="replace" /><br />';
echo '<input type="submit" value="Yes, do it now" /><br />';
echo '</form>';
echo '<div><label for="search">Search whole database for: </label><input id="search" type="text" name="search" size="40" /> (usually previous server URL)</div>';
echo '<div><label for="replace">Replace with this string: </label><input type="text" id="replace" name="replace" size="40" /> (usually new server URL)</div>';
echo '<div><label for="sure">I understand the risks of this operation: </label><input type="checkbox" id="sure" name="sure" value="1" /></div>';
echo '<div class="buttons"><input type="submit" class="singlebutton" value="Yes, do it now" /></div>';
echo '</div></form>';
echo '</div>';
echo $OUTPUT->box_end();
echo $OUTPUT->footer();
@@ -38,23 +44,9 @@ if (!data_submitted() or !$search or !$replace or !confirm_sesskey()) { /// Pr
}
echo $OUTPUT->box_start();
if (!db_replace($search, $replace)) {
print_error('erroroccur', debug);
}
db_replace($search, $replace);
echo $OUTPUT->box_end();
/// Try to replace some well-known serialised contents (html blocks)
echo $OUTPUT->notification('Replacing in html blocks...');
$instances = $DB->get_recordset('block_instances', array('blockname' => 'html'));
foreach ($instances as $instance) {
$blockobject = block_instance('html', $instance);
$blockobject->config->text = str_replace($search, $replace, $blockobject->config->text);
$blockobject->instance_config_commit();
}
$instances->close();
/// Rebuild course cache which might be incorrect now
echo $OUTPUT->notification('Rebuilding course cache...', 'notifysuccess');
rebuild_course_cache();
+7 -8
View File
@@ -8,9 +8,6 @@
$time = optional_param('time', 0, PARAM_INT);
$numcourses = optional_param('numcourses', 20, PARAM_INT);
admin_externalpage_setup('reportcourseoverview');
echo $OUTPUT->header();
if (empty($CFG->enablestats)) {
if (has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))) {
redirect("$CFG->wwwroot/$CFG->admin/settings.php?section=stats", get_string('mustenablestats', 'admin'), 3);
@@ -19,6 +16,9 @@
}
}
admin_externalpage_setup('reportcourseoverview');
echo $OUTPUT->header();
$course = get_site();
stats_check_uptodate($course->id);
@@ -27,9 +27,9 @@
$reportoptions = stats_get_report_options($course->id,STATS_MODE_RANKED);
$earliestday = $DB->get_field_sql('SELECT timeend FROM {stats_daily} ORDER BY timeend');
$earliestweek = $DB->get_field_sql('SELECT timeend FROM {stats_weekly} ORDER BY timeend');
$earliestmonth = $DB->get_field_sql('SELECT timeend FROM {stats_monthly} ORDER BY timeend');
$earliestday = $DB->get_field_sql('SELECT MIN(timeend) FROM {stats_daily}');
$earliestweek = $DB->get_field_sql('SELECT MIN(timeend) FROM {stats_weekly}');
$earliestmonth = $DB->get_field_sql('SELECT MIN(timeend) FROM {stats_monthly}');
if (empty($earliestday)) $earliestday = time();
if (empty($earliestweek)) $earliestweek = time();
@@ -79,13 +79,12 @@
$param->extras
ORDER BY $param->orderby";
}
//error_log($sql);
$courses = $DB->get_records_sql($sql, $param->params, 0, $numcourses);
if (empty($courses)) {
echo $OUTPUT->notification(get_string('statsnodata'));
echo '</td></tr></table>';echo '<p>after notify</p>';
echo '</td></tr></table>';
} else {
if (empty($CFG->gdversion)) {
+1 -1
View File
@@ -27,7 +27,7 @@
ORDER BY $param->orderby";
}
$courses = $DB->get_records_sql($sql, $param->$params, 0, $numcourses);
$courses = $DB->get_records_sql($sql, $param->params, 0, $numcourses);
if (empty($courses)) {
$PAGE->set_url('/admin/report/courseoverview/index.php');
+4 -4
View File
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="admin/report/customlang/db" VERSION="20101112" COMMENT="XMLDB file for Moodle admin/report/customlang"
<XMLDB PATH="admin/report/customlang/db" VERSION="20110419" COMMENT="XMLDB file for Moodle admin/report/customlang"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../lib/xmldb/xmldb.xsd"
>
@@ -20,17 +20,17 @@
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="fk_component"/>
<KEY NAME="fk_component" TYPE="foreign" FIELDS="componentid" REFTABLE="customlang_components" REFFIELDS="id" PREVIOUS="primary"/>
<KEY NAME="fk_component" TYPE="foreign" FIELDS="componentid" REFTABLE="report_customlang_components" REFFIELDS="id" PREVIOUS="primary"/>
</KEYS>
<INDEXES>
<INDEX NAME="uq_lang_component_string" UNIQUE="true" FIELDS="lang, componentid, stringid" COMMENT="For a given language and component, string identifiers must be unique"/>
</INDEXES>
</TABLE>
<TABLE NAME="report_customlang_components" COMMENT="Contains the list of all installed plugins that provide their own language pack " PREVIOUS="report_customlang">
<TABLE NAME="report_customlang_components" COMMENT="Contains the list of all installed plugins that provide their own language pack" PREVIOUS="report_customlang">
<FIELDS>
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" NEXT="name"/>
<FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" COMMENT="The normalized name of the plugin" PREVIOUS="id" NEXT="version"/>
<FIELD NAME="version" TYPE="int" LENGTH="10" NOTNULL="false" UNSIGNED="true" SEQUENCE="false" COMMENT="The checked out version of the plugin, null of the version is unknown" PREVIOUS="name"/>
<FIELD NAME="version" TYPE="char" LENGTH="255" NOTNULL="false" SEQUENCE="false" COMMENT="The checked out version of the plugin, null if the version is unknown" PREVIOUS="name"/>
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="id"/>
+27
View File
@@ -43,5 +43,32 @@ function xmldb_report_customlang_upgrade($oldversion) {
upgrade_plugin_savepoint(true, 2010111200, 'report', 'customlang');
}
/**
* Regenerate the foreign key after the tables rename
*/
if ($oldversion < 2010111500) {
$table = new xmldb_table('report_customlang');
$oldkey = new xmldb_key('fk_component', XMLDB_KEY_FOREIGN, array('componentid'), 'customlang_components', array('id'));
$newkey = new xmldb_key('fk_component', XMLDB_KEY_FOREIGN, array('componentid'), 'report_customlang_components', array('id'));
$dbman->drop_key($table, $oldkey);
$dbman->add_key($table, $newkey);
upgrade_plugin_savepoint(true, 2010111500, 'report', 'customlang');
}
/**
* Change the version field from integer to varchar
*/
if ($oldversion < 2011041900) {
$table = new xmldb_table('report_customlang_components');
$field = new xmldb_field('version', XMLDB_TYPE_CHAR, '255', null, null, null, null, 'name');
$dbman->change_field_type($table, $field);
upgrade_plugin_savepoint(true, 2011041900, 'report', 'customlang');
}
return $result;
}
+1 -1
View File
@@ -38,7 +38,7 @@ $PAGE->set_url('/admin/report/customlang/edit.php', array('lng' => $lng));
navigation_node::override_active_url(new moodle_url('/admin/report/customlang/index.php'));
$PAGE->set_title(get_string('pluginname', 'report_customlang'));
$PAGE->set_heading(get_string('pluginname', 'report_customlang'));
//$PAGE->requires->js_init_call('M.report_customlang.init_translator', array(), true);
$PAGE->requires->js_init_call('M.report_customlang.init_editor', array(), true);
if (empty($lng)) {
// PARAM_LANG validation failed
+18 -2
View File
@@ -24,6 +24,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('NO_OUTPUT_BUFFERING', true); // progress bar is used here
require(dirname(dirname(dirname(dirname(__FILE__)))).'/config.php');
require_once($CFG->dirroot.'/'.$CFG->admin.'/report/customlang/locallib.php');
require_once($CFG->libdir.'/adminlib.php');
@@ -45,8 +47,22 @@ if ($action === 'checkout') {
if (empty($lng)) {
print_error('missingparameter');
}
report_customlang_utils::checkout($lng);
redirect(new moodle_url('/admin/report/customlang/edit.php', array('lng' => $lng)));
$PAGE->set_cacheable(false); // progress bar is used here
$output = $PAGE->get_renderer('report_customlang');
echo $output->header();
echo $output->heading(get_string('pluginname', 'report_customlang'));
$progressbar = new progress_bar();
$progressbar->create(); // prints the HTML code of the progress bar
// we may need a bit of extra execution time and memory here
@set_time_limit(HOURSECS);
raise_memory_limit(MEMORY_EXTRA);
report_customlang_utils::checkout($lng, $progressbar);
echo $output->continue_button(new moodle_url('/admin/report/customlang/edit.php', array('lng' => $lng)), 'get');
echo $output->footer();
exit;
}
if ($action === 'checkin') {
@@ -27,7 +27,9 @@
defined('MOODLE_INTERNAL') || die();
$string['checkin'] = 'Check in strings into disk';
$string['checkout'] = 'Check out strings into translator';
$string['checkout'] = 'Check out strings into the translator';
$string['checkoutdone'] = 'Strings checked out successfully into the translator';
$string['checkoutinprogress'] = 'Checking out strings into the translator';
$string['confirmcheckin'] = 'You are about to check in modified strings into your local language pack. This will export the customized strings from the translator into the data directory and Moodle will start using the modified strings. Press \'Continue\' button to proceed check in.';
$string['customlang:edit'] = 'Edit local translation';
$string['customlang:view'] = 'View local translation';
+23 -5
View File
@@ -16,7 +16,7 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Definition of classes used by Langugae customization admin report
* Definition of classes used by language customization admin report
*
* @package report
* @subpackage customlang
@@ -33,6 +33,12 @@ defined('MOODLE_INTERNAL') || die();
*/
class report_customlang_utils {
/**
* Rough number of strings that are being processed during a full checkout.
* This is used to estimate the progress of the checkout.
*/
const ROUGH_NUMBER_OF_STRINGS = 16500;
/** @var array cache of {@link self::list_components()} results */
protected static $components = null;
@@ -83,8 +89,9 @@ class report_customlang_utils {
* This should be executed each time before going to the translation page
*
* @param string $lang language code to checkout
* @param progress_bar $progressbar optionally, the given progress bar can be updated
*/
public static function checkout($lang) {
public static function checkout($lang, progress_bar $progressbar = null) {
global $DB;
// make sure that all components are registered
@@ -107,6 +114,10 @@ class report_customlang_utils {
}
unset($current);
// initialize the progress counter - stores the number of processed strings
$done = 0;
$strinprogress = get_string('checkoutinprogress', 'report_customlang');
// reload components and fetch their strings
$stringman = get_string_manager();
$components = $DB->get_records('report_customlang_components');
@@ -129,6 +140,12 @@ class report_customlang_utils {
$stringlocal = isset($local[$stringid]) ? $local[$stringid] : null;
$now = time();
if (!is_null($progressbar)) {
$done++;
$donepercent = floor(min($done, self::ROUGH_NUMBER_OF_STRINGS) / self::ROUGH_NUMBER_OF_STRINGS * 100);
$progressbar->update_full($donepercent, $strinprogress);
}
if (isset($current[$stringid])) {
$needsupdate = false;
$currentoriginal = $current[$stringid]->original;
@@ -175,6 +192,10 @@ class report_customlang_utils {
}
}
}
if (!is_null($progressbar)) {
$progressbar->update_full(100, get_string('checkoutdone', 'report_customlang'));
}
}
/**
@@ -257,9 +278,6 @@ class report_customlang_utils {
$packageinfo .= "\n * @subpackage $subpackage";
}
$filepath = self::get_localpack_location($lang);
if ($filepath !== clean_param($filepath, PARAM_SAFEPATH)) {
throw new coding_exception('Incorrect file location '.s($filepath));
}
$filepath = $filepath.'/'.$filename;
if (!is_dir(dirname($filepath))) {
check_dir_exists(dirname($filepath));
+45
View File
@@ -0,0 +1,45 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* @package report
* @subpackage customlang
* @copyright 2010 David Mudrak <david@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/**
* @namespace
*/
M.report_customlang = M.report_customlang || {};
/**
* YUI instance holder
*/
M.report_customlang.Y = {};
/**
* Initialize JS support for the edit.php
*
* @param {Object} Y YUI instance
*/
M.report_customlang.init_editor = function(Y) {
M.report_customlang.Y = Y;
Y.all('#translator .local textarea').each(function (textarea) {
var cell = textarea.get('parentNode');
textarea.setStyle('height', cell.getComputedStyle('height'));
});
}
+6 -1
View File
@@ -76,6 +76,7 @@ class report_customlang_renderer extends plugin_renderer_base {
$cells[1]->attributes['class'] = 'stringid';
// master translation of the string
$master = html_writer::tag('div', s($string->master), array('class' => 'preformatted'));
$minheight = strlen($string->master) / 200;
if (preg_match('/\{\$a(->.+)?\}/', $string->master)) {
$master .= html_writer::tag('div', $this->help_icon('placeholder', 'report_customlang',
get_string('placeholderwarning', 'report_customlang')), array('class' => 'placeholderinfo'));
@@ -83,7 +84,11 @@ class report_customlang_renderer extends plugin_renderer_base {
$cells[2] = new html_table_cell($master);
$cells[2]->attributes['class'] = 'standard master';
// local customization of the string
$textarea = html_writer::tag('textarea', s($string->local), array('name'=>'cust['.$string->id.']'));
$textareaattributes = array('name'=>'cust['.$string->id.']', 'cols'=>40, 'rows'=>3);
if ($minheight>1) {
$textareaattributes['style'] = 'min-height:' . (int) 4*$minheight . 'em;';
}
$textarea = html_writer::tag('textarea', s($string->local), $textareaattributes);
$cells[3] = new html_table_cell($textarea);
if (!is_null($string->local) and $string->outdated) {
$mark = html_writer::empty_tag('input', array('type' => 'checkbox', 'id' => 'update_' . $string->id,
+4
View File
@@ -63,3 +63,7 @@
background-color: #f6f6f6;
margin-top: 0.5em;
}
#page-admin-report-customlang-index .continuebutton {
margin-top: 1em;
}
+2 -2
View File
@@ -24,5 +24,5 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2010111200;
$plugin->requires = 2010111002;
$plugin->version = 2011041900;
$plugin->requires = 2010120700;
+186
View File
@@ -0,0 +1,186 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* @package core
* @subpackage profiling
* @copyright 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
// TODO: Move all the DB stuff to profiling_db_xxxx() function in xhprof_moodle.php
require_once(dirname(__FILE__).'/../../../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir . '/xhprof/xhprof_moodle.php');
define('PROFILING_RUNSPERPAGE', 50);
// page parameters
$script = optional_param('script', null, PARAM_PATH);
$runid = optional_param('runid', null, PARAM_ALPHANUM);
$runid2 = optional_param('runid2', null, PARAM_ALPHANUM);
$listurl = optional_param('listurl', null, PARAM_PATH);
$runreference= optional_param('runreference', 0, PARAM_INT);
$runcomment = optional_param('runcomment', null, PARAM_TEXT);
$dbfields = 'runid, url, totalexecutiontime, totalcputime, ' .
'totalcalls, totalmemory, runreference, runcomment, timecreated';
admin_externalpage_setup('reportprofiling');
// Always add listurl if available
if ($listurl) {
$listurlnav = new moodle_url('/admin/report/profiling/index.php', array('listurl' => $listurl));
$PAGE->navbar->add($listurl, $listurlnav);
}
// Header
echo $OUTPUT->header();
// We have requested the last available run for one script
if (isset($script)) {
// Get the last available run for the given script
$run = $DB->get_record_sql("SELECT $dbfields
FROM {profiling}
WHERE url = ?
AND id = (SELECT MAX(id)
FROM {profiling}
WHERE url = ?)",
array($script, $script), IGNORE_MISSING);
// No run found for script, warn and exit
if (!$run) {
notice(get_string('cannotfindanyrunforurl', 'report_profiling', $script), 'index.php');
}
// Check if there is any previous run marked as reference one
$prevreferences = $DB->get_records_select('profiling',
'url = ? AND runreference = 1 AND timecreated < ?',
array($run->url, $run->timecreated),
'timecreated DESC', 'runid', 0, 1);
$prevrunid = $prevreferences ? reset($prevreferences)->runid : false;
echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter');
$header = get_string('lastrunof', 'report_profiling', $script);
echo $OUTPUT->heading($header);
$table = profiling_print_run($run, $prevrunid);
echo $table;
echo $OUTPUT->box_end();
// We have requested the diff between 2 runs
} else if (isset($runid) && isset($runid2)) {
$run1 = $DB->get_record('profiling', array('runid'=>$runid), $dbfields, MUST_EXIST);
$run2 = $DB->get_record('profiling', array('runid'=>$runid2), $dbfields, MUST_EXIST);
if ($run1->url == $run2->url && $run1->runid != $run2->runid) {
if ($run2->timecreated < $run1->timecreated) {
$runtemp = $run1;
$run1 = $run2;
$run2 = $runtemp;
}
echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter');
$header = get_string('differencesbetween2runsof', 'report_profiling', $run1->url);
echo $OUTPUT->heading($header);
$table = profiling_print_rundiff($run1, $run2);
echo $table;
echo $OUTPUT->box_end();
}
// We have requested one run, invoke it
} else if (isset($runid)) {
// Check if we are trying to update the runreference/runcomment for the run
if (isset($runcomment) && confirm_sesskey()) {
$id = $DB->get_field('profiling', 'id', array('runid' => $runid), MUST_EXIST);
$rec = new stdClass();
$rec->id = $id;
$rec->runreference = (bool)$runreference;
$rec->runcomment = $runcomment;
$DB->update_record('profiling', $rec);
}
// Get the requested runid
$run = $DB->get_record('profiling', array('runid'=>$runid), $dbfields, IGNORE_MISSING);
// No run found for runid, warn and exit
if (!$run) {
notice(get_string('cannotfindanyrunforrunid', 'report_profiling', $runid), 'index.php');
}
// Check if there is any previous run marked as reference one
$prevreferences = $DB->get_records_select('profiling',
'url = ? AND runreference = 1 AND timecreated < ?',
array($run->url, $run->timecreated),
'timecreated DESC', 'runid', 0, 1);
$prevrunid = $prevreferences ? reset($prevreferences)->runid : false;
echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter');
$header = get_string('summaryof', 'report_profiling', $run->url);
echo $OUTPUT->heading($header);
$table = profiling_print_run($run, $prevrunid);
echo $table;
echo $OUTPUT->box_end();
// Default: List one page of runs
} else {
// The flexitable that will root listings
$table = new xhprof_table_sql('profiling-list-table');
$baseurl = $CFG->wwwroot . '/admin/report/profiling/index.php';
// Check if we are listing all or some URL ones
$sqlconditions = '';
$sqlparams = array();
if (!isset($listurl)) {
$header = get_string('pluginname', 'report_profiling');
$sqlconditions = '1 = 1';
$table->set_listurlmode(false);
} else {
$header = get_string('profilingrunsfor', 'report_profiling', $listurl);
$sqlconditions = 'url = :url';
$sqlparams['url'] = $listurl;
$table->set_listurlmode(true);
$baseurl .= '?listurl=' . urlencode($listurl);
}
echo $OUTPUT->heading($header);
// TODO: Fix flexitable to validate tsort/thide/tshow/tifirs/tilast/page
// TODO: Fix table_sql to allow it to work without WHERE clause
// add silly condition (1 = 1) because of table_sql bug
$table->set_sql($dbfields, '{profiling}', $sqlconditions, $sqlparams);
$table->set_count_sql("SELECT COUNT(*) FROM {profiling} WHERE $sqlconditions", $sqlparams);
$columns = array(
'url', 'timecreated', 'totalexecutiontime', 'totalcputime',
'totalcalls', 'totalmemory', 'runcomment');
$headers = array(
get_string('url'), get_string('date'), get_string('executiontime', 'report_profiling'),
get_string('cputime', 'report_profiling'), get_string('calls', 'report_profiling'),
get_string('memory', 'report_profiling'), get_string('comment', 'report_profiling'));
$table->define_columns($columns);
$table->define_headers($headers);
$table->sortable(true, 'timecreated', SORT_DESC);
$table->define_baseurl($baseurl);
$table->column_suppress('url');
$table->out(PROFILING_RUNSPERPAGE, true);
// Print the controller block with different options
echo profiling_list_controls($listurl);
}
// Footer.
echo $OUTPUT->footer();
@@ -0,0 +1,45 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component 'report_profiling', language 'en', branch 'MOODLE_20_STABLE'
*
* @package report_profiling
* @copyright 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['calls'] = 'Function calls';
$string['cannotfindanyrunforurl'] = 'Sorry, cannot find any profiling run for the \'{$a}\' URL';
$string['cannotfindanyrunforrunid'] = 'Sorry, cannot find the \'{$a}\' profiling run';
$string['comment'] = 'Comment';
$string['differencesbetween2runsof'] = 'Differences between 2 runs of {$a}';
$string['executiontime'] = 'Execution time';
$string['cputime'] = 'CPU time';
$string['lastrunof'] = 'Summary of last run of {$a}';
$string['markreferencerun'] = 'Mark as reference run/comment';
$string['memory'] = 'Memory used';
$string['pluginname'] = 'Profiling runs';
$string['profilingfocusscript'] = 'Focus on profiling runs for the script: {$a}';
$string['profilingruns'] = 'Profiling runs';
$string['profilingrunsfor'] = 'Profiling runs for {$a}';
$string['referencerun'] = 'Reference run/comment';
$string['runid'] = 'Run ID';
$string['summaryof'] = 'Summary of {$a}';
$string['viewdetails'] = 'View profiling details';
$string['viewdiff'] = 'View profiling differences with last reference run';
$string['viewdiffdetails'] = 'View profiling diff details';
+8
View File
@@ -0,0 +1,8 @@
<?php
defined('MOODLE_INTERNAL') || die;
// profiling report, added to development
if (extension_loaded('xhprof') && function_exists('xhprof_enable') && !empty($CFG->profilingenabled)) {
$ADMIN->add('development', new admin_externalpage('reportprofiling', get_string('pluginname', 'report_profiling'), "$CFG->wwwroot/$CFG->admin/report/profiling/index.php", 'moodle/site:config'));
}
+25
View File
@@ -0,0 +1,25 @@
/* report_profiling styles */
.path-admin-report-profiling .profilingruntable .label {
font-weight: bold;
}
.path-admin-report-profiling .profiling_worse {
color: red;
}
.path-admin-report-profiling .profiling_better {
color: green;
}
.path-admin-report-profiling .profiling_same {
color: dimgrey;
}
.path-admin-report-profiling .profiling_important,
.path-admin-report-profiling .flexible .referencerun {
font-weight: bold;
}
.path-admin-report-profiling .flexible .r1 .cell {
background-color: whitesmoke;
}
.path-admin-report-profiling .flexible {
margin-left:auto;
margin-right:auto
}
+2 -2
View File
@@ -23,6 +23,8 @@
// //
///////////////////////////////////////////////////////////////////////////
define('NO_OUTPUT_BUFFERING', true);
require_once('../../../config.php');
require_once($CFG->dirroot.'/'.$CFG->admin.'/report/security/lib.php');
require_once($CFG->libdir.'/adminlib.php');
@@ -49,8 +51,6 @@ echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('pluginname', 'report_security'));
echo '<div id="timewarning">'.get_string('timewarning', 'report_security').'</div>';
while(@ob_end_flush());
@flush();
$strok = '<span class="statusok">'.get_string('statusok', 'report_security').'</span>';
$strinfo = '<span class="statusinfo">'.get_string('statusinfo', 'report_security').'</span>';
+8 -6
View File
@@ -151,19 +151,21 @@ function search_spammers($keywords) {
$params = array('userid'=>$USER->id);
$keywordfull = array();
$i = 0;
foreach ($keywords as $keyword) {
$keywordfull[] = $DB->sql_like('description', ':descpat', false);
$params['descpat'] = "%$keyword%";
$keywordfull2[] = $DB->sql_like('p.summary', ':sumpat', false);
$params['sumpat'] = "%$keyword%";
$keywordfull[] = $DB->sql_like('description', ':descpat'.$i, false);
$params['descpat'.$i] = "%$keyword%";
$keywordfull2[] = $DB->sql_like('p.summary', ':sumpat'.$i, false);
$params['sumpat'.$i] = "%$keyword%";
$i++;
}
$conditions = '( '.implode(' OR ', $keywordfull).' )';
$conditions2 = '( '.implode(' OR ', $keywordfull2).' )';
$sql = "SELECT * FROM {user} WHERE deleted = 0 AND id <> :userid AND $conditions"; // Exclude oneself
$sql2 = "SELECT u.*, p.summary FROM {user} AS u, {post} AS p WHERE $conditions2 AND u.deleted = 0 AND u.id=p.userid AND u.id <> :userid";
$spamusers_desc = $DB->get_recordset_sql($sql);
$spamusers_blog = $DB->get_recordset_sql($sql2);
$spamusers_desc = $DB->get_recordset_sql($sql, $params);
$spamusers_blog = $DB->get_recordset_sql($sql2, $params);
$keywordlist = implode(', ', $keywords);
echo $OUTPUT->box(get_string('spamresult', 'report_spamcleaner').s($keywordlist)).' ...';
+1 -1
View File
@@ -108,7 +108,7 @@ M.report_spamcleaner = {
context.Y = Y;
context.me = me;
if (Y.one("#removeall_btn")) {
Y.on("click", context.del_all, "#removeall_btn");
Y.on("click", context.del_all, "#removeall_btn");
}
});
}
View File
+2 -4
View File
@@ -4,7 +4,8 @@
* @package SimpleTestEx
*/
/** */
define('NO_OUTPUT_BUFFERING', true);
require_once(dirname(__FILE__).'/../../../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/simpletestcoveragelib.php');
@@ -68,9 +69,6 @@ for ($i=1; $i<=10; $i++) {
}
if (!empty($tests)) {
@ob_implicit_flush(true);
while(@ob_end_flush());
$covreporter = new moodle_coverage_reporter('Functional DB Tests Code Coverage Report', 'dbtest');
$covrecorder = new moodle_coverage_recorder($covreporter);
+2 -1
View File
@@ -8,7 +8,8 @@
* @package SimpleTestEx
*/
/** */
define('NO_OUTPUT_BUFFERING', true);
require_once(dirname(__FILE__).'/../../../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/simpletestcoveragelib.php');
+5 -1
View File
@@ -68,7 +68,11 @@ if (!empty($edit) || !empty($new)) {
$settings['name'] = $fromform->name;
if (!$instance->readonly) {
foreach($configs as $config) {
$settings[$config] = $fromform->$config;
if (isset($fromform->$config)) {
$settings[$config] = $fromform->$config;
} else {
$settings[$config] = null;
}
}
}
$success = $instance->set_option($settings);
Executable → Regular
View File
Executable → Regular
+2 -1
View File
@@ -232,7 +232,8 @@ $assignurl = new moodle_url($PAGE->url, array('roleid'=>$roleid));
$select = new single_select($PAGE->url, 'roleid', $nameswithcounts, $roleid, null);
$select->label = get_string('assignanotherrole', 'role');
echo $OUTPUT->render($select);
echo '<p><a href="' . $PAGE->url . '">' . get_string('backtoallroles', 'role') . '</a></p>';
$backurl = new moodle_url('/admin/roles/assign.php', array('contextid' => $contextid));
echo '<p><a href="' . $backurl->out() . '">' . get_string('backtoallroles', 'role') . '</a></p>';
echo '</div>';
} else if (empty($assignableroles)) {
Executable → Regular
View File
Executable → Regular
View File
+5 -5
View File
@@ -628,7 +628,7 @@ class define_role_table_advanced extends capability_table_with_risks {
// Legacy type.
$archetype = optional_param('archetype', null, PARAM_RAW);
if ($archetype) {
if (isset($archetype)) {
$archetypes = get_role_archetypes();
if (isset($archetypes[$archetype])){
$this->role->archetype = $archetype;
@@ -716,7 +716,6 @@ class define_role_table_advanced extends capability_table_with_risks {
}
protected function get_archetype_field($id) {
global $OUTPUT;
$options = array();
$options[''] = get_string('none');
foreach(get_role_archetypes() as $type) {
@@ -780,8 +779,8 @@ class define_role_table_advanced extends capability_table_with_risks {
global $OUTPUT;
// Extra fields at the top of the page.
echo '<div class="topfields clearfix">';
$this->print_field('name', get_string('name'), $this->get_name_field('name'));
$this->print_field('shortname', get_string('shortname'), $this->get_shortname_field('shortname'));
$this->print_field('name', get_string('rolefullname', 'role'), $this->get_name_field('name'));
$this->print_field('shortname', get_string('roleshortname', 'role'), $this->get_shortname_field('shortname'));
$this->print_field('edit-description', get_string('description'), $this->get_description_field('description'));
$this->print_field('menuarchetype', get_string('archetype', 'role').'&nbsp;'.$OUTPUT->help_icon('archetype', 'role'), $this->get_archetype_field('archetype'));
$this->print_field('', get_string('maybeassignedin', 'role'), $this->get_assignable_levels_control());
@@ -1143,7 +1142,7 @@ class existing_role_holders extends role_assign_user_selector_base {
global $DB;
list($wherecondition, $params) = $this->search_sql($search, 'u');
list($ctxcondition, $ctxparams) = $DB->get_in_or_equal(get_parent_contexts($this->context, true), SQL_PARAMS_NAMED, 'ctx00');
list($ctxcondition, $ctxparams) = $DB->get_in_or_equal(get_parent_contexts($this->context, true), SQL_PARAMS_NAMED, 'ctx');
$params = array_merge($params, $ctxparams);
$params['roleid'] = $this->roleid;
@@ -1317,6 +1316,7 @@ abstract class role_allow_role_page {
foreach ($rs as $allow) {
$this->allowed[$allow->roleid][$allow->{$this->targetcolname}] = true;
}
$rs->close();
}
/**
Executable → Regular
+1 -1
View File
@@ -194,7 +194,7 @@
$table->head = array(
get_string('role') . ' ' . $OUTPUT->help_icon('roles', 'role'),
get_string('description'),
get_string('shortname'),
get_string('roleshortname', 'role'),
get_string('edit')
);
Executable → Regular
View File
+1 -1
View File
@@ -138,7 +138,7 @@ M.core_role.init_cap_table_filter = function(Y, tableid, contextid) {
lastheading = null;
this.setFilterCookieValue(filtertext);
this.button.set('disabled', (filtertext == ''));
this.table.all('tr').each(function(row){
Executable → Regular
View File
+11 -4
View File
@@ -63,10 +63,10 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// blog
$temp = new admin_settingpage('blog', get_string('blog','blog'));
$temp->add(new admin_setting_configcheckbox('useblogassociations', get_string('useblogassociations', 'blog'), get_string('configuseblogassociations','blog'), 1));
$temp->add(new admin_setting_bloglevel('bloglevel', get_string('bloglevel', 'admin'), get_string('configbloglevel', 'admin'), 4, array(5 => get_string('worldblogs','blog'),
4 => get_string('siteblogs','blog'),
1 => get_string('personalblogs','blog'),
0 => get_string('disableblogs','blog'))));
$temp->add(new admin_setting_bloglevel('bloglevel', get_string('bloglevel', 'admin'), get_string('configbloglevel', 'admin'), 4, array(BLOG_GLOBAL_LEVEL => get_string('worldblogs','blog'),
BLOG_SITE_LEVEL => get_string('siteblogs','blog'),
BLOG_USER_LEVEL => get_string('personalblogs','blog'),
0 => get_string('disableblogs','blog'))));
$temp->add(new admin_setting_configcheckbox('useexternalblogs', get_string('useexternalblogs', 'blog'), get_string('configuseexternalblogs','blog'), 1));
$temp->add(new admin_setting_configselect('externalblogcrontime', get_string('externalblogcrontime', 'blog'), get_string('configexternalblogcrontime', 'blog'), 86400,
array(43200 => get_string('numhours', '', 12),
@@ -131,5 +131,12 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
// link to tag management interface
$ADMIN->add('appearance', new admin_externalpage('managetags', get_string('managetags', 'tag'), "$CFG->wwwroot/tag/manage.php"));
$temp = new admin_settingpage('additionalhtml', get_string('additionalhtml', 'admin'));
$temp->add(new admin_setting_heading('additionalhtml_heading', get_string('additionalhtml_heading', 'admin'), get_string('additionalhtml_desc', 'admin')));
$temp->add(new admin_setting_configtextarea('additionalhtmlhead', get_string('additionalhtmlhead', 'admin'), get_string('additionalhtmlhead_desc', 'admin'), '', PARAM_RAW));
$temp->add(new admin_setting_configtextarea('additionalhtmltopofbody', get_string('additionalhtmltopofbody', 'admin'), get_string('additionalhtmltopofbody_desc', 'admin'), '', PARAM_RAW));
$temp->add(new admin_setting_configtextarea('additionalhtmlfooter', get_string('additionalhtmlfooter', 'admin'), get_string('additionalhtmlfooter_desc', 'admin'), '', PARAM_RAW));
$ADMIN->add('appearance', $temp);
} // end of speedup
+3 -3
View File
@@ -139,7 +139,7 @@ if ($hassiteconfig
400 => '400',
500 => '500');
$temp->add(new admin_setting_configselect('backup/backup_auto_keep', get_string('keep'), get_string('backupkeephelp'), 1, $keepoptoins));
$temp->add(new admin_setting_heading('automatedsettings', get_string('automatedsettings','backup'), ''));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_users', get_string('users'), get_string('backupusershelp'), 1));
@@ -152,8 +152,8 @@ if ($hassiteconfig
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_userscompletion', get_string('generaluserscompletion','backup'), get_string('configgeneraluserscompletion','backup'), 1));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_logs', get_string('logs'), get_string('backuplogshelp'), 0));
$temp->add(new admin_setting_configcheckbox('backup/backup_auto_histories', get_string('generalhistories','backup'), get_string('configgeneralhistories','backup'), 0));
//$temp->add(new admin_setting_configcheckbox('backup/backup_auto_messages', get_string('messages', 'message'), get_string('backupmessageshelp','message'), 0));
//$temp->add(new admin_setting_configcheckbox('backup/backup_auto_blogs', get_string('blogs', 'blog'), get_string('backupblogshelp','blog'), 0));
+42 -5
View File
@@ -12,17 +12,16 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$englobalsearch = new admin_setting_configcheckbox('enableglobalsearch', get_string('enableglobalsearch', 'admin'), get_string('configenableglobalsearch', 'admin'), 0);
$englobalsearch->set_updatedcallback('search_updatedcallback');
$temp->add($englobalsearch);
$temp->add(new admin_setting_configcheckbox('experimentalsplitrestore', get_string('experimentalsplitrestore', 'admin'), get_string('configexperimentalsplitrestore', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('enableimsccimport', get_string('enable_cc_import', 'imscc'), get_string('enable_cc_import_description', 'imscc'), 0));
//TODO: Re-enable cc-import once re-implemented in 2.0.x
//$temp->add(new admin_setting_configcheckbox('enableimsccimport', get_string('enable_cc_import', 'imscc'), get_string('enable_cc_import_description', 'imscc'), 0));
$temp->add(new admin_setting_configcheckbox('enablesafebrowserintegration', get_string('enablesafebrowserintegration', 'admin'), get_string('configenablesafebrowserintegration', 'admin'), 0));
$temp->add(new admin_setting_configcheckbox('enablegroupmembersonly', get_string('enablegroupmembersonly', 'admin'), get_string('configenablegroupmembersonly', 'admin'), 0));
$ADMIN->add('experimental', $temp);
// DB transfer related pages
$ADMIN->add('experimental', new admin_externalpage('dbtransfer', get_string('dbtransfer', 'dbtransfer'), $CFG->wwwroot.'/'.$CFG->admin.'/dbtransfer/index.php', 'moodle/site:config'));
$ADMIN->add('experimental', new admin_externalpage('dbexport', get_string('dbexport', 'dbtransfer'), $CFG->wwwroot.'/'.$CFG->admin.'/dbtransfer/dbexport.php', 'moodle/site:config'));
$ADMIN->add('experimental', new admin_externalpage('dbtransfer', get_string('dbtransfer', 'dbtransfer'), $CFG->wwwroot.'/'.$CFG->admin.'/dbtransfer/index.php', 'moodle/site:config', true));
$ADMIN->add('experimental', new admin_externalpage('dbexport', get_string('dbexport', 'dbtransfer'), $CFG->wwwroot.'/'.$CFG->admin.'/dbtransfer/dbexport.php', 'moodle/site:config', true));
// "debugging" settingpage
$temp = new admin_settingpage('debugging', get_string('debugging', 'admin'));
@@ -36,6 +35,44 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$temp->add(new admin_setting_configcheckbox('debugpageinfo', get_string('debugpageinfo', 'admin'), get_string('configdebugpageinfo', 'admin'), 0));
$ADMIN->add('development', $temp);
// "profiling" settingpage (conditionally if the 'xhprof' extension is available only)
if (extension_loaded('xhprof') && function_exists('xhprof_enable')) {
$temp = new admin_settingpage('profiling', get_string('profiling', 'admin'));
// Main profiling switch
$temp->add(new admin_setting_configcheckbox('profilingenabled', get_string('profilingenabled', 'admin'), get_string('profilingenabled_help', 'admin'), false));
// List of URLs that will be automatically profiled
$temp->add(new admin_setting_configtextarea('profilingincluded', get_string('profilingincluded', 'admin'), get_string('profilingincluded_help', 'admin'), ''));
// List of URLs that won't be profiled ever
$temp->add(new admin_setting_configtextarea('profilingexcluded', get_string('profilingexcluded', 'admin'), get_string('profilingexcluded_help', 'admin'), ''));
// Allow random profiling each XX requests
$temp->add(new admin_setting_configtext('profilingautofrec', get_string('profilingautofrec', 'admin'), get_string('profilingautofrec_help', 'admin'), 0, PARAM_INT));
// Allow PROFILEME/DONTPROFILEME GPC
$temp->add(new admin_setting_configcheckbox('profilingallowme', get_string('profilingallowme', 'admin'), get_string('profilingallowme_help', 'admin'), false));
// Allow PROFILEALL/PROFILEALLSTOP GPC
$temp->add(new admin_setting_configcheckbox('profilingallowall', get_string('profilingallowall', 'admin'), get_string('profilingallowall_help', 'admin'), false));
// TODO: Allow to skip PHP functions (XHPROF_FLAGS_NO_BUILTINS)
// TODO: Allow to skip call_user functions (ignored_functions array)
// Specify the life time (in minutes) of profiling runs
$temp->add(new admin_setting_configselect('profilinglifetime', get_string('profilinglifetime', 'admin'), get_string('profilinglifetime_help', 'admin'), 24*60, array(
0 => get_string('neverdeleteruns', 'admin'),
30*24*60 => get_string('numdays', '', 30),
15*24*60 => get_string('numdays', '', 15),
7*24*60 => get_string('numdays', '', 7),
4*24*60 => get_string('numdays', '', 4),
2*24*60 => get_string('numdays', '', 2),
24*60 => get_string('numhours', '', 24),
16*80 => get_string('numhours', '', 16),
8*60 => get_string('numhours', '', 8),
4*60 => get_string('numhours', '', 4),
2*60 => get_string('numhours', '', 2),
60 => get_string('numminutes', '', 60),
30 => get_string('numminutes', '', 30),
15 => get_string('numminutes', '', 15))));
// Add the 'profiling' page to admin block
$ADMIN->add('development', $temp);
}
// XMLDB editor
$ADMIN->add('development', new admin_externalpage('xmldbeditor', get_string('xmldbeditor'), "$CFG->wwwroot/$CFG->admin/xmldb/"));
+14 -5
View File
@@ -52,13 +52,22 @@ if (!during_initial_install()) { //do not use during installation
$temp->add(new admin_setting_configtext('coursesperpage', get_string('coursesperpage', 'admin'), get_string('configcoursesperpage', 'admin'), 20, PARAM_INT));
// front page default role
$roleoptions = array(0=>get_string('none')); // roles to choose from
if ($roles = get_all_roles()) {
foreach ($roles as $role) {
$roleoptions[$role->id] = strip_tags(format_string($role->name, true));
$options = array(0=>get_string('none')); // roles to choose from
$defaultfrontpageroleid = 0;
foreach (get_all_roles() as $role) {
if (empty($role->archetype) or $role->archetype === 'guest' or $role->archetype === 'frontpage' or $role->archetype === 'student') {
$options[$role->id] = strip_tags(format_string($role->name)) . ' ('. $role->shortname . ')';
if ($role->archetype === 'frontpage') {
$defaultfrontpageroleid = $role->id;
}
}
}
$temp->add(new admin_setting_configselect('defaultfrontpageroleid', get_string('frontpagedefaultrole', 'admin'), '', 0, $roleoptions));
if ($defaultfrontpageroleid and (!isset($CFG->defaultfrontpageroleid) or $CFG->defaultfrontpageroleid)) {
//frotpage role may not exist in old upgraded sites
unset($options[0]);
}
$temp->add(new admin_setting_configselect('defaultfrontpageroleid', get_string('frontpagedefaultrole', 'admin'), '', $defaultfrontpageroleid, $options));
$ADMIN->add('frontpage', $temp);
+1 -1
View File
@@ -10,7 +10,7 @@ if ($hassiteconfig) {
$temp->add(new admin_setting_configselect('lang', get_string('lang', 'admin'), get_string('configlang', 'admin'), current_language(), get_string_manager()->get_list_of_translations())); // $CFG->lang might be set in installer already, default en is in setup.php
$temp->add(new admin_setting_configcheckbox('langmenu', get_string('langmenu', 'admin'), get_string('configlangmenu', 'admin'), 1));
$temp->add(new admin_setting_langlist());
$temp->add(new admin_setting_configcheckbox('langcache', get_string('langcache', 'admin'), get_string('configlangcache', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('langcache', get_string('langcache', 'admin'), get_string('langcache_desc', 'admin'), 1));
$temp->add(new admin_setting_configcheckbox('langstringcache', get_string('langstringcache', 'admin'), get_string('configlangstringcache', 'admin'), 1));
$temp->add(new admin_setting_configtext('locale', get_string('localetext', 'admin'), get_string('configlocale', 'admin'), '', PARAM_FILE));
$temp->add(new admin_setting_configselect('latinexcelexport', get_string('latinexcelexport', 'admin'), get_string('configlatinexcelexport', 'admin'), '0', array('0'=>'Unicode','1'=>'Latin')));
+1
View File
@@ -10,6 +10,7 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$options[99] = get_string('timezonenotforced', 'admin');
$temp->add(new admin_setting_configselect('forcetimezone', get_string('forcetimezone', 'admin'), get_string('helpforcetimezone', 'admin'), 99, $options));
$temp->add(new admin_settings_country_select('country', get_string('country', 'admin'), get_string('configcountry', 'admin'), 0));
$temp->add(new admin_setting_configtext('defaultcity', get_string('defaultcity', 'admin'), get_string('defaultcity_help', 'admin'), ''));
$temp->add(new admin_setting_heading('iplookup', get_string('iplookup', 'admin'), get_string('iplookupinfo', 'admin')));
$temp->add(new admin_setting_configfile('geoipfile', get_string('geoipfile', 'admin'), get_string('configgeoipfile', 'admin', $CFG->dataroot.'/geoip/'), $CFG->dataroot.'/geoip/GeoLiteCity.dat'));
+32 -8
View File
@@ -367,18 +367,17 @@ if ($hassiteconfig) {
}
$ADMIN->add('webservicesettings', $temp);
// Question type settings
if ($hassiteconfig || has_capability('moodle/question:config', $systemcontext)) {
// Question type settings.
$ADMIN->add('modules', new admin_category('qtypesettings', get_string('questiontypes', 'admin')));
$ADMIN->add('qtypesettings', new admin_page_manageqtypes());
require_once($CFG->libdir . '/questionlib.php');
global $QTYPES;
foreach ($QTYPES as $qtype) {
$settingsfile = $qtype->plugin_dir() . '/settings.php';
$qtypes = get_plugin_list('qtype');
foreach ($qtypes as $qtype => $path) {
$settingsfile = $path . '/settings.php';
if (file_exists($settingsfile)) {
$settings = new admin_settingpage('qtypesetting' . $qtype->name(),
$qtype->local_name(), 'moodle/question:config');
$settings = new admin_settingpage('qtypesetting' . $qtype,
get_string('pluginname', 'qtype_' . $qtype), 'moodle/question:config');
include($settingsfile);
if ($settings) {
$ADMIN->add('qtypesettings', $settings);
@@ -386,6 +385,8 @@ if ($hassiteconfig || has_capability('moodle/question:config', $systemcontext))
}
}
}
// Plagiarism plugin settings
if ($hassiteconfig && !empty($CFG->enableplagiarism)) {
$ADMIN->add('modules', new admin_category('plagiarism', get_string('plagiarism', 'plagiarism')));
$temp = new admin_settingpage('plagiarismsettings', get_string('plagiarismsettings', 'plagiarism'));
@@ -398,8 +399,31 @@ if ($hassiteconfig && !empty($CFG->enableplagiarism)) {
}
}
$ADMIN->add('reports', new admin_externalpage('comments', get_string('comments'), $CFG->wwwroot.'/comment/', 'moodle/site:viewreports'));
/// Now add reports
// Course reports settings
if ($hassiteconfig) {
$pages = array();
foreach (get_plugin_list('coursereport') as $report => $path) {
$file = $CFG->dirroot . '/course/report/' . $report . '/settings.php';
if (file_exists($file)) {
$settings = new admin_settingpage('coursereport' . $report,
get_string('pluginname', 'coursereport_' . $report), 'moodle/site:config');
// settings.php may create a subcategory or unset the settings completely
include($file);
if ($settings) {
$pages[] = $settings;
}
}
}
if (!empty($pages)) {
$ADMIN->add('modules', new admin_category('coursereports', get_string('coursereports')));
foreach ($pages as $page) {
$ADMIN->add('coursereports', $page);
}
}
}
// Now add reports
foreach (get_plugin_list('report') as $plugin => $plugindir) {
$settings_path = "$plugindir/settings.php";
if (file_exists($settings_path)) {
+6
View File
@@ -12,6 +12,7 @@ $temp->add(new admin_setting_configselect('gdversion', get_string('gdversion','a
'2' => get_string('gd2'))));
$temp->add(new admin_setting_configexecutable('pathtodu', get_string('pathtodu', 'admin'), get_string('configpathtodu', 'admin'), ''));
$temp->add(new admin_setting_configexecutable('aspellpath', get_string('aspellpath', 'admin'), get_string('edhelpaspellpath'), ''));
$temp->add(new admin_setting_configexecutable('pathtodot', get_string('pathtodot', 'admin'), get_string('pathtodot_help', 'admin'), ''));
$ADMIN->add('server', $temp);
@@ -226,6 +227,8 @@ $ADMIN->add('server', new admin_externalpage('phpinfo', get_string('phpinfo'), "
// "performance" settingpage
$temp = new admin_settingpage('performance', get_string('performance', 'admin'));
$temp->add(new admin_setting_configtext('numcoursesincombo', get_string('numcoursesincombo', 'admin'), get_string('numcoursesincombo_help', 'admin'), 500));
$temp->add(new admin_setting_configselect('extramemorylimit', get_string('extramemorylimit', 'admin'),
get_string('configextramemorylimit', 'admin'), '512M',
// if this option is set to 0, default 128M will be used
@@ -238,6 +241,8 @@ $temp->add(new admin_setting_configselect('extramemorylimit', get_string('extram
$temp->add(new admin_setting_configtext('curlcache', get_string('curlcache', 'admin'),
get_string('configcurlcache', 'admin'), 120, PARAM_INT));
$temp->add(new admin_setting_configtext('curltimeoutkbitrate', get_string('curltimeoutkbitrate', 'admin'),
get_string('curltimeoutkbitrate_help', 'admin'), 56, PARAM_INT));
/* //TODO: we need to fix code instead of relying on slow rcache, enable this once we have some code that is actually using it
$temp->add(new admin_setting_special_selectsetup('cachetype', get_string('cachetype', 'admin'),
get_string('configcachetype', 'admin'), '',
@@ -265,5 +270,6 @@ $ADMIN->add('server', $temp);
$ADMIN->add('server', new admin_externalpage('adminregistration', get_string('registration','admin'), "$CFG->wwwroot/$CFG->admin/registration/index.php"));
$ADMIN->add('root', new admin_externalpage('bloglevelupgrade', get_string('bloglevelupgrade', 'admin'), $CFG->wwwroot.'/'.$CFG->admin.'/blocklevelupgrade.php', 'moodle/site:config', true));
} // end of speedup
+2 -5
View File
@@ -37,13 +37,10 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$optionalsubsystems->add(new admin_setting_configcheckbox('enablecompletion',
get_string('enablecompletion','completion'),
get_string('configenablecompletion','completion'), 0));
$optionalsubsystems->add(new admin_setting_pickroles('progresstrackedroles',
get_string('progresstrackedroles','completion'),
get_string('configprogresstrackedroles', 'completion'),
array('student')));
$optionalsubsystems->add(new admin_setting_configcheckbox('enableavailability',
$optionalsubsystems->add($checkbox = new admin_setting_configcheckbox('enableavailability',
get_string('enableavailability','condition'),
get_string('configenableavailability','condition'), 0));
$checkbox->set_affects_modinfo(true);
$optionalsubsystems->add(new admin_setting_configcheckbox('enableplagiarism', get_string('enableplagiarism','plagiarism'), get_string('configenableplagiarism','plagiarism'), 0));
}
+26 -28
View File
@@ -38,17 +38,18 @@ if ($hassiteconfig
if ($ADMIN->fulltree) {
if (!during_initial_install()) {
$context = get_context_instance(CONTEXT_SYSTEM);
$allroles = array();
$generalroles = array();
$otherroles = array();
$guestroles = array();
$userroles = array();
$studentroles = array();
$teacherroles = array();
$creatornewroles = array();
$defaultteacherid = null;
$defaultuserid = null;
$defaultguestid = null;
foreach (get_all_roles() as $role) {
$rolename = strip_tags(format_string($role->name)) . ' ('. $role->shortname . ')';
$allroles[$role->id] = $rolename;
switch ($role->archetype) {
case 'manager':
$creatornewroles[$role->id] = $rolename;
@@ -56,58 +57,55 @@ if ($hassiteconfig
case 'coursecreator':
break;
case 'editingteacher':
$teacherroles[$role->id] = $rolename;
$defaultteacherid = isset($defaultteacherid) ? $defaultteacherid : $role->id;
$creatornewroles[$role->id] = $rolename;
break;
case 'teacher':
$creatornewroles[$role->id] = $rolename;
break;
case 'student':
$studentroles[$role->id] = $rolename;
break;
case 'guest':
$defaultguestid = isset($defaultguestid) ? $defaultguestid : $role->id;
$guestroles[$role->id] = $rolename;
break;
case 'user':
$defaultuserid = isset($defaultuserid) ? $defaultuserid : $role->id;
$userroles[$role->id] = $rolename;
break;
case 'frontpage':
break;
default:
$creatornewroles[$role->id] = $rolename;
$generalroles[$role->id] = $rolename;
$otherroles[$role->id] = $rolename;
break;
}
}
reset($guestroles);
$defaultguestid = key($guestroles);
reset($studentroles);
$defaultstudentid = key($studentroles);
reset($teacherroles);
$defaultteacherid = key($teacherroles);
if (empty($guestroles)) {
$guestroles[0] = get_string('none');
$defaultguestid = 0;
}
if ($userroles) {
reset($userroles);
$defaultuserid = key($userroles);
} else {
$userroles = array('0'=>get_string('none'));
if (empty($userroles)) {
$userroles[0] = get_string('none');
$defaultuserid = 0;
}
$temp->add(new admin_setting_configselect('notloggedinroleid', get_string('notloggedinroleid', 'admin'),
get_string('confignotloggedinroleid', 'admin'), $defaultguestid, ($guestroles + $generalroles)));
get_string('confignotloggedinroleid', 'admin'), $defaultguestid, ($guestroles + $otherroles)));
$temp->add(new admin_setting_configselect('guestroleid', get_string('guestroleid', 'admin'),
get_string('guestroleid_help', 'admin'), $defaultguestid, ($guestroles + $generalroles)));
get_string('guestroleid_help', 'admin'), $defaultguestid, ($guestroles + $otherroles)));
$temp->add(new admin_setting_configselect('defaultuserroleid', get_string('defaultuserroleid', 'admin'),
get_string('configdefaultuserroleid', 'admin'), $defaultuserid, ($userroles + $generalroles)));
}
$temp->add(new admin_setting_configcheckbox('nodefaultuserrolelists', get_string('nodefaultuserrolelists', 'admin'), get_string('confignodefaultuserrolelists', 'admin'), 0));
if (!during_initial_install()) {
get_string('configdefaultuserroleid', 'admin'), $defaultuserid, ($userroles + $otherroles)));
$temp->add(new admin_setting_configselect('creatornewroleid', get_string('creatornewroleid', 'admin'),
get_string('configcreatornewroleid', 'admin'), $defaultteacherid, $creatornewroles));
get_string('creatornewroleid_help', 'admin'), $defaultteacherid, $creatornewroles));
// release memory
unset($otherroles);
unset($guestroles);
unset($userroles);
unset($creatornewroles);
}
$temp->add(new admin_setting_configcheckbox('autologinguests', get_string('autologinguests', 'admin'), get_string('configautologinguests', 'admin'), 0));
Executable → Regular
+412 -722
View File
File diff suppressed because it is too large Load Diff
+122 -69
View File
@@ -1,16 +1,44 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
/**
* Bulk user upload forms
*
* @package core
* @subpackage admin
* @copyright 2007 Dan Poltawski
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once $CFG->libdir.'/formslib.php';
class admin_uploaduser_form1 extends moodleform {
function definition (){
global $CFG, $USER;
$mform =& $this->_form;
/**
* Upload a file CVS file with user information.
*
* @package core
* @subpackage admin
* @copyright 2007 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class admin_uploaduser_form1 extends moodleform {
function definition () {
$mform = $this->_form;
$mform->addElement('header', 'settingsheader', get_string('upload'));
@@ -36,69 +64,90 @@ class admin_uploaduser_form1 extends moodleform {
$mform->addElement('select', 'previewrows', get_string('rowpreviewnum', 'admin'), $choices);
$mform->setType('previewrows', PARAM_INT);
$choices = array(UU_ADDNEW => get_string('uuoptype_addnew', 'admin'),
UU_ADDINC => get_string('uuoptype_addinc', 'admin'),
UU_ADD_UPDATE => get_string('uuoptype_addupdate', 'admin'),
UU_UPDATE => get_string('uuoptype_update', 'admin'));
$mform->addElement('select', 'uutype', get_string('uuoptype', 'admin'), $choices);
$this->add_action_buttons(false, get_string('uploadusers', 'admin'));
}
}
/**
* Specify user upload details
*
* @package core
* @subpackage admin
* @copyright 2007 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class admin_uploaduser_form2 extends moodleform {
function definition (){
function definition () {
global $CFG, $USER;
$mform =& $this->_form;
$columns =& $this->_customdata;
$mform = $this->_form;
$columns = $this->_customdata['columns'];
$data = $this->_customdata['data'];
// I am the template user, why should it be the administrator? we have roles now, other ppl may use this script ;-)
$templateuser = $USER;
// upload settings and file
$mform->addElement('header', 'settingsheader', get_string('settings'));
$mform->addElement('static', 'uutypelabel', get_string('uuoptype', 'admin') );
$choices = array(UU_USER_ADDNEW => get_string('uuoptype_addnew', 'admin'),
UU_USER_ADDINC => get_string('uuoptype_addinc', 'admin'),
UU_USER_ADD_UPDATE => get_string('uuoptype_addupdate', 'admin'),
UU_USER_UPDATE => get_string('uuoptype_update', 'admin'));
$mform->addElement('select', 'uutype', get_string('uuoptype', 'admin'), $choices);
$choices = array(0 => get_string('infilefield', 'auth'), 1 => get_string('createpasswordifneeded', 'auth'));
$mform->addElement('select', 'uupasswordnew', get_string('uupasswordnew', 'admin'), $choices);
$mform->setDefault('uupasswordnew', 1);
$mform->disabledIf('uupasswordnew', 'uutype', 'eq', UU_UPDATE);
$mform->disabledIf('uupasswordnew', 'uutype', 'eq', UU_USER_UPDATE);
$choices = array(0 => get_string('nochanges', 'admin'),
1 => get_string('uuupdatefromfile', 'admin'),
2 => get_string('uuupdateall', 'admin'),
3 => get_string('uuupdatemissing', 'admin'));
$choices = array(UU_UPDATE_NOCHANGES => get_string('nochanges', 'admin'),
UU_UPDATE_FILEOVERRIDE => get_string('uuupdatefromfile', 'admin'),
UU_UPDATE_ALLOVERRIDE => get_string('uuupdateall', 'admin'),
UU_UPDATE_MISSING => get_string('uuupdatemissing', 'admin'));
$mform->addElement('select', 'uuupdatetype', get_string('uuupdatetype', 'admin'), $choices);
$mform->setDefault('uuupdatetype', 0);
$mform->disabledIf('uuupdatetype', 'uutype', 'eq', UU_ADDNEW);
$mform->disabledIf('uuupdatetype', 'uutype', 'eq', UU_ADDINC);
$mform->setDefault('uuupdatetype', UU_UPDATE_NOCHANGES);
$mform->disabledIf('uuupdatetype', 'uutype', 'eq', UU_USER_ADDNEW);
$mform->disabledIf('uuupdatetype', 'uutype', 'eq', UU_USER_ADDINC);
$choices = array(0 => get_string('nochanges', 'admin'), 1 => get_string('update'));
$mform->addElement('select', 'uupasswordold', get_string('uupasswordold', 'admin'), $choices);
$mform->setDefault('uupasswordold', 0);
$mform->disabledIf('uupasswordold', 'uutype', 'eq', UU_ADDNEW);
$mform->disabledIf('uupasswordold', 'uutype', 'eq', UU_ADDINC);
$mform->disabledIf('uupasswordold', 'uutype', 'eq', UU_USER_ADDNEW);
$mform->disabledIf('uupasswordold', 'uutype', 'eq', UU_USER_ADDINC);
$mform->disabledIf('uupasswordold', 'uuupdatetype', 'eq', 0);
$mform->disabledIf('uupasswordold', 'uuupdatetype', 'eq', 3);
$choices = array(UU_PWRESET_WEAK => get_string('usersweakpassword', 'admin'),
UU_PWRESET_NONE => get_string('none'),
UU_PWRESET_ALL => get_string('all'));
if (empty($CFG->passwordpolicy)) {
unset($choices[UU_PWRESET_WEAK]);
}
$mform->addElement('select', 'uuforcepasswordchange', get_string('forcepasswordchange', 'core'), $choices);
$mform->addElement('selectyesno', 'uuallowrenames', get_string('allowrenames', 'admin'));
$mform->setDefault('uuallowrenames', 0);
$mform->disabledIf('uuallowrenames', 'uutype', 'eq', UU_ADDNEW);
$mform->disabledIf('uuallowrenames', 'uutype', 'eq', UU_ADDINC);
$mform->disabledIf('uuallowrenames', 'uutype', 'eq', UU_USER_ADDNEW);
$mform->disabledIf('uuallowrenames', 'uutype', 'eq', UU_USER_ADDINC);
$mform->addElement('selectyesno', 'uuallowdeletes', get_string('allowdeletes', 'admin'));
$mform->setDefault('uuallowdeletes', 0);
$mform->disabledIf('uuallowdeletes', 'uutype', 'eq', UU_ADDNEW);
$mform->disabledIf('uuallowdeletes', 'uutype', 'eq', UU_ADDINC);
$mform->disabledIf('uuallowdeletes', 'uutype', 'eq', UU_USER_ADDNEW);
$mform->disabledIf('uuallowdeletes', 'uutype', 'eq', UU_USER_ADDINC);
$mform->addElement('selectyesno', 'uunoemailduplicates', get_string('uunoemailduplicates', 'admin'));
$mform->setDefault('uunoemailduplicates', 1);
$choices = array(0 => get_string('no'),
1 => get_string('uubulknew', 'admin'),
2 => get_string('uubulkupdated', 'admin'),
3 => get_string('uubulkall', 'admin'));
$mform->addElement('selectyesno', 'uustandardusernames', get_string('uustandardusernames', 'admin'));
$mform->setDefault('uustandardusernames', 1);
$choices = array(UU_BULK_NONE => get_string('no'),
UU_BULK_NEW => get_string('uubulknew', 'admin'),
UU_BULK_UPDATED => get_string('uubulkupdated', 'admin'),
UU_BULK_ALL => get_string('uubulkall', 'admin'));
$mform->addElement('select', 'uubulk', get_string('uubulk', 'admin'), $choices);
$mform->setDefault('uubulk', 0);
@@ -152,18 +201,22 @@ class admin_uploaduser_form2 extends moodleform {
// default values
$mform->addElement('header', 'defaultheader', get_string('defaultvalues', 'admin'));
$mform->addElement('text', 'username', get_string('username'), 'size="20"');
$mform->addElement('text', 'username', get_string('uuusernametemplate', 'admin'), 'size="20"');
$mform->addRule('username', get_string('requiredtemplate', 'admin'), 'required', null, 'client');
$mform->disabledIf('username', 'uutype', 'eq', UU_USER_ADD_UPDATE);
$mform->disabledIf('username', 'uutype', 'eq', UU_USER_UPDATE);
$mform->addElement('text', 'email', get_string('email'), 'maxlength="100" size="30"');
$mform->disabledIf('email', 'uutype', 'eq', UU_USER_ADD_UPDATE);
$mform->disabledIf('email', 'uutype', 'eq', UU_USER_UPDATE);
// only enabled and known to work plugins
$choices = uu_allowed_auths();
$choices = uu_supported_auths();
$mform->addElement('select', 'auth', get_string('chooseauthmethod','auth'), $choices);
$mform->setDefault('auth', 'manual'); // manual is a sensible backwards compatible default
$mform->addHelpButton('auth', 'chooseauthmethod', 'auth');
$mform->setAdvanced('auth');
$mform->addElement('text', 'email', get_string('email'), 'maxlength="100" size="30"');
$choices = array(0 => get_string('emaildisplayno'), 1 => get_string('emaildisplayyes'), 2 => get_string('emaildisplaycourse'));
$mform->addElement('select', 'maildisplay', get_string('emaildisplay'), $choices);
$mform->setDefault('maildisplay', 2);
@@ -178,7 +231,7 @@ class admin_uploaduser_form2 extends moodleform {
$mform->setDefault('maildigest', 0);
$mform->setAdvanced('maildigest');
$choices = array(0 => get_string('autosubscribeyes'), 1 => get_string('autosubscribeno'));
$choices = array(1 => get_string('autosubscribeyes'), 0 => get_string('autosubscribeno'));
$mform->addElement('select', 'autosubscribe', get_string('autosubscribe'), $choices);
$mform->setDefault('autosubscribe', 1);
@@ -206,10 +259,19 @@ class admin_uploaduser_form2 extends moodleform {
$mform->addElement('text', 'city', get_string('city'), 'maxlength="100" size="25"');
$mform->setType('city', PARAM_MULTILANG);
$mform->setDefault('city', $templateuser->city);
if (empty($CFG->defaultcity)) {
$mform->setDefault('city', $templateuser->city);
} else {
$mform->setDefault('city', $CFG->defaultcity);
}
$mform->addRule('city', get_string('required'), 'required');
$mform->addElement('select', 'country', get_string('selectacountry'), get_string_manager()->get_list_of_countries());
$mform->setDefault('country', $templateuser->country);
if (empty($CFG->country)) {
$mform->setDefault('country', $templateuser->country);
} else {
$mform->setDefault('country', $CFG->country);
}
$mform->setAdvanced('country');
$choices = get_list_of_timezones();
@@ -264,27 +326,30 @@ class admin_uploaduser_form2 extends moodleform {
$mform->addElement('hidden', 'previewrows');
$mform->setType('previewrows', PARAM_INT);
$mform->addElement('hidden', 'readcount');
$mform->setType('readcount', PARAM_INT);
$mform->addElement('hidden', 'uutype');
$mform->setType('uutype', PARAM_INT);
$this->add_action_buttons(true, get_string('uploadusers', 'admin'));
$this->set_data($data);
}
/**
* Form tweaks that depend on current data.
*/
function definition_after_data() {
$mform =& $this->_form;
$columns =& $this->_customdata;
$mform = $this->_form;
$columns = $this->_customdata['columns'];
foreach ($columns as $column) {
if ($mform->elementExists($column)) {
$mform->removeElement($column);
}
}
if (!in_array('password', $columns)) {
// password resetting makes sense only if password specified in csv file
if ($mform->elementExists('uuforcepasswordchange')) {
$mform->removeElement('uuforcepasswordchange');
}
}
}
/**
@@ -292,19 +357,19 @@ class admin_uploaduser_form2 extends moodleform {
*/
function validation($data, $files) {
$errors = parent::validation($data, $files);
$columns =& $this->_customdata;
$columns = $this->_customdata['columns'];
$optype = $data['uutype'];
// detect if password column needed in file
if (!in_array('password', $columns)) {
switch ($optype) {
case UU_UPDATE:
case UU_USER_UPDATE:
if (!empty($data['uupasswordold'])) {
$errors['uupasswordold'] = get_string('missingfield', 'error', 'password');
}
break;
case UU_ADD_UPDATE:
case UU_USER_ADD_UPDATE:
if (empty($data['uupasswordnew'])) {
$errors['uupasswordnew'] = get_string('missingfield', 'error', 'password');
}
@@ -313,12 +378,12 @@ class admin_uploaduser_form2 extends moodleform {
}
break;
case UU_ADDNEW:
case UU_USER_ADDNEW:
if (empty($data['uupasswordnew'])) {
$errors['uupasswordnew'] = get_string('missingfield', 'error', 'password');
}
break;
case UU_ADDINC:
case UU_USER_ADDINC:
if (empty($data['uupasswordnew'])) {
$errors['uupasswordnew'] = get_string('missingfield', 'error', 'password');
}
@@ -327,7 +392,7 @@ class admin_uploaduser_form2 extends moodleform {
}
// look for other required data
if ($optype != UU_UPDATE) {
if ($optype != UU_USER_UPDATE) {
if (!in_array('firstname', $columns)) {
$errors['uutype'] = get_string('missingfield', 'error', 'firstname');
}
@@ -344,10 +409,6 @@ class admin_uploaduser_form2 extends moodleform {
if (!in_array('email', $columns) and empty($data['email'])) {
$errors['email'] = get_string('requiredtemplate', 'admin');
}
if (!in_array('city', $columns) and empty($data['city'])) {
$errors['city'] = get_string('required');
}
}
return $errors;
@@ -361,7 +422,7 @@ class admin_uploaduser_form2 extends moodleform {
function get_data() {
$data = parent::get_data();
if ($data !== null) {
if ($data !== null and isset($data->description)) {
$data->descriptionformat = $data->description['format'];
$data->description = $data->description['text'];
}
@@ -369,11 +430,3 @@ class admin_uploaduser_form2 extends moodleform {
return $data;
}
}
class admin_uploaduser_form3 extends moodleform {
function definition (){
global $CFG, $USER;
$mform =& $this->_form;
$this->add_action_buttons(false, get_string('uploadnewfile'));
}
}
+368
View File
@@ -0,0 +1,368 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Bulk user registration functions
*
* @package core
* @subpackage admin
* @copyright 2004 onwards Martin Dougiamas (http://dougiamas.com)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
define('UU_USER_ADDNEW', 0);
define('UU_USER_ADDINC', 1);
define('UU_USER_ADD_UPDATE', 2);
define('UU_USER_UPDATE', 3);
define('UU_UPDATE_NOCHANGES', 0);
define('UU_UPDATE_FILEOVERRIDE', 1);
define('UU_UPDATE_ALLOVERRIDE', 2);
define('UU_UPDATE_MISSING', 3);
define('UU_BULK_NONE', 0);
define('UU_BULK_NEW', 1);
define('UU_BULK_UPDATED', 2);
define('UU_BULK_ALL', 3);
define('UU_PWRESET_NONE', 0);
define('UU_PWRESET_WEAK', 1);
define('UU_PWRESET_ALL', 2);
/**
* Tracking of processed users.
*
* This class prints user information into a html table.
*
* @package core
* @subpackage admin
* @copyright 2007 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class uu_progress_tracker {
private $_row;
public $columns = array('status', 'line', 'id', 'username', 'firstname', 'lastname', 'email', 'password', 'auth', 'enrolments', 'deleted');
/**
* Print table header.
* @return void
*/
public function start() {
$ci = 0;
echo '<table id="uuresults" class="generaltable boxaligncenter flexible-wrap" summary="'.get_string('uploadusersresult', 'admin').'">';
echo '<tr class="heading r0">';
echo '<th class="header c'.$ci++.'" scope="col">'.get_string('status').'</th>';
echo '<th class="header c'.$ci++.'" scope="col">'.get_string('uucsvline', 'admin').'</th>';
echo '<th class="header c'.$ci++.'" scope="col">ID</th>';
echo '<th class="header c'.$ci++.'" scope="col">'.get_string('username').'</th>';
echo '<th class="header c'.$ci++.'" scope="col">'.get_string('firstname').'</th>';
echo '<th class="header c'.$ci++.'" scope="col">'.get_string('lastname').'</th>';
echo '<th class="header c'.$ci++.'" scope="col">'.get_string('email').'</th>';
echo '<th class="header c'.$ci++.'" scope="col">'.get_string('password').'</th>';
echo '<th class="header c'.$ci++.'" scope="col">'.get_string('authentication').'</th>';
echo '<th class="header c'.$ci++.'" scope="col">'.get_string('enrolments', 'enrol').'</th>';
echo '<th class="header c'.$ci++.'" scope="col">'.get_string('delete').'</th>';
echo '</tr>';
$this->_row = null;
}
/**
* Flush previous line and start a new one.
* @return void
*/
public function flush() {
if (empty($this->_row) or empty($this->_row['line']['normal'])) {
// Nothing to print - each line has to have at least number
$this->_row = array();
foreach ($this->columns as $col) {
$this->_row[$col] = array('normal'=>'', 'info'=>'', 'warning'=>'', 'error'=>'');
}
return;
}
$ci = 0;
$ri = 1;
echo '<tr class="r'.$ri.'">';
foreach ($this->_row as $key=>$field) {
foreach ($field as $type=>$content) {
if ($field[$type] !== '') {
$field[$type] = '<span class="uu'.$type.'">'.$field[$type].'</span>';
} else {
unset($field[$type]);
}
}
echo '<td class="cell c'.$ci++.'">';
if (!empty($field)) {
echo implode('<br />', $field);
} else {
echo '&nbsp;';
}
echo '</td>';
}
echo '</tr>';
foreach ($this->columns as $col) {
$this->_row[$col] = array('normal'=>'', 'info'=>'', 'warning'=>'', 'error'=>'');
}
}
/**
* Add tracking info
* @param string $col name of column
* @param string $msg message
* @param string $level 'normal', 'warning' or 'error'
* @param bool $merge true means add as new line, false means override all previous text of the same type
* @return void
*/
public function track($col, $msg, $level = 'normal', $merge = true) {
if (empty($this->_row)) {
$this->flush(); //init arrays
}
if (!in_array($col, $this->columns)) {
debugging('Incorrect column:'.$col);
return;
}
if ($merge) {
if ($this->_row[$col][$level] != '') {
$this->_row[$col][$level] .='<br />';
}
$this->_row[$col][$level] .= $msg;
} else {
$this->_row[$col][$level] = $msg;
}
}
/**
* Print the table end
* @return void
*/
public function close() {
$this->flush();
echo '</table>';
}
}
/**
* Validation callback function - verified the column line of csv file.
* Converts standard column names to lowercase.
* @param csv_import_reader $cir
* @param array $stdfields standard user fields
* @param array $profilefields custom profile fields
* @param moodle_url $returnurl return url in case of any error
* @return array list of fields
*/
function uu_validate_user_upload_columns(csv_import_reader $cir, $stdfields, $profilefields, moodle_url $returnurl) {
$columns = $cir->get_columns();
if (empty($columns)) {
$cir->close();
$cir->cleanup();
print_error('cannotreadtmpfile', 'error', $returnurl);
}
if (count($columns) < 2) {
$cir->close();
$cir->cleanup();
print_error('csvfewcolumns', 'error', $returnurl);
}
$textlib = textlib_get_instance(); // profile fields may contain unicode chars
// test columns
$processed = array();
foreach ($columns as $key=>$unused) {
$field = $columns[$key];
$lcfield = $textlib->strtolower($field);
if (in_array($field, $stdfields) or in_array($lcfield, $stdfields)) {
// standard fields are only lowercase
$newfield = $lcfield;
} else if (in_array($field, $profilefields)) {
// exact profile field name match - these are case sensitive
$newfield = $field;
} else if (in_array($lcfield, $profilefields)) {
// hack: somebody wrote uppercase in csv file, but the system knows only lowercase profile field
$newfield = $lcfield;
} else if (preg_match('/^(course|group|type|role|enrolperiod)\d+$/', $lcfield)) {
// special fields for enrolments
$newfield = $lcfield;
} else {
$cir->close();
$cir->cleanup();
print_error('invalidfieldname', 'error', $returnurl, $field);
}
if (in_array($newfield, $processed)) {
$cir->close();
$cir->cleanup();
print_error('duplicatefieldname', 'error', $returnurl, $newfield);
}
$processed[$key] = $newfield;
}
return $processed;
}
/**
* Increments username - increments trailing number or adds it if not present.
* Varifies that the new username does not exist yet
* @param string $username
* @return incremented username which does not exist yet
*/
function uu_increment_username($username) {
global $DB, $CFG;
if (!preg_match_all('/(.*?)([0-9]+)$/', $username, $matches)) {
$username = $username.'2';
} else {
$username = $matches[1][0].($matches[2][0]+1);
}
if ($DB->record_exists('user', array('username'=>$username, 'mnethostid'=>$CFG->mnet_localhost_id))) {
return uu_increment_username($username);
} else {
return $username;
}
}
/**
* Check if default field contains templates and apply them.
* @param string template - potential tempalte string
* @param object user object- we need username, firstname and lastname
* @return string field value
*/
function uu_process_template($template, $user) {
if (is_array($template)) {
// hack for for support of text editors with format
$t = $template['text'];
} else {
$t = $template;
}
if (strpos($t, '%') === false) {
return $template;
}
$username = isset($user->username) ? $user->username : '';
$firstname = isset($user->firstname) ? $user->firstname : '';
$lastname = isset($user->lastname) ? $user->lastname : '';
$callback = partial('uu_process_template_callback', $username, $firstname, $lastname);
$result = preg_replace_callback('/(?<!%)%([+-~])?(\d)*([flu])/', $callback, $t);
if (is_null($result)) {
return $template; //error during regex processing??
}
if (is_array($template)) {
$template['text'] = $result;
return $t;
} else {
return $result;
}
}
/**
* Internal callback function.
*/
function uu_process_template_callback($username, $firstname, $lastname, $block) {
$textlib = textlib_get_instance();
switch ($block[3]) {
case 'u':
$repl = $username;
break;
case 'f':
$repl = $firstname;
break;
case 'l':
$repl = $lastname;
break;
default:
return $block[0];
}
switch ($block[1]) {
case '+':
$repl = $textlib->strtoupper($repl);
break;
case '-':
$repl = $textlib->strtolower($repl);
break;
case '~':
$repl = $textlib->strtotitle($repl);
break;
}
if (!empty($block[2])) {
$repl = $textlib->substr($repl, 0 , $block[2]);
}
return $repl;
}
/**
* Returns list of auth plugins that are enabled and known to work.
*
* If ppl want to use some other auth type they have to include it
* in the CSV file next on each line.
*
* @return array type=>name
*/
function uu_supported_auths() {
// only following plugins are guaranteed to work properly
$whitelist = array('manual', 'nologin', 'none', 'email');
$plugins = get_enabled_auth_plugins();
$choices = array();
foreach ($plugins as $plugin) {
if (!in_array($plugin, $whitelist)) {
continue;
}
$choices[$plugin] = get_string('pluginname', "auth_{$plugin}");
}
return $choices;
}
/**
* Returns list of roles that are assignable in courses
* @return array
*/
function uu_allowed_roles() {
// let's cheat a bit, frontpage is guaranteed to exist and has the same list of roles ;-)
$roles = get_assignable_roles(get_context_instance(CONTEXT_COURSE, SITEID), ROLENAME_ORIGINALANDSHORT);
return array_reverse($roles, true);
}
/**
* Returns mapping of all roles using short role name as index.
* @return array
*/
function uu_allowed_roles_cache() {
$allowedroles = get_assignable_roles(get_context_instance(CONTEXT_COURSE, SITEID), ROLENAME_SHORT);
foreach ($allowedroles as $rid=>$rname) {
$rolecache[$rid] = new stdClass();
$rolecache[$rid]->id = $rid;
$rolecache[$rid]->name = $rname;
if (!is_numeric($rname)) { // only non-numeric shortnames are supported!!!
$rolecache[$rname] = new stdClass();
$rolecache[$rname]->id = $rid;
$rolecache[$rname]->name = $rname;
}
}
return $rolecache;
}
+1 -1
View File
@@ -180,7 +180,7 @@
}
foreach ($users as $key => $user) {
if (!empty($user->country)) {
if (isset($countries[$user->country])) {
$users[$key]->country = $countries[$user->country];
}
}
+5 -6
View File
@@ -11,14 +11,13 @@ function add_selection_all($ufiltering) {
list($sqlwhere, $params) = $ufiltering->get_sql_filter("id<>:exguest AND deleted <> 1", array('exguest'=>$CFG->siteguest));
if ($rs = $DB->get_recordset_select('user', $sqlwhere, $params, 'fullname', 'id,'.$DB->sql_fullname().' AS fullname')) {
foreach ($rs as $user) {
if (!isset($SESSION->bulk_users[$user->id])) {
$SESSION->bulk_users[$user->id] = $user->id;
}
$rs = $DB->get_recordset_select('user', $sqlwhere, $params, 'fullname', 'id,'.$DB->sql_fullname().' AS fullname');
foreach ($rs as $user) {
if (!isset($SESSION->bulk_users[$user->id])) {
$SESSION->bulk_users[$user->id] = $user->id;
}
$rs->close();
}
$rs->close();
}
function get_selection_data($ufiltering) {
Executable → Regular
View File
Executable → Regular
+10 -11
View File
@@ -24,19 +24,18 @@ echo $OUTPUT->header();
if ($confirm and confirm_sesskey()) {
list($in, $params) = $DB->get_in_or_equal($SESSION->bulk_users);
if ($rs = $DB->get_recordset_select('user', "id $in", $params, '', 'id, username, secret, confirmed, auth, firstname, lastname')) {
foreach ($rs as $user) {
if ($user->confirmed) {
continue;
}
$auth = get_auth_plugin($user->auth);
$result = $auth->user_confirm($user->username, $user->secret);
if ($result != AUTH_CONFIRM_OK && $result != AUTH_CONFIRM_ALREADY) {
echo $OUTPUT->notification(get_string('usernotconfirmed', '', fullname($user, true)));
}
$rs = $DB->get_recordset_select('user', "id $in", $params, '', 'id, username, secret, confirmed, auth, firstname, lastname');
foreach ($rs as $user) {
if ($user->confirmed) {
continue;
}
$auth = get_auth_plugin($user->auth);
$result = $auth->user_confirm($user->username, $user->secret);
if ($result != AUTH_CONFIRM_OK && $result != AUTH_CONFIRM_ALREADY) {
echo $OUTPUT->notification(get_string('usernotconfirmed', '', fullname($user, true)));
}
$rs->close();
}
$rs->close();
redirect($return, get_string('changessaved'));
} else {
Executable → Regular
+7 -8
View File
@@ -25,16 +25,15 @@ echo $OUTPUT->header();
if ($confirm and confirm_sesskey()) {
list($in, $params) = $DB->get_in_or_equal($SESSION->bulk_users);
if ($rs = $DB->get_recordset_select('user', "id $in", $params)) {
foreach ($rs as $user) {
if (!is_siteadmin($user) and $USER->id != $user->id and delete_user($user)) {
unset($SESSION->bulk_users[$user->id]);
} else {
echo $OUTPUT->notification(get_string('deletednot', '', fullname($user, true)));
}
$rs = $DB->get_recordset_select('user', "id $in", $params);
foreach ($rs as $user) {
if (!is_siteadmin($user) and $USER->id != $user->id and delete_user($user)) {
unset($SESSION->bulk_users[$user->id]);
} else {
echo $OUTPUT->notification(get_string('deletednot', '', fullname($user, true)));
}
$rs->close();
}
$rs->close();
session_gc(); // remove stale sessions
redirect($return, get_string('changessaved'));
Executable → Regular
View File
View File
+8 -9
View File
@@ -38,17 +38,16 @@ if ($confirm and confirm_sesskey()) {
$parts = array_chunk($SESSION->bulk_users, 300);
foreach ($parts as $users) {
list($in, $params) = $DB->get_in_or_equal($users);
if ($rs = $DB->get_recordset_select('user', "id $in", $params)) {
foreach ($rs as $user) {
if (!empty($changeable[$user->auth])) {
set_user_preference('auth_forcepasswordchange', 1, $user->id);
unset($SESSION->bulk_users[$user->id]);
} else {
echo $OUTPUT->notification(get_string('forcepasswordchangenot', '', fullname($user, true)));
}
$rs = $DB->get_recordset_select('user', "id $in", $params);
foreach ($rs as $user) {
if (!empty($changeable[$user->auth])) {
set_user_preference('auth_forcepasswordchange', 1, $user->id);
unset($SESSION->bulk_users[$user->id]);
} else {
echo $OUTPUT->notification(get_string('forcepasswordchangenot', '', fullname($user, true)));
}
$rs->close();
}
$rs->close();
}
echo $OUTPUT->notification(get_string('changessaved'), 'notifysuccess');
echo $OUTPUT->continue_button($return);
Executable → Regular
+7 -5
View File
@@ -25,12 +25,14 @@ if (empty($CFG->messaging)) {
if ($confirm and !empty($msg) and confirm_sesskey()) {
list($in, $params) = $DB->get_in_or_equal($SESSION->bulk_users);
if ($rs = $DB->get_recordset_select('user', "id $in", $params)) {
foreach ($rs as $user) {
message_post_message($USER, $user, $msg, FORMAT_HTML, 'direct'); // TODO: this is weird, we should support all text formats here
}
$rs->close();
$rs = $DB->get_recordset_select('user', "id $in", $params);
foreach ($rs as $user) {
//TODO we should probably support all text formats here or only FORMAT_MOODLE
//For now bulk messaging is still using the html editor and its supplying html
//so we have to use html format for it to be displayed correctly
message_post_message($USER, $user, $msg, FORMAT_HTML);
}
$rs->close();
redirect($return);
}
+2 -1
View File
@@ -29,13 +29,14 @@ require_once($CFG->dirroot . '/webservice/lib.php');
admin_externalpage_setup('externalservice');
//Deactivate the 'Edit service' navigation node, and use the main 'Service' navigation node
//define nav bar
$node = $PAGE->settingsnav->find('externalservice', navigation_node::TYPE_SETTING);
$newnode = $PAGE->settingsnav->find('externalservices', navigation_node::TYPE_SETTING);
if ($node && $newnode) {
$node->display = false;
$newnode->make_active();
}
$PAGE->navbar->add(get_string('externalservice', 'webservice'));
//Retrieve few general parameters
$id = required_param('id', PARAM_INT);
+5 -7
View File
@@ -37,14 +37,12 @@ admin_externalpage_setup('externalservicefunctions');
//define nav bar
$PAGE->set_url('/' . $CFG->admin . '/websevice/service_functions.php', array('id' => $serviceid));
$PAGE->navbar->ignore_active(true);
$PAGE->navbar->add(get_string('administrationsite'));
$PAGE->navbar->add(get_string('plugins', 'admin'));
$PAGE->navbar->add(get_string('webservices', 'webservice'));
$PAGE->navbar->add(get_string('externalservices', 'webservice'),
new moodle_url('/' . $CFG->admin . '/settings.php?section=externalservices'));
$node = $PAGE->settingsnav->find('externalservices', navigation_node::TYPE_SETTING);
if ($node) {
$node->make_active();
}
$PAGE->navbar->add(get_string('functions', 'webservice'),
new moodle_url('/' . $CFG->admin . '/webservice/service_functions.php?id=' . $serviceid));
new moodle_url('/' . $CFG->admin . '/webservice/service_functions.php', array('id' => $serviceid)));
$service = $DB->get_record('external_services', array('id' => $serviceid), '*', MUST_EXIST);
$webservicemanager = new webservice();
+11 -11
View File
@@ -30,19 +30,19 @@ require_once($CFG->dirroot . '/' . $CFG->admin . '/webservice/forms.php');
$serviceid = required_param('serviceid', PARAM_INT);
$userid = required_param('userid', PARAM_INT);
$PAGE->set_url('/' . $CFG->admin . '/webservice/service_user_settings.php', array('id' => $serviceid, 'userid' => $userid));
$PAGE->navbar->ignore_active(true);
$PAGE->navbar->add(get_string('administrationsite'));
$PAGE->navbar->add(get_string('plugins', 'admin'));
$PAGE->navbar->add(get_string('webservices', 'webservice'));
$PAGE->navbar->add(get_string('externalservices', 'webservice'),
new moodle_url('/' . $CFG->admin . '/settings.php?section=externalservices'));
$PAGE->navbar->add(get_string('serviceusers', 'webservice'),
admin_externalpage_setup('externalserviceusersettings');
//define nav bar
$PAGE->set_url('/' . $CFG->admin . '/webservice/service_user_settings.php',
array('id' => $serviceid, 'userid' => $userid));
$node = $PAGE->settingsnav->find('externalservices', navigation_node::TYPE_SETTING);
if ($node) {
$node->make_active();
}
$PAGE->navbar->add(get_string('serviceusers', 'webservice'),
new moodle_url('/' . $CFG->admin . '/webservice/service_users.php', array('id' => $serviceid)));
$PAGE->navbar->add(get_string('serviceusersettings', 'webservice'));
admin_externalpage_setup('externalserviceusersettings');
$formaction = new moodle_url('', array('id' => $serviceid, 'userid' => $userid));
$returnurl = new moodle_url('/' . $CFG->admin . '/webservice/service_users.php', array('id' => $serviceid));
@@ -62,7 +62,7 @@ if ($usersettingsform->is_cancelled()) {
$serviceuserinfo->id = $serviceuser->serviceuserid;
$serviceuserinfo->iprestriction = $settingsformdata->iprestriction;
$serviceuserinfo->validuntil = $settingsformdata->validuntil;
$webservicemanager->update_ws_authorised_user($serviceuserinfo);
//TODO: assign capability
+9 -9
View File
@@ -29,17 +29,17 @@ require_once($CFG->dirroot . '/webservice/lib.php');
$id = required_param('id', PARAM_INT);
$PAGE->set_url('/' . $CFG->admin . '/webservice/service_users.php', array('id' => $id));
$PAGE->navbar->ignore_active(true);
$PAGE->navbar->add(get_string('administrationsite'));
$PAGE->navbar->add(get_string('plugins', 'admin'));
$PAGE->navbar->add(get_string('webservices', 'webservice'));
$PAGE->navbar->add(get_string('externalservices', 'webservice'),
new moodle_url('/' . $CFG->admin . '/settings.php?section=externalservices'));
$PAGE->navbar->add(get_string('serviceusers', 'webservice'));
admin_externalpage_setup('externalserviceusers');
//define nav bar
$PAGE->set_url('/' . $CFG->admin . '/webservice/service_users.php', array('id' => $id));
$node = $PAGE->settingsnav->find('externalservices', navigation_node::TYPE_SETTING);
if ($node) {
$node->make_active();
}
$PAGE->navbar->add(get_string('serviceusers', 'webservice'),
new moodle_url('/' . $CFG->admin . '/webservice/service_users.php', array('id' => $id)));
$webservicemanager = new webservice();
/// Get the user_selector we will need.
+3 -5
View File
@@ -37,15 +37,13 @@ $PAGE->set_url('/' . $CFG->admin . '/webservice/testclient.php');
$PAGE->navbar->ignore_active(true);
$PAGE->navbar->add(get_string('administrationsite'));
$PAGE->navbar->add(get_string('development', 'admin'));
$PAGE->navbar->add(get_string('testclient', 'webservice'),
$PAGE->navbar->add(get_string('testclient', 'webservice'),
new moodle_url('/' . $CFG->admin . '/webservice/testclient.php'));
if (!empty($function)) {
$PAGE->navbar->add($function);
}
//require_login();
//require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
admin_externalpage_setup('externalservice');
admin_externalpage_setup('testclient');
// list of all available functions for testing
$allfunctions = $DB->get_records('external_functions', array(), 'name ASC');
@@ -171,4 +169,4 @@ if ($mform->is_cancelled()) {
$mform->display();
echo $OUTPUT->footer();
die;
}
}
+1 -1
View File
@@ -94,7 +94,7 @@ switch ($action) {
die;
break;
case 'delete':
case 'delete':
$token = $webservicemanager->get_created_by_user_ws_token($USER->id, $tokenid);
//Delete the token
@@ -290,7 +290,7 @@ class main_view extends XMLDBAction {
$o .= ' that seems to be active (true). ENUMs support has been dropped in Moodle 2.0, ' .
' the XMLDB Editor will delete any ENUM reference next time you save this file' .
' and you MUST provide one upgrade block in your code to drop them from DB. See' .
' <a href="http://docs.moodle.org/en/Development:DB_layer_2.0_migration_docs#The_changes">' .
' <a href="http://docs.moodle.org/dev/DB_layer_2.0_migration_docs#The_changes">' .
' Moodle Docs</a> for more info and examples.';
} else {
$o .= ' that seem to be inactive (false). ENUMs support has been dropped in Moodle 2.0,' .
+1 -1
View File
@@ -103,7 +103,7 @@
echo $OUTPUT->footer();
break;
case ACTION_GENERATE_XML:
header('Content-type: application/xhtml+xml');
header('Content-type: application/xhtml+xml; charset=utf-8');
echo $xmldb_action->getOutput();
break;
}
+63 -3
View File
@@ -173,8 +173,12 @@ class auth_plugin_cas extends auth_plugin_ldap {
}
}
// Don't try to validate the server SSL credentials
phpCAS::setNoCasServerValidation();
if($this->config->certificate_check && $this->config->certificate_path){
phpCAS::setCasServerCACert($this->config->certificate_path);
}else{
// Don't try to validate the server SSL credentials
phpCAS::setNoCasServerValidation();
}
}
/**
@@ -205,6 +209,19 @@ class auth_plugin_cas extends auth_plugin_ldap {
include($CFG->dirroot.'/auth/cas/config.html');
}
/**
* A chance to validate form data, and last chance to
* do stuff before it is inserted in config_plugin
* @param object object with submitted configuration settings (without system magic quotes)
* @param array $err array of error messages
*/
function validate_form(&$form, &$err) {
$certificate_path = trim($form->certificate_path);
if ($form->certificate_check && empty($certificate_path)) {
$err['certificate_path'] = get_string('auth_cas_certificate_path_empty', 'auth_cas');
}
}
/**
* Returns the URL for changing the user's pw, or empty if the default can
* be used.
@@ -245,6 +262,12 @@ class auth_plugin_cas extends auth_plugin_ldap {
if (!isset($config->multiauth)) {
$config->multiauth = '';
}
if (!isset($config->certificate_check)) {
$config->certificate_check = '';
}
if (!isset($config->certificate_path)) {
$config->certificate_path = '';
}
// LDAP settings
if (!isset($config->host_url)) {
@@ -306,6 +329,8 @@ class auth_plugin_cas extends auth_plugin_ldap {
set_config('proxycas', $config->proxycas, $this->pluginconfig);
set_config('logoutcas', $config->logoutcas, $this->pluginconfig);
set_config('multiauth', $config->multiauth, $this->pluginconfig);
set_config('certificate_check', $config->certificate_check, $this->pluginconfig);
set_config('certificate_path', $config->certificate_path, $this->pluginconfig);
// save LDAP settings
set_config('host_url', trim($config->host_url), $this->pluginconfig);
@@ -335,7 +360,7 @@ class auth_plugin_cas extends auth_plugin_ldap {
* @return boolean result
*/
function iscreator($username) {
if ((empty($this->config->attrcreators) && empty($this->config->groupecreators)) or empty($this->config->memberattribute)) {
if (empty($this->config->host_url) or (empty($this->config->attrcreators) && empty($this->config->groupecreators)) or empty($this->config->memberattribute)) {
return false;
}
@@ -380,4 +405,39 @@ class auth_plugin_cas extends auth_plugin_ldap {
return false;
}
/**
* Reads user information from LDAP and returns it as array()
*
* If no LDAP servers are configured, user information has to be
* provided via other methods (CSV file, manually, etc.). Return
* an empty array so existing user info is not lost. Otherwise,
* calls parent class method to get user info.
*
* @param string $username username
* @return mixed array with no magic quotes or false on error
*/
function get_userinfo($username) {
if (empty($this->config->host_url)) {
return array();
}
return parent::get_userinfo($username);
}
/**
* Syncronizes users from LDAP server to moodle user table.
*
* If no LDAP servers are configured, simply return. Otherwise,
* call parent class method to do the work.
*
* @param bool $do_updates will do pull in data updates from LDAP if relevant
* @return nothing
*/
function sync_users($do_updates=true) {
if (empty($this->config->host_url)) {
error_log('[AUTH CAS] '.get_string('noldapserver', 'auth_cas'));
return;
}
parent::sync_users($do_updates);
}
}
+25
View File
@@ -27,6 +27,12 @@ if (!isset ($config->logoutcas)) {
if (!isset ($config->multiauth)) {
$config->multiauth = '';
}
if (!isset ($config->certificate_check)) {
$config->certificate_check = '';
}
if (!isset ($config->certificate_path)) {
$config->certificate_path = '';
}
// set to defaults if undefined (LDAP)
if (!isset($config->host_url)) {
@@ -176,6 +182,25 @@ $yesno = array( get_string('no'), get_string('yes') );
<?php print_string('auth_cas_multiauth', 'auth_cas') ?>
</td>
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_cas_certificate_check_key', 'auth_cas') ?>:</td>
<td>
<?php echo html_writer::select($yesno, 'certificate_check', $config->certificate_check, false); ?>
</td>
<td>
<?php print_string('auth_cas_certificate_check', 'auth_cas') ?>
</td>
</tr>
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_cas_certificate_path_key', 'auth_cas') ?>:</td>
<td>
<input name="certificate_path" id="certificate_path" type="text" size="30" value="<?php echo $config->certificate_path ?>" />
<?php if (isset($err['certificate_path'])) echo $OUTPUT->error_text($err['certificate_path']); ?>
</td>
<td>
<?php print_string('auth_cas_certificate_path', 'auth_cas') ?>
</td>
</tr>
<tr>
<td colspan="2">
<h4><?php print_string('auth_ldap_server_settings', 'auth_ldap') ?></h4>
+6
View File
@@ -31,6 +31,11 @@ $string['auth_cas_baseuri_key'] = 'Base URI';
$string['auth_cas_broken_password'] = 'You cannot proceed without changing your password, however there is no available page for changing it. Please contact your Moodle Administrator.';
$string['auth_cas_cantconnect'] = 'LDAP part of CAS-module cannot connect to server: {$a}';
$string['auth_cas_casversion'] = 'Version';
$string['auth_cas_certificate_check'] = 'Turn this to \'yes\' if you want to validate the server certificate';
$string['auth_cas_certificate_path_empty'] = 'If you turn on Server validation, you need to specify a certificate path';
$string['auth_cas_certificate_check_key'] = 'Server validation';
$string['auth_cas_certificate_path'] = 'Path of the CA chain file (PEM Format) to validate the server certificate';
$string['auth_cas_certificate_path_key'] = 'Certificate path';
$string['auth_cas_create_user'] = 'Turn this on if you want to insert CAS-authenticated users in Moodle database. If not then only users who already exist in the Moodle database can log in.';
$string['auth_cas_create_user_key'] = 'Create user';
$string['auth_casdescription'] = 'This method uses a CAS server (Central Authentication Service) to authenticate users in a Single Sign On environment (SSO). You can also use a simple LDAP authentication. If the given username and password are valid according to CAS, Moodle creates a new user entry in its database, taking user attributes from LDAP if required. On following logins only the username and password are checked.';
@@ -56,4 +61,5 @@ $string['auth_cas_text'] = 'Secure connection';
$string['auth_cas_use_cas'] = 'Use CAS';
$string['auth_cas_version'] = 'Version of CAS';
$string['CASform'] = 'Authentication choice';
$string['noldapserver'] = 'No LDAP server configured for CAS! Syncing disabled.';
$string['pluginname'] = 'CAS server (SSO)';
+44 -43
View File
@@ -1,20 +1,17 @@
<?php
/**
* @author Martin Dougiamas
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @package moodle multiauth
*
* Authentication Plugin: External Database Authentication
*
* Checks against an external database.
*
* 2006-08-28 File created.
* @package auth
* @subpackage db
* @author Martin Dougiamas
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/authlib.php');
require_once($CFG->libdir.'/adodb/adodb.inc.php');
@@ -53,7 +50,7 @@ class auth_plugin_db extends auth_plugin_base {
$authdb = $this->db_init();
if ($this->config->passtype === 'internal') {
if ($this->is_internal()) {
// lookup username externally, but resolve
// password locally -- to support backend that
// don't track passwords
@@ -65,10 +62,10 @@ class auth_plugin_db extends auth_plugin_base {
return false;
}
if ( !$rs->EOF ) {
if (!$rs->EOF) {
$rs->Close();
$authdb->Close();
// user exists exterally
// user exists externally
// check username/password internally
if ($user = $DB->get_record('user', array('username'=>$username, 'mnethostid'=>$CFG->mnet_localhost_id))) {
return validate_internal_user_password($user, $password);
@@ -81,7 +78,7 @@ class auth_plugin_db extends auth_plugin_base {
}
} else {
// normal case: use external db for passwords
// normal case: use external db for both usernames and passwords
if ($this->config->passtype === 'md5') { // Re-format password accordingly
$extpassword = md5($extpassword);
@@ -126,6 +123,7 @@ class auth_plugin_db extends auth_plugin_base {
return $authdb;
}
/**
* retuns user attribute mappings between moodle and ldap
*
@@ -151,7 +149,6 @@ class auth_plugin_db extends auth_plugin_base {
* @return array without magic quotes
*/
function get_userinfo($username) {
global $CFG;
$textlib = textlib_get_instance();
@@ -186,10 +183,8 @@ class auth_plugin_db extends auth_plugin_base {
}
$authdb->Close();
return $result;
}
/**
* Change a user's password
*
@@ -199,9 +194,7 @@ class auth_plugin_db extends auth_plugin_base {
* @return bool True on success
*/
function user_update_password($user, $newpassword) {
global $CFG;
if ($this->config->passtype === 'internal') {
if ($this->is_internal()) {
return update_internal_user_password($user, $newpassword);
} else {
// we should have never been called!
@@ -219,15 +212,13 @@ class auth_plugin_db extends auth_plugin_base {
* Syncing users removes (disables) users that dont exists anymore in external db.
* Creates new users and updates coursecreator status of users.
*
* @param bool $do_updates Optional: set to true to force an update of existing accounts
*
* This implementation is simpler but less scalable than the one found in the LDAP module.
*
* @param bool $do_updates Optional: set to true to force an update of existing accounts
* @return bool success
*/
function sync_users($do_updates=false) {
global $CFG, $DB;
$pcfg = get_config('auth/db');
/// list external users
$userlist = $this->get_userlist();
@@ -237,17 +228,17 @@ class auth_plugin_db extends auth_plugin_base {
// find obsolete users
if (count($userlist)) {
list($notin_sql, $params) = $DB->get_in_or_equal($userlist, SQL_PARAMS_NAMED, 'u0000', false);
$params['authtype'] = $this->authtype;
$sql = "SELECT u.id, u.username, u.email, u.auth
list($notin_sql, $params) = $DB->get_in_or_equal($userlist, SQL_PARAMS_NAMED, 'u', false);
$params['authtype'] = $this->authtype;
$sql = "SELECT u.*
FROM {user} u
WHERE u.auth=:authtype AND u.deleted=0 AND u.username $notin_sql";
} else {
$sql = "SELECT u.id, u.username, u.email, u.auth
$sql = "SELECT u.*
FROM {user} u
WHERE u.auth=:authtype AND u.deleted=0";
$params = array();
$params['authtype'] = $this->authtype;
$params['authtype'] = $this->authtype;
}
$remove_users = $DB->get_records_sql($sql, $params);
@@ -299,7 +290,7 @@ class auth_plugin_db extends auth_plugin_base {
// only go ahead if we actually
// have fields to update locally
if (!empty($updatekeys)) {
list($in_sql, $params) = $DB->get_in_or_equal($userlist, SQL_PARAMS_NAMED, 'u0000', true);
list($in_sql, $params) = $DB->get_in_or_equal($userlist, SQL_PARAMS_NAMED, 'u', true);
$params['authtype'] = $this->authtype;
$sql = "SELECT u.id, u.username
FROM {user} u
@@ -370,7 +361,7 @@ class auth_plugin_db extends auth_plugin_base {
$id = $DB->insert_record ('user',$user); // it is truly a new user
echo "\t"; print_string('auth_dbinsertuser','auth_db',array('name'=>$user->username, 'id'=>$id)); echo "\n";
// if relevant, tag for password generation
if ($this->config->passtype === 'internal') {
if ($this->is_internal()) {
set_user_preference('auth_forcepasswordchange', 1, $id);
set_user_preference('create_password', 1, $id);
}
@@ -397,7 +388,7 @@ class auth_plugin_db extends auth_plugin_base {
if (!$rs) {
print_error('auth_dbcantconnect','auth_db');
} else if ( !$rs->EOF ) {
} else if (!$rs->EOF) {
// user exists exterally
$result = true;
}
@@ -420,7 +411,7 @@ class auth_plugin_db extends auth_plugin_base {
if (!$rs) {
print_error('auth_dbcantconnect','auth_db');
} else if ( !$rs->EOF ) {
} else if (!$rs->EOF) {
while ($rec = $rs->FetchRow()) {
$rec = (object)array_change_key_case((array)$rec , CASE_LOWER);
array_push($result, $rec->username);
@@ -546,8 +537,8 @@ class auth_plugin_db extends auth_plugin_base {
}
if (!empty($update)) {
$authdb->Execute("UPDATE {$this->config->table}
SET ".implode(',', $update)."
WHERE {$this->config->fielduser}='".$this->ext_addslashes($extusername)."'");
SET ".implode(',', $update)."
WHERE {$this->config->fielduser}='".$this->ext_addslashes($extusername)."'");
}
$authdb->Close();
return true;
@@ -565,14 +556,13 @@ class auth_plugin_db extends auth_plugin_base {
}
function prevent_local_passwords() {
if (!isset($this->config->passtype)) {
return false;
}
return ($this->config->passtype != 'internal');
return !$this->is_internal();
}
/**
* Returns true if this authentication plugin is 'internal'.
* Returns true if this authentication plugin is "internal".
*
* Internal plugins use password hashes from Moodle user table for authentication.
*
* @return bool
*/
@@ -580,7 +570,18 @@ class auth_plugin_db extends auth_plugin_base {
if (!isset($this->config->passtype)) {
return true;
}
return ($this->config->passtype == 'internal');
return ($this->config->passtype === 'internal');
}
/**
* Indicates if moodle should automatically update internal user
* records with data from external sources using the information
* from auth_plugin_base::get_userinfo().
*
* @return bool true means automatically copy data from ext to user table
*/
function is_synchronised_with_external() {
return true;
}
/**
@@ -590,7 +591,7 @@ class auth_plugin_db extends auth_plugin_base {
* @return bool
*/
function can_change_password() {
return ($this->config->passtype == 'internal' or !empty($this->config->changepasswordurl));
return ($this->is_internal() or !empty($this->config->changepasswordurl));
}
/**
@@ -600,11 +601,11 @@ class auth_plugin_db extends auth_plugin_base {
* @return moodle_url
*/
function change_password_url() {
if ($this->config->passtype == 'internal') {
if ($this->is_internal()) {
// standard form
return null;
} else {
// use custom url
// use admin defined custom url
return new moodle_url($this->config->changepasswordurl);
}
}
@@ -615,7 +616,7 @@ class auth_plugin_db extends auth_plugin_base {
* @return bool
*/
function can_reset_password() {
return ($this->config->passtype == 'internal');
return $this->is_internal();
}
/**
+3 -3
View File
@@ -42,10 +42,10 @@ $string['auth_dbchangepasswordurl_key'] = 'Password-change URL';
$string['auth_dbinsertuser'] = 'Inserted user {$a->name} id {$a->id}';
$string['auth_dbinsertusererror'] = 'Error inserting user {$a}';
$string['auth_dbname'] = 'Name of the database itself';
$string['auth_dbname_key'] = 'DB Name';
$string['auth_dbname_key'] = 'DB name';
$string['auth_dbpass'] = 'Password matching the above username';
$string['auth_dbpass_key'] = 'Password';
$string['auth_dbpasstype'] = '<p>Specify the format that the password field is using. MD5 hashing is useful for connecting to other common web applications like PostNuke.</p> <p>Use \'internal\' if you want to the external DB to manage usernames &amp; email addresses, but Moodle to manage passwords. If you use \'internal\', you <i>must</i> provide a populated email address field in the external DB, and you must execute both admin/cron.php and auth/db/auth_db_sync_users.php regularly. Moodle will send an email to new users with a temporary password.</p>';
$string['auth_dbpasstype'] = '<p>Specify the format that the password field is using. MD5 hashing is useful for connecting to other common web applications like PostNuke.</p> <p>Use \'internal\' if you want to the external DB to manage usernames &amp; email addresses, but Moodle to manage passwords. If you use \'internal\', you <i>must</i> provide a populated email address field in the external DB, and you must execute both admin/cron.php and auth/db/cli/sync_users.php regularly. Moodle will send an email to new users with a temporary password.</p>';
$string['auth_dbpasstype_key'] = 'Password format';
$string['auth_dbreviveduser'] = 'Revived user {$a->name} id {$a->id}';
$string['auth_dbrevivedusererror'] = 'Error reviving user {$a}';
@@ -61,7 +61,7 @@ $string['auth_dbtype'] = 'The database type (See the <a href="../lib/adodb/readm
$string['auth_dbtype_key'] = 'Database';
$string['auth_dbupdatinguser'] = 'Updating user {$a->name} id {$a->id}';
$string['auth_dbuser'] = 'Username with read access to the database';
$string['auth_dbuser_key'] = 'DB User';
$string['auth_dbuser_key'] = 'DB user';
$string['auth_dbusernotexist'] = 'Cannot update non-existent user: {$a}';
$string['auth_dbuserstoadd'] = 'User entries to add: {$a}';
$string['auth_dbuserstoremove'] = 'User entries to remove: {$a}';
+1 -1
View File
@@ -29,7 +29,7 @@ $string['auth_emailchangepending'] = 'Change pending. Open the link sent to you
$string['auth_emailnoemail'] = 'Tried to send you an email but failed!';
$string['auth_emailnoinsert'] = 'Could not add your record to the database!';
$string['auth_emailnowexists'] = 'The email address you tried to assign to your profile has been assigned to someone else since your original request. Your request for change of email address is hereby cancelled, but you may try again with a different address.';
$string['auth_emailrecaptcha'] = 'Adds a visual/audio confirmation form element to the signup page for email self-registering users. This protects your site against spammers and contributes to a worthwhile cause. See http://recaptcha.net/learnmore.html for more details. <br /><em>PHP cURL extension is required.</em>';
$string['auth_emailrecaptcha'] = 'Adds a visual/audio confirmation form element to the signup page for email self-registering users. This protects your site against spammers and contributes to a worthwhile cause. See http://www.google.com/recaptcha/learnmore for more details. <br /><em>PHP cURL extension is required.</em>';
$string['auth_emailrecaptcha_key'] = 'Enable reCAPTCHA element';
$string['auth_emailsettings'] = 'Settings';
$string['auth_emailupdate'] = 'Email address update';
+2 -2
View File
@@ -689,7 +689,7 @@ class auth_plugin_ldap extends auth_plugin_base {
// Find users in DB that aren't in ldap -- to be removed!
// this is still not as scalable (but how often do we mass delete?)
if ($this->config->removeuser !== AUTH_REMOVEUSER_KEEP) {
$sql = 'SELECT u.id, u.username, u.email, u.auth
$sql = 'SELECT u.*
FROM {user} u
LEFT JOIN {tmp_extuser} e ON (u.username = e.username AND u.mnethostid = e.mnethostid)
WHERE u.auth = ?
@@ -1385,7 +1385,7 @@ class auth_plugin_ldap extends auth_plugin_base {
}
}
}
$moodleattributes['username'] = $this->config->user_attribute;
$moodleattributes['username'] = moodle_strtolower(trim($this->config->user_attribute));
return $moodleattributes;
}
Executable → Regular
View File
+3 -3
View File
@@ -28,7 +28,7 @@ $string['auth_ldap_attrcreators'] = 'List of groups or contexts whose members ar
$string['auth_ldap_attrcreators_key'] = 'Attribute creators';
$string['auth_ldap_auth_user_create_key'] = 'Create users externally';
$string['auth_ldap_bind_dn'] = 'If you want to use bind-user to search users, specify it here. Something like \'cn=ldapuser,ou=public,o=org\'';
$string['auth_ldap_bind_dn_key'] = 'Distinguished Name';
$string['auth_ldap_bind_dn_key'] = 'Distinguished name';
$string['auth_ldap_bind_pw'] = 'Password for bind-user.';
$string['auth_ldap_bind_pw_key'] = 'Password';
$string['auth_ldap_bind_settings'] = 'Bind settings';
@@ -101,9 +101,9 @@ $string['auth_ntlmsso_enabled'] = 'Set to yes to attempt Single Sign On with the
$string['auth_ntlmsso_enabled_key'] = 'Enable';
$string['auth_ntlmsso_ie_fastpath'] = 'Set to yes to enable the NTLM SSO fast path (bypasses certain steps and only works if the client\'s browser is MS Internet Explorer).';
$string['auth_ntlmsso_ie_fastpath_key'] = 'MS IE fast path?';
$string['auth_ntlmsso_subnet'] = 'If set, it will only attempt SSO with clients in this subnet. Format: xxx.xxx.xxx.xxx/bitmask';
$string['auth_ntlmsso_subnet'] = 'If set, it will only attempt SSO with clients in this subnet. Format: xxx.xxx.xxx.xxx/bitmask. Separate multiple subnets with \',\' (comma).';
$string['auth_ntlmsso_subnet_key'] = 'Subnet';
$string['auth_ntlmsso_type_key'] = 'Authentication Type';
$string['auth_ntlmsso_type_key'] = 'Authentication type';
$string['auth_ntlmsso_type'] = 'The authentication method configured in the web server to authenticate the users (if in doubt, choose NTLM)';
$string['connectingldap'] = "Connecting to LDAP server...\n";
$string['creatingtemptable'] = "Creating temporary table {\$a}\n";
+49
View File
@@ -0,0 +1,49 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Manual authentication plugin upgrade code
*
* @package auth
* @subpackage manual
* @copyright 2011 Petr Skoda (http://skodak.org)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/**
* @param int $oldversion the version we are upgrading from
* @return bool result
*/
function xmldb_auth_manual_upgrade($oldversion) {
global $CFG, $DB, $OUTPUT;
if ($oldversion < 2011022700) {
// force creation of missing passwords
$createpassword = hash_internal_user_password('');
$rs = $DB->get_recordset('user', array('password'=>$createpassword, 'auth'=>'manual'));
foreach ($rs as $user) {
if (validate_email($user->email)) {
$DB->set_field('user', 'password', 'to be created', array('id'=>$user->id));
unset_user_preference('auth_forcepasswordchange', $user);
set_user_preference('create_password', 1, $user);
}
}
$rs->close();
upgrade_plugin_savepoint(true, 2011022700, 'auth', 'manual');
}
return true;
}
+29
View File
@@ -0,0 +1,29 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Manual authentication plugin version information
*
* @package auth
* @subpackage manual
* @copyright 2011 Petr Skoda (http://skodak.org)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011022700;
$plugin->component = 'auth_manual';
+73 -46
View File
@@ -80,13 +80,15 @@ class auth_plugin_mnet extends auth_plugin_base {
$userdata['session.gc_maxlifetime'] = ini_get('session.gc_maxlifetime');
if (array_key_exists('picture', $userdata) && !empty($user->picture)) {
//TODO: rewrite to use new file storage
/*
$imagefile = make_user_directory($user->id, true) . "/f1.jpg";
if (file_exists($imagefile)) {
$userdata['imagehash'] = sha1(file_get_contents($imagefile));
$fs = get_file_storage();
$usercontext = get_context_instance(CONTEXT_USER, $user->id, MUST_EXIST);
if ($usericonfile = $fs->get_file($usercontext->id, 'user', 'icon', 0, '/', 'f1.png')) {
$userdata['_mnet_userpicture_timemodified'] = $usericonfile->get_timemodified();
$userdata['_mnet_userpicture_mimetype'] = $usericonfile->get_mimetype();
} else if ($usericonfile = $fs->get_file($usercontext->id, 'user', 'icon', 0, '/', 'f1.jpg')) {
$userdata['_mnet_userpicture_timemodified'] = $usericonfile->get_timemodified();
$userdata['_mnet_userpicture_mimetype'] = $usericonfile->get_mimetype();
}
*/
}
$userdata['myhosts'] = array();
@@ -200,6 +202,7 @@ class auth_plugin_mnet extends auth_plugin_base {
function confirm_mnet_session($token, $remotepeer) {
global $CFG, $DB;
require_once $CFG->dirroot . '/mnet/xmlrpc/client.php';
require_once $CFG->libdir . '/gdlib.php';
// verify the remote host is configured locally before attempting RPC call
if (! $remotehost = $DB->get_record('mnet_host', array('wwwroot' => $remotepeer->wwwroot, 'deleted' => 0))) {
@@ -284,41 +287,42 @@ class auth_plugin_mnet extends auth_plugin_base {
print_error('sso_mnet_login_refused', 'mnet', '', array('user'=>$localuser->username, 'host'=>$remotehost->name));
}
$fs = get_file_storage();
// update the local user record with remote user data
foreach ((array) $remoteuser as $key => $val) {
// TODO: fetch image if it has changed
//TODO: rewrite to use new file storage
if ($key == 'imagehash') {
/*
$dirname = make_user_directory($localuser->id, true);
$filename = "$dirname/f1.jpg";
$localhash = '';
if (file_exists($filename)) {
$localhash = sha1(file_get_contents($filename));
} elseif (!file_exists($dirname)) {
mkdir($dirname);
if ($key == '_mnet_userpicture_timemodified' and empty($CFG->disableuserimages) and isset($remoteuser->picture)) {
// update the user picture if there is a newer verion at the identity provider
$usercontext = get_context_instance(CONTEXT_USER, $localuser->id, MUST_EXIST);
if ($usericonfile = $fs->get_file($usercontext->id, 'user', 'icon', 0, '/', 'f1.png')) {
$localtimemodified = $usericonfile->get_timemodified();
} else if ($usericonfile = $fs->get_file($usercontext->id, 'user', 'icon', 0, '/', 'f1.jpg')) {
$localtimemodified = $usericonfile->get_timemodified();
} else {
$localtimemodified = 0;
}
if ($localhash != $val) {
// fetch image from remote host
if (!empty($val) and $localtimemodified < $val) {
mnet_debug('refetching the user picture from the identity provider host');
$fetchrequest = new mnet_xmlrpc_client();
$fetchrequest->set_method('auth/mnet/auth.php/fetch_user_image');
$fetchrequest->add_param($localuser->username);
if ($fetchrequest->send($remotepeer) === true) {
if (strlen($fetchrequest->response['f1']) > 0) {
$imagefilename = $CFG->dataroot . '/temp/mnet-usericon-' . $localuser->id;
$imagecontents = base64_decode($fetchrequest->response['f1']);
file_put_contents($filename, $imagecontents);
$localuser->picture = 1;
}
if (strlen($fetchrequest->response['f2']) > 0) {
$imagecontents = base64_decode($fetchrequest->response['f2']);
file_put_contents($dirname.'/f2.jpg', $imagecontents);
file_put_contents($imagefilename, $imagecontents);
if (process_new_icon($usercontext, 'user', 'icon', 0, $imagefilename)) {
$localuser->picture = 1;
}
unlink($imagefilename);
}
// note that since Moodle 2.0 we ignore $fetchrequest->response['f2']
// the mimetype information provided is ignored and the type of the file is detected
// by process_new_icon()
}
}
*/
}
if($key == 'myhosts') {
@@ -460,9 +464,16 @@ class auth_plugin_mnet extends auth_plugin_base {
}
// make sure it is a user we have an in active session
// with that host...
if (!$userid = $DB->get_field('mnet_session', 'userid',
array('username'=>$username, 'mnethostid'=>$remoteclient->id))) {
throw new mnet_server_exception(1, 'authfail_nosessionexists');
$mnetsessions = $DB->get_records('mnet_session', array('username' => $username, 'mnethostid' => $remoteclient->id), '', 'id, userid');
$userid = null;
foreach ($mnetsessions as $mnetsession) {
if (is_null($userid)) {
$userid = $mnetsession->userid;
continue;
}
if ($userid != $mnetsession->userid) {
throw new mnet_server_exception(3, 'authfail_usermismatch');
}
}
if (empty($courses)) { // no courses? clear out quickly
@@ -538,9 +549,11 @@ class auth_plugin_mnet extends auth_plugin_base {
}
// Clean up courses that the user is no longer enrolled in.
$local_courseid_string = implode(', ', $local_courseid_array);
$whereclause = " userid = ? AND hostid = ? AND courseid NOT IN ($local_courseid_string)";
$DB->delete_records_select('mnetservice_enrol_enrolments', $whereclause, array($userid, $remoteclient->id));
if (!empty($local_courseid_array)) {
$local_courseid_string = implode(', ', $local_courseid_array);
$whereclause = " userid = ? AND hostid = ? AND remotecourseid NOT IN ($local_courseid_string)";
$DB->delete_records_select('mnetservice_enrol_enrolments', $whereclause, array($userid, $remoteclient->id));
}
}
function prevent_local_passwords() {
@@ -1100,31 +1113,45 @@ class auth_plugin_mnet extends auth_plugin_base {
}
/**
* Returns the user's image as a base64 encoded string.
* Returns the user's profile image info
*
* If the user exists and has a profile picture, the returned array will contain keys:
* f1 - the content of the default 100x100px image
* f1_mimetype - the mimetype of the f1 file
* f2 - the content of the 35x35px variant of the image
* f2_mimetype - the mimetype of the f2 file
*
* The mimetype information was added in Moodle 2.0. In Moodle 1.x, images are always jpegs.
*
* @see process_new_icon()
* @uses mnet_remote_client callable via MNet XML-RPC
* @param int $userid The id of the user
* @return string The encoded image
* @return false|array false if user not found, empty array if no picture exists, array with data otherwise
*/
function fetch_user_image($username) {
global $CFG, $DB;
//TODO: rewrite to use new file storage
return false;
/*
if ($user = $DB->get_record('user', array('username'=>$username, 'mnethostid'=>$CFG->mnet_localhost_id))) {
$filename1 = make_user_directory($user->id, true) . "/f1.jpg";
$filename2 = make_user_directory($user->id, true) . "/f2.jpg";
if ($user = $DB->get_record('user', array('username' => $username, 'mnethostid' => $CFG->mnet_localhost_id))) {
$fs = get_file_storage();
$usercontext = get_context_instance(CONTEXT_USER, $user->id, MUST_EXIST);
$return = array();
if (file_exists($filename1)) {
$return['f1'] = base64_encode(file_get_contents($filename1));
if ($f1 = $fs->get_file($usercontext->id, 'user', 'icon', 0, '/', 'f1.png')) {
$return['f1'] = base64_encode($f1->get_content());
$return['f1_mimetype'] = $f1->get_mimetype();
} else if ($f1 = $fs->get_file($usercontext->id, 'user', 'icon', 0, '/', 'f1.jpg')) {
$return['f1'] = base64_encode($f1->get_content());
$return['f1_mimetype'] = $f1->get_mimetype();
}
if (file_exists($filename2)) {
$return['f2'] = base64_encode(file_get_contents($filename2));
if ($f2 = $fs->get_file($usercontext->id, 'user', 'icon', 0, '/', 'f2.png')) {
$return['f2'] = base64_encode($f2->get_content());
$return['f2_mimetype'] = $f2->get_mimetype();
} else if ($f2 = $fs->get_file($usercontext->id, 'user', 'icon', 0, '/', 'f2.jpg')) {
$return['f2'] = base64_encode($f2->get_content());
$return['f2_mimetype'] = $f2->get_mimetype();
}
return $return;
}
return false;
*/
}
/**
+2 -2
View File
@@ -242,7 +242,7 @@ class auth_plugin_shibboleth extends auth_plugin_base {
// set to defaults if undefined
if (!isset($config->auth_instructions) or empty($config->user_attribute)) {
$config->auth_instructions = get_string('shibboleth_instructions', 'auth', $CFG->wwwroot.'/auth/shibboleth/index.php');
$config->auth_instructions = get_string('auth_shib_instructions', 'auth_shibboleth', $CFG->wwwroot.'/auth/shibboleth/index.php');
}
if (!isset ($config->user_attribute)) {
$config->user_attribute = '';
@@ -292,7 +292,7 @@ class auth_plugin_shibboleth extends auth_plugin_base {
} else {
// Check if integrated WAYF was enabled and is now turned off
// If it was and only then, reset the Moodle alternate URL
if ($this->config->alt_login == 'on'){
if (isset($this->config->alt_login) and $this->config->alt_login == 'on'){
set_config('alt_login', 'off', 'auth/shibboleth');
set_config('alternateloginurl', '');
}

Some files were not shown because too many files have changed in this diff Show More