Compare commits

...

7074 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7) 7413ce9896 Moodle 2.3.2 release 2012-09-09 16:23:09 +02:00
AMOS bot f84f35dda1 Merge branch 'MOODLE_23_STABLE' into install_23_STABLE 2012-09-08 00:34:44 +00:00
Eloy Lafuente (stronk7) 71e12dc963 weekly release 2.3.1+ 2012-09-07 02:38:46 +02:00
AMOS bot ba1d10c500 Automatically generated installer lang files 2012-09-07 00:35:10 +00:00
Eloy Lafuente (stronk7) 662fe4b7d6 Merge branch 'install_23_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_23_STABLE 2012-09-07 02:18:16 +02:00
Eloy Lafuente (stronk7) ce077202d0 Merge branch 'MDL-34945-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-09-06 20:12:09 +02:00
Eloy Lafuente (stronk7) d98c8fcb8e Merge branch 'MDL-34985_m23' of git://github.com/merrill-oakland/moodle into MOODLE_23_STABLE 2012-09-06 20:07:45 +02:00
Eloy Lafuente (stronk7) 9d2926a4e9 MDL-6424 - blocks - Add missing global vars. 2012-09-06 19:45:00 +02:00
Adrian Greeve 155fd3f64b MDL-6424 - blocks - Adding a warning screen when the user clicks the delete link.
Conflicts:
	lib/blocklib.php
2012-09-06 19:44:40 +02:00
Eloy Lafuente (stronk7) e02955dd79 Merge branch 'MDL-35034-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-09-06 01:18:40 +02:00
Eloy Lafuente (stronk7) 3f4e07ef3c MDL-29662 quiz overrides: use proper course value (was php notice). 2012-09-05 18:02:16 +02:00
Eloy Lafuente (stronk7) 9569ba7ed8 Merge branch 'w36_MDL-35077_m23_stats' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-09-05 13:13:31 +02:00
Petr Škoda e4e29fd35e MDL-35077 do not show link to system stats report if stats disabled 2012-09-05 10:02:07 +02:00
Aparup Banerjee 69a52e7c4f Merge branch 'MDL-35089_23' of git://github.com/stronk7/moodle into MOODLE_23_STABLE 2012-09-05 15:08:38 +08:00
Aparup Banerjee a334d8f967 MDL-26504 blog: fixed SQL to add explicit casting
Conflicts:

	lib/db/upgrade.php
	version.php
2012-09-05 10:31:06 +08:00
Eloy Lafuente (stronk7) 3ac8fa663a Merge branch 'MDL-34997-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-09-05 00:52:43 +02:00
Aparup Banerjee 4ec133b8e6 Merge branch 'wip-mdl-34537-m23' of git://github.com/rajeshtaneja/moodle into MOODLE_23_STABLE 2012-09-04 17:32:51 +08:00
Frederic Massart 7c4fc5b50b MDL-34945 Repository: Creating an instance requires the user to have the permission to view it 2012-09-04 16:17:25 +08:00
Andrew Davis c62ccd747c MDL-26504 blog: added upgrade code to remove orphan external blog posts
Conflicts:
	lib/db/upgrade.php
	version.php
2012-09-04 13:56:27 +08:00
Andrew Davis fb1b0bc05e MDL-26504 blog: made it delete external blog posts when the external blog is deleted 2012-09-04 13:53:48 +08:00
Sam Hemelryk df4e81835a Merge branch 'MDL-30022_message_duplicate_23' of git://github.com/andyjdavis/moodle into MOODLE_23_STABLE 2012-09-04 16:50:23 +12:00
Tim Lock d8a640728c MDL-35092: Add proxy support to enrol/paypal IPN 2012-09-04 10:56:41 +08:00
Eloy Lafuente (stronk7) 31ae0e5984 Merge branch 'wip-mdl-34606-m23' of git://github.com/rajeshtaneja/moodle into MOODLE_23_STABLE 2012-09-04 02:09:25 +02:00
Eloy Lafuente (stronk7) 3dafe46b2b Merge branch 'MDL-34633-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-09-04 01:54:04 +02:00
Eloy Lafuente (stronk7) 5f015b62d4 Merge branch 'MDL-29662_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-09-04 01:14:18 +02:00
Eloy Lafuente (stronk7) 2b567e3687 Merge branch 'MDL-27818_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-09-04 01:07:51 +02:00
Eloy Lafuente (stronk7) 8a716e2362 Merge branch 'MDL-33306_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-09-04 00:30:59 +02:00
Eloy Lafuente (stronk7) 20182f8670 Merge branch 'MDL-33812-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-09-04 00:20:17 +02:00
Eloy Lafuente (stronk7) 99e6bd4799 Merge branch 'MDL-34725-strict-standards_23' of git://github.com/mudrd8mz/moodle into MOODLE_23_STABLE 2012-09-04 00:06:23 +02:00
Eloy Lafuente (stronk7) 0af2fd2e05 Merge branch 'w36_MDL-34097_m23_environment' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-09-04 00:00:38 +02:00
Eloy Lafuente (stronk7) 2cdf1a4650 Merge branch 'MDL-28346-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-09-03 20:02:13 +02:00
Eloy Lafuente (stronk7) 0cae56b42e Merge branch 'w36_MDL-35077_m23_stats' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-09-03 17:54:03 +02:00
Eloy Lafuente (stronk7) b9d24254bd Merge branch 'MDL-35133_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-09-03 17:47:50 +02:00
Eloy Lafuente (stronk7) a31d7a0ed3 Merge branch 'w36_MDL-35168_m23_yuipath' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-09-03 17:16:17 +02:00
Eloy Lafuente (stronk7) e815aa8e04 Merge branch 'w36_MDL-35145_m23_guestdelete' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-09-03 16:18:15 +02:00
Aparup Banerjee e78698c606 Merge branch 'MDL-35151_M23' of git://github.com/lazydaisy/moodle into MOODLE_23_STABLE 2012-09-03 19:23:52 +08:00
Aparup Banerjee a2bdb0b02c Merge branch 'MDL-35180_M23' of git://github.com/lazydaisy/moodle into MOODLE_23_STABLE 2012-09-03 17:38:07 +08:00
Aparup Banerjee 90c499dbca Merge branch 'w36_MDL-35080_m23_weirdtables' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-09-03 17:12:32 +08:00
Frederic Massart 82bf5b10b9 MDL-34633 Repository: Flickr supports small images 2012-09-03 14:19:47 +08:00
Frederic Massart 668ba1e922 MDL-35101 Repository: Public Flickr fails when the picture has no license 2012-09-03 14:18:16 +08:00
Jean-Philippe Gaudreau 3d5df93b80 MDL-34997 - Allow shortened url youtu.be and y2u.be for Youtube filter 2012-09-03 14:12:03 +08:00
Frederic Massart 3bae0b5916 MDL-28346 Backup: Backup does not fail when a file is missing 2012-09-03 14:11:37 +08:00
Frederic Massart 16ee63b4b8 MDL-28346 Backup: Restore does not fail when a file is missing 2012-09-03 14:11:37 +08:00
Frederic Massart 397afd71c3 MDL-28346 Backup: Added new status 'warning' for backup result 2012-09-03 14:11:37 +08:00
Frederic Massart c128731d19 MDL-35034 Repository: Google Docs does not fail when download is restricted 2012-09-03 14:11:12 +08:00
Frederic Massart 640f8eed6d MDL-33812 Backup: Added some upgrade information about the changes 2012-09-03 14:10:59 +08:00
Frederic Massart 2fd679c5e1 MDL-33812 Backup: Revert MDL-33521 2012-09-03 14:10:59 +08:00
Frederic Massart 905185dca4 MDL-33812 Backup: Respect of backup_auto_keep 2012-09-03 14:10:58 +08:00
Sam Hemelryk 8169e2f46b Merge branch 'MDL-35109-available-updates_23' of git://github.com/mudrd8mz/moodle into MOODLE_23_STABLE 2012-09-03 12:28:18 +12:00
Sam Hemelryk 3d1cbc0df3 Merge branch 'MDL-31496_23' of git://github.com/dmonllao/moodle into MOODLE_23_STABLE 2012-09-03 12:20:25 +12:00
Sam Hemelryk b739e2d71a MDL-26822 user: Minor improvements post integration 2012-09-03 11:41:24 +12:00
Sam Hemelryk bcbfd02574 Merge branch 'MDL-26882-m23' of git://github.com/ankitagarwal/moodle into MOODLE_23_STABLE 2012-09-03 11:26:07 +12:00
Sam Hemelryk f38508168f Merge branch 'wip-MDL-34318-MOODLE_23_STABLE' of git://github.com/abgreeve/moodle into MOODLE_23_STABLE 2012-09-03 10:12:37 +12:00
Sam Hemelryk 9f66e64390 Merge branch 'MDL-30020c-23' of git://github.com/srynot4sale/moodle into MOODLE_23_STABLE 2012-09-03 09:52:20 +12:00
Mary Evans 47045e82b0 MDL-35180 theme_afterburner: fixes IE9 compatibility view bug 2012-09-02 16:00:29 +01:00
Petr Škoda e235de5ef5 MDL-34097 keep current requirements for Moodle 2.4 2012-09-02 11:53:45 +02:00
AMOS bot a49ea30654 Automatically generated installer lang files 2012-09-02 00:32:45 +00:00
Mary Evans f4f8cf9a2d MDL-35151 theme_anomaly: removed CSS selectors (.forumpost .content p) from style/general.php thus allowing YUI CSS to style paragraphs as normal. 2012-09-01 23:25:40 +01:00
Petr Škoda 9817f08400 MDL-35080 skip views and weird tables in mysql structure upgrades 2012-09-01 16:23:44 +02:00
Petr Škoda 45f9c2db5f MDL-35145 add basic unit tests for delete_user() 2012-09-01 14:15:36 +02:00
Petr Škoda 3fe8ae9bb9 MDL-35145 add extra delete_user() parameter validation
We do not want to delete local admins and guest account, we need to validate the supplied parameter is valid $user record and refetch it from database.
2012-09-01 14:15:28 +02:00
Petr Škoda 58520c062d MDL-35168 fix yui combo path disclosure 2012-09-01 12:39:59 +02:00
Petr Škoda 0a898cbc46 MDL-35077 fix stats report navigation links 2012-08-31 14:17:45 +02:00
Eloy Lafuente (stronk7) 98157832bf weekly release 2.3.1+ 2012-08-31 11:35:54 +02:00
Eloy Lafuente (stronk7) 6e6f74da2f Merge branch 'install_23_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_23_STABLE 2012-08-31 11:27:25 +02:00
Eloy Lafuente (stronk7) 4c6b8659f9 MDL-35147 lesson qformat import: Dirty hack to support array questiontext structures. 2012-08-31 02:59:49 +02:00
Tim Hunt 5d22b22274 MDL-27818 question bank: multilang category names don't work. 2012-08-30 22:45:51 +01:00
Tim Hunt fd126f94aa MDL-35133 accesslib: context_module::get_context_name should format_string
Otherwise activites with multilang names are displayed badly.
2012-08-30 22:44:20 +01:00
Eloy Lafuente (stronk7) f1f174e2bf Merge branch 'MDL-35147_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-30 20:12:31 +02:00
Eloy Lafuente (stronk7) a1db53480c Merge branch 'MDL-31244_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-30 18:32:04 +02:00
Tim Hunt 5fe6d41245 MDL-35147 lesson: fix regression from MDL-25492.
I really wish someone would fix lesson to use the question bank.
2012-08-30 13:12:00 +01:00
Ankit Agarwal 4d7a664ee7 MDL-26882 profile: Applying cap check (site:viewuseridentity) to email field in user profile 2012-08-30 15:36:26 +08:00
Ankit Agarwal 74c0b55029 MDL-26882 profile: Apllying the cap check site:viewuseridentity to user profile 2012-08-30 15:36:20 +08:00
David Monllao 21415acd5a MDL-35119 tool_assignmentupgrade Changing onsubmit form for onclick button 2012-08-30 15:01:17 +08:00
Adrian Greeve edd2686c8b MDL-32108 - navigation - After logging in the user is directed to mysite instead of site home.
Thanks to lurii Kucherov for this patch.
2012-08-30 11:58:14 +08:00
Aparup Banerjee bc67dfdb9a Merge branch 'MDL-35010_23' of git://github.com/stronk7/moodle into MOODLE_23_STABLE 2012-08-30 10:43:38 +08:00
Tim Hunt c8f9a0b63a MDL-29662 quiz overrides: update dates during course reset.
Also, fix duplicate SQL clause in similar code in lib,
and fix error when saving overrides.
2012-08-29 18:43:00 +01:00
Tim Hunt 3b5245cd6b MDL-33306 qtype multichoice: fix display of right answer.
Also, fix  higlighing of last edited question in the qeustion bank, when
it co-incides with a grey row.
2012-08-29 17:46:59 +01:00
David Mudrák 160133ce24 MDL-34725 Make the signatures of process_legacy_element() method consistent
The patch fixes the missing parameter type declaration in all subclasses
of the moodle1_workshopform_handler class.
2012-08-29 15:33:22 +02:00
Eloy Lafuente (stronk7) a51eaaac45 Merge branch 'wip-mdl-30121-m23' of git://github.com/rajeshtaneja/moodle into MOODLE_23_STABLE 2012-08-29 12:15:14 +02:00
Eloy Lafuente (stronk7) 3afd86559e Merge branch 'wip-MDL-34290-MOODLE_23_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_23_STABLE 2012-08-29 12:11:22 +02:00
Aparup Banerjee accaf1d277 Merge branch 'wip-mdl-31623-m23' of git://github.com/rajeshtaneja/moodle into MOODLE_23_STABLE 2012-08-29 16:57:09 +08:00
Aparup Banerjee fd3e329d94 Merge branch 'MDL-31959_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-29 15:33:43 +08:00
Aparup Banerjee 913dd6d630 Merge branch 'MDL-34952_23' of git://github.com/grabs/moodle into MOODLE_23_STABLE 2012-08-29 13:27:05 +08:00
Marina Glancy 074455a6f5 MDL-34290 repository_filesystem: do not store files in moodle filepool unless images 2012-08-29 13:12:07 +08:00
Dan Poltawski 7fa4cd1617 MDL-34290 using moodleform cast to int in dropbox repository settings 2012-08-29 13:12:07 +08:00
Marina Glancy 0707372b03 MDL-34290 Added timeout to googledocs request to download a file 2012-08-29 13:12:06 +08:00
Marina Glancy 3dce698981 MDL-34290, MDL-33416 prepare to deprecate fields files.referencelastsync and referencelifetime 2012-08-29 13:12:06 +08:00
Marina Glancy 29ea4e9c56 MDL-34290 Auto synchronise newly created references when possible 2012-08-29 13:12:06 +08:00
Marina Glancy a7f53f09f3 MDL-34665 Dropbox displays thumbnails and return info about file size and date last modified 2012-08-29 13:12:05 +08:00
Marina Glancy f8dea58be9 MDL-34290 remove class cache_file as not used
in fact we have moodle filepool that can work perfectly for caching files, no need to create new class and storage
2012-08-29 13:12:05 +08:00
Marina Glancy 56e41718da MDL-34290 repository_dropbox reference handling
- When Dropbox file is inserted by reference, the shared link is created and stored
- Added a function to fix old references (containing access_key/secret) with the proper ones
- Added support for external links in Dropbox (FILE_EXTERNAL), using the shared link API
- Make sure that repository::get_link() receives reference and not source (other repositories than Dropbox have those fields identical)
- Function get_file_by_reference respects request timeouts, downloads only images (for thumbnail generation),
- Function get_file respects request timeout
- do not use cache_file class (content is cached in moodle filepool if needed)
- added parameter for maximum size of files to cache
- added 'Manage' link for Filepicker
- added user name to
- added user name (if different from current) to 'Original' field
- added/corrected phpdocs
2012-08-29 13:12:04 +08:00
Marina Glancy 1d168fbd5f MDL-34290 oauthlib_helper support for POST request 2012-08-29 13:12:04 +08:00
Marina Glancy a6b0ac5362 MDL-34290 Allow to have several requests to the same instance of oauth_helper 2012-08-29 13:12:04 +08:00
Marina Glancy 120300fb99 MDL-34290 repository_equella: do not download files when not needed
repository_equella::get_file_by_reference respects request timeouts, downloads only images (for thumbnail generation),
does not use cache_file class (content is cached in moodle filepool if needed);
also repository_equella has counter of unsuccessfull connect attempts and do not perform any more if 3 failed
(within one request)
2012-08-29 13:12:03 +08:00
Marina Glancy a5fe04b62b MDL-34290 repository_boxnet, boxlib use request timeouts
boxlib receives additional argument as request timeout
repository_boxnet::get_file_by_reference respects request timeouts and downloads file into moodle only if it is image
also some improvements to repository_boxnet source display functions;
also do not cache result of request in retrieving of listing, user is unable to see the new files he added to box.
2012-08-29 13:12:03 +08:00
Marina Glancy 9001c7242e MDL-34290 repository API: add repository function to import referenced file
it must be independed from sync_external_file because sync often does not actually download contents, it is used just to retrieve
the size of the file. Besides the timeouts for get_file and sync requests are very different.

Also add option to send_stored_file() to ignore reference and send cached contents
2012-08-29 13:12:03 +08:00
Marina Glancy 22fa5d9a7c MDL-34290 repository_filesystem add original info function and reduce ref lifetime 2012-08-29 13:12:02 +08:00
Marina Glancy e53394ba0b MDL-34290 repository API: add timeout to get_file and throw exception
- get_file should have a request timeout and throw an exception with the details (i.e. timeout reached) if download can
not be completed
- corrected phpdocs
2012-08-29 13:12:02 +08:00
Marina Glancy 56e7d14f26 MDL-34290 repository API: do not confuse source and reference
make sure that repository function get_file_source_info receives as argument the source of the file,
and get_file receives a reference;
reference is a value of DB field files_reference.reference and result of get_file_reference(source).
Fix dropbox as the only repository that have different values in those fields;
also added information about user in dropbox reference and original
2012-08-29 13:12:01 +08:00
Marina Glancy c9fa5b1c05 MDL-34290 repository API: allow get_file_by_reference return only filesize
we want to allow repositories to perform quick synchronisation, without downloading the file. In this case they return
only filesize, without the contenthash
2012-08-29 13:12:01 +08:00
Marina Glancy 3af509d6d4 MDL-34290 class oauth_helper, added API to pass options to curl (such as timeout) 2012-08-29 13:12:01 +08:00
Marina Glancy 26aaa7e835 MDL-34290 update all references after the source is changed
- When several records in {files} have the same record in {files_reference} and the synchronisation is performed, we need to update
all records in {files} so all files know if source is changed and that sync was performed;
- also when local moodle file content is changed we immediately update all files referencing to it (therefore sync of references
to the local files is unnecessary);
2012-08-29 13:12:00 +08:00
Marina Glancy 2e0b5fef48 MDL-34290 curl class: add functions to return error code and to download one file 2012-08-29 13:12:00 +08:00
Eloy Lafuente (stronk7) f3d5fb4dec Merge branch 'MDL-29598_23' of git://github.com/dmonllao/moodle into MOODLE_23_STABLE 2012-08-28 23:23:50 +02:00
David Mudrák 903d13c0c2 MDL-35109 Fix available_update_checker::cron_has_fresh_fetch()
For the purpose of cron based fetching, recently fetched data are valid
for 24 hours.
2012-08-28 22:56:18 +02:00
David Mudrák b0e5b3b63b MDL-35109 Improve unittests for cron based fetching of available updates
The expected behaviour is as follows:

* If the recently fetched data is older than 48 hours, it is considered
  as outdated and the new fetch is executed
* else, if the recently fetched data is younger than 24 hours, it is
  considered as fresh enough and no fetch is executed
* else, if the current time is after 01:00 AM plus a certain offset
  (which is randomly generated for each site), the fetch is
  executed.
2012-08-28 22:52:31 +02:00
Eloy Lafuente (stronk7) 5e143a271c Merge branch 'MDL-34250_23' of github.com:stronk7/moodle into MOODLE_23_STABLE 2012-08-28 20:44:49 +02:00
Eloy Lafuente (stronk7) ffbe597ef1 MDL-34250 navigation: Always look for correct parent context.
Conflicts:
	lib/navigationlib.php
2012-08-28 20:41:21 +02:00
Eloy Lafuente (stronk7) 56c5e1db1b MDL-25492 bb6 import: bump version after big changes. 2012-08-28 20:15:18 +02:00
Eloy Lafuente (stronk7) ed29fa1274 Merge branch 'MDL-25492_23' of git://github.com/jmvedrine/moodle into MOODLE_23_STABLE 2012-08-28 20:08:19 +02:00
Eloy Lafuente (stronk7) faf4ba4774 Merge branch 'MDL-34192_23' of git://github.com/stronk7/moodle into MOODLE_23_STABLE 2012-08-28 14:44:30 +02:00
Eloy Lafuente (stronk7) d8e6e58ec5 MDL-34192 mod_assign: prevent ambiguous column use for Oracle.
Credit goes to Raymond Antonio from NetSpot.
2012-08-28 14:18:54 +02:00
Aparup Banerjee 4eb3f12797 Merge branch 'MDL-31837_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-28 17:04:19 +08:00
Aparup Banerjee 6ec3ae6f14 Merge branch 'MDL-32464_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-28 16:54:31 +08:00
Adrian Greeve 339057063c MDL-34318 - blog - Removal of blog associations from the database on delete.
Thanks to Erik Lundberg for this patch.
2012-08-28 15:54:01 +08:00
Eloy Lafuente (stronk7) b884cf2a74 MDL-35089 conditionals: detected one place missing sectioncache
Thanks to MDL-34936 and unit tests this was discovered like 2 new
places calling to get_fast_modinfo() without the sectioncache
column contents. Potential performance problem, leading to
reseting and recalculation of caches all the time.
2012-08-28 01:41:41 +02:00
Aaron Barnes f0c1bcf5a2 MDL-30020 blocks/completion: Some criteria do not display complete
Also includes a spruce up of the code
2012-08-28 11:40:37 +12:00
Eloy Lafuente (stronk7) 3860f948af Merge branch 'MDL-34406_fullname_23' of git://github.com/andyjdavis/moodle into MOODLE_23_STABLE 2012-08-27 20:03:52 +02:00
Eloy Lafuente (stronk7) 9507653269 Merge branch 'MDL-34430_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-27 18:51:01 +02:00
Eloy Lafuente (stronk7) 79a6a832d7 Merge branch 'MDL-34993_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-27 18:35:54 +02:00
Eloy Lafuente (stronk7) eec3a5d48d Merge branch 'm23_MDL-34994' of git://github.com/danmarsden/moodle into MOODLE_23_STABLE 2012-08-27 18:20:44 +02:00
Eloy Lafuente (stronk7) e9c306f10e Merge branch 'MDL-35026_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-27 17:54:20 +02:00
Eloy Lafuente (stronk7) b14d76c59f Merge branch 'MDL-35003_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-27 17:51:24 +02:00
Eloy Lafuente (stronk7) 8f93d94ab2 Merge branch 'MDL-35023_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-27 16:33:39 +02:00
Eloy Lafuente (stronk7) b6cd7017c0 Merge branch 'MDL-35038_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-27 16:25:30 +02:00
Eloy Lafuente (stronk7) f9033600cc Merge branch 'MDL-35048_M23' of git://github.com/lazydaisy/moodle into MOODLE_23_STABLE 2012-08-27 16:20:37 +02:00
Eloy Lafuente (stronk7) 473285edde Merge branch 'MDL-35055_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-27 16:16:46 +02:00
Aparup Banerjee 48ee721e2f Merge branch 'MDL-31633-m23' of git://github.com/ankitagarwal/moodle into MOODLE_23_STABLE 2012-08-27 17:26:41 +08:00
Rajesh Taneja acff486664 MDl-34606 Administration: id for clear button is set properly, and disabled on page load 2012-08-27 15:15:29 +08:00
Aparup Banerjee 42122854fc Merge branch 'MDL-34936-MOODLE_23_STABLE-1' of git://github.com/andrewnicols/moodle into MOODLE_23_STABLE 2012-08-27 14:20:30 +08:00
Rajesh Taneja 339c954913 MDL-34537 Enrolments: Assign alternative odd and even class to manual enrol popup 2012-08-27 14:16:06 +08:00
Aparup Banerjee 7c3fa05126 Merge branch 'MDL-34996_23' of git://github.com/grabs/moodle into MOODLE_23_STABLE 2012-08-27 13:46:50 +08:00
AMOS bot 3342bb835c Automatically generated installer lang files 2012-08-27 00:32:46 +00:00
Aaron Barnes aac67f6384 MDL-32386 completion: Fix incorrect method parameters 2012-08-27 11:19:26 +12:00
Mary Evans b710f91ed9 MDL-35048 theme_formal_white: removed p {margin:0} from style/formal_white.css which was causing a regression in some areas of theme 2012-08-26 20:49:27 +01:00
Andreas Grabs 441fa9c71d MDL-34996 - Improve help text for Feedback dependancies 2012-08-24 23:07:17 +02:00
Andreas Grabs fdc57a14bd MDL-34952 - change get_info() to public access 2012-08-24 21:55:07 +02:00
Tim Hunt a129b76cc3 MDL-32464 qformat multianswer: fix missing include.
Also, add a sample file that can be used for testing, and add a unit
test to verify this is working.
2012-08-24 16:56:52 +01:00
Andrew Robert Nicols 409eab3510 MDL-34936 Warn if the sectioncache property is missing in a get_fast_modinfo call 2012-08-24 15:40:13 +01:00
Tim Hunt 4d0a7e2b1f MDL-35055 question import: slight error with the Match grades option.
Even in the 'Error if grade not listed case', it was applying a small
tolerance. In the case of a fuzzy match, it was returning the inexact
grade from the import file, rather than the precise grade that Moodle
was expecting.

That causes problems when the editing form is displayed, because the
value from the database does not match any of the available options, so
the grade is changed to 0%.
2012-08-24 15:37:38 +01:00
Jean-Michel Vedrine cc0188c21c MDL-25492 Blackboard V6+ question import is broken. 2012-08-24 13:52:05 +02:00
Ankit Agarwal 9fc95b6558 MDL-31633 grades: Fixing incorrect redirect when trying to edit grade letters from admin settings 2012-08-24 14:59:18 +08:00
Tim Lock e24b125a3a MDL-31623 Course: Course reset bypass modules, which are removed 2012-08-24 10:59:46 +08:00
Rajesh Taneja bdbdd72cdb MDL-30121 Assignment 2.2: Draft submission files will not be included in zip, if activity is open 2012-08-24 10:54:19 +08:00
David Monllao b7da14f1c6 MDL-29598 backup Avoid possible future duplicate grade letters
More info in restore_activity_grades_structure_step->process_grade_letter() comments
2012-08-24 08:55:37 +08:00
Justin Filip 44ec173ea8 MDL-29598 backup Check whether a grade_letters record exists before trying to insert a new record 2012-08-24 08:55:37 +08:00
Tim Hunt 6009d1a32e MDL-35038 quiz reports: clarify the API changes docs.
Also re-organise the file to put the most recent changes at the top.
2012-08-23 19:15:34 +01:00
M Kassaei 99aaad063e MDL-35038 quiz reports: document the API changes in 2.3. 2012-08-23 19:15:33 +01:00
Tim Hunt 765e7564cc MDL-35026 qtype multianswer: misnamed string.
AMOS BEGIN
 MOV [questionnadded,qtype_multianswer],[questionsadded,qtype_multianswer]
AMOS END
2012-08-23 19:15:15 +01:00
Tim Hunt 07eca71195 MDL-35023 qtype calculated: fix strict syntax problem. 2012-08-23 19:14:55 +01:00
Tim Hunt 872e445a48 MDL-35003 questions: remove stray full stop after correct answer.
In a few situations, this full stop makes things a bit more grammatical,
but there are many other situations where it causes problems. So, on
balance we will remove it.
2012-08-23 19:14:38 +01:00
Tim Hunt 7f8d657531 MDL-34993 questions: convert numeric fields to float on load.
NUMBER(X,Y) typically come back from the DB as strings. If you don't
convert them to float, then when you display them, it appears as
1.0000000, which is not normally what you want.

Also, increase the size of the field on the edit form, so if you
question does have default mark 0.1234567, you can see that!
2012-08-23 19:14:19 +01:00
Tim Hunt ff43c30f0a MDL-31837 numerical tolerance: better handling of very small tolerances.
The changes between Moodle 1.9 and 2.1 made the marking of very small
answers like 10^-20 almost impossible. This change fixes it.

This fix is almost entirely due the the careful research of Pierre
Pichet, who carefully testing various proposals, and worked out that
this one seemed best.
2012-08-23 18:59:15 +01:00
Tim Hunt 35a95edba4 MDL-31244, MDL-25063 algebra filter: fix common false positives.
There are two well-known cases where the algebra filter messes up input
that is obviously not meant for the algebra filter:

1. Copy and paste of unified diffs.

2. @@PLUGINFILE@@ tokens in the HTML that are due to be replaced by the
files API.

This fix detects these two cases, and just stops the algebra filter from
replacing them.
2012-08-23 18:58:57 +01:00
Eloy Lafuente (stronk7) bac15e5782 weekly release 2.3.1+ 2012-08-23 19:25:40 +02:00
Eloy Lafuente (stronk7) 3330b54c2c Merge branch 'install_23_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_23_STABLE 2012-08-23 19:18:40 +02:00
Andrew Davis 78c2fa5cab MDL-30022 message: made the messaging history display code able to deal with multiple messages with the same timecreated value 2012-08-23 11:56:05 +08:00
AMOS bot 23bb88d28d Automatically generated installer lang files 2012-08-23 00:34:21 +00:00
Eloy Lafuente (stronk7) 4b7b1aae4d MDL-31957 Course reset: Add missing global 2012-08-23 02:12:39 +02:00
Tim Hunt 49e77191cc MDL-34430 qtype essay: upgrade from MDL-31393 needs a progress bar. 2012-08-22 22:15:36 +01:00
Jean-Michel Vedrine 9832fde1c0 MDL-34738 fix for the problem found during testing : dat files not accepted on some servers 2012-08-22 16:38:08 +02:00
Eloy Lafuente (stronk7) 364666f371 Merge branch 'MDL-34444' of git://github.com/danpoltawski/moodle into MOODLE_23_STABLE 2012-08-22 11:14:38 +02:00
Dan Poltawski e1269d87d4 MDL-34444 - actually display the title, just don't link it..
Don't worry, i'm going on holiday, so i'll be away from this git repo
for a while to prevent any more mess.
2012-08-22 17:10:38 +08:00
Eloy Lafuente (stronk7) a701525345 Merge branch 'MDL-34444' of git://github.com/danpoltawski/moodle into MOODLE_23_STABLE 2012-08-22 10:49:30 +02:00
Dan Poltawski ccce6a7e33 MDL-34444 course - don't show to 'unavaibile' sections title
Instead we just show the availability info in the index page,
this makes the navigation etc much simpler.
2012-08-22 16:40:43 +08:00
Dan Poltawski 29beeefc70 Revert "MDL-34444 course: show section availability info"
Turns out this change was just wrong, we shouldn't be allowing linking
to unaavilable sections. Just show the availability information on the
'index page'

This reverts commit 87a31bb5d8.
2012-08-22 16:37:36 +08:00
Eloy Lafuente (stronk7) 996e735693 MDL-35010 availability: fix sometimes missing fieldset 2012-08-22 09:47:44 +02:00
Eloy Lafuente (stronk7) 6c475847fb Merge branch 'MDL-34444' of git://github.com/danpoltawski/moodle into MOODLE_23_STABLE 2012-08-22 08:40:02 +02:00
Dan Poltawski 363b35f221 Merge branch 'w34_MDL-34864_m23_enrolcat' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-08-22 14:28:03 +08:00
Petr Škoda f813d99296 MDL-34864 fix role names regression 2012-08-22 08:08:24 +02:00
Dan Poltawski e03a03a4a9 Merge branch 'MDL-35000_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-22 10:32:01 +08:00
Dan Poltawski a4241511ed MDL-34870 enrol_cohort - don't need to do useless work 2012-08-22 10:03:10 +08:00
Dan Poltawski fb4e6948d0 Merge branch 'MDL-34870_23' of git://github.com/aolley/moodle into MOODLE_23_STABLE 2012-08-22 09:52:58 +08:00
Dan Poltawski 70dc5add7d Merge branch 'MDL-34733_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-22 09:16:18 +08:00
Eloy Lafuente (stronk7) f16751f856 Merge branch 'wip-mdl-32759-m23' of git://github.com/rajeshtaneja/moodle into MOODLE_23_STABLE 2012-08-22 02:34:04 +02:00
Eloy Lafuente (stronk7) 69be24a776 Merge branch 'MDL-34702_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-22 02:11:07 +02:00
Eloy Lafuente (stronk7) b74390e38b Merge branch 'MDL-34795-23' of git://github.com/srynot4sale/moodle into MOODLE_23_STABLE 2012-08-22 02:05:17 +02:00
Eloy Lafuente (stronk7) e464af4462 Merge branch 'w34_MDL-34864_m23_enrolcat' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-08-22 01:58:35 +02:00
Eloy Lafuente (stronk7) ea438c8d7b Merge branch 'w34_MDL-34776_m23_notinsql' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-08-22 01:56:06 +02:00
Eloy Lafuente (stronk7) bae745aa57 MDL-34866 whitespace fix 2012-08-22 01:50:53 +02:00
Eloy Lafuente (stronk7) 0547143fad Merge branch 'MDL-34866_23' of git://github.com/rlorenzo/moodle into MOODLE_23_STABLE 2012-08-22 01:50:19 +02:00
Dan Marsden 2b062ed6a6 MDL-34994 mod_choice: fix restore of user responses - use correct optionid 2012-08-22 09:04:35 +12:00
Eloy Lafuente (stronk7) 864ca7d700 Merge branch 'w34_MDL-34893_m23_phpunitparams' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-08-21 21:18:44 +02:00
Tim Hunt fa0ed51c0a MDL-35000 quiz: Complete activity report broken by bad require.
Fix the stupid error that caused this. Also, make all the other
require_once calls in the file consistent.
2012-08-21 18:03:14 +01:00
Tim Hunt d7b7aff004 MDL-34733 quiz 'secure' mode: finish review link broken in previews
Here, we use a nasty hack to fix the problem on stable branches without
an API change.
2012-08-21 12:05:52 +01:00
Juho Viitasalo 1923720566 Changed two notification to output correctly 2012-08-21 15:36:34 +08:00
Dan Poltawski 5a566ceac7 Merge branch 'MDL-34691_assign_overdue_by_23' of https://github.com/SWiT/moodle into MOODLE_23_STABLE 2012-08-21 14:37:10 +08:00
Dan Poltawski 82157094e5 Merge branch 'MDL-32705_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-21 12:37:54 +08:00
Dan Poltawski 115ad6cc9e Merge branch 'MDL-34569_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-21 12:35:14 +08:00
Dan Poltawski f6376dcbae Merge branch 'w34_MDL-34901_m23_useraccess' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-08-21 12:02:25 +08:00
Dan Poltawski ed22220593 Merge branch 'MDL-34742-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-08-21 11:59:30 +08:00
Dan Poltawski 8172f3b2d3 MDL-34808 qformat_examview - increment version 2012-08-21 11:05:58 +08:00
Dan Poltawski b02734b77d Merge branch 'MDL-34808_23' of git://github.com/jmvedrine/moodle into MOODLE_23_STABLE 2012-08-21 11:00:49 +08:00
Raymond Wijaya 8c74ab8623 MDL-34887: Add hyperlinks to names in the Assignment's grading table 2012-08-21 10:58:09 +08:00
David Monllao b16b42e9e2 MDL-31496 mod_data Replacing inline styles for CSS classes in templates and browse view 2012-08-21 10:49:03 +08:00
David Monllao d1e338c98b MDL-31496 mod_data Replacing inline styles for CSS classes in text inputs 2012-08-21 10:49:03 +08:00
David Monllao 108dd3376c MDL-31496 mod_data Replacing inline styles for CSS classes in search containers 2012-08-21 10:49:03 +08:00
David Monllao a415852d2b MDL-31496 mod_data Replacing inline styles for CSS classes in textarea elements 2012-08-21 10:49:03 +08:00
Dan Poltawski b747690361 MDL-34738 qformat_blackboard - increment version number 2012-08-21 09:55:50 +08:00
Dan Poltawski d73f22d94e Merge branch 'MDL-34738_23' of git://github.com/jmvedrine/moodle into MOODLE_23_STABLE 2012-08-21 09:42:12 +08:00
Eloy Lafuente (stronk7) 181884b480 Merge branch 'MDL-34941-MOODLE_23_STABLE' of https://github.com/mouneyrac/moodle into MOODLE_23_STABLE 2012-08-21 02:43:10 +02:00
Eloy Lafuente (stronk7) 9b7738c8fb Merge branch 'w34_MDL-34912_m23_description' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-08-21 02:39:58 +02:00
Eloy Lafuente (stronk7) a130109013 Merge branch 'MDL-34889_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-21 02:25:28 +02:00
Eloy Lafuente (stronk7) ac97fc2122 Merge branch 'MDL-34810_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-21 01:36:36 +02:00
Eloy Lafuente (stronk7) 9da82e9ba3 Merge branch 'MDL-29847_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-21 01:28:50 +02:00
Eloy Lafuente (stronk7) 0c6800e771 Merge branch 'MDL-31957-m23' of git://github.com/sammarshallou/moodle into MOODLE_23_STABLE 2012-08-21 01:23:05 +02:00
Eric Merrill 2d0a11ee94 MDL-34985 gradebook Fixing issue where default parent in Full View Add Category could be inconsistent.
Turns out the correct default was already computed, but was not being applied to the setting.
2012-08-20 17:13:10 -04:00
Eloy Lafuente (stronk7) 3dd2dce1cb Merge branch 'w34_MDL-34959_m23_gmapsv3' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-08-20 20:30:27 +02:00
Eloy Lafuente (stronk7) 1c5f24e089 Merge branch 'w34_MDL-34868_m23_gmapsv2' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-08-20 20:18:03 +02:00
Eloy Lafuente (stronk7) 331d346e8f Merge branch 'MDL-34756-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-08-20 16:35:20 +02:00
Eloy Lafuente (stronk7) 8ee474b89e Merge branch 'MDL-28531-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-08-20 16:28:21 +02:00
Jason Ilicic 3f7df55d1c MDL-34529: Fixed ordering of course sections when performing import/restore by adding the sort parameter. 2012-08-20 14:00:26 +02:00
Nathan Mares c6d7689621 MDL-34372: Fix query in backup_cron_helper so it works on Postgres 8.3
Amended by stronk7@moodle.org to use uppercase SQL keywords.
2012-08-20 13:28:37 +02:00
Jean-Michel Vedrine 2e941f3356 MDL-34808 load sample xml file from fixtures in tests 2012-08-20 10:47:31 +02:00
Dan Poltawski bab65024ad Merge branch 'MDL-33362-m23' of git://github.com/ankitagarwal/moodle into MOODLE_23_STABLE 2012-08-20 16:01:21 +08:00
Dan Poltawski dcf82e6079 Merge branch 'MDL-34779-m23' of git://github.com/ankitagarwal/moodle into MOODLE_23_STABLE 2012-08-20 15:59:00 +08:00
Jean-Michel Vedrine f3ad0ed27d MDL-34738 load sample dat file in tests 2012-08-20 09:52:53 +02:00
Michael de Raadt b8cc020064 MDL-34779 settings: Updating lang string corrposnding to the fullnamedisplay setting 2012-08-20 15:44:42 +08:00
Dan Poltawski fc08030d8e Merge branch 'w34_MDL-34873_m23_tagstrict' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-08-20 15:21:26 +08:00
Dan Poltawski 21fcca106d Merge branch 'MDL-34957_M23' of git://github.com/lazydaisy/moodle into MOODLE_23_STABLE 2012-08-20 14:23:28 +08:00
Dan Poltawski 7bb562cdf0 Merge branch 'MDL-34937_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-20 14:19:30 +08:00
Raymond Wijaya ae21b71925 MDL-34377: Fix: assignments overview page shows a unset due date as Epoch and counts draft submissions 2012-08-20 14:11:59 +08:00
Ankit Agarwal 9ff0c0bb84 MDL-33362 book: Parse links to book modules from 1.9 backups 2012-08-20 12:59:19 +08:00
Dan Poltawski 0ec0602415 Merge branch 'MDL-34535-m23' of git://github.com/ankitagarwal/moodle into MOODLE_23_STABLE 2012-08-20 12:06:56 +08:00
Dan Poltawski e013292e25 Merge branch 'wip-MDL-31810-stable23' of git://github.com/phalacee/moodle into MOODLE_23_STABLE 2012-08-20 12:01:32 +08:00
Dan Poltawski f6aabcf0ed Merge branch 'wip-mdl-31734-m23' of git://github.com/rajeshtaneja/moodle into MOODLE_23_STABLE 2012-08-20 11:57:21 +08:00
Dan Poltawski 67f0e8fe87 Merge branch 'MDL-30405-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-08-20 11:39:59 +08:00
Dan Poltawski 854bec4500 Merge branch 'MDL-30370_23' of git://github.com/dmonllao/moodle into MOODLE_23_STABLE 2012-08-20 11:22:26 +08:00
Frederic Massart 70746c433c MDL-34756 Unit Tests: Move backup helper tests 2012-08-20 10:26:16 +08:00
Andrew Davis 39e39bd437 MDL-34406 message: removed an unnecessary string creation 2012-08-20 10:13:53 +08:00
Petr Škoda db6842cca3 MDL-34893 use standard options in Hint_ResultPrinter
This is a very nasty hack!
2012-08-19 22:10:37 +02:00
Petr Škoda 7e84ef4fea MDL-34959 add Google Maps API V3 support 2012-08-19 19:53:06 +02:00
Petr Škoda 778947cd65 MDL-34868 update deprecated Google maps API V2 key info 2012-08-19 18:21:37 +02:00
Jean-Michel Vedrine 1ff3389a54 MDL-34808 qformat examview Add phpunit tests to examview import format 2012-08-19 16:35:21 +02:00
Petr Škoda cf1cb68662 MDL-34901 fix user login times handling 2012-08-19 15:33:59 +02:00
Petr Škoda 123f7f534e MDL-34873 fix multiple E_STRICT tag related problems 2012-08-19 11:19:48 +02:00
Mary Evans c74b1ee8d9 MDL-34957 theme_base: made small change to custommenu CSS in style/core.css to fix vertical arrow overlap in menu item 2012-08-19 01:45:34 +01:00
AMOS bot 9fe39511e2 Automatically generated installer lang files 2012-08-19 00:31:36 +00:00
Petr Škoda 245197ee2d MDL-34864 bump up enrol category sync version 2012-08-18 11:48:05 +02:00
Petr Škoda 3c50224079 MDL-34864 add enrol_category unit tests for sync 2012-08-18 11:47:58 +02:00
Petr Škoda 259aecb26b MDL-34864 improve enrol_category phpdocs 2012-08-18 11:47:47 +02:00
Petr Škoda a2043a3168 MDL-34864 add verbose option to CLI enrol_category sync 2012-08-18 11:39:42 +02:00
Petr Škoda 3d7f23c5e9 MDL-34864 improve enrol_category sync performance 2012-08-18 11:39:42 +02:00
Jean-Michel Vedrine 8a8dd7d8c8 MDL-34738 qformat blackboard: blackboard format is broken 2012-08-18 10:55:26 +02:00
Petr Škoda e3a5ed9dd7 MDL-34776 improve multiple "NOT IN" enrolment and role related queries 2012-08-18 09:57:02 +02:00
Petr Škoda 71a03114e0 MDL-34912 fix invalid descriptionformat default handling 2012-08-18 09:53:03 +02:00
Tim Hunt 3e6b27698d MDL-29847 question preview: garbage collect old preview data.
This adds cron code which looks for question previews that have not been
touched for more than 24 hours, and deletes them.

We try to delete previews immediately. For example if the user clicks
start again, then we immediately delete their previous preview. However,
we can't do that if they just close the preview window. Hence we need
some cron code to clean up old preview that have got left lying around.

Normally, this code will not have much to do, so it will be very fast,
so we can afford to run it every cron.

This has been implemented in such a way that in future it will be easy
to add other cron code to the question bank.

Sadly, to make this work on MySQL, we require a horrible hack in the
already hacky delete_usage_records_for_mysql function.
2012-08-17 10:53:13 +01:00
sam marshall 40f6697f2e MDL-31957 Course reset: Does not erase activity completion data 2012-08-17 10:39:38 +01:00
Jerome Mouneyrac 7a4f9ba8e0 MDL-34941 correct timestamp range: startdate of external fct create_course PHPunit test 2012-08-17 16:15:56 +08:00
Frederic Massart d190fcd9d9 MDL-28531 Unit Tests: Fixed tests to work with core update 2012-08-17 14:45:03 +08:00
Frederic Massart 68576ef61d MDL-28531 Backup: Automated backups run when they are scheduled 2012-08-17 14:45:03 +08:00
Frederic Massart bc2289cd52 MDL-34648 Chat: No more errors when sentence begin with 'To' 2012-08-17 14:44:53 +08:00
Matt Meisberger 054bcf69f6 MDL-34742 - adding ability to move blocks into empty column 2012-08-17 14:44:23 +08:00
Rajesh Taneja a645f67aa5 MDL-31734 Course: removed unused sectiontitle string 2012-08-17 14:33:40 +08:00
Rajesh Taneja bf821575ec MDL-26492 Lesson: lesson_get_user_grades will return grade of all users if userid=0 2012-08-17 14:30:39 +08:00
Rossiani Wijaya 01dbe1fdad MDL-34569 - add label for search wiki input text 2012-08-17 11:33:40 +08:00
Rossiani Wijaya 93dbb62f45 MDL-34569 accessibility compliance for wiki module: Add label for input text and select tag 2012-08-17 11:14:03 +08:00
AMOS bot 16254fffc8 Automatically generated installer lang files 2012-08-17 00:31:50 +00:00
Tim Hunt 20d4ab97c0 MDL-34937 quiz responses reports: attempt grade not shown. 2012-08-16 21:35:44 +01:00
Tim Hunt d1755c12a0 MDL-34702 quiz DB: questiondecimalpoints has wrong default.
Thanks to the folks at UCL for tracking down this problem. It has only
hidden for 2+ years!
2012-08-16 17:35:16 +01:00
Tim Hunt 6247d0a82c MDL-34889 phpunit: progress output in util.php --drop.
It is slow for me, and it is nice to know that something is going on.
2012-08-16 17:00:25 +01:00
Tim Hunt 423030e7dc MDL-34810 question bank: user prefs for some display options
The options that are remembered persistently are
* Also show questions from sub-categories
* Also show old questions
* Show question text in the question list
* Number of questions per page
2012-08-16 16:59:59 +01:00
Eloy Lafuente (stronk7) 7033316dad weekly release 2.3.1+ 2012-08-16 17:26:25 +02:00
Eloy Lafuente (stronk7) 90231b24df Merge branch 'install_23_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_23_STABLE 2012-08-16 17:22:01 +02:00
Eric Merrill 5c57df4c9d MDL-34376 mod_assign Fixing flaw in previous commit with not defining . 2012-08-16 10:07:31 -04:00
sam marshall 1d075eadd9 MDL-34446 Fix bugs in previous commit 2012-08-16 14:48:15 +08:00
Rossiani Wijaya dc5d4f435a MDL-34563 - change string firstname to lastname and add accesshide class 2012-08-16 14:18:04 +08:00
Rossiani Wijaya 8309268b42 MDL-34563 - removed double labeling and add label for input text 2012-08-16 14:17:50 +08:00
Aparup Banerjee 19ab59bcc0 Merge branch 'MDL-34565_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-16 11:51:35 +08:00
Jason Fowler 44d24d1297 MDL-31810 - Fixing unclosed DIV tags throughout Moodle 2012-08-16 10:43:29 +08:00
Tim Hunt c4f0004a0a MDL-32705 backup ui: add select all/none JavaScript on schema screens 2012-08-15 18:10:45 +01:00
Dan Poltawski cfebb1a538 Merge branch 'MDL-34905_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-15 17:54:02 +08:00
Tim Hunt 2a077c0d1b MDL-34905 quiz: missing global $DB;
This code normally only runs when JS is disabled, which is why this was
not noticed before.
2012-08-15 10:32:56 +01:00
David Monllao 25e77f4f73 MDL-30370 mod_forum - Removing duplicate seleted field in the DB query
Credit to Iñigo Zendegi
2012-08-15 17:02:43 +08:00
Rossiani Wijaya 829f5e876a MDL-34565 - remove duplicate labeling 2012-08-15 16:24:14 +08:00
Damyon Wiese 9bdc95b702 MDL-34583: Assignment upgrade loses comments from onlinetext and offline assignment types. 2012-08-15 03:36:51 +02:00
Eloy Lafuente (stronk7) 4ee439dbc2 Merge branch 'MDL-34862_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-15 03:32:44 +02:00
Eloy Lafuente (stronk7) 91986f84c2 Merge branch 'MDL-34539' of git://github.com/danpoltawski/moodle into MOODLE_23_STABLE 2012-08-15 03:23:57 +02:00
Eloy Lafuente (stronk7) e154c1b6da Merge branch 'MDL-34885_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-15 03:16:39 +02:00
AMOS bot 9bf629bb64 Automatically generated installer lang files 2012-08-15 00:31:33 +00:00
Eloy Lafuente (stronk7) 833e135533 Merge branch 'MDL-25347_23' of git://github.com/dmonllao/moodle into MOODLE_23_STABLE 2012-08-15 02:04:10 +02:00
Sam Hemelryk 36e6961fa4 Merge branch 'MDL-33640_23' of git://github.com/MaxThrax/moodle into MOODLE_23_STABLE 2012-08-15 11:48:27 +12:00
Sam Hemelryk a9c8c1c951 Merge branch 'MDL-33531_23' of git://github.com/dmonllao/moodle into MOODLE_23_STABLE 2012-08-15 11:22:08 +12:00
Dan Poltawski 02d8fb146d MDL-29192 - clarify email_to_user call 2012-08-15 01:17:32 +02:00
Eloy Lafuente (stronk7) 6c20303ee1 Merge branch 'w33_MDL-34782_m23_mysqlunsigned' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-08-14 23:10:24 +02:00
Eloy Lafuente (stronk7) 12445b37fc Merge branch 'MDL-34829' of git://github.com/danpoltawski/moodle into MOODLE_23_STABLE 2012-08-14 22:55:56 +02:00
Eloy Lafuente (stronk7) 428b30ce5e Merge branch 'MDL-34783-MOODLE_23_STABLE-1' of git://git.luns.net.uk/moodle into MOODLE_23_STABLE 2012-08-14 22:45:34 +02:00
Rex Lorenzo 90c510cf9d MDL-34866 - Make "course display" default a site configurable option
* Moved COURSE_DISPLAY_SINGLEPAGE and COURSE_DISPLAY_MULTIPAGE constants from courselib to moodlelib.php
* Using course display constants in course default admin setting page
2012-08-14 12:12:47 -07:00
Tim Hunt ba338db5b5 MDL-34885 phpunit: better cygwin detection.
For some reason, on my computer, $_SERVER['SHELL'] was not set, so I
changed the test to also consider $_SERVER['TERM']. This now works for
me.
2012-08-14 14:12:06 +01:00
Aparup Banerjee 38ace2266f Merge branch 'wip-MDL-34748-MOODLE_23_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_23_STABLE 2012-08-14 15:30:03 +08:00
Ankit Agarwal 8e017950e9 MDL-34535 message: userto should use is_number instead of is_init 2012-08-14 14:42:11 +08:00
Aparup Banerjee 69e0f5049f Merge branch 'MDL-34563_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-14 14:34:43 +08:00
Rossiani Wijaya 1f65a01980 MDL-34563 - change plural strings and removed colon for accesshide label 2012-08-14 13:58:23 +08:00
Aparup Banerjee 37fbfb0dda Merge branch 'MDL-34565_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-14 13:53:34 +08:00
Dan Poltawski b92d962c3f Merge branch 'MDL-34728_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-14 13:33:08 +08:00
Dan Poltawski 9a77ed006f Merge branch 'MDL-34793_m23' of git://github.com/merrill-oakland/moodle into MOODLE_23_STABLE 2012-08-14 13:25:38 +08:00
Eric Merrill 2a5378d2c6 MDL-34793 mod_assign Fix rendering error that causes student view to break in some cases.
When feedback is switched on for a assignment, and the teacher enters a grade through the gradebook, the student
view would become broken, throwing a coding error. Added check that $status->grade is not empty before passing
to assign_feedback_XXX::is_empty(), as that function expects an object.
2012-08-14 00:40:55 -04:00
Adam Olley 6353a60ed3 MDL-34870: Prevent cohort enrol sync when updating course record 2012-08-14 13:58:41 +09:30
Dan Poltawski e85500a8bf Merge branch 'MDL-34807_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-14 12:08:04 +08:00
Rajesh Taneja d54294de34 MDL-32759 Assignment: Grades will not be scaled for new assignment module, and added warning message for user 2012-08-14 11:40:18 +08:00
Rajesh Taneja b5cbe52bfc MDL-32759 Assignment 2.2: Changing grade for existing assignments will show warning that grades will not be scaled 2012-08-14 11:40:18 +08:00
Dan Poltawski 894446f7fd MDL-34539 course - allow negative section numbers
This gives course format authors more flexibility.

Thanks to Itamar Tzadok for the suggestion.
2012-08-14 11:34:19 +08:00
Rex Lorenzo 5b918d0101 MDL-34866 - Make "course display" default a site configurable option 2012-08-13 16:26:01 -07:00
Aaron Barnes 25e107e5a2 MDL-34795 completion: Add course_completed event 2012-08-14 10:16:40 +12:00
Tim Hunt 94dd25e03b MDL-34862 question preview: improve preview ownership check.
Users should only be able to access their own quetion preview. In the
past, for reasons I can no longer remember, this was enforced
using the session. It is much better to set the question_usage to belong
to the user's context.
2012-08-13 17:44:17 +01:00
Tim Hunt 0a571db22b MDL-34807 question bank: navigation loses place.
The symptom is that where we are now is not shown in the settings
navigation. However, the underlying cause is that question/edit.php is
doing some crazy thing of its own to build $PAGE->url, rather than using
the one returned by question_edit_setup.

Not that this patch itentionally removes the returnurl param. It was
added as part of a big change MDL-20276, which I think just got this
detail wrong. That variable is never used.
2012-08-13 11:29:43 +01:00
Tim Hunt 3350475e36 MDL-34728 forms: woy for other JS to trigger disableIf update.
This was discovered while working on MDL-32705. If some JavaScript (for
example a select all/none link) changes the state of some form fields,
then the disabledIf state of other form elements does not automatically
update.

The existing form JS was so well encapsulated that this was impossible.
This change pokes a hole in the encapsulation, and provides an API
    M.form.updateFormState(formid);
that other bits of JS code can call when necessary.
2012-08-13 11:19:01 +01:00
Rossiani Wijaya ee53ceb3eb MDL-34563 accessibility compliance for data module: Add forform input text and select tag 2012-08-13 15:13:54 +08:00
Rossiani Wijaya 33222ed24a MDL-34565: change to plural strings 2012-08-13 15:12:00 +08:00
Rossiani Wijaya 37102468f7 MDL-34565 accessibility compliance for forum module: Add forform input text and select tag 2012-08-13 15:12:00 +08:00
Marina Glancy ff21775823 MDL-34748 repository_filesystem: Sort files by title by default 2012-08-13 11:57:55 +08:00
sam marshall c5cf1bc090 MDL-34446 Completion report: Add sideways text support to more browsers 2012-08-13 10:44:28 +08:00
Dan Poltawski 78a4cef1e7 Merge branch 'MDL-34376_m23' of git://github.com/merrill-oakland/moodle into MOODLE_23_STABLE 2012-08-13 10:33:16 +08:00
Dan Poltawski abef93f5c9 Merge branch 'MDL-34835_M23' of git://github.com/lazydaisy/moodle into MOODLE_23_STABLE 2012-08-13 10:20:27 +08:00
Dan Poltawski a572657497 Merge branch 'MDL-34543_m23' of git://github.com/merrill-oakland/moodle into MOODLE_23_STABLE 2012-08-13 10:03:47 +08:00
AMOS bot d077d1a024 Automatically generated installer lang files 2012-08-11 00:31:30 +00:00
Mary Evans d8ceb62387 MDL-34835 theme_fusion: fixed displaced navbar by extending #region-header.inside bottom margin by 70px in style/pagelayout.css 2012-08-10 20:31:57 +01:00
Petr Škoda bd3306f5cd MDL-34782 detect code abusing integer limits in mysql database
It is allowed to store only ranges specified in install.xml, for integers it means number of digits specified in size.
2012-08-10 10:20:27 +02:00
Dan Poltawski ef38e70c41 MDL-34829 course - allow directly linked sections to work.
Even if not in single section mode.
2012-08-10 14:19:45 +08:00
David Monllao 15343304d2 MDL-25347 blog Checking association capability at course and module levels instead of system level 2012-08-10 08:48:57 +08:00
David Monllao 3de32f8558 MDL-33531 backup Added format_string to course shortname 2012-08-10 08:40:18 +08:00
David Monllao 4af5c4ebf5 MDL-33531 backup Avoiding possible Notice 2012-08-10 08:40:18 +08:00
Lorenzo Nicora 203e8d4032 MDL-33531 Fixed the regexp to find old backup files, considering backup_shortname backup option 2012-08-10 08:40:18 +08:00
AMOS bot e9a743d385 Automatically generated installer lang files 2012-08-10 00:31:47 +00:00
Eloy Lafuente (stronk7) e6aac11d94 weekly release 2.3.1+ 2012-08-09 20:51:56 +02:00
Eloy Lafuente (stronk7) 8ff9b91e9f Merge branch 'install_23_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_23_STABLE 2012-08-09 20:46:02 +02:00
Tim Hunt 4c0d64860a MDL-34590 javascript-static: nuclear option in openpopup
I think we have finally tamed Chrome on all platforms. (Crosses fingers.)
2012-08-09 17:17:36 +02:00
AMOS bot 081889f26b Automatically generated installer lang files 2012-08-09 00:31:36 +00:00
Paul Nicholls 55c91c8760 MDL-33640 - change $templatesinitialized to an array; improve naming and automate use of template
* $templatesinitialized is now an array, so that subsequent calls to initialise_filepicker which request different repositories will include those (and only those) templates which it requires but have not yet been included
* The get_template method has also been renamed to get_upload_template (and the template to "uploadform_" followed by the repository type), since it only applies to upload forms
* If a plugin provides a get_upload_template method, the template it returns will now automatically be used instead of the standard uploadform template when generating an upload form
2012-08-09 09:43:53 +12:00
Eric Merrill 383639a5ef MDL-34376 mod_assign Omit assigns with no due date from print_overview.
Modify assign_print_overview to omit assigns that have no due date set, in line with behaviour
in 2.2 and other tools.
2012-08-08 10:05:19 -04:00
Andrew Robert Nicols 55a2b03ef1 MDL-34783 Retrieve the sectioncache parameter for enrolled courses in the course_overview block
The sectioncache field is used by course_modinfo and without it, the
modinfo cache is repeatedly reset.
2012-08-08 10:54:24 +01:00
Dan Poltawski f37cd67ded Merge branch 'MDL-34575_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-08 12:33:40 +08:00
Paul Nicholls c258605a8d MDL-33640 - Add ability to use custom filepicker templates
Allow repository plugins to register a template by defining a get_template() method, coupled with the ability to request the template be used by create_upload_form() instead of the standard 'uploadform' template.  The template is automatically registered using the plugin's name, and core templates will override any which clash; this also means that a theme can override these templates in a custom renderer if it wants to.
2012-08-08 15:54:42 +12:00
Rossiani Wijaya 25f8e4f241 MDL-34575: fixed string typo and string duplication for label 2012-08-08 11:37:40 +08:00
Dan Marsden 8dc49e14c4 MDL-34656 prevent login form from being shown inside iframe - also prevent wantsurl from being set to loadsco.php which isn't a valid page for initial load. 2012-08-08 02:00:23 +02:00
Eloy Lafuente (stronk7) 7abe8c31a6 Merge branch 'MDL-34704_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-08 01:53:22 +02:00
Eloy Lafuente (stronk7) 02d6791d05 Merge branch 'wip-mdl-30792-m23' of git://github.com/rajeshtaneja/moodle into MOODLE_23_STABLE 2012-08-08 01:00:54 +02:00
Charles Fulton ed10bfb2b0 MDL-32023 wiki: remove hard-coded edit string 2012-08-08 00:29:07 +02:00
Charles Fulton c86262ed73 MDL-29129 wiki: fix a hardcoded string 2012-08-07 23:59:17 +02:00
Eric Merrill 4c60068485 MDL-34543 mod_assign Fixing problem where previous feedback does not populate when you re-enter the grading view. add_plugin_grade_elements() was expecting grade object, but was being given grade string. 2012-08-07 10:21:28 -04:00
Tim Hunt 57f9291b23 MDL-34727 restore UI: use checkboxes for userdata.
It was using select menus for the convenience of the code, but the
inconvenience of users.

The way this fix is done is a bit hacky, but it works, makes users'
lives much better, but it would be good if someone would dehackify
this in the future.
2012-08-07 11:38:41 +01:00
Aparup Banerjee e203643539 Merge branch 'm23_MDL-33942' of git://github.com/danmarsden/moodle into MOODLE_23_STABLE 2012-08-07 15:58:25 +08:00
Aparup Banerjee 5b74170932 Merge branch 'MDL-34566_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-07 15:07:51 +08:00
Aparup Banerjee 16daaa05b6 Merge branch 'MDL-34564_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-07 14:57:54 +08:00
Aparup Banerjee b21388d6db Merge branch 'MDL-34560_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-07 14:45:46 +08:00
Aparup Banerjee 16a8d4d4ba Merge branch 'MDL-34559_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-07 14:37:05 +08:00
Aparup Banerjee e83629096b Revert "Merge branch 'MDL-28531-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE"
This reverts commit 162510801f, reversing
changes made to 5af69f5282.
2012-08-07 14:27:55 +08:00
Aparup Banerjee 162510801f Merge branch 'MDL-28531-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-08-07 13:58:15 +08:00
Rossiani Wijaya 74b83c18fb MDL-34559: removing accesshide class 2012-08-07 13:36:43 +08:00
Aparup Banerjee 5af69f5282 Merge branch 'MDL-34715-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-08-07 10:42:11 +08:00
Dan Poltawski ec28569e5c Merge branch 'MDL-34562_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-07 10:16:50 +08:00
Dan Poltawski 1089612634 Merge branch 'MDL-34567_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-07 10:03:18 +08:00
Aparup Banerjee 04e428f9ae Merge branch 'MDL-22663-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-08-07 10:00:49 +08:00
Aparup Banerjee b418329b7d Merge branch 'MDL-33022' of git://github.com/danpoltawski/moodle into MOODLE_23_STABLE 2012-08-07 09:23:48 +08:00
Dan Poltawski 6f74e5b2f6 Merge branch 'wip-MDL-34669-MOODLE_23_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_23_STABLE 2012-08-07 08:48:38 +08:00
Dan Poltawski ebc5b65ab3 MDL-34600 upgrade.php - fix trailing whitespace 2012-08-07 08:43:07 +08:00
Petr Škoda b97532dd8e MDL-34600 fix question table to match install.xml
The oldquestiontextformat was used during previous upgrade and is not necessary any more.
Next time we should add these temporary upgrade columns to install.xml files.
2012-08-07 08:43:06 +08:00
AMOS bot d8ff3aae9f Automatically generated installer lang files 2012-08-07 00:31:55 +00:00
Tomasz Muras 9881439068 MDL-31753 Get correct course ID for Community finder search link. 2012-08-07 02:13:44 +02:00
Eloy Lafuente (stronk7) 9064a9af71 Merge branch 'w32_MDL-34601_m23_wikischema' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-08-06 21:16:50 +02:00
Kirill Astashov 5f2f276f82 MDL-34669: Fix editor filepicker context bt trying to use page context 2012-08-06 16:58:44 +08:00
Aparup Banerjee 1e778228a8 Merge branch 'MDL-31599-23' of git://github.com/danpoltawski/moodle into MOODLE_23_STABLE 2012-08-06 16:43:55 +08:00
Aparup Banerjee b42abe0ffc Merge branch 'MDL-34716' of git://github.com/danpoltawski/moodle into MOODLE_23_STABLE 2012-08-06 16:38:04 +08:00
Rossiani Wijaya 2ab9801b19 MDL-34562 accessibility compliance for chat module: Add <label> for input text and select tag 2012-08-06 16:26:28 +08:00
Dan Poltawski f70df26e40 Merge branch 'MDL-34561_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-06 15:49:12 +08:00
Rossiani Wijaya ac1bbfa1cd MDL-34561 accessibility compliance for assignment module: add accesshide class 2012-08-06 15:07:52 +08:00
Dan Poltawski 6faa04b522 Merge branch 'MDL-34707_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-06 14:42:13 +08:00
Charles Fulton cf162f9332 MDL-34629 wiki: convert default format value during restore 2012-08-06 14:19:45 +08:00
Dan Poltawski e0a555a3a3 Merge branch 'MDL-34561_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-06 14:08:54 +08:00
Dan Poltawski 0e5acac2d8 Merge branch 'MDL-25983_23' of git://github.com/dmonllao/moodle into MOODLE_23_STABLE 2012-08-06 13:52:55 +08:00
Dan Poltawski efff50c096 Merge branch 'MDL-34259-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-08-06 12:21:41 +08:00
Dan Poltawski e1bc047bdb Merge branch 'MDL-34574_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-06 12:12:29 +08:00
Dan Poltawski ea22072a62 MDL-34575 lang/notes: reorder string to be alphabetical 2012-08-06 12:09:07 +08:00
Dan Poltawski 824dfb24bd Merge branch 'MDL-34575_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-06 12:06:40 +08:00
Dan Poltawski 00cb41c2ba Merge branch 'MDL-34558_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-06 11:54:09 +08:00
Dan Poltawski 61e520aefc Merge branch 'MDL-34557_accessibility_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-08-06 11:49:51 +08:00
Dan Poltawski f7cecf982f Merge branch 'MDL-34705_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-06 11:31:38 +08:00
Dan Poltawski a767fce382 Merge branch 'w32_MDL-34635_m23_selfwelcommultilang' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-08-06 11:29:30 +08:00
Dan Poltawski cfe10a4698 Merge branch 'MDL-28207-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-08-06 10:40:40 +08:00
Dan Poltawski 01672d5de5 Merge branch 'MDL-34590_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-08-06 10:11:24 +08:00
Dan Poltawski 65e06b77a8 Merge branch 'MDL-34405_m23' of git://github.com/kordan/moodle into MOODLE_23_STABLE 2012-08-06 10:06:24 +08:00
Dan Poltawski 7c4bfa5ec7 Merge branch 'w32_MDL-34585_m23_blogfiles' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-08-06 09:45:56 +08:00
Dan Poltawski d939a4dec8 MDL-28486 - tests: fix broken youtube tests 2012-08-06 09:27:55 +08:00
Sam Hemelryk f52c5f8b6a Merge branch 'MDL-34708_m23' of git://github.com/nebgor/moodle into MOODLE_23_STABLE 2012-08-06 12:05:08 +12:00
Sam Hemelryk a34c42bd5e Merge branch 'MDL-28486-MOODLE_23_STABLE-1' of git://git.luns.net.uk/moodle into MOODLE_23_STABLE 2012-08-06 11:58:45 +12:00
Sam Hemelryk 98aa996a00 Merge branch 'MDL-34658-23' of git://github.com/grabs/moodle into MOODLE_23_STABLE 2012-08-06 11:44:24 +12:00
Andreas Grabs 5f152b5c90 MDL-34670 - undefined variable in feedback templates 2012-08-06 11:36:56 +12:00
Sam Hemelryk 3d84e69328 Merge branch 'MDL-34645_23' of git://github.com/aolley/moodle into MOODLE_23_STABLE 2012-08-06 11:04:57 +12:00
Sam Hemelryk 9d705d4901 Merge branch 'MDL-34647_23' of git://github.com/aolley/moodle into MOODLE_23_STABLE 2012-08-06 10:58:44 +12:00
Aparup Banerjee 2018163468 MDL-34708 Forms library : Fixed incorrect calendar day displayed across timezones. Credit to Matthew Davidson and team at rose-hulman.edu. 2012-08-05 23:32:17 +08:00
Rossiani Wijaya 142b18a835 MDL-34560 accessibility compliance for message: Add label for input text and select tag 2012-08-04 17:03:39 +08:00
AMOS bot abdc9e17fa Automatically generated installer lang files 2012-08-04 00:31:59 +00:00
Tim Hunt e071bc1aa4 MDL-34704 couse, accesslib: improve $CFG->courselistshortnames
1. get_context_name should respect the $CFG->courselistshortnames
setting.

2. When $CFG->courselistshortnames is on, what to display should use a
language string, rather than string concatenation. This makes it
possible for people to configure the display. For example, they might
want 'My first course [M101]' instead of 'M101 My first course'.
2012-08-03 14:43:30 +01:00
Tim Hunt 2963abadf9 MDL-34590 javascript-static: full-screep popups for Chrome.
I have left in both:
1. the code to get the window size correct initially, becuase that seems
sensible; and
2. the subsequent resize (with the setTimeout that Chrome requires,
thanks Jeff Rader for finding that) becuase on Chrome, it gets the size
a bit too big initially, so this correction is necessary.
2012-08-03 13:21:44 +01:00
Andreas Grabs 4d8138c96a MDL-34658 - Saving failed because missing or false values 2012-08-03 12:01:21 +02:00
AMOS bot 7a0664fbb4 Automatically generated installer lang files 2012-08-03 11:45:29 +02:00
Dan Poltawski e1d2c7452b MDL-34716 outcomes: Fix admin tree location 2012-08-03 16:06:54 +08:00
Frederic Massart a602649f8f MDL-22663 Repository: WebDAV supports Digest authentication 2012-08-03 14:03:20 +08:00
Frederic Massart 85a9d23d91 MDL-22663 Repository: WebDAV supports SSL and chunked data 2012-08-03 13:55:07 +08:00
Frederic Massart 3f995bef7a MDL-22663 Repository: Fixed strict standards notices in WebDAV lib 2012-08-03 13:55:01 +08:00
Rossiani Wijaya 1445fd1337 MDL-34575 accessibility compliance for notes: Add form input text and select tag 2012-08-03 13:36:27 +08:00
Rossiani Wijaya 0f9992ca66 MDL-34574 accessibility compliance for mymobile theme: Add forform input text and select tag 2012-08-03 12:01:50 +08:00
Rossiani Wijaya 08e03a695a MDL-34566 accessibility compliance for glossary module: Add forform input text and select tag 2012-08-03 12:01:43 +08:00
Rossiani Wijaya 077e06f621 MDL-34567 accessibility compliance for lesson module: Add forform input text and select tag 2012-08-03 12:01:43 +08:00
Rossiani Wijaya d0d9c135e1 MDL-34564 accessibility compliance for feedback module: Add forform input text and select tag 2012-08-03 12:01:41 +08:00
Rossiani Wijaya 519adbc684 MDL-34561 accessibility compliance for assignment module: Add forform input text and select tag 2012-08-03 12:01:38 +08:00
Rossiani Wijaya aa15bd56d6 MDL-34559 accessibility compliance for grade: Add forform input text and select tag 2012-08-03 12:01:36 +08:00
Rossiani Wijaya f81c3a32f0 MDL-34558 accessibility compliance for filter: Add forform input text and select tag 2012-08-03 12:01:35 +08:00
Rossiani Wijaya daeee0afae MDL-34557 accessibility compliance for enrol: Add forform input text and select tag 2012-08-03 12:01:34 +08:00
Rajesh Taneja 6ecbacac00 MDL-30792 Files API: Cleaner approach to get maxbytes size in filepicker 2012-08-03 11:36:38 +08:00
Rajesh Taneja d3e1371030 MDL-30792 Files API: maxbytes will be set by get_max_upload_file_size if less then 0 or greater then max moodle limit 2012-08-03 11:36:32 +08:00
Frederic Massart e9ec895d92 MDL-28531 Backup: Automated backups run when they are scheduled 2012-08-03 09:30:27 +08:00
Frederic Massart 6ce946c561 MDL-34259 Lesson: True/false questions don't break on missing answer 2012-08-03 09:23:23 +08:00
Frederic Massart 84af4013c1 MDL-28207 Course: Showing/hiding/marking a section respect capabilities 2012-08-03 09:21:29 +08:00
Tim Hunt 7d45268bc6 MDL-34707 backup UI: only include the JS once. 2012-08-02 18:48:03 +01:00
Tim Hunt 46c770079d MDL-34705 role assignments list: should link to contexts.
This will make Admin's lives a bit easier.
2012-08-02 18:15:50 +01:00
Petr Škoda 3a933cdf10 MDL-34585 fix broken blog file access control 2012-08-02 09:58:50 +02:00
Petr Škoda 137bd7a8b5 MDL-34601 drop legacy wiki upgrade tables
Next time please keep db in sync with install.xml at all times.
2012-08-02 09:56:05 +02:00
Dan Marsden 605d6ffcf4 MDL-33942 Grading method: Marking Guide - check for $cm before using - may not exist if the course is being deleted. 2012-08-02 19:51:24 +12:00
Petr Škoda 56eda1f10a MDL-34635 support multilang in self enrol course welcome message
Includes also new help string for the custom multilang placeholders by Helen Foster.
2012-08-02 09:39:20 +02:00
David Monllao 4a5e1f9d4b MDL-25983 enrol_imsenterprise Importing the course summary when adding new courses 2012-08-02 15:34:42 +08:00
Dan Poltawski 02814bfc18 weekly release 2.3.1+ 2012-08-02 14:38:49 +08:00
Dan Poltawski 709efab527 MDL-31599 block_news - incorrect RSS feed for guest user
Was previously using the userid 0, rather than guest to use
authenticated RSS feed.

Thanks to Paul Verrall at LUNS for helping me debug this.
2012-08-02 11:11:29 +08:00
Dan Marsden c91dc553e5 MDL-33022 mod_form: set correct groupid when editing an existing post 2012-08-02 10:47:23 +08:00
Matt Switlik 8b9416de53 MDL-34691 assign: Time remaining "Assignment is overdue" was incorrectly being displayed when a student viewed a submitted assignment after the due date. 2012-08-01 17:07:02 -04:00
Petr Škoda b093fd5e5a MDL-34368 fix another validuntil condition 2012-08-01 15:06:55 +08:00
Dan Poltawski 4486aa99be MDL-34444 course: Dont display links to hidden sections
This is what happens when you dont use the navigation api
2012-08-01 10:31:46 +08:00
Dan Poltawski 87a31bb5d8 MDL-34444 course: show section availability info
When available, rather than a capability error.
2012-08-01 10:31:16 +08:00
Sam Hemelryk 90105eb95a Merge branch 'MDL-34534-MOODLE_23_STABLE' of https://github.com/micaherne/moodle into MOODLE_23_STABLE 2012-08-01 13:21:03 +12:00
Dan Poltawski 06d38548b1 MDL-34599 mod_quiz: optional $thispage & $nextpage
The previous change making the params required was a regression.
2012-08-01 09:06:54 +08:00
Charles Fulton b44ae5fb0a MDL-29909 wiki: do not show groups when no groups present 2012-08-01 12:40:02 +12:00
Dan Poltawski 633ed1edae Merge branch 'MDL-32791_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-31 17:46:20 +08:00
Dan Poltawski 07cf0887fd Merge branch 'MDL-34599_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-31 17:42:50 +08:00
Rossiani Wijaya 0fa95a3c97 MDL-34556 accessibility compliance for course: Add forform input text and select tag 2012-07-31 17:17:15 +08:00
Rossiani Wijaya 81ff28e7e6 MDL-34555 accessibility compliance for calendar: Add forform input text and select tag 2012-07-31 17:11:06 +08:00
Rossiani Wijaya 8291579200 MDL-34554 accessibility compliance for blocks: Add forform input text and select tag 2012-07-31 17:05:13 +08:00
Rossiani Wijaya 61e3665a15 MDL-34553 accessibility compliance for authentication: Add forform input text and select tag 2012-07-31 16:55:38 +08:00
Rossiani Wijaya 4233aac1e3 MDL-34552 accessibility compliance for admin: Add forform input text and select tag 2012-07-31 16:34:22 +08:00
Andrew Robert Nicols 548b7112a2 MDL-28486 Force use of SSL for all youtube and vimeo embeds
If a page is served over SSL (https), then any content loaded from non-SSL
sources (e.g. http://youtube.com/) will cause errors to show in the
browser. To prevent this, it's best to use the SSL equivelants where they
exist (e.g. https://youtube.com/).

Unfortunately, it isn't possible to accurately determine whether the
current page is loaded over an SSL connection or not in Moodle.

Since including content from an external SSL site on a non-SSL moodle page
does not lead to browser warnings, but non-SSL external content on an SSL
moodle page does, we always use SSL where available.

Note: This does not lead to any additional processing requirements for the
moodle site.
2012-07-31 09:27:00 +01:00
Aparup Banerjee 971937e7d0 MDL-34650 added MDLs to todo comment and deprecation comment.
(also triggering an amos script here for the other MDL-34650 commit)

AMOS BEGIN
  CPY [minute,form],[minute,core]
  CPY [month,form],[month,core]
  CPY [options,editor],[options,core]
  CPY [selectacourse,backup],[selectacourse,core]
AMOS END
2012-07-31 15:40:07 +08:00
Aparup Banerjee 28557dc456 MDL-34650 typo correction 2012-07-31 13:23:55 +08:00
Aparup Banerjee 4a5780ffde Merge branch 'MDL-34650_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-07-31 13:20:24 +08:00
Sam Hemelryk acb533009f Merge branch 'MDL-34528_M23' of git://github.com/lazydaisy/moodle into MOODLE_23_STABLE 2012-07-31 16:49:31 +12:00
Sam Hemelryk 3c3cf6daac Merge branch 'MDL-32499_23' of git://github.com/dmonllao/moodle into MOODLE_23_STABLE 2012-07-31 16:29:51 +12:00
Sam Hemelryk fe2ff1e8a0 Merge branch 'MDL-32931_23' of git://github.com/dmonllao/moodle into MOODLE_23_STABLE 2012-07-31 16:18:50 +12:00
Sam Hemelryk dddd0d7a38 Merge branch 'MDL-32827-m23' of git://github.com/ankitagarwal/moodle into MOODLE_23_STABLE 2012-07-31 16:15:59 +12:00
Rossiani Wijaya 2a336b5ef1 MDL-34650 - accessibility compliance: Add <label> for form input text and select tag 2012-07-31 12:09:18 +08:00
Dan Poltawski 1de0c00eb6 Merge branch 'MDL-25953-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-07-31 12:01:56 +08:00
Ankit Agarwal 669f274735 MDL-32827 calendar: update eventtype of broken event in bulk instead of doing it one by one 2012-07-31 11:24:15 +08:00
Dan Poltawski 3fb4392ee0 Merge branch 'MDL-34624_M23' of git://github.com/lazydaisy/moodle into MOODLE_23_STABLE 2012-07-31 11:10:36 +08:00
Dan Poltawski 8bf442dc73 Merge branch 'MDL-34532_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-31 10:43:10 +08:00
Dan Poltawski 472b9a46ab Merge branch 'MDL-34255_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-07-31 10:31:49 +08:00
Jerome Mouneyrac 1b158ee8c9 MDL-33869 user_get_user_details: add support for 'Show user identity' fields set by administrator 2012-07-31 10:26:22 +08:00
Crafton Williams 2a3a22a46d MDL-33869 user_get_user_details: allow return of idnumber 2012-07-31 10:25:21 +08:00
Dan Poltawski 89babfaefa Merge branch 'm23_MDL-34440' of git://github.com/danmarsden/moodle into MOODLE_23_STABLE 2012-07-31 10:07:05 +08:00
Adam Olley 5aba3d6df9 MDL-34647: admintool: uploaduser enrolments now obey enrolperiod directive 2012-07-31 11:36:57 +09:30
Adam Olley 10813a0c78 MDL-34645: enrol_manual: enrolment init to pass default duration setting 2012-07-31 11:10:41 +09:30
Dan Poltawski c04ddf28f8 Merge branch 'MDL-34483_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-31 09:12:23 +08:00
Sam Hemelryk d4533f6215 Merge branch 'MDL-34494_m23' of git://github.com/kordan/moodle into MOODLE_23_STABLE 2012-07-31 12:43:32 +12:00
Sam Hemelryk eec3d1869d Merge branch 'MDL-28568_noncontact_warning_23' of git://github.com/andyjdavis/moodle into MOODLE_23_STABLE 2012-07-31 12:00:42 +12:00
Tim Hunt 0b7dfe12ed MDL-34483 qformat_examview: Commit example file.
Supplied by Rick Jerz.
2012-07-30 11:57:29 +01:00
Fred Woolard 7ae8f60489 MDL-34440 Site registration failing with mysqli 2012-07-30 20:06:22 +12:00
Dan Poltawski 46895999f0 Merge branch 'mdl34368' of https://bitbucket.org/ngmares/moodle into MOODLE_23_STABLE 2012-07-30 15:49:12 +08:00
Dan Poltawski b700c34f14 Merge branch 'MDL-34507-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-07-30 14:04:54 +08:00
Dan Poltawski 1ab970d492 Merge branch 'MDL-34589_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-30 13:55:50 +08:00
Nadav Kavalerchik db8e600a23 MDL-34513 - RTL Theme fixes for Moodle 2 (theme/mymobile)
+ Right align frontpage course list
+ right align activity and resource titles
+ Two Columns on/off slider fix
+ Right align content in Blocks
+ Fix checkbox question types in quiz
+ Right align titles of fields in Forms
+ minor ui tweaks
2012-07-30 13:52:58 +08:00
Dan Poltawski c5b133f790 Merge branch 'MDL-33537_23' of git://github.com/dmonllao/moodle into MOODLE_23_STABLE 2012-07-30 13:46:33 +08:00
Dan Poltawski acbbf4157d Merge branch 'w31_MDL-34538_m23_validatefloats' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-30 12:35:10 +08:00
Dan Poltawski af433c5b52 Merge branch 'MDL-31509_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-30 12:15:49 +08:00
Andrew Robert Nicols ca4548c1c2 MDL-34433 Check for existence of e and e.target in set_form_changed
This is required for cases when code directly calls set_form_changed as
happens with the filepicker.
2012-07-30 12:09:50 +08:00
Dan Poltawski 7c52ee5027 Merge branch 'wip-mdl-34239-m23' of git://github.com/rajeshtaneja/moodle into MOODLE_23_STABLE 2012-07-30 12:05:25 +08:00
Dan Poltawski 6fe575509e Merge branch 'MDL-34519_23_course_reset_patch' of git://github.com/rlorenzo/moodle into MOODLE_23_STABLE 2012-07-30 11:57:41 +08:00
Mary Evans f785edd9e2 MDL-34528 theme_canvas: Removed redundent exclude stylesheet configurations from CANVAS theme 2012-07-29 21:42:04 +01:00
kordan dacc63f1ae MDL-34494 theme_formal_white: replaced old style core_renderer::MAIN_CONTENT_TOKEN with $OUTPUT->main_content() 2012-07-29 16:40:29 +02:00
kordan 899fe64867 MDL-34405 theme_formal_white: added background for quiz overview 2012-07-29 15:59:54 +02:00
Mary Evans 0e3c86746f MDL-34624 theme_base: added background-color to style/admin.css for role edit default 2012-07-29 14:54:00 +01:00
Tim Hunt d1d989ce13 MDL-31509 quiz outcomes: let people associate quizzes with outcomes.
The quiz does not really support outcomes, but even so in 1.9 you could
select outcomes on the quiz edit form, and apparently this was useful to
some people, therefore we should re-enable it.
2012-07-27 18:09:49 +01:00
Petr Škoda 009933e28c MDL-34538 fix PARAM_FLOAT validation 2012-07-27 18:45:43 +02:00
Petr Škoda f2fd3f3138 MDL-34538 add float validation tests 2012-07-27 18:45:43 +02:00
Tim Hunt de53bada57 MDL-32791 quiz db: clean up garbage data that was causing problems.
Melinda Kraft reported having rows in their quiz_question_instances
table which caused various problems. These rows are meaningless, so I
have done a DB upgrade step to clean them up, which should deal with the
bad side-effets they were causing.
2012-07-27 16:45:04 +01:00
Jean-Michel Vedrine e3f79e9347 MDL-34483 qformat_examview: handle more questions.
These fixes come from testing with the example file supplied by Rick
Jerz.
2012-07-27 12:20:13 +01:00
Jean-Michel Vedrine 0940ba1f16 MDL-34483 qformat_examview: clean the code to make codechecker happy 2012-07-27 12:20:11 +01:00
Jean-Michel Vedrine 53f2f306dd MDL-34483 qformat_examview: changes required to make it basically work. 2012-07-27 12:20:10 +01:00
Tim Hunt a361ff5645 MDL-34599 quiz attempts: more robust if page number out of range.
Rather than throwing an exception, we should just show the first/last
page of the quiz if the page number is out-of-range.
2012-07-27 11:43:40 +01:00
Rajesh Taneja def687a6a2 MDL-34239 Blog: Editing blog associated with module will be keep it's association 2012-07-27 14:01:47 +08:00
Ankit Agarwal 41499f832b MDL-32827 calendar: Bumping the version 2012-07-27 11:50:37 +08:00
Ankit Agarwal 0bdf18a7c9 MDL-32827 calendar: Added logic to handle calendar events with empty eventtypes during restore 2012-07-27 11:49:20 +08:00
Ankit Agarwal fcda7dbb89 MDL-32827 calendar: Fixining calender entries with no eventtype 2012-07-27 11:47:50 +08:00
Frederic Massart df9b10e10a MDL-25953 Repository: Amazon S3 supports sub directories 2012-07-27 10:52:16 +08:00
Frederic Massart b3b35530f9 MDL-25953 Repository: Updated Amazon S3 library 2012-07-27 10:52:16 +08:00
Frederic Massart 9480023733 MDL-34507 Repository: Better support for 'any' accepted filetypes 2012-07-27 10:16:30 +08:00
David Monllao e8790310bb MDL-32931 mod_forum Polishing patch and taking into account courses without previous accesses 2012-07-27 09:23:18 +08:00
Tom Lanyon 3b6573536c MDL-32931 mod_forum Change forum overview to avoid use of (potentially large and slow ) log table. 2012-07-27 09:23:18 +08:00
David Monllao 2011579b26 MDL-32499 gradingform_rubric Avoid backup/restore of rubric fillings without an existing criteria 2012-07-27 09:22:02 +08:00
Tim Hunt 59b983a5d9 MDL-34589 quiz report graphs: PHP5.4 issue with unset($array[$float]).
Thanks to Matthew Davidson for diagnosing the problem.
2012-07-26 18:55:17 +01:00
Tim Hunt 40ae563bee MDL-34532 quiz reports: error when showing users without attempts.
We were not checking if attempt state was null before trying to convert it to a string.
2012-07-26 10:09:45 +01:00
Aparup Banerjee 6975216336 weekly release 2.3.1+ 2012-07-26 14:25:58 +08:00
Rossiani Wijaya ffdccab055 MDL-34255 group calendar events: fixed adding group calendar event for students 2012-07-26 14:23:39 +08:00
Aparup Banerjee 33405ffbd0 Merge branch 'install_23_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_23_STABLE 2012-07-26 13:59:33 +08:00
AMOS bot 993a4b8f5c Automatically generated installer lang files 2012-07-26 00:31:43 +00:00
Michael Aherne a11b507f50 MDL-34534 Backport activity chooser default setting to 2.3 stable 2012-07-25 12:15:21 +01:00
Dan Poltawski 8d9dd85d97 Merge branch 'MDL-13629_droplow_23' of git://github.com/andyjdavis/moodle into MOODLE_23_STABLE 2012-07-25 12:29:47 +08:00
Dan Poltawski c54a83d8bd MDL-34441 dbtransfer - do not attempt migration if moodle is not installed. 2012-07-25 11:29:04 +08:00
Dan Poltawski c237be89fb MDL-34441 tool_dbtranfer - fix codechecker warnings
Since we were so close to perfection.
2012-07-25 10:51:21 +08:00
Dan Poltawski 55bf451676 Merge branch 'w30_MDL-34441_m23_dbtransfer' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-25 10:51:15 +08:00
Sam Hemelryk 5986099daa Merge branch 'w30_MDL-34475_m23_saveondefault' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-25 11:13:16 +12:00
Sam Hemelryk ea268875fb Merge branch 'MDL-27083-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-07-25 09:18:19 +12:00
Rex Lorenzo f1631871b8 MDL-34519 - Course reset not protected by proper capability 2012-07-24 12:03:52 -07:00
Aparup Banerjee 81fa4095f2 MDL-26969 assignment : clarified phpdoc and fixed whitespace. 2012-07-24 16:40:46 +08:00
Aparup Banerjee 34cdc31ec8 Merge branch 'MDL-26969_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-07-24 16:40:42 +08:00
Dan Poltawski 51609ef88a Merge branch 'MDL-34484_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-24 15:40:26 +08:00
Dan Poltawski 73a418e3c2 Merge branch 'w30_MDL-34129_m23_enrolinfo' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-24 13:41:45 +08:00
AMOS bot 2902afd555 Automatically generated installer lang files 2012-07-24 00:31:53 +00:00
Petr Škoda e2ecc7c6cc MDL-34475 add default value to xmldb_field hash calculation 2012-07-23 21:36:39 +02:00
Tim Hunt 53e2f1aad8 MDL-34484 unit tests: stop phpunit using testcase names as class names 2012-07-23 11:10:38 +01:00
Aparup Banerjee bb9b19a7fd MDL-34449 phpdoc typo correction 2012-07-23 16:40:30 +08:00
Aparup Banerjee 8e711c3af0 Merge branch 'w30_MDL-34449_m23_layoutmaddness' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-23 16:40:11 +08:00
Dan Poltawski 326bbf9ba6 Merge branch 'MDL-34379_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-23 14:14:08 +08:00
Dan Poltawski cf1479bb2f Merge branch 'MDL-34351_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-23 14:09:34 +08:00
Dan Poltawski b165e64edc Merge branch 'MDL-34251_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-23 14:02:07 +08:00
Dan Poltawski cb9fdb814d Merge branch 'MDL-34226_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-23 13:53:58 +08:00
Rajesh Taneja e4f2ea1a42 MDL-34148 Blog: Fixed variable name used for saving module name
Updated Erik's patch to match coding style
2012-07-23 13:45:54 +08:00
Erik Lundberg 5147d726b2 MDL-34148: Instead of using the module name from the filesystem, the blog menu now fetches the module name with get_string(). 2012-07-23 13:45:54 +08:00
Dan Poltawski 96647229fc Merge branch 'wip-MDL-34404-m23' of git://github.com/samhemelryk/moodle into MOODLE_23_STABLE 2012-07-23 13:26:12 +08:00
Dan Poltawski 7ccdba8821 Merge branch 'w30_MDL-34396_m23_loginhttpsspell' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-23 12:20:05 +08:00
Frederic Massart 82a0137aa5 MDL-27083 Questions: Orphaned questions are adopted on upgrade
Conflicts:

	version.php
2012-07-23 11:58:56 +08:00
Rossiani Wijaya 60a1365d28 MDL-26969 Assignment module - upload: fixed get_submission() return value to nothing when param is set to false. 2012-07-23 11:27:28 +08:00
Aparup Banerjee 3e7788eebe Merge branch 'MDL-32665_chat_popup_23' of git://github.com/andyjdavis/moodle into MOODLE_23_STABLE 2012-07-23 10:21:44 +08:00
Dan Poltawski fd59a1780b Merge branch 'MDL-34451_23' of git://github.com/merrill-oakland/moodle into MOODLE_23_STABLE 2012-07-23 09:22:48 +08:00
Sam Hemelryk 4094913d53 Merge branch 'MDL-34412_M23' of git://github.com/lazydaisy/moodle into MOODLE_23_STABLE 2012-07-23 12:42:12 +12:00
Sam Hemelryk f945ffb908 Merge branch 'MDL-34370_M23' of git://github.com/lazydaisy/moodle into MOODLE_23_STABLE 2012-07-23 12:39:59 +12:00
Marina Glancy e7a3fe032f MDL-34428 Private files repository should have a 'manage' link 2012-07-23 12:37:57 +12:00
Sam Hemelryk 6fcebf2424 Merge branch 'MDL-33560-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-07-23 12:25:20 +12:00
Sam Hemelryk 9d1594b04b Merge branch 'MDL-31516_grade_comma_decsep_moodle23' of git://github.com/StudiUM/moodle into MOODLE_23_STABLE 2012-07-23 12:19:58 +12:00
Marina Glancy 9ff506d165 MDL-34221 disabledIf support for filemanager and filepicker elements 2012-07-23 12:08:49 +12:00
Davo Smith 252bd1871b MDL-34221 Filepicker - disableIf now prevents drag and drop upload 2012-07-23 12:08:49 +12:00
Davo Smith 548f536a00 MDL-33927 Filemanager - enforce the maxfiles limit on form submission 2012-07-23 12:01:24 +12:00
Sam Hemelryk 2372ccb774 Merge branch 'MDL-29563_23' of https://github.com/dmonllao/moodle into MOODLE_23_STABLE 2012-07-23 11:49:39 +12:00
Sam Hemelryk 4ad0926a30 Merge branch 'MDL-34427' of git://github.com/jasonilicic/moodle into MOODLE_23_STABLE 2012-07-23 11:40:07 +12:00
Sam Hemelryk f315e3e184 Merge branch 'm23_MDL-34374' of git://github.com/danmarsden/moodle into MOODLE_23_STABLE 2012-07-23 11:38:09 +12:00
Sam Hemelryk 93c3b29893 Merge branch 'm23_MDL-34233' of git://github.com/danmarsden/moodle into MOODLE_23_STABLE 2012-07-23 11:26:50 +12:00
Damyon Wiese c8ac7e7938 MDL-34313: Deleting assignfeedback plugins deletes config for assignsubmission_plugin instead. 2012-07-23 11:22:36 +12:00
Damyon Wiese 943036314f MDL-34272: Assignment module displays all assignments on my moodle instead of just open ones 2012-07-23 11:20:55 +12:00
Damyon Wiese 145a300b73 MDL-34256: Grading table shows users with no submissions with "requires grading" filter
Also hide the filters completely if there are no submission plugins enabled (offline assignment).
2012-07-23 11:09:46 +12:00
Damyon Wiese 392ee02d6c MDL-2283: Display number of assignment submissions that need grading in the grading summary 2012-07-23 10:55:27 +12:00
Sam Hemelryk 28ea78bf7a Merge branch 'MDL-34265-m23' of git://github.com/ankitagarwal/moodle into MOODLE_23_STABLE 2012-07-23 10:39:45 +12:00
Andrew Robert Nicols 7fac90712b MDL-34322 Don't display empty navigation nodes which have no link 2012-07-23 09:43:27 +12:00
Sam Hemelryk 5b37ed3dda MDL-34243 completion: Fixed up call to completion_criteria::factory that was passing object 2012-07-23 09:38:57 +12:00
Aaron Barnes a6fa8a7265 MDL-34243 completion: get_criteria() incorrectly passing object 2012-07-23 09:38:57 +12:00
Mary Evans b843a44e16 MDL-34370 theme_fusion: added CSS in style/core.css to enable weeks to be moved when editing 2012-07-22 21:38:40 +01:00
Petr Škoda 38e269ead9 MDL-34441 bump up version to trigger cache purging 2012-07-22 21:02:14 +02:00
Petr Škoda de25ddd331 MDL-34441 add CLI database migration script 2012-07-22 20:57:07 +02:00
Petr Škoda 7b293e0126 MDL-34441 add maintenance mode to db migration and improve lang strings 2012-07-22 20:57:06 +02:00
Petr Škoda 56db97bb5c MDL-34441 scroll to the bottom when db migration finished 2012-07-22 20:57:06 +02:00
Petr Škoda 05e4341165 MDL-34441 rewrite log display actions after db migration 2012-07-22 20:57:05 +02:00
Petr Škoda 0dd05d20b9 MDL-34441 improve error handling when migrating databases 2012-07-22 20:57:05 +02:00
Petr Škoda 9134f9aa9c MDL-34441 prevent mysqli::close() notice after failed mysql driver connect 2012-07-22 20:57:04 +02:00
Petr Škoda c8e5d9c9eb MDL-34441 show db transfer in experimental section
DB export and import is not ready yet, sorry.
2012-07-22 20:57:04 +02:00
Petr Škoda 937777f3fe MDL-34441 fix switched lang strings 2012-07-22 20:57:03 +02:00
Petr Škoda 6b986b7b6a MDL-34441 always use proper charset in htmlspecialchars() calls 2012-07-22 20:57:03 +02:00
Petr Škoda 4b195fe9e9 MDL-34441 cleanup dtl related phpdocs and minor style improvements 2012-07-22 20:57:02 +02:00
Eric Merrill a14ef47b44 MDL-34451 quiz Fixed problem where attempt page is updated for ALL attempts, not just current. 2012-07-22 12:23:11 -04:00
Petr Škoda 1c005cbf12 MDL-34449 lazy load theme layout otpions
This should allow us to switch page layout on admin pages and elsewhere before $OUTPUT->header() call.
2012-07-22 15:34:23 +02:00
Petr Škoda 7c87df674e MDL-34129 show course info on enrolment page 2012-07-21 21:34:07 +02:00
Luke Tucker ab706cc971 MDL-34396 Ensure TinyMCE editor spell checking works on pages with $PAGE->https_required() 2012-07-21 20:29:50 +02:00
Mary Evans 8545a5cc54 MDL-34412 theme_afterburner: defined #EEE as background-color in afterburner_styles.css for filemanager and filepicker input, select, button & textarea 2012-07-20 23:52:02 +01:00
David Monllao e0cf9e280a MDL-33537 gradingform_rubric Adding the definition when retrieving grading instances
Credit to Sam Chaffee
2012-07-20 14:56:00 +08:00
Jason Ilicic 1cb637e42a MDL-34427: Corrected language string when not allowed to enter the chat room. 2012-07-20 14:45:32 +09:30
Tim Hunt 2894157f15 MDL-34351 quiz cron: one broken overdue attempt should not kill cron
It seems that sometimes trying to process an overdue quiz attempt can
throw an exception. In that case, we need to catch it and report it
nicely, and then carry on processing the rest of the attempts, rather
than just killing the whole of cron processing.

Also, there may be garbage quiz attempts where the associated quiz or
course has been deleted. Skip those too.
2012-07-19 15:24:15 +01:00
Tim Hunt 013c74d058 MDL-34379 quiz reports: timetaken 'open' for never submitted attempts 2012-07-19 12:46:49 +01:00
Tim Hunt 2d7cbf5923 MDL-34251 question engine: possible infinite loop loading usages
In the case where either a question_attempt had not steps, or a
question_usage had not question_attempts, the load_from_records methods
could get stuck in an infinite loop.

This fix ensures that does not happen, with unit tests to verify it. At
the same time, I noticed an error in the existing tests, which this
patch fixes.
2012-07-19 12:46:24 +01:00
Tim Hunt 0288eb2151 MDL-34226 multianswer qtype: basic unit test.
This verifies the previous fix, and gets rid of a rather embarassing TODO.
2012-07-19 12:46:12 +01:00
Tim Hunt 0656c0a403 MDL-34226 multichoice qtype: correct is_complete_response for multianswer
The multianswer qtype uses the multi-choice one, and the way it does its
responses array breaks an assumption that multi-choice was making.
2012-07-19 12:46:11 +01:00
Andrew Davis 36e22a820c MDL-28568 message: added a warning message when the user is about to message someone who cant reply 2012-07-19 17:07:00 +08:00
Sam Hemelryk 62145412bb MDL-33448 javascript: Added caching for the YUI instance used for debug in get_string 2012-07-19 20:22:37 +12:00
Ankit Agarwal 8119fbd7bd MDL-34265 SCORM: Removing sorting from unsortable columns 2012-07-19 15:58:36 +08:00
Dan Marsden 001ff67298 MDL-34233 SCORM backup - change to using set_source_sql to preserve order of records in backup. 2012-07-19 19:40:02 +12:00
David Monllao da2104aa0e MDL-29563 course Throwing an exception instead of a message 2012-07-19 15:35:20 +08:00
David Monllao e2bf940699 MDL-29563 course Hide duplication button in activities without backup2 support - Credit to Mark Nielsen 2012-07-19 15:35:20 +08:00
Dan Poltawski 9592f5dea8 weekly release 2.3.1+ 2012-07-19 13:45:56 +08:00
Dan Poltawski 05551bceed Merge branch 'install_23_STABLE' of git://github.com/amosbot/moodle into MOODLE_23_STABLE 2012-07-19 13:42:05 +08:00
Dan Marsden fece4fd648 MDL-34374 SCORM prevent skipview being set to always when used inside a SCORM course format. 2012-07-19 09:05:07 +12:00
Andrew Davis dec465b3e9 MDL-32665 mod_chat: disabled popup notifications in the chat windows 2012-07-18 19:08:01 +08:00
Andrew Davis cfe170e430 MDL-13629 grade: added some unit tests to clarify the handling of droplow and improved apply_limit_rules() 2012-07-18 09:14:59 +08:00
Damyon Wiese 617c624732 MDL-32948: Improved help for "Require students click submit button" setting
Describes the effect of changing this setting after students have submitted.
2012-07-18 10:20:08 +12:00
Damyon Wiese 00cfd8bc94 MDL-34217: Swap short and long text for setting in assignment module 2012-07-18 10:13:20 +12:00
Andrew Robert Nicols 8a172fa7cf MDL-33874 Don't warn about focussed form fields with the ignoredirty class 2012-07-18 09:35:12 +12:00
Frederic Massart a64fbc87b6 MDL-33767 Course: General section displays its title when required 2012-07-17 22:28:13 +08:00
Frederic Massart 483d768bc0 MDL-33767 Course: The actions on default section redirect to the correct section 2012-07-17 22:28:01 +08:00
Jean-Philippe Gaudreau 35cf43cb42 MDL-31516 Fixing grade_edit_tree::format_number 2012-07-17 09:03:17 -04:00
Nathan Mares 371d354ab3 MDL-34368: Fix broken query in so tokens are correctly checked against the linked service 2012-07-17 19:11:57 +10:00
Frederic Massart 23371805ea MDL-33560 Enrol: Enrol password can be unmasked 2012-07-17 16:49:31 +08:00
Juan Leyva 3240c7100e MDL-34083 Fixing the param type also after deleting the invalid option 2012-07-17 13:12:39 +08:00
Juan Leyva 574cc949cd MDL-34083 Deleted user_files from backup options 2012-07-17 13:12:36 +08:00
Sam Hemelryk 07cb7e3d34 Merge branch 'MDL-33575_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-07-17 15:50:08 +12:00
Rossiani Wijaya b6e65b5312 MDL-33575 choice module: add label to checkbox element when privacy of results is set to publish full results 2012-07-17 10:17:43 +08:00
AMOS bot b27d56ea6f Automatically generated installer lang files 2012-07-17 00:31:47 +00:00
David Monllaó e52f82253e MDL-30876 filter_mediaplugin Wrapping the style sheets access with try & catch
Conflicts:

	lib/javascript-static.js
2012-07-17 12:21:07 +12:00
Dan Poltawski 00714e72ea Merge branch 'MDL-34187_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-16 15:57:31 +08:00
Aparup Banerjee 5f3d7b1949 MDL-26587 Question : fixed restoring shortanswer where answers are missing due to data error in mbz file. 2012-07-16 15:51:11 +08:00
Dan Poltawski 4923e18d75 Merge branch 'MDL-23219_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-16 14:32:54 +08:00
Dan Poltawski e0bc694514 Merge branch 'wip-mdl-30798-m23' of git://github.com/rajeshtaneja/moodle into MOODLE_23_STABLE 2012-07-16 14:26:08 +08:00
Rajesh Taneja 021bea1240 MDL-30798 Blog: link param for entries about this course link is fixed 2012-07-16 14:11:47 +08:00
Dan Poltawski 24527f63bb Merge branch 'MDL-31622-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-07-16 11:34:21 +08:00
Dan Poltawski d835681e35 Merge branch 'MDL-34211' of git://github.com/appalachianstate/moodle into MOODLE_23_STABLE 2012-07-16 11:15:55 +08:00
Dan Poltawski 4da22142bc Merge branch 'w29_MDL-34271_m23_mysqlcollation' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-16 11:00:56 +08:00
Dan Poltawski 8242298e4b Merge branch 'MDL-34164_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-16 10:05:51 +08:00
Marina Glancy ae8e49e8de MDL-34213 fixed mistype causing wrong link in some browsers 2012-07-16 09:55:05 +08:00
Sam Hemelryk 5320640ccd Merge branch 'MDL-33624-23' of git://github.com/danpoltawski/moodle into MOODLE_23_STABLE 2012-07-16 13:50:56 +12:00
Dan Poltawski 28fc596d03 MDL-33624 lang - remove incosistent use of placeholder 2012-07-16 09:45:11 +08:00
Davo Smith f8e493faff MDL-34214 Course dndupload - removed unneeded classes from preview element 2012-07-16 12:05:54 +12:00
Sam Hemelryk ac98ad6189 Merge branch 'MDL-26145_23' of git://github.com/dmonllao/moodle into MOODLE_23_STABLE 2012-07-16 11:57:35 +12:00
Sam Hemelryk 8f87d57c47 Merge branch 'MDL-28155_23' of git://github.com/dmonllao/moodle into MOODLE_23_STABLE 2012-07-16 11:50:23 +12:00
Sam Hemelryk 828a42c37d Merge branch 'MDL-32310-23' of git://github.com/danpoltawski/moodle into MOODLE_23_STABLE 2012-07-16 11:00:57 +12:00
Sam Hemelryk d479ce3bef Merge branch 'MDL-34153-23' of git://github.com/danpoltawski/moodle into MOODLE_23_STABLE 2012-07-16 10:44:01 +12:00
Sam Hemelryk f30998190f Merge branch 'MDL-34240-23' of git://github.com/danpoltawski/moodle into MOODLE_23_STABLE 2012-07-16 10:37:42 +12:00
Sam Hemelryk ff8ab720f0 Merge branch 'MDL-34072' of git://github.com/appalachianstate/moodle into MOODLE_23_STABLE 2012-07-16 10:10:54 +12:00
Damyon Wiese 66681a5192 MDL-34258: Plagiarism API now returns strings so mod_assign needs these updates 2012-07-16 09:58:06 +12:00
Charles Fulton 4b791f1d17 MDL-27563 shibboleth: set context on login page 2012-07-16 09:39:43 +12:00
Barbara Ramiro b831bcc2be MDL-33841 Min-height set to remove unnecessary scrollbar on tree and list view 2012-07-16 09:35:44 +12:00
Ashley Holman bf79f77357 MDL-34309: Fix broken postgres unix sockets in core_adodb_testcase::test_read_table 2012-07-16 09:33:01 +12:00
Andrew Robert Nicols e7bf0155f7 MDL-33874 Allow form fields to be ignored by the formchangechecker 2012-07-16 09:26:11 +12:00
Sam Hemelryk bac9070359 Merge branch 'MDL-33788b-23' of git://github.com/srynot4sale/moodle into MOODLE_23_STABLE 2012-07-16 09:18:46 +12:00
AMOS bot beae8b9888 Automatically generated installer lang files 2012-07-15 00:32:02 +00:00
Tim Hunt 04de7affb6 MDL-34164 quiz reports: only try to show graphs if GD is installed.
if (empty($CFG->gdversion)) { seems to be the common idiom for this.
I refactored the graph output into the renderer, to avoid having to
duplicate that test three times.
2012-07-14 09:21:00 +01:00
Tim Hunt e9879c02c6 MDL-34257 quiz 'secure' window: does not close automatically. 2012-07-13 18:03:51 +01:00
Tim Hunt 7bef3664b8 MDL-23219 check permissions: show relevant role-assignments.
Adding this list of role assignments should make it much easier for
admins to work out why, when the permissions shown in the check
permisisons page are now what they expect.

I thought about making the links go more directly to, for example, the
assign roles pages for each context, but because of things like
enrolments in courses that is hard. It is only two clicks to go to the
context, then click the right link in the settings block there.

I also re-orderd some of the code in check.php to try to get all the DB
code before all the output code.
2012-07-13 15:21:17 +01:00
Dan Poltawski 881118184a MDL-34240 - google plugins: switch to PARAM_RAW_TRIMMED
This ensures the client credentials which are entered are trimmed
as users are finding problems with bad pastes.
2012-07-13 10:09:39 +08:00
Frederic Massart 7397acb145 MDL-31622 Forms: Date selector supports i18n 2012-07-13 08:57:29 +08:00
AMOS bot a3db6afa39 Automatically generated installer lang files 2012-07-13 00:32:23 +00:00
Fred Woolard fd626c4109 MDL-34072: Adjust SQL for Oracle. Remove subquery alias altogether. 2012-07-12 10:54:59 -04:00
Fred Woolard eab8660e8f MDL-34211 Use the $table_name argument to check against $metatables key values 2012-07-12 10:54:10 -04:00
Petr Škoda 3eb9ebb3c8 MDL-34271 add new cli tool for mysql collation conversions 2012-07-12 14:41:28 +02:00
Petr Škoda 41e8883ea8 MDL-34271 use the same collation when adding new tables or columns 2012-07-12 14:41:28 +02:00
Petr Škoda 7ec63b27d0 MDL-34271 cleanup mysql engine hack before adding similar collation hack 2012-07-12 14:41:27 +02:00
Dan Poltawski 3b52187e25 weekly release 2.3.1+ 2012-07-12 15:57:26 +08:00
Dan Poltawski f7d874c76f Merge branch 'install_23_STABLE' of git://github.com/amosbot/moodle into MOODLE_23_STABLE 2012-07-12 15:50:04 +08:00
Sam Hemelryk 9f7f501c0a Revert "MDL-33575 choice module: add label to checkbox element when privacy of results is set to publish full results"
This reverts commit f19cd42709.
2012-07-12 18:21:00 +12:00
Dan Poltawski 476f72e9bf MDL-34153 mod_forum: create RFC-2822 compliant message-ids 2012-07-12 14:16:52 +08:00
Paul Nicholls 074236eee7 MDL-32582 - filter/multimedia: MP3 Flow Player doesn't work in Chrome if empty stylesheets are present 2012-07-12 13:40:43 +08:00
AMOS bot 294c228272 Automatically generated installer lang files 2012-07-12 00:32:25 +00:00
David Monllao c465776d28 MDL-28155 mod_assignment Using the this object instead of a string 2012-07-11 15:13:34 +08:00
Dan Poltawski 4697c46706 Merge branch 'w28_MDL-34175_m23_admin' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-11 14:51:07 +08:00
Petr Škoda df7799d989 MDL-34175 one more hardcoded /admin/ in mnet 2012-07-11 08:48:04 +02:00
AMOS bot 89375aac4c Automatically generated installer lang files 2012-07-10 20:33:18 +02:00
Petr Skoda 229aabf7c6 MDL-33712 add support for unique moodle tags in tinymce 2012-07-10 15:56:11 +08:00
Marina Glancy d6571ad763 MDL-33950 Correctly initialise repository and check access in js and non-js filepicker 2012-07-10 14:57:46 +08:00
Marina Glancy 95991122ab MDL-33473,MDL-33950,MDL-33837 Allow non-js filepicker to pick files from moodle repositories
- MDL-33473 actually make non-js filepicker to work with local repositories
- MDL-33950 validate that file is accessible
- MDL-33837 when picking a server file marked as main, do not make it main in current filearea
2012-07-10 14:57:41 +08:00
Marina Glancy db81525850 MDL-33950 check if source file is accessible in repository_ajax.php
- repository::copy_to_area() does not check access any more, and repository_recent::copy_to_area() is unnecessary
- added repository::file_is_accessible() that checks access to the picked file (regardless of accessibility of the file it is referencing to)
2012-07-10 14:57:35 +08:00
Sun Zhigang 7073fa4c4a MDL-28155 mod_assignment - Fix an ugly hack
Show download all link for any assignment types which implement
the download_submissions() method
2012-07-10 13:00:13 +08:00
Dan Poltawski b2e5a60773 MDL-34159 - add comment lost from previous commit 2012-07-10 12:58:46 +08:00
Dan Poltawski 57c7815213 Merge branch 'w28_MDL-34159_m23_wherelist' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-10 12:56:07 +08:00
Petr Škoda 95896749a5 MDL-33617 add new index to improve perf of enrol related role_assignments
Conflicts:

	version.php
2012-07-10 15:49:38 +12:00
Petr Škoda c8b7088463 MDL-33887 delay string fetching in PAGE->requires->string_for_js() till page footer
This should resolve problems with language switching such as when forcing course language.
2012-07-10 15:08:26 +12:00
Michael Aherne c82d7fc832 MDL-34156 Remove subselect from slow query 2012-07-10 10:53:40 +08:00
Dan Poltawski 1f34fa79c2 Merge branch 'w28_MDL-34147_m23_cygwin' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-10 10:31:24 +08:00
Dan Poltawski 806129b06e Merge branch 'MDL-34171_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-10 09:25:22 +08:00
Petr Škoda eb88700a56 MDL-34155 use course visibility default when creator does not have moodle/course:visibility 2012-07-10 12:49:14 +12:00
Sam Hemelryk 3ca82ed605 Merge branch 'w28_MDL-34175_m23_admin' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-10 12:43:42 +12:00
Dan Marsden 6b8399df5e MDL-34198 SCORM remove unecessary get_records call 2012-07-10 08:34:42 +08:00
Marina Glancy 68ea10b079 MDL-33444 Upload repository can specify custom label for filepicker 2012-07-10 12:31:12 +12:00
Marina Glancy 2eb66f3500 MDL-34139 filemanager select-file dialogue should update file on Enter 2012-07-10 12:24:08 +12:00
Sam Hemelryk bd75b67885 Merge branch 'MDL-29470-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-07-10 12:09:26 +12:00
Sam Hemelryk 3936796042 Merge branch 'MDL-32297-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-07-10 12:05:33 +12:00
Davo Smith b43bb8da94 MDL-34107 Upload repository - do not add a dot to files without an extension 2012-07-10 11:47:48 +12:00
Dan Poltawski 898010f1aa MDL-34061 mod_resource: filter settings weren't coming from defaults 2012-07-10 11:40:33 +12:00
Charles Fulton d563d48694 MDL-27800 admin: make front page restore link consistent 2012-07-10 11:32:31 +12:00
Dan Poltawski 0dd189d59d Merge branch 'MDL-18301-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-07-09 14:27:15 +08:00
Dan Poltawski d6cf442059 Merge branch 'MDL-32057_23' of git://github.com/aolley/moodle into MOODLE_23_STABLE 2012-07-09 14:14:13 +08:00
Dan Poltawski 2bf17d606b Merge branch 'w28_MDL-34046_m23_stalefiles' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-09 13:50:16 +08:00
Dan Poltawski 1583e17c65 Merge branch 'MDL-33030_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-07-09 13:42:32 +08:00
Dan Poltawski d85083312c Merge branch 'wip-mdl-29969-m23' of git://github.com/rajeshtaneja/moodle into MOODLE_23_STABLE 2012-07-09 13:39:18 +08:00
Dan Poltawski 1e838c4e30 Merge branch 'MDL-34077-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-07-09 13:37:34 +08:00
Gilles-Philippe Leblanc 65ab8112a3 MDL-33822 SCORM Interactions report - fix formatting of empty cells. 2012-07-09 17:24:29 +12:00
Dan Poltawski 9309b2dba8 MDL-17395 auth_email: clarify description 2012-07-09 17:19:41 +12:00
Barbara Ramiro b002b36ed3 MDL-33795 Increased file picker width and height 2012-07-09 17:14:12 +12:00
David Balch d36249d6d6 MDL-34143 Add file type information for .mdb .accdb (MS Access databases) 2012-07-09 13:05:40 +08:00
Aaron Barnes 48bdd52172 MDL-33788 completion: SQL optimisation 2012-07-09 15:36:52 +12:00
Dan Poltawski 41bb2c3a59 Merge branch 'wip-mdl-33943-m23' of git://github.com/rajeshtaneja/moodle into MOODLE_23_STABLE 2012-07-09 11:35:02 +08:00
Ankit Agarwal 918f6d2c34 MDL-27831 calendar: Removing reduntand control icons in delete.php 2012-07-09 11:31:12 +08:00
Dan Poltawski 3a429ca204 Merge branch 'MDL-33885-23' of git://github.com/FMCorz/moodle into MOODLE_23_STABLE 2012-07-09 10:31:52 +08:00
Ruslan Kabalin d212244375 MDL-33890 Make course blocks less theme dependant
This fix checks that the empty block region is actaually the standard one, so
it can be hidden. The blocks move operating area is not resticted to page
content any more.
2012-07-09 10:02:34 +08:00
Sam Hemelryk f19cd42709 MDL-33575 choice module: add label to checkbox element when privacy of results is set to publish full results 2012-07-09 10:56:28 +12:00
Sam Hemelryk 9bf1621fbc Merge branch 'MDL-30816_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-07-09 10:28:45 +12:00
Dan Poltawski aacf3222df MDL-33514 - rss: also exclude suspended users feeds
Thanks Petr!
2012-07-09 10:24:41 +12:00
Dan Poltawski 6b4c491cb4 MDL-33514 - rss: only retrieve RSS feeds for valid users 2012-07-09 10:24:40 +12:00
Tim Hunt 69a600a067 MDL-34171 qformat_gift: Fix edge case with special character escaping.
We need to escape \ on export, because it is un-escaped on import.
2012-07-06 10:48:20 +01:00
David Monllao 25afd64b0f MDL-26145 mod_chat Talk feature not working correctly 2012-07-06 16:16:00 +08:00
Petr Škoda fe6d428185 MDL-34046 improve mixed files upgrade error
Credit goes to Gordon Bateson.
2012-07-06 08:01:02 +02:00
Petr Škoda 880f8e7b84 MDL-34147 use cygwin style paths in phpunit hints 2012-07-06 07:59:04 +02:00
Petr Škoda 6128bf9d25 MDL-34159 improve where_clause_list performance 2012-07-06 07:57:20 +02:00
Petr Škoda 93f3eb63d1 MDL-34175 a few more renamed admin fixes 2012-07-06 07:56:00 +02:00
Petr Škoda 79406900b5 MDL-34175 automatically fix admin JS links 2012-07-06 07:56:00 +02:00
Frederic Massart 0408a48010 MDL-33885 Blog: Added maxlength rule to subject field 2012-07-06 13:16:34 +08:00
Frederic Massart 2dd2bd7ead MDL-18301 Gradebook: Added feature for components to control grade visibility 2012-07-06 09:53:54 +08:00
Sam Hemelryk f2867a8672 Moodle 2.3.1 release 2012-07-06 11:27:47 +12:00
Sam Hemelryk 62e9e694b7 weekly release 2.3+ 2012-07-06 10:04:54 +12:00
AMOS bot b24e6ed930 Automatically generated installer lang files 2012-07-06 09:53:08 +12:00
AMOS bot 50b1caaf86 Automatically generated installer lang files 2012-07-06 09:53:08 +12:00
AMOS bot 2ddf3ffcd2 Automatically generated installer lang files 2012-07-06 09:53:08 +12:00
Eloy Lafuente (stronk7) b73a7519c4 Revert "MDL-33303 Filepicker: resized to match HTML editor and made resizable"
This reverts commit e5c2bbd0f7.
2012-07-05 23:22:05 +02:00
David Balch 2425229c88 MDL-34063 XHTML files should use the HTML icon, not the markup icon 2012-07-05 18:34:55 +02:00
Eloy Lafuente (stronk7) 353580b0e3 Merge branch 'MDL-33453-reference' of git://github.com/mudrd8mz/moodle into MOODLE_23_STABLE 2012-07-05 17:07:22 +02:00
Eloy Lafuente (stronk7) 4539b33788 Revert "MDL-30912 - lib - A tidy up of the submit url jump functions for greater ease with accessability."
This reverts commit a1a00aeee7.
2012-07-05 16:10:37 +02:00
Marina Glancy 9b47ec7bb3 MDL-33746 make folder view look like filemanager tree view 2012-07-05 14:36:28 +02:00
Tim Hunt b9c20952a3 MDL-34065 questions: also fix two typos in comments.
Amended to change 2 accordin => according
2012-07-05 13:50:21 +02:00
Tim Hunt e819ff4263 MDL-34065 lib: improve two debugging messages.
If the string passed to get_string is empty, say that. Don't say that it
contains illegal characters.

When relying on the __call magic in plugin_renderer_base, when the
method cannot be found, include the right class name in the error
message.
2012-07-05 13:50:14 +02:00
Rossiani Wijaya a2af7fd407 MDL-30816 Choice module: add format_string() for choice name. 2012-07-05 12:20:20 +08:00
Rossiani Wijaya 34e0b4a71e MDL-30816 choice module: fixed accessibility for responses table and make it easier for screenreader to read it 2012-07-05 12:19:57 +08:00
Frederic Massart 8fb4b73f55 MDL-29470 Backup: fixed unexpected next automated backup date 2012-07-05 10:13:33 +08:00
Tim Hunt b20b1c32bf MDL-34145 postgres driver: fix get_tables perf on <= 9.0
The query of the information_schema view seems to be painfully slow on
older versions of postgres (2000ms instead of 20ms). Therefore, it is
worth detecting that case, and using a more postgres specific feedback.
This is particularly important for 2.3+ unit tests.

Thanks to Petr Skoda for his help with this.
2012-07-05 03:41:08 +02:00
Frederic Massart 684806305e MDL-29470 Backup: unit tests for next automated backup date 2012-07-05 09:37:21 +08:00
Sam Hemelryk 1e9130ae6e MDL-33770 webservices: Fixed error with core_group_create_groups when no enrolment key provided 2012-07-05 09:22:35 +12:00
Tim Hunt c57fa60f3d MDL-32062 question engine: fixup tests that this change broke.
The test data was wrong, and was triggering the work-around code that
MDL-32062 introduced. I fixed the test data.

Also, I fixed one of the tests, that had been broken.
2012-07-04 19:24:48 +08:00
Dan Poltawski 617d260dd7 MDL-34035 - fix typo in comment
Thanks Sam!
2012-07-04 10:39:48 +08:00
Tim Hunt b86a48c5b9 MDL-34035 help links: allow other types of URL for plugins.
For third-parth plugins, in can be helpful if the 'More help' links in
help pop-ups (the ones that come from $string['..._link'] string in the
language file) can go to other places.

This change support two other sorts of URL in addition to the standard
'course/editing' type of link that goes to MoodelDocs.

You can use absolute URLs, starting http:// or https:///

You can use a link starting %%WWWROOT%%, and that token is replaced by
$CFG->wwwroot to make the link.
2012-07-04 10:39:42 +08:00
Barbara Ramiro a2c2ab3e1a MDL-33542, MDL-33542 Select dialogue details aligned
And loading gif smaller
2012-07-04 10:25:09 +08:00
Eloy Lafuente (stronk7) bbe378a63e Merge branch 'w27_MDL-33876_m23_delenrol' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-04 04:16:05 +02:00
Marina Glancy 9d5ced06c1 MDL-34047 repository URL downloader must say that it returns only images 2012-07-04 09:51:51 +08:00
Sam Hemelryk 6019d2b2f3 Merge branch 'MDL-32614_23' of git://github.com/stronk7/moodle into MOODLE_23_STABLE 2012-07-04 13:15:03 +12:00
Eloy Lafuente (stronk7) ccef7fe8d0 MDL-32614 lti: on restore, clean any typeid to convert the tool to selfcontained.
This is known to be imperfect, awaiting for MDL-34161 to fix the whole thing. Also,
unrelated, there are some basiclti => lti replacements.
2012-07-04 02:15:02 +02:00
Chris Scribner f2b7928df7 MDL-32614: Removing code which disassociated LTI instances from their tool types upon restore. 2012-07-04 02:14:56 +02:00
Dan Poltawski 9f6f18d2c2 MDL-31692 mod_lti - ensure that various mforms are used properly
* typesettings.php and instructor_edit_tool_type.php are tided
   up properly to ensure proper use for form data
* An incorrect PARAM type is corrected for typename
2012-07-04 10:08:13 +12:00
Sam Hemelryk 848fc30a2d Merge branch 'MDL-32062_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-04 09:53:51 +12:00
sam marshall 8530aac4a8 MDL-33466: Group restriction should hide activity even with 'show availability' option
This is a modified version of fix by Luke Tucker at NetSpot - thanks.
2012-07-04 09:38:08 +12:00
Jonathan Harker 3bcca35591 MDL-27125 better manage file handles when downloading multiple files.
Based on Dongsheng Cai's branch: s11_MDL-27125_curl_file_handler_master
2012-07-04 09:33:12 +12:00
Kevin Wiliarty e3f4094ac8 MDL-33749 follow redirects for URL downloader 2012-07-04 08:34:55 +12:00
Sam Hemelryk 7df86db31d Merge branch 'wip-mdl-32787-m23' of git://github.com/rajeshtaneja/moodle into MOODLE_23_STABLE 2012-07-04 08:26:03 +12:00
Eloy Lafuente (stronk7) b41f914927 Merge branch 'wip-MDL-33303-m23' of git://github.com/samhemelryk/moodle into MOODLE_23_STABLE 2012-07-03 16:18:41 +02:00
sam marshall a5f68fb2c2 MDL-33426 Completion: Multilang activity names wrong in alt/title 2012-07-03 16:08:57 +02:00
Rajesh Taneja 28f23328c5 MDL-32787 user: rule required for custom profile fields applies to all users editing own profile 2012-07-03 13:48:18 +08:00
Frederic Massart 3e1648723f MDL-33828 Portfolio: prevent notices while exporting to portfolios 2012-07-03 16:35:48 +12:00
sam marshall 60a72a03b2 MDL-33937 Paged course view: Allows view of sections that are not visible 2012-07-03 12:30:10 +08:00
Dan Poltawski 741543e9a7 Merge branch 'master_MDL-33938' of git://github.com/danmarsden/moodle into MOODLE_23_STABLE
Conflicts:
	mod/scorm/db/upgrade.php
2012-07-03 12:18:29 +08:00
Adrian Greeve a1a00aeee7 MDL-30912 - lib - A tidy up of the submit url jump functions for greater ease with accessability. 2012-07-03 12:12:19 +08:00
Frederic Massart 9152878ed3 MDL-30903 Accessibility: user profile page uses table headers 2012-07-03 11:51:19 +08:00
Dan Poltawski 81b2147092 Merge branch 'MDL-34008_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-03 11:47:23 +08:00
Dan Poltawski e570ee4b63 Merge branch 'w27_MDL-34036_m23_bulkrole' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-03 11:40:14 +08:00
Sam Hemelryk 0afd953daf Merge branch 'w27_MDL-34115_m23_arrayofarrayssort' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-03 15:15:18 +12:00
Dan Poltawski f224fd9498 Merge branch 'MDL-30883_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-03 11:01:44 +08:00
Jason Fowler 69b2bab32e MDL-33957 - Installation - Fixing field lengths so they are long enough for data entry, and don't distort page rendering 2012-07-03 14:58:55 +12:00
Dan Poltawski f95e28e0ff Merge branch 'w27_MDL-34123_m23_newpasslang' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-03 10:39:17 +08:00
Marina Glancy f5cd2c6ef1 MDL-33837 picking file from server files should not copy 'Main file' property 2012-07-03 10:24:43 +08:00
Sam Hemelryk 10ff22d6f6 Merge branch 'MDL-33987_M23' of git://github.com/lazydaisy/moodle into MOODLE_23_STABLE 2012-07-03 14:11:40 +12:00
ISHIKAWA Takayuki d0d407f0bb MDL-33757 gradebook: Adding support to sort userlist by email address 2012-07-03 09:45:26 +08:00
Damyon Wiese 8ad459ed58 MDL-33499: Display final grade on the grading form with a link to the grader report
AMOS BEGIN
 CPY [currentgrade,mod_assignment],[currentgrade,mod_assign]
AMOS END
2012-07-03 02:28:49 +02:00
Eloy Lafuente (stronk7) cf5b51af0e Merge branch 'wip-MDL-33521-m23' of git://github.com/samhemelryk/moodle into MOODLE_23_STABLE 2012-07-03 01:59:22 +02:00
Adam Olley b653107b96 MDL-32057: Fix cohort enrolment css for ie7 2012-07-03 09:23:33 +09:30
Jerome Mouneyrac 18c264790a MDL-33770 Web service: create_groups should not require enrolmentkey 2012-07-03 11:49:30 +12:00
Frederic Massart 7523da44fc MDL-33814 Output renderers: table cell objects are only created when needed 2012-07-03 11:36:43 +12:00
Frederic Massart bd9ecafba9 MDL-33796 Glossary: removed unused missing string 2012-07-03 01:05:19 +02:00
Davo Smith 5200c254a1 MDL-34029 update mod/upgrade.txt to include course drag and drop upload 2012-07-03 10:55:48 +12:00
Dan Poltawski 3d43075cfd MDL-9214 - improve comment for custom login instructions 2012-07-03 10:47:21 +12:00
Dan Poltawski 5df543a60e MDL-32286 - fix ambigious english string 2012-07-03 10:42:57 +12:00
Dan Poltawski bed1c4a943 MDL-33990 - yui2: remove 2 uncessary requirements
We no longer use yui2 logger and connection in set_user_prefs
2012-07-03 10:37:10 +12:00
Sam Hemelryk 66ff4c0a06 MDL-34014 cssoptimiser: Fixed some aweful spelling 2012-07-03 10:34:13 +12:00
Dan Poltawski 9ea8065f1c MDL-34014 lang - fix CSS optimiser spelling errors 2012-07-03 10:32:45 +12:00
Dan Poltawski eadad29dc9 MDL-34022 lang - the html editor supports all browsers we support
So remove misleading 'some browers only'
2012-07-03 10:30:38 +12:00
Dan Poltawski e068b3dbe3 MDL-34033 lang - ammend configenableajax
Now better reflects its functionality.
2012-07-03 10:27:57 +12:00
Damyon Wiese 5809f6912b MDL-33848: Prevent file listings in the assignment module having an ugly border 2012-07-03 10:21:19 +12:00
Matthew G. Switlik 815aecf6c7 MDL-28151 resource: prevent cropping of large images 2012-07-03 10:14:04 +12:00
Tim Hunt 15d8babd1a MDL-23813 glossary filter: add missing YUI dependency
Fix found by Huy Hoang. I am just making a commit.
2012-07-02 23:52:48 +02:00
Aparup Banerjee a78e4e9147 MDL-23254 Authentication : used httpswwwroot as root url during authentication procedure where $PAGE->https_required() is specified. 2012-07-03 09:42:42 +12:00
Dan Poltawski d9edd25111 MDL-34081 dml: mssql driver was using case insensitve sql 2012-07-02 21:08:18 +02:00
Eloy Lafuente (stronk7) 1a76bbe2e4 MDL-34121 bump versions to efectively get the upgrade performed.
Conflicts:
	version.php
2012-07-02 18:18:22 +02:00
Eloy Lafuente (stronk7) af63cc85df Merge branch 'w27_MDL-34121_m23_killbackupmess' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-02 18:16:54 +02:00
Marina Glancy dff8438e50 MDL-33948 mod_forum correctly passes files options to file_save_draft_area_files() 2012-07-02 17:44:43 +08:00
Marina Glancy ec3fe6e123 MDL-33948 file_save_draft_area_files() validates if references are allowed and allows unlimited file size 2012-07-02 17:44:38 +08:00
Andrew Robert Nicols 770cee9696 MDL-33916 Add unit tests to ensure that is_enrolled returns correctly 2012-07-02 17:36:55 +08:00
Andrew Robert Nicols 1db89f5e6a MDL-33916 Ensure that capabilities are checked for cached user enrolments 2012-07-02 17:36:51 +08:00
Dan Poltawski 5c1b768aec MDL-31802 - navigation: add a comment about session reduction 2012-07-02 17:30:21 +08:00
Dan Poltawski f2b4305c8e Merge branch 'MDL-31802_23' of git://github.com/aolley/moodle into MOODLE_23_STABLE 2012-07-02 17:24:56 +08:00
Marina Glancy 502ecc4c9f MDL-34117 Correctly pass accepted_types to dnduploader 2012-07-02 17:10:02 +08:00
Dan Poltawski 34c10b84fb Merge branch 'w27_MDL-34120_m23_delpass' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-02 16:48:28 +08:00
Dan Poltawski f09dcd4b6d Merge branch 'w27_MDL-34125_m23_tablename' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-02 16:46:27 +08:00
Tim Hunt 2b1b2017a6 MDL-34109 quiz cron: timelimit are timeclose of 0 are special.
If the timelimit or timeclose of a quiz are 0, this means 'no
restriction', rather than '1970' or '0 seconds'. We need to handle these
special cases correctly in the code that looks for quiz attempts that
might be in the wrong state.
2012-07-02 16:44:35 +08:00
Tim Hunt 592443f4e1 MDL-34109 quiz cron: change whitespace before applying the fix.
This commit just changes the white-space, but does not change any of the
actual code. This is so that the commit I am about to make, which will
change the code, will be easier to understand.
2012-07-02 16:44:29 +08:00
Dan Poltawski dabab94b6e Merge branch 'w27_MDL-34045_m23_idnumber' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-02 16:34:17 +08:00
Dan Poltawski 039089f3aa Merge branch 'MDL-34025_m23' of https://github.com/markn86/moodle into MOODLE_23_STABLE 2012-07-02 16:28:12 +08:00
Rossiani Wijaya 41c548bb23 MDL-33030 Lesson module: fixed progress bar 2012-07-02 16:20:40 +08:00
Dan Poltawski 9cb942820c Merge branch 'MDL-33924_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-02 16:19:19 +08:00
Dan Marsden 0ba1ee1dd2 MDL-33914 SCORM show scrollbar on TOC if too long. 2012-07-02 16:14:23 +08:00
Dan Marsden 7debccbdee MDL-33835 Marking Guide - set currentfocus var to the first criteria comment to avoid JS errors. 2012-07-02 16:10:26 +08:00
Dan Poltawski 9a211c853d Merge branch 'MDL-33780_23' of git://github.com/timhunt/moodle into MOODLE_23_STABLE 2012-07-02 16:07:32 +08:00
Marina Glancy ed8cab855e MDL-33721 show loading icon after file has been selected in filepicker, prevent clicking select button twice 2012-07-02 16:00:21 +08:00
Dan Poltawski 6253f69246 Merge branch 'm23_MDL-33053_AICC_flattened_TOC' of git://github.com/scara/moodle into MOODLE_23_STABLE 2012-07-02 15:50:18 +08:00
Dan Poltawski 49ac5deff6 Merge branch 'MDL-32605-m23' of git://github.com/ankitagarwal/moodle into MOODLE_23_STABLE 2012-07-02 15:45:59 +08:00
Andrew Davis 6737eda426 MDL-25476 messages: switched some notification emails to come from the support contact instead of admin 2012-07-02 15:41:29 +08:00
Frederic Massart c7132d7c93 MDL-9073 Glossary: uncategorised entries are printable 2012-07-02 15:34:06 +08:00
Kanika Goyal d9b9bfd288 MDL-31203 mod_forum: advanced search posts must be newer older than date, reverts date 2012-07-02 15:24:10 +08:00
Rossiani Wijaya ec70cf6ef1 fixed the ->spacer <br> param 2012-07-02 15:20:43 +08:00
Mark Nielsen a6b0b36cdc fixed undefined variable 2012-07-02 15:20:37 +08:00
Rajesh Taneja a8380712bb MDL-33943 tool_replace: Hardcoded strings replaced with lang strings 2012-07-02 15:18:41 +08:00
Dan Poltawski 3e839bd513 Merge branch 'MDL-31987_assignment_m23' of git://github.com/rwijaya/moodle into MOODLE_23_STABLE 2012-07-02 15:12:47 +08:00
Dan Poltawski 8633142f53 Merge branch 'MDL-34019-pluginlib-notice' of git://github.com/mudrd8mz/moodle into MOODLE_23_STABLE 2012-07-02 15:02:37 +08:00
Tim Hunt 564b878840 MDL-34054 quiz reports: missing context.
quiz_report_should_show_grades needs to know the context, so pass it
through.
2012-07-02 14:57:29 +08:00
Dan Poltawski c3f59e043c MDL-33995 - unit tests: fix class name collision 2012-07-02 14:52:57 +08:00
Rossiani Wijaya 4b0e6f38fa MDL-31987 Assignment module: fixed upgrade version 2012-07-02 14:51:47 +08:00
Dan Poltawski fb978df0f0 MDL-31987 Assignment module: fix sql for postgres. 2012-07-02 14:49:29 +08:00
Rossiani Wijaya 45353da409 MDL-31987 Assignment module: Assignment count submissions correctly.
For advanced upload assignment, store file count of each submission
into assignment_submissions.numfiles

When counting submissions, if the assignment is open and tracking
drafts, only submissions which has send for marking are counted.
Otherwise, submissions which has numfiles > 0 are counted.

Also change a hardcoded 'submitted' to ASSIGNMENT_STATUS_SUBMITTED.

This patch was originally written by: Sunner Sun <sunner@gmail.com>.

I made some modifation to fixed count_real_submissions() query (ref: MDL-32207) in /mod/assignment/type/upload/assignment.class.php file
2012-07-02 14:49:29 +08:00
Rajesh Taneja 419aed3539 MDL-29969 Administration: Default value for numsections is set to 1 for site frontpage 2012-07-02 14:33:37 +08:00
Jerome Mouneyrac 08641906e1 MDL-33995 Course external PHPunit test + externallib_testcase helper class 2012-07-02 14:13:44 +08:00
Jerome Mouneyrac 6b5ce20c16 MDL-33776 Web services: get_categories - subcategories should be checked against visible/theme keys 2012-07-02 14:13:38 +08:00
Dan Marsden 800fb7533e MDL-33978 SCORM activity completion - don't tiggere completion update state on creation of SCORM 2012-07-02 13:44:35 +08:00
Andrew Davis 789c8b8194 MDL-33686 Repositories: we were accessing a non-existent variable and thus never displaying the maximum number of attachments 2012-07-02 14:53:50 +12:00
Andreas Grabs e9aa190a37 MDL-33932_master - added array_unique() 2012-07-02 14:32:09 +12:00
Andreas Grabs 786ad3511c MDL-33627 - feedback block now show all feedbacks 2012-07-02 14:06:42 +12:00
Sam Hemelryk abfc9e2512 MDL-33521 css: Fixed invalid CSS in core CSS and plugin styles.css files 2012-07-02 11:34:53 +12:00
Frederic Massart e5c2bbd0f7 MDL-33303 Filepicker: resized to match HTML editor and made resizable 2012-07-02 11:34:27 +12:00
Eloy Lafuente (stronk7) 1494f20da3 weekly release 2.3+ 2012-07-02 00:54:05 +02:00
Eloy Lafuente (stronk7) 4fa4a727b4 Merge branch 'MDL-34119_M23' of git://github.com/lazydaisy/moodle into MOODLE_23_STABLE 2012-07-02 00:30:28 +02:00
Sam Hemelryk 4be710795a Merge branch 'MDL-34044-23' of git://github.com/srynot4sale/moodle into MOODLE_23_STABLE 2012-07-02 08:22:35 +12:00
Eloy Lafuente (stronk7) 9ea40f27a0 Merge branch 'w27_MDL-34130_m23_recordsettests' of git://github.com/skodak/moodle into MOODLE_23_STABLE 2012-07-01 22:01:22 +02:00
Petr Škoda 19ba134d3b MDL-34130 prevent some warning in PHPStorm 2012-07-01 21:50:56 +02:00
Petr Škoda d0812ba0e6 MDL-34130 test recordset data is static
We do not want recordset results to be affected by subsequent update or delete queries.
2012-07-01 21:40:37 +02:00
Petr Škoda a2b8856558 MDL-34130 add missing rs close
Thanks Eloy!
2012-07-01 21:40:36 +02:00
Petr Škoda a61e8c8ebe MDL-34130 test interaction of recordsets and transactions 2012-07-01 21:40:36 +02:00
Petr Škoda 1cf431a329 MDL-34130 test nested recordset iteration 2012-07-01 21:40:36 +02:00
Petr Škoda 9ee97228bd MDL-34130 fix data inserts in recordset tests 2012-07-01 21:40:36 +02:00
Petr Škoda 43fb824bd2 MDL-34125 fix regression when deleting activity modules
Credit goes to Gordon Bateson.
2012-07-01 10:05:22 +02:00
Eloy Lafuente (stronk7) 9d774c9445 Merge branch 'MDL-32249c-23' of github.com:srynot4sale/moodle into MOODLE_23_STABLE 2012-07-01 02:14:39 +02:00
Sun Zhigang 8b3d60557c MDL-31201 wiki: fix a hardcoded string 2012-06-30 22:01:08 +02:00
Petr Škoda 134affd943 MDL-34123 use user's lang when sending new emails 2012-06-30 20:46:30 +02:00
Petr Škoda 5df5bcba99 MDL-34036 fix course role user selector 2012-06-30 15:40:30 +02:00
Petr Škoda 93fd7cb10c MDL-34121 drop unused backup tables that were supposed to be dropped long ago
The backup/restore leftovers that referenced these will be dropped in 2.4
2012-06-30 14:00:52 +02:00
Mary Evans 3705a88629 MDL-34119_M23 theme_splash: Added colourswitcher.js and associated code in layout files and lib.php 2012-06-30 12:02:22 +01:00
Petr Škoda 5cb477c4a1 MDL-34120 do not try to create new passwords for incorrectly deleted users
There is still some code that ignores delete_user() and instead hacks the user table directly, skip the borked user records for now when sending new passwords.
2012-06-30 09:07:18 +02:00
Petr Škoda 4aabce216c MDL-33876 skip deleted users in enrol_database sync 2012-06-30 08:44:55 +02:00
Petr Škoda b273b20a7c MDL-34115 fix sorting in blocks admin UI
Comparison of arrays is not locale aware.
2012-06-30 08:34:02 +02:00
Petr Škoda f8e05deb35 MDL-34045 fix invalid idnumber field type in cohort form 2012-06-30 07:57:51 +02:00
Mary Evans 263e8c144c MDL-34119_M23 theme_splash: removed redundant js call in lib.php. Added lang option to config.php + amended lang output in layout files. Added some css to style langmenu + removed redundant loginicon in pagelayout.css 2012-06-30 00:50:34 +01:00
Frederic Massart 3e0b5f78a2 MDL-32297 Forms: Date Picker JS popup is not constraint to parent form 2012-06-29 14:18:59 +08:00
Aparup Banerjee b574c078a6 MDL-34096 Installation : Added 2.3 upgrade line to db upgrade scripts. 2012-06-29 11:37:01 +08:00
Frederic Massart 37817a0cd8 MDL-34077 Repositories: Flickr and Picasa can have custom names 2012-06-28 12:12:32 +08:00
Adam Olley a44c303d63 MDL-31802: Remove section summaries from navigation_cache 2012-06-28 11:03:49 +09:30
Tim Hunt e5ff0d3278 MDL-33924 quiz: incorrect foreign key definition.
Thanks to Jean-Michel Vedrine for spotting this.≈
2012-06-27 08:26:26 +01:00
Mark Nelson faca708484 MDL-34025 - quiz secure window: fix popup closing 2012-06-27 14:31:03 +08:00
Ankit Agarwal fc14c79fc9 MDL-32605 calendar: Fixing the missing parameter for get_string call 2012-06-27 13:34:39 +08:00
Aaron Barnes 2670a3a684 MDL-34044 completion: Fix regression caused by MDL-26626 2012-06-27 11:54:41 +12:00
David Mudrák d81d6ea2c3 MDL-33453 Make it clear what search_references() and search_references_count() are good for
Initially it was not clear enough that these two methods are supposed to
be used for looking for references to a stored_file only. So the docs
comments are improved and unittests added to illustrate the usage.

The patch also removes the unittest for get_references_by_storedfile()
as its usage is already covered in other test methods.
2012-06-26 16:28:30 +02:00
Tim Hunt b0cf55f145 MDL-34008 formslib: repeat_elements replace {no} for submits & buttons 2012-06-26 10:38:50 +01:00
Tim Hunt 5af6c9676e MDL-33780 question import: strip UTF8 BOM
Previously, if there was a byte-order mark at the start of the file, the
import would just break, which was silly. Much better to just strip it
off.
2012-06-26 10:34:19 +01:00
Tim Hunt 225e058685 MDL-30883 question flags: aria attributes for accessibility
Also, update code to use html_writer, and fix pointer style when not
editable.
2012-06-26 10:31:36 +01:00
Tim Hunt 3d348a3cc7 MDL-32062 question engine: fix re-grading attempts from 2.0
The code to upgrade attempts from before Moodle 2.0 to 2.1 created
attempt data that was not exactly the same as a new attempt created in
2.1+. This did not matter very much - revew and the quiz reports all
worked OK - but it broke on re-grade.

These changes detect the problem data in the re-grade code, an apply a
work-around so that the re-grade gives the correct result.
2012-06-26 10:11:37 +01:00
David Mudrák 896f9ae83b MDL-34019 Fix response item key name 2012-06-26 09:12:35 +02:00
Mary Evans 11824b0461 MDL-33987_M23 theme_anomaly: amended some css values to style dock better also removed exclude parent theme stylesheet as it refered to a none existant file in base theme. 2012-06-26 03:40:37 +01:00
Aaron Barnes 9b57d5bc38 MDL-32249 completion: Make grade criteria more consistent
Also, round course grades and remove hardcoded string.

Note: This patch also removes the ability to update the course grade
from the completion interface
2012-06-26 14:12:53 +12:00
Eloy Lafuente (stronk7) a5f6ea2e88 Moodle release 2.3 2012-06-25 17:51:17 +02:00
Eloy Lafuente (stronk7) 7dcdca9c85 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-06-25 17:44:13 +02:00
Martin Dougiamas 386a862f95 MDL-34004 - reinstate the custom HTML icon as separate from other markup icons, because it usually means a "page" to most people that displays in the browser. These icons are temporary (but workable) until Barbara can put in some nice ones that work as a set. The 16px one is from Moodle 2.2 and the others are copies of "unknown". 2012-06-25 23:05:44 +08:00
Dan Poltawski a2be8d9dbe Merge branch 'MDL-33984' of git://github.com/stronk7/moodle 2012-06-25 21:56:54 +08:00
Eloy Lafuente (stronk7) 84874400c5 MDL-33984 mysql: take rid of old unicode & mysql 4.1 message on error. 2012-06-25 15:48:24 +02:00
Dan Poltawski a9ca93db95 Merge branch 'MDL-33984' of git://github.com/stronk7/moodle 2012-06-25 18:46:59 +08:00
Eloy Lafuente (stronk7) 95bcc6e2d3 MDL-33984 mysql - raise min version to 5.1.33.
Because of http://bugs.mysql.com/bug.php?id=42758 and other benefits.
2012-06-25 12:32:25 +02:00
Aparup Banerjee f5fee1e148 Merge branch 'MDL-33694' of git://github.com/danpoltawski/moodle 2012-06-25 16:45:23 +08:00
Dan Poltawski 3ab04302dd Merge branch 'MDL-33999' of git://github.com/nebgor/moodle 2012-06-25 16:35:09 +08:00
Dan Poltawski 6100b006f1 Merge branch 'wip-MDL-33777-master' of git://github.com/marinaglancy/moodle 2012-06-25 16:18:27 +08:00
Aparup Banerjee 13429b9596 MDL-33999 filemanager : fixed up incorrect string used in dialog button during folder renaming 2012-06-25 16:18:21 +08:00
Dan Poltawski b0d3162930 Merge branch 'wip-MDL-33997-master' of git://github.com/marinaglancy/moodle 2012-06-25 16:08:33 +08:00
Marina Glancy c8161eec94 MDL-33997 Repository should not support references by default 2012-06-25 16:03:25 +08:00
Dan Poltawski 72b33964f6 MDL-33694 repository: docs about 2.3 changes 2012-06-25 16:01:54 +08:00
Andrew Robert Nicols 26992cf171 MDL-33926 Add window scrolling when drag/dropping 2012-06-25 15:27:46 +08:00
Dan Poltawski 4c8926c7c3 Merge branch 'wip-MDL-33987-m23' of git://github.com/samhemelryk/moodle 2012-06-25 15:08:12 +08:00
Aparup Banerjee 224d186ebb Merge branch 'wip-MDL-33419-master' of https://github.com/barbararamiro/moodle 2012-06-25 14:30:18 +08:00
Sam Hemelryk 511a58d945 MDL-33987 theme_anomaly: Fixed up a couple of issues with the dock
* Active title displayed incorrectly because they had a limited width which I removed
* Docked block content was indented because block titles are now floated in anomaly.
  To fix this I gave it a bottom border, forcing it clear.
2012-06-25 17:17:37 +12:00
Dan Poltawski d71f207da0 Merge branch 'wip-MDL-33985-m23' of git://github.com/samhemelryk/moodle 2012-06-25 13:00:33 +08:00
Sam Hemelryk 125231acf9 MDL-33985 theme_base: Fixed bad conflict resolution of course CSS rtl fixes 2012-06-25 16:53:39 +12:00
Dan Poltawski f935363572 Merge branch 'MDL-33980' of github.com:equella/moodle 2012-06-25 11:20:40 +08:00
Marina Glancy c01f7628f7 MDL-33777 Equella repository properly set the source and display file origin 2012-06-25 10:57:02 +08:00
nread 75d1891548 MDL-33980 equella: course ID number should be being passed through, not the course database ID 2012-06-25 12:33:49 +10:00
AMOS bot 6c213ef776 Automatically generated installer lang files 2012-06-25 00:31:38 +00:00
Petr Skoda aefe9734fa MDL-33733 fix broken zip_packer->extract_to_storage() when extracting from stored_file 2012-06-25 01:32:50 +02:00
Eloy Lafuente (stronk7) ba3e7df265 Moodle release 2.3rc1 2012-06-24 18:37:12 +02:00
Eloy Lafuente (stronk7) 4f1d79538e Fix permissions. 2012-06-24 18:31:09 +02:00
Eloy Lafuente (stronk7) bec3cd5b18 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-06-24 18:27:53 +02:00
Dan Marsden e0d90c54c0 MDL-33938 SCORM use consistant naming for maxattempt setting - match setting name with db field name to help when matching default settings 2012-06-22 21:51:04 +12:00
Dan Poltawski 5b7621f78d Merge branch 'MDL-33717_admin_message2' of git://github.com/andyjdavis/moodle 2012-06-22 15:09:46 +08:00
Damyon Wiese 99467a9f7f MDL-33853: Prevent locking an assignment submission from putting a grade of 0 in the gradebook 2012-06-22 11:12:06 +08:00
Sam Hemelryk 31ea84a503 Merge branch 'MDL-32769-master' of git://github.com/ankitagarwal/moodle 2012-06-22 14:40:09 +12:00
Sam Hemelryk cc0823118d Merge branch 'wip-MDL-33931-master' of git://github.com/abgreeve/moodle 2012-06-22 14:25:54 +12:00
Damyon Wiese dd9247adfe MDL-33954: Assignment "submissionreceipthtml" Language change
Add the missing word: "see"
2012-06-22 09:03:18 +08:00
AMOS bot 0773a5161a Automatically generated installer lang files 2012-06-22 00:31:21 +00:00
Sam Hemelryk 088c374a6d Merge branch 'MDL-33430-reference-restore' of git://github.com/mudrd8mz/moodle
Conflicts:
	lib/db/install.xml
	lib/db/upgrade.php
	version.php
2012-06-22 11:56:49 +12:00
Sam Hemelryk 0e5533b607 MDL-32769 completion: Fixed up display of completion information 2012-06-22 10:42:56 +12:00
Sam Hemelryk a273391e4a Merge branch 'MDL-33936-master-1' of git://git.luns.net.uk/moodle 2012-06-22 09:47:13 +12:00
Sam Hemelryk c691963939 Merge branch 'wip-MDL-33928-master' of git://github.com/phalacee/moodle 2012-06-22 09:33:25 +12:00
Sam Hemelryk c5541daf00 Merge branch 'MDL-33915' of git://github.com/danpoltawski/moodle 2012-06-22 09:02:50 +12:00
David Mudrák 7b5f67f77f MDL-33430 Notify user about file aliases failures at the final stage of the restore 2012-06-21 15:22:38 +02:00
David Mudrák ff8734f21d MDL-33430 Give tasks an access to their current plan's results
This in turn provides access to the plan's results for both structure and
execution steps so they can register something useful there.
2012-06-21 12:28:09 +02:00
David Mudrák fb3a57e2d4 MDL-33430 Fix strict standards warning
Only variables should be passed by reference.
2012-06-21 12:28:09 +02:00
Barbara Ramiro 5a322c8cfc MDL-33381 Icon label removed for all file types to make it generic 2012-06-21 18:19:33 +08:00
David Mudrák d129c3608f MDL-33430 Add caching into choose_repository() method
Simply do not repeat expensive search once the restore process decides how
to deal with the given repositoryid or repositorytype.
2012-06-21 12:17:54 +02:00
Aparup Banerjee 7cacb2ef08 Merge branch 'wip-MDL-33297-master' of git://github.com/abgreeve/moodle 2012-06-21 17:34:57 +08:00
Barbara Ramiro a1b0852779 MDL-33419 Reference/source icons in table view and list view displayed and smaller 2012-06-21 17:13:43 +08:00
Andrew Robert Nicols c397e0c8bc MDL-33936 Detect activity chooser in block_site_main_menu correctly 2012-06-21 09:19:20 +01:00
Ankit Agarwal dce49c1c38 MDL-32769 course: Moving the completion status to a new line 2012-06-21 16:16:48 +08:00
Dan Poltawski 2a67e6f28b MDL-33911 mathslib: add unit test to demonstrate problem 2012-06-21 16:00:45 +08:00
Dan Poltawski 1e485acd7d Merge branch 'MDL-33911' of git://github.com/timhunt/moodle 2012-06-21 16:00:08 +08:00
Adrian Greeve 612aee17b0 MDL-33931 - themes - Change of the base theme to align the submit and cancel buttons with the rest of the mform (15%) 2012-06-21 15:47:02 +08:00
Dan Poltawski 75c8a109e5 Merge branch 'MDL-33878' of git://github.com/netspotau/moodle-mod_assign 2012-06-21 15:21:13 +08:00
Dan Poltawski 22b0514e27 Merge branch 'MDL-33860' of git://github.com/netspotau/moodle-mod_assign 2012-06-21 14:56:07 +08:00
Damyon Wiese caff10a0b0 MDL-33850: Assignment: Change text to "Add submission" before anything has been submitted
AMOS BEGIN
 CPY [addsubmission,mod_assignment],[addsubmission,mod_assign]
AMOS END
2012-06-21 14:48:53 +08:00
Damyon Wiese 7056953a1c MDL-33860: Use get_string for All option in assignment grading table 2012-06-21 14:48:28 +08:00
Ankit Agarwal 68b8cc84af MDL-32769 course: Do not show a completion status of 0/0 2012-06-21 13:29:46 +08:00
Mary Evans 088511ded6 MDL-33785 theme_base: RTL fixes added to style/filemanager.css
Conflicts:

	theme/base/style/filemanager.css
2012-06-21 17:24:07 +12:00
Dan Poltawski 026082b401 MDL-33915 - prevent use of rebuild_course_cache during upgrade
It depends on upgrade changes itself
2012-06-21 11:43:54 +08:00
Jason Fowler 3d24b287be MDL-33928 - Installation - Fixing the size of the host field for database details in the installation stage 2012-06-21 11:18:51 +08:00
Andrew Davis 7db6bb7f61 MDL-33717 files: improved display_size() so that it displays something nice for -1 2012-06-21 10:14:32 +07:00
Dan Poltawski 334de6b691 Merge branch 'MDL-33877' of git://github.com/netspotau/moodle-mod_assign 2012-06-21 10:04:29 +08:00
David Mudrák 2c1426743a MDL-33430 Add process_file_aliases_queue restore step to the final task
This execution step tries to actually restore all aliases that were
stashed in the file aliases queue.
2012-06-21 02:31:26 +02:00
David Mudrák 83b2cc562d MDL-33430 Set newcontextid and newitemid when sending file to the pool 2012-06-21 02:31:18 +02:00
David Mudrák 38ca2f1a83 MDL-33430 Add newcontextid and newitemid to backup_files_template
These new fields will be used to hold the new location of the file once
it is sent to the filepool during the restore.
2012-06-21 02:29:42 +02:00
David Mudrák 4b6b087faf MDL-33430 Do not restore aliases yet, stash them for later processing 2012-06-21 02:29:34 +02:00
Sam Hemelryk 5f17311f52 MDL-27675 mod_feedback: Fixed up white space 2012-06-21 11:40:38 +12:00
David Mudrák 79b810fdc0 MDL-33430 Include repository type in files.xml in MBZ backup file
This is a valuable information needed especially when restoring the MBZ
at another site. The repositoryid itself is not enough there to identify
the type of the repository.
2012-06-21 01:32:25 +02:00
David Mudrák 6feae1d256 MDL-33430 Make file_storage::unpack_reference() more picky on what it gets 2012-06-21 01:32:24 +02:00
Sam Hemelryk d2448b8bd2 Merge branch 'MDL-27675_master' of git://github.com/grabs/moodle 2012-06-21 11:25:07 +12:00
Sam Hemelryk 92e0842978 Merge branch 'MDL-33808' of git://github.com/danpoltawski/moodle 2012-06-21 10:19:05 +12:00
Sam Hemelryk 21cb669f36 Merge branch 'MDL-33845_folder_whitespace' of git://github.com/moodler/moodle 2012-06-21 10:01:49 +12:00
Sam Hemelryk 45d011c896 Merge branch 'MDL-32479_master' of git://github.com/lazydaisy/moodle
Conflicts:
	theme/base/style/core.css
2012-06-21 09:46:32 +12:00
Tim Hunt 4efc3d4096 MDL-33911 lib/evalmath: fix strict syntax notices 2012-06-20 13:48:37 +01:00
Aparup Banerjee c575842ce9 Merge branch 'MDL-33683-master-2' of git://git.luns.net.uk/moodle 2012-06-20 19:36:22 +08:00
Dan Poltawski 5649520d9b Merge branch 'MDL-33891-master-1' of git://git.luns.net.uk/moodle 2012-06-20 17:43:47 +08:00
Andrew Robert Nicols ae86017339 MDL-33683 Determine sectionid for activity chooser at display time
Rather than calculate the sectionid for the activity chooser on page load,
we do so when opening the chooser. This resolves issues where sections have
been moved without swapping all of the section IDs around.
2012-06-20 10:32:10 +01:00
Andrew Robert Nicols dfe15e0ef9 MDL-33891 Ensure that listen events are cancelled correctly when closing the dialogue 2012-06-20 10:18:19 +01:00
Aparup Banerjee 4c7d9eb5c2 Merge branch 'wip-MDL-33811-m23' of git://github.com/samhemelryk/moodle 2012-06-20 17:18:00 +08:00
Aparup Banerjee 01158d86c4 Merge branch 'wip-MDL-33715-m23' of git://github.com/samhemelryk/moodle 2012-06-20 16:57:51 +08:00
Dan Poltawski 73ec069e3b Merge branch 'wip-MDL-33832-master' of git://github.com/marinaglancy/moodle 2012-06-20 16:55:29 +08:00
Aparup Banerjee c949723817 Merge branch 'wip-MDL-33825-m23' of git://github.com/samhemelryk/moodle 2012-06-20 16:50:54 +08:00
Dan Poltawski e3c7845314 Merge branch 'MDL-27156_part2' of git://github.com/andyjdavis/moodle 2012-06-20 16:38:13 +08:00
Andrew Davis 703ffaea05 MDL-27156 repositories: altered a check as the !empty() test on $PAGE->course was always failing for some reason 2012-06-20 15:17:12 +07:00
Marina Glancy 83d2700ec9 MDL-33832 Fixed filling of files.source field
- also supress the error on unserialise (because people already may have broken files.source field)
- also display details about unparseable JSON error
- make source field look the same across repositories
2012-06-20 16:09:37 +08:00
Aparup Banerjee 3262f547fc Merge branch 'MDL-33649-master-2' of git://git.luns.net.uk/moodle 2012-06-20 15:19:18 +08:00
Rajesh Taneja 99f374c457 MDL-33419 Filepicker: Reference/source icons are visible in filemanager list and table view 2012-06-20 15:07:58 +08:00
Aparup Banerjee cd29a5822f Merge branch 'MDL-33722-master-wip' of git://git.luns.net.uk/moodle 2012-06-20 14:53:20 +08:00
Aparup Banerjee 7189225b7a Merge branch 'MDL-33728-master-1' of git://git.luns.net.uk/moodle 2012-06-20 14:49:16 +08:00
Aparup Banerjee f65d3d1d18 Merge branch 'MDL-33703-master-3' of git://git.luns.net.uk/moodle 2012-06-20 14:39:58 +08:00
Damyon Wiese 1f417de84a MDL-33877: Prevent duplicate records in grade items table after running assignment upgrade tool
The cause was multiple calls to set_field on the same table. Changed to update_record.
2012-06-20 14:33:33 +08:00
Aparup Banerjee eca0371465 Merge branch 'MDL-33729-master-1' of git://git.luns.net.uk/moodle 2012-06-20 14:28:05 +08:00
Dan Poltawski b1c43c3f64 Merge branch 'w25_MDL-33831_m23_glossestrict' of git://github.com/skodak/moodle 2012-06-20 13:57:26 +08:00
Dan Poltawski a3086f3233 Merge branch 'MDL-33875' of git://github.com/stronk7/moodle 2012-06-20 13:45:49 +08:00
Dan Poltawski 6e471afe8b Merge branch 'wip-MDL-33417-master' of git://github.com/marinaglancy/moodle 2012-06-20 13:42:19 +08:00
Dan Poltawski b19af5b41c Merge branch 'MDL-33862-master-1' of git://git.luns.net.uk/moodle 2012-06-20 13:22:42 +08:00
Damyon Wiese 14c46e24a9 MDL-33878: Assignment - prevent error when removing overridden flag in gradebook
This error only occurs when there is a submission but no grade in the assignment
and the feedback comments plugin is enabled.
2012-06-20 13:11:19 +08:00
Aparup Banerjee 900183ebf7 MDL-33357 theme : mymobile whitespace fixes 2012-06-20 12:49:20 +08:00
Andrew Davis bc8da017b5 MDL-27156 repositories: altered filepicker.php so that users with the ability to ignore course file size restrictions are not incorrectly restricted 2012-06-20 11:27:31 +07:00
Aparup Banerjee b2d1c67e2c MDL-33357 theme : mymobile whitespaces fixup 2012-06-20 12:11:28 +08:00
Aparup Banerjee 23099d5beb Merge branch 'MDL-33357-3' of git://github.com/epsd/moodle 2012-06-20 12:11:07 +08:00
Dan Poltawski d8d2eebb44 Merge branch 'MDL-33773' of git://github.com/netspotau/moodle-mod_assign 2012-06-20 11:25:08 +08:00
Dan Poltawski f14651b6b1 Merge branch 'MDL-27156_part2' of git://github.com/andyjdavis/moodle 2012-06-20 11:17:01 +08:00
Aparup Banerjee e77fe8f020 Merge branch 'MDL-33856-master-1' of git://git.luns.net.uk/moodle 2012-06-20 11:00:38 +08:00
Adrian Greeve 35ca63c166 MDL-33297 - forum - workshop - glossary - data - Updated the check for files to allow students to see files they recently uploaded. 2012-06-20 10:49:18 +08:00
Jason Fowler e85b7e7865 MDL-32290 - Repositories - Fixing missing slash from the URL path 2012-06-20 10:41:58 +08:00
Ankit Agarwal 7c05cd0e1f MDL-32769 course: Adding completion summary to course sections 2012-06-20 09:38:35 +08:00
Eloy Lafuente (stronk7) 4388b63177 MDL-33875 delete category: fix E_STRICT reset() by ref. 2012-06-20 03:31:44 +02:00
AMOS bot 2406894a20 Automatically generated installer lang files 2012-06-20 00:31:14 +00:00
Eloy Lafuente (stronk7) 7128d8fca2 MDL-32003 xmldb: Use action error for filemodified check instead of structure one (protected attr). 2012-06-20 02:04:02 +02:00
Eloy Lafuente (stronk7) cb172822e5 Merge branch 'w25_MDL-32003_m23_dbcleanup' of git://github.com/skodak/moodle 2012-06-20 02:03:47 +02:00
Sam Hemelryk f7dc4a5630 Merge branch 'MDL-3971' of git://github.com/danpoltawski/moodle 2012-06-20 11:39:59 +12:00
Sam Hemelryk 1e3d84785a Merge branch 'wip-mdl-33425' of git://github.com/rajeshtaneja/moodle 2012-06-20 11:32:04 +12:00
Sam Hemelryk a9efc8ddb8 Merge branch 'MDL-32908' of git://github.com/danpoltawski/moodle 2012-06-20 10:31:52 +12:00
Sam Hemelryk ec1ca38996 Merge branch 'MDL-33843' of git://github.com/netspotau/moodle-mod_assign 2012-06-20 09:36:22 +12:00
Sam Hemelryk dae0c90dbd Merge branch 'wip-mdl-33506' of git://github.com/rajeshtaneja/moodle 2012-06-20 09:15:48 +12:00
John Stabinger 256c51fab0 MDL-33357 update mymobile inline for 2.3, attempt 3 2012-06-19 13:44:51 -04:00
Andrew Robert Nicols a51cf9302b MDL-33862 Ensure that a chooserspan exists before trying to set it up 2012-06-19 15:43:14 +01:00
Andrew Robert Nicols baca909631 MDL-33703 Adjust chooser location when changing browser orientation or size 2012-06-19 15:33:07 +01:00
Damyon Wiese d9a88f427d MDL-33773: Make view/grade all submissions a link in assignment module 2012-06-19 22:08:21 +08:00
Dan Poltawski f189c540b9 Merge branch 'MDL-33842_antivirus_message' of git://github.com/davosmith/moodle 2012-06-19 21:52:27 +08:00
Davo Smith 78b4da1963 MDL-33842 Filemanager dndupload - now displays error messages (including antivirus) 2012-06-19 14:27:12 +01:00
Petr Škoda 9bba13089d MDL-33831 fix E_STRICT issues in glossary 2012-06-19 13:57:11 +02:00
Andrew Robert Nicols 61eadb51af MDL-33856 Correct CSS selectors for chooser dialogues in RTL languages 2012-06-19 10:32:32 +01:00
Dan Poltawski 5e3698fda0 Merge branch 'wip-MDL-33661-master' of https://github.com/barbararamiro/moodle
Conflicts:
	theme/base/style/core.css
2012-06-19 16:28:00 +08:00
Aparup Banerjee 4214bc63a8 MDL-31330 fixed whitespace 2012-06-19 16:13:29 +08:00
Aparup Banerjee 9e4d54e15d Merge branch 'wip-MDL-33130-master' of https://github.com/barbararamiro/moodle
Conflicts:
	theme/base/style/core.css
	theme/base/style/filemanager.css
2012-06-19 16:09:43 +08:00
Martin Dougiamas c23170914a MDL-33845 Removed the hideous amounts of whitespace around the folder edit view for canvas theme (and moved Folder CSS together) 2012-06-19 16:08:28 +08:00
Dan Poltawski 139d3639c8 Merge branch 'MDL-33582-master-integration' of git://github.com/FMCorz/moodle 2012-06-19 15:39:03 +08:00
Damyon Wiese 5382eabbec MDL-33843: Remove custom dirty form handling and use default behaviour in assignment 2012-06-19 15:18:07 +08:00
Dan Poltawski a80b5a0cf0 MDL-32908 - drop $USER->ajax
Its not been respected for some time and is just confusing
2012-06-19 15:07:18 +08:00
Aparup Banerjee 1ee9b37880 Merge branch 'wip-MDL-32990-master' of git://github.com/phalacee/moodle 2012-06-19 14:59:48 +08:00
Jason Fowler 9e9382530f MDL-32990 - Repositories - Updating Box.net API calls to use HTTPS 2012-06-19 14:46:44 +08:00
Barbara Ramiro af9c48cbe9 MDL-33130 Filemanager/Filepicker buttons, Activitity Chooser and Quiz revised to look consistent 2012-06-19 14:36:13 +08:00
Dan Poltawski bb046e61b6 Merge branch 'wip-MDL-33423-m23' of git://github.com/samhemelryk/moodle 2012-06-19 14:29:25 +08:00
Aparup Banerjee 36080a2da2 MDL-30337 : removed extra css affecting LTR when it shouldn't. 2012-06-19 14:27:41 +08:00
Dan Poltawski 4bf433b5fb MDL-33121 book - improve a lang string
+ Make a comment match coding style
2012-06-19 14:15:11 +08:00
Dan Poltawski 34741af185 Merge branch 'MDL-33121' of git://github.com/rwijaya/moodle 2012-06-19 14:14:54 +08:00
Dan Poltawski c1ac8fa189 Merge branch 'MDL-33821-master-1' of git://git.luns.net.uk/moodle 2012-06-19 13:27:07 +08:00
Sam Hemelryk 9d7d2b03c8 MDL-33423 filepicker: Fixed visibility problem with loading icon 2012-06-19 16:53:44 +12:00
Dan Poltawski 8655fb96cf MDL-33808 - format title on the repository instance screen 2012-06-19 12:10:56 +08:00
Dan Poltawski a2e6088c7f MDL-33469 repository_picasa: oops, wrong pluginname in string 2012-06-19 11:56:45 +08:00
Dan Poltawski 102f928621 MDL-33808 - incorrect cleaning of repository names 2012-06-19 11:27:04 +08:00
Marina Glancy 1778f310f3 MDL-33417 Show reference icon for files in filepicker 2012-06-19 11:15:51 +08:00
Eloy Lafuente (stronk7) f18ad1b781 Merge branch 'MDL-33523_master' of git://github.com/dmiletic/moodle 2012-06-19 03:09:30 +02:00
Eloy Lafuente (stronk7) 926b08ca4b Merge branch 'MDL-33623' of git://github.com/danpoltawski/moodle 2012-06-19 03:05:52 +02:00
Eloy Lafuente (stronk7) 25c94edb27 Merge branch 'MDL-33469' of git://github.com/danpoltawski/moodle 2012-06-19 03:01:30 +02:00
Eloy Lafuente (stronk7) f98973c2ff Merge branch 'MDL-33294' of git://github.com/danpoltawski/moodle 2012-06-19 02:59:46 +02:00
Eloy Lafuente (stronk7) f2904fe243 Merge branch 'MDL-33724' of git://github.com/danpoltawski/moodle 2012-06-19 02:56:19 +02:00
Sam Hemelryk 2395a7510f MDL-33825 css_optimiser: Fixed bug where !important was being lost for advanced background styles 2012-06-19 12:32:56 +12:00
AMOS bot 2943b459b5 Automatically generated installer lang files 2012-06-19 00:31:15 +00:00
Sam Hemelryk 624ef76c2f MDL-33811 Fixed left over debugging code preventing proper setting of YUI gallery version 2012-06-19 11:26:23 +12:00
Eloy Lafuente (stronk7) e165512d3a Merge branch 'MDL-33778' of git://github.com/timhunt/moodle 2012-06-19 00:54:39 +02:00
Sam Hemelryk 2e7ce603ff MDL-33423 filepicker: Added delay and fade in to loading icon 2012-06-19 10:11:21 +12:00
Sam Hemelryk 514d31c805 MDL-33715 css_optimiser: enablecssoptimiser setting now triggers theme_reset_all_caches when changed 2012-06-19 10:10:20 +12:00
Andrew Robert Nicols 48e6de1c34 MDL-33821 Fix SQL syntax for recent glossary activity 2012-06-18 16:02:02 +01:00
Tim Hunt 72f2e13d04 MDL-33778 quiz statistics: part and class ids can be strings, not just ints. 2012-06-18 14:39:21 +01:00
Dan Poltawski 07384ecc8b Merge branch 'MDL-33818' of git://github.com/timhunt/moodle 2012-06-18 21:33:26 +08:00
Tim Hunt 584ae11a52 MDL-33818 quiz restore: quiz_attempt.state not restoring old MBZ
This field was new in 2.3, so we need to set it when restoring backups
from 2.2 or before, using the same logic as in upgrade.
2012-06-18 14:09:06 +01:00
Andrew Robert Nicols 2de13ef252 MDL-33722 Set z-index for dndupload-status message to prevent it hiding other items 2012-06-18 11:35:58 +01:00
Eloy Lafuente (stronk7) e04a0e32c7 Merge branch 'MDL-33552' of git://github.com/danpoltawski/moodle 2012-06-18 12:31:37 +02:00
Dan Poltawski 6855fec7fd Merge branch 'MDL-33136_dndfilemanager_replace_file' of git://github.com/davosmith/moodle 2012-06-18 17:36:03 +08:00
Aparup Banerjee 44b836d629 Merge branch 'MDL-33175' of git://github.com/danpoltawski/moodle 2012-06-18 17:14:11 +08:00
Eloy Lafuente (stronk7) f4a9bf65da Moodle release 2.3beta 2012-06-18 10:36:52 +02:00
Eloy Lafuente (stronk7) b18066df83 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-06-18 10:29:12 +02:00
Rossiani Wijaya 0a5b9e79e3 MDL-33121 Book Module: removing prev/next value from book_preload_chapters and more code cleaning 2012-06-18 16:10:15 +08:00
Dan Poltawski 3248a1e1e4 Merge branch 'MDL-33794' of git://github.com/stronk7/moodle
Conflicts:
	mod/assign/version.php
2012-06-18 16:08:39 +08:00
Aparup Banerjee 341d989d63 Merge branch 'MDL-30337_no_risk' of git://github.com/nebgor/moodle 2012-06-18 16:03:08 +08:00
Aparup Banerjee 751fe70671 MDL-30337 theme : cleanup after conflict. 2012-06-18 16:02:34 +08:00
Davo Smith b8a22d22fe MDL-33136 Dndupload filemanager - moved 'overwrite all' and 'rename all' buttons onto new line 2012-06-18 08:56:39 +01:00
Davo Smith d0b2d44528 MDL-33136 Dndupload filemanager - user asked to rename/overwrite file when droping file with existing name 2012-06-18 08:55:41 +01:00
Dan Poltawski f715dc3fd5 Merge branch 'MDL-33573-master-1' of git://git.luns.net.uk/moodle 2012-06-18 15:35:05 +08:00
Dan Poltawski e73c1cafa1 Merge branch 'MDL-33775-master-integration' of git://github.com/FMCorz/moodle 2012-06-18 15:18:02 +08:00
Frederic Massart a41b1d96b6 MDL-33775 Course: fix redirect to course/section in paged mode 2012-06-18 15:10:33 +08:00
Dan Poltawski 584c219edf Merge branch 'wip-MDL-33603-master-v2' of git://github.com/abgreeve/moodle 2012-06-18 15:07:10 +08:00
Dan Poltawski f418c54875 Merge branch 'wip-mdl-33607' of git://github.com/rajeshtaneja/moodle 2012-06-18 14:34:35 +08:00
Dan Poltawski 2b5f4dbbca Merge branch 'MDL-33699' of git://github.com/netspotau/moodle-mod_assign 2012-06-18 13:49:16 +08:00
Dan Poltawski 1eab24d1a4 Merge branch 'MDL-33779' of git://github.com/timhunt/moodle 2012-06-18 13:43:36 +08:00
Dan Poltawski 53db3251da Merge branch 'MDL-33793' of git://github.com/netspotau/moodle-mod_assign 2012-06-18 13:28:07 +08:00
Dan Poltawski 728aee9767 Merge branch 'MDL-33697' of git://github.com/netspotau/moodle-mod_assign 2012-06-18 13:12:56 +08:00
Andrew Davis 448c2f5b9b MDL-27156 repositories: altered filepicker.php so that users with the ability to ignore course file size restrictions are not incorrectly restricted 2012-06-18 11:33:28 +07:00
Dan Poltawski 8a7b0be111 Merge branch 'MDL-33327-2' of git://github.com/netspotau/moodle-mod_assign 2012-06-18 12:17:49 +08:00
Nadav Kavalerchik 6abbcf194e MDL - RTL Theme fixes for Moodle 2 (theme/canvas)
Right align Forms in Report pages (when in RTL mode)
2012-06-18 11:34:51 +08:00
Nadav Kavalerchik 409c12f21a MDL-32479 - RTL Theme fixes for Moodle 2 (theme/base)
Right align Fields in forms (when in RTL mode)

Conflicts:

	theme/base/style/course.css
2012-06-18 11:31:33 +08:00
Dan Poltawski 8b5039361a MDL-33469 google plugins - string update
Improved strings to try and ensure maximum support for users during
upgrade.
2012-06-18 11:28:27 +08:00
Nadav Kavalerchik 0a1617e23f MDL-32479 - RTL Theme fixes for Moodle 2 (theme/base)
Right align item's content (when viewing a Glossary activity in RTL mode)

Conflicts:

	mod/glossary/styles.css
2012-06-18 11:26:07 +08:00
Nadav Kavalerchik 4d488c25b6 MDL-32479 - RTL Theme fixes for Moodle 2 (theme/base)
Right align content (when viewing a Lesson activity in RTL mode)
2012-06-18 11:24:50 +08:00
Nadav Kavalerchik d180d19a83 MDL-32479 - RTL Theme fixes for Moodle 2 (theme/base)
Support for blocks columns switch when in rtl mode:
theme/base/layout/frontpage.php
theme/base/layout/general.php

Right align course completion checkbox to the right side of the activities and resources, when in RTL mode
theme/base/style/course.css

Right align DOCK bar, when in RTL mode
theme/base/style/dock.css

First-name and Last-name Initials (filter) bar (on every users list) letters spacing (usability issue, NOT RTL issue)
theme/base/style/core.css

Conflicts:

	theme/base/style/core.css
	theme/base/style/course.css
2012-06-18 11:24:04 +08:00
Adrian Greeve db79db63ed MDL-33603 - data - added another sql query to allow links to records to work. 2012-06-18 10:21:38 +08:00
Rajesh Taneja 6947c57a06 MDl-33607 wiki-2: check subwiki before fetching it from db 2012-06-18 10:20:29 +08:00
Rajesh Taneja 4e782b32f3 MDL-33425 user: Replaced filepicker with filemanager on edit profile page 2012-06-18 10:19:48 +08:00
Eloy Lafuente (stronk7) c5e783e512 MDL-33794 version.php: Bump all versions, requires and dependencies to 2012061700 2012-06-18 02:37:00 +02:00
Eloy Lafuente (stronk7) 798c9100d8 MDL-33794 assign: fix some incorrect function names 2012-06-18 02:17:03 +02:00
Petr Skoda d8bf2a14b6 MDL-32003 last db related phpdocs cleanup commit 2012-06-17 22:56:30 +02:00
Petr Skoda 002252f714 MDL-32003 standardise null case 2012-06-17 22:56:30 +02:00
Petr Skoda 2edc3fecfb MDL-32003 fix broken table ordering and cleanup other xmldb ordering 2012-06-17 22:56:30 +02:00
Petr Skoda aaddfac50c MDL-32003 more xmldb phpdocs and PHP4-ism cleanup 2012-06-17 22:56:30 +02:00
Petr Skoda 85d6dd382e MDL-32003 fix xmldb editor code indentations, phpdocs and PHP4-isms 2012-06-17 22:56:29 +02:00
Petr Skoda a6d9d4efc2 MDL-32003 fix PHP4-isms in core xmldb code 2012-06-17 22:56:29 +02:00
Petr Skoda ef7c3f108a MDL-32003 protect xmldb class internals
Use getters and setters instead!
2012-06-17 22:56:29 +02:00
Petr Skoda 01be2287c7 MDL-32003 drop unused statement constants
These were last used in 2.2 upgrade, not allowed any more.
2012-06-17 22:56:29 +02:00
Petr Skoda 94417438b3 MDL-32003 fix phpdocs in xmldb abstraction 2012-06-17 22:56:28 +02:00
Petr Skoda 5a070f0477 MDL-32003 fix phpdocs in DDL layer 2012-06-17 22:56:28 +02:00
Petr Skoda 00902cd974 MDL-32003 fix phpdocs and use __DIR__ for includes in dml layer
DML layer is not supposed to use $CFG,
it is better to rely on __DIR__ in self-contained libs…
2012-06-17 22:56:28 +02:00
Eloy Lafuente (stronk7) 130aed6e7e MDL-33794 version.php: Fix some missing bits before bump. 2012-06-17 19:29:44 +02:00
Damyon Wiese 8b2cfdc1c6 MDL-33793: Add conditions to the assignment upgrade code to prevent overwriting grade items. 2012-06-17 22:41:59 +08:00
Dan Poltawski dd4502af6b MDL-3971 - mod_forum: contain () in span 2012-06-16 14:21:28 +08:00
Dan Poltawski 15ea1c9105 MDL-33294 - block_blog_recent: fix E_STRICT error
Default object from empty value
2012-06-16 12:46:07 +08:00
Dan Poltawski 7f3b68a892 MDL-33294 - block_blog_tags: fix E_STRICT error
Default object from empty value
2012-06-16 12:45:41 +08:00
AMOS bot 0187c8637c Automatically generated installer lang files 2012-06-16 00:31:27 +00:00
Mary Evans 642b1ca325 MDL-32479 theme_base: some RTL fixes for Moodle 2.3 2012-06-15 22:00:03 +01:00
Eloy Lafuente (stronk7) 85c4758c5a on-demand release 2.3dev 2012-06-15 20:29:04 +02:00
Eloy Lafuente (stronk7) a4b9f21e45 MDL-27156 maxfilesize: Comment out new cap use + return -1 as temp fix
With the capability check and the return -1 commented
it has been checked here that it's possible to upload
and pick from filesystem repository files normally, so
I'm introducing this temp commit to allow people to
use those repos "normallly" until a proper fix arrives
supporting the new cap.
2012-06-15 20:05:46 +02:00
Tim Hunt ba6425ab3d MDL-33779 question: code clean-up 2012-06-15 14:02:15 +01:00
Dan Poltawski ad9fa9712c Merge branch 'MDL-33756' of git://github.com/stronk7/moodle 2012-06-15 18:38:35 +08:00
Eloy Lafuente (stronk7) b37681d59c Merge branch 'MDL-33726' of git://github.com/danpoltawski/moodle 2012-06-15 12:16:56 +02:00
Eloy Lafuente (stronk7) 363cb2df7e Merge branch 'w24_MDL-33768_m23_filters' of git://github.com/skodak/moodle 2012-06-15 12:07:59 +02:00
Aparup Banerjee 951f9829c0 Merge branch 'MDL-33769-master-1' of git://git.luns.net.uk/moodle 2012-06-15 16:26:56 +08:00
Aparup Banerjee cafc5ae9c3 MDL-30337 Themes : RTL fixes for filepicker and filemanager 2012-06-15 16:15:25 +08:00
Eloy Lafuente (stronk7) b9647509d4 MDL-32279 filters: filters: setup() before filter() is better. 2012-06-15 10:12:53 +02:00
Petr Skoda 4371b301f2 MDL-33768 enable activitynames filter by default in new installs 2012-06-15 09:50:45 +02:00
Petr Skoda 8cd436a32d MDL-33768 enable multimedia filter by default in new installs 2012-06-15 09:44:58 +02:00
Andrew Robert Nicols 8ff6c5ee51 MDL-33769 Switch Submit and Cancel buttons around on Activity Chooser 2012-06-15 08:16:11 +01:00
Damyon Wiese a13edd499d MDL-33699: Allow grades of 0 in assignment quickgrading 2012-06-15 15:13:26 +08:00
Aparup Banerjee a6c3aed35d Merge branch 'MDL-33317-master' of git://github.com/FMCorz/moodle 2012-06-15 14:54:10 +08:00
Dongsheng Cai d6453211b6 MDL-33513: Make files->source field consistent 2012-06-15 14:51:07 +08:00
Marina Glancy 52474d7497 MDL-33136 upload dnd files one after another 2012-06-15 14:48:02 +08:00
Dan Poltawski ed2ed3f97e MDL-33468 - fix illegal whitespace 2012-06-15 12:17:40 +08:00
Dan Poltawski 74ef0474fc Merge branch 'wip-MDL-33468-m23' of git://github.com/samhemelryk/moodle 2012-06-15 12:14:49 +08:00
Dan Poltawski d25887d440 Merge branch 'MDL-33731-master-1' of git://git.luns.net.uk/moodle 2012-06-15 12:10:34 +08:00
Dan Poltawski b44022782b MDL-32279 filter: fix undefined variable 2012-06-15 11:58:03 +08:00
Dan Poltawski ccd4972636 Merge branch 'MDL-33758-master-integration' of git://github.com/FMCorz/moodle 2012-06-15 11:30:33 +08:00
Dan Poltawski f898b935af Merge branch 'MDL-33730' of git://github.com/mouneyrac/moodle 2012-06-15 11:07:48 +08:00
Dan Poltawski 66d9586070 Merge branch 'MDL-32279' of git://github.com/stronk7/moodle 2012-06-15 11:02:47 +08:00
Frederic Massart e7ae9c2600 MDL-33758 Filepicker: using iframe instead of popup windows for download 2012-06-15 10:12:57 +08:00
Eloy Lafuente (stronk7) 936402278b MDL-33756 backup: converters only available in general course backups. 2012-06-15 02:27:18 +02:00
Eloy Lafuente (stronk7) d24f821e0f MDL-32279 filters: add documentation to upgrade.txt 2012-06-15 01:24:18 +02:00
Darko Miletic 7547946580 MDL-33523: Fixed item C of the issue 2012-06-14 17:12:53 -03:00
Eloy Lafuente (stronk7) 0ba48ee899 MDL-32279 glossary filter: take rid of unused courseid variable in yui module. 2012-06-14 20:08:07 +02:00
Eloy Lafuente (stronk7) 3ffb739586 MDL-32279 glossary filter: implement the setup() method. 2012-06-14 20:05:45 +02:00
Eloy Lafuente (stronk7) 6c5dbbb36b MDL-32279 filters: add support for setup() methods in filters. 2012-06-14 20:02:20 +02:00
Darko Miletic 42642f6c35 MDL-33523: for for missing image (the folder.gif is no longer available) 2012-06-14 12:34:10 -03:00
Andrew Robert Nicols 605f92ca1d MDL-33729 Ensure that the cancel_popup event is correctly called when using the [x] button on a chooser 2012-06-14 14:46:24 +01:00
Aparup Banerjee 8db5df0c56 Merge branch 'MDL-33442-master-integration' of git://github.com/FMCorz/moodle 2012-06-14 21:29:45 +08:00
Aparup Banerjee 6971dcf7ec Merge branch 'wip-MDL-33596-m23' of git://github.com/samhemelryk/moodle 2012-06-14 21:09:55 +08:00
Andrew Robert Nicols 346099f08b MDL-33731 Add exception for closebutton when drag/dropping activity chooser 2012-06-14 11:30:29 +01:00
Jerome Mouneyrac 7a38450680 MDL-33730 missing description field cause error when call is done on default values 2012-06-14 18:16:03 +08:00
Andrew Robert Nicols 7db27680f8 MDL-33728 Ensure that chooser dialogues are centred vertically 2012-06-14 10:55:16 +01:00
Dan Poltawski 00c41b4083 MDL-33726 course: don't list labels in section summary
Its a special 'non-activity' kind of activity ;-)
2012-06-14 17:24:49 +08:00
Aparup Banerjee 60d3ff94db Merge branch 'MDL-31499-master-iframe' of git://github.com/FMCorz/moodle 2012-06-14 17:08:18 +08:00
Frederic Massart 76055f5de4 MDL-33442 Course: actions bring you back where you came from 2012-06-14 17:07:57 +08:00
Dan Poltawski ed8e053e64 MDL-33724 repository_equella: missing string 2012-06-14 17:01:39 +08:00
Dan Poltawski d4401b9643 Merge branch 'wip-MDL-33420-master' of git://github.com/marinaglancy/moodle 2012-06-14 16:32:03 +08:00
Dan Poltawski 4585e6ac98 Merge branch 'wip-MDL-33550-master' of git://github.com/marinaglancy/moodle 2012-06-14 16:23:08 +08:00
Marina Glancy 6fd1cf05b0 MDL-33550 reset repository static cache between unit tests 2012-06-14 16:21:04 +08:00
Martin Dougiamas 70b1d892ed MDL-33156 pix: standardise image icons for course pages 2012-06-14 16:04:16 +08:00
Damyon Wiese f750cf712c MDL-33697: Merge the 2 assignment notification types
This is the best solution until Moodle supports capabilities on module message providers.

Unfortunately we already changed the mod_assignment language string so I can't put an AMOS
command to copy the new string.
2012-06-14 15:31:23 +08:00
Damyon Wiese a1e54f4d6c MDL-33327: Layout changes for the assignment grading table
Move the grading actions to a single drop down list above the header
Move the grading options below the grading table (although that is inconsistent)

Conflicts:

	mod/assign/gradingtable.php
	mod/assign/locallib.php
2012-06-14 15:22:42 +08:00
Frederic Massart 247804bcc2 MDL-33582 Filepicker: set main file button disabled when not required 2012-06-14 15:14:57 +08:00
Marina Glancy cfc4db405c MDL-33550 Set default status for file =0 and correct setting user in phpunit test 2012-06-14 14:52:31 +08:00
Dan Poltawski 414ce30812 Revert MDL-33513
This reverts commit b2cf2b807f.
This reverts commit 24b96f0170.
This reverts commit 39c60294a6.
This reverts commit 8a288971e2.
2012-06-14 13:57:45 +08:00
Sam Hemelryk 1875b6fb89 MDL-33468 css_optimiser: Coding style clean up and renamed cssslib_test => csslib_test 2012-06-14 17:28:26 +12:00
Sam Hemelryk de3a460e17 MDL-33468 css_optimiser: Fixed aggressive optimisation so that it only combines siblings and doesn't reorder 2012-06-14 17:25:19 +12:00
Dan Poltawski bc1f298b2a MDL-33175 - filemanager: make dndupload icon clickable 2012-06-14 13:25:05 +08:00
Rajesh Taneja d01ebb940d MDL-33506 Filepicker: Search box text will be selected on focus 2012-06-14 13:03:08 +08:00
Sam Hemelryk 778121751d Merge branch 'MDL-32767' of git://github.com/danpoltawski/moodle 2012-06-14 16:37:08 +12:00
Dan Poltawski 1ae5eb704a Merge branch 'MDL-33035-m23' of git://github.com/sunner/moodle 2012-06-14 12:29:14 +08:00
Dan Poltawski 5ab8fde00e Merge branch 'MDL-33718' of git://github.com/netspotau/moodle-mod_assign 2012-06-14 12:25:50 +08:00
Dan Poltawski 745b178e42 Merge branch 'wip-MDL-33592-m23' of git://github.com/samhemelryk/moodle 2012-06-14 12:22:39 +08:00
Dan Poltawski a1394f429b Merge branch 'MDL-33464' of git://github.com/netspotau/moodle-mod_assign 2012-06-14 12:20:14 +08:00
Dan Poltawski d21a98a633 MDL-27156 - version bump for new capability 2012-06-14 12:12:39 +08:00
Dan Poltawski 54588ca214 Merge branch 'MDL-27156_file_cap' of git://github.com/andyjdavis/moodle 2012-06-14 12:00:18 +08:00
Damyon Wiese d9eb908d74 MDL-33718: Help text change for assignment module. 2012-06-14 11:23:27 +08:00
Dan Poltawski cd925ac79b Merge branch 'dev_MDL-33513_files_source' of git://github.com/danpoltawski/moodle 2012-06-14 11:12:21 +08:00
Aparup Banerjee 38d488cea1 MDL-33400 Lib : fixed character miscount 2012-06-14 10:56:40 +08:00
Dan Poltawski b2cf2b807f MDL-33513 repositories - fix misleading phpdocs 2012-06-14 10:55:30 +08:00
Dan Poltawski 813f6964ca MDL-33400 questionlib - minor whitespace/equality imporvement 2012-06-14 10:28:34 +08:00
Dan Poltawski e46dfeb7fc Merge branch 'MDL-33400' of git://github.com/nebgor/moodle 2012-06-14 10:27:23 +08:00
Andrew Davis 845c2ae110 MDL-27156 repositories: switched the file manager and the file picker over to using get_user_max_upload_file_size() 2012-06-14 09:19:26 +07:00
Andrew Davis 1812ea3e06 MDL-27156 repositories: switched some spots over to using get_user_max_upload_file_size() instead of get_max_upload_file_size() 2012-06-14 09:19:25 +07:00
Andrew Davis 8ac95c279c MDL-27156 repository: Added a new capability so that select users can bypass file size restrictions 2012-06-14 09:19:25 +07:00
Damyon Wiese 07a4677eb1 MDL-33464: Do not create a grade item on upgrade (mod_assign) because we already reassigned the old one 2012-06-14 09:14:40 +08:00
Sam Hemelryk 78338b8b0e Merge branch 'MDL-33645-master' of git://github.com/ankitagarwal/moodle 2012-06-14 11:31:46 +12:00
Sam Hemelryk 043a53fb25 Merge branch 'MDL-33541' of git://github.com/danpoltawski/moodle 2012-06-14 11:27:37 +12:00
Sam Hemelryk f90848689c Merge branch 'MDL-33554' of git://github.com/mouneyrac/moodle 2012-06-14 11:20:16 +12:00
Aparup Banerjee 0dd0f96373 MDL-33400 Libraries : added callback to *_question_pluginfile without 'mod_' prefix 2012-06-14 01:30:52 +08:00
Eloy Lafuente (stronk7) 3f2939fa3e Merge branch 'w24_MDL-33204_m23_importsort' of git://github.com/skodak/moodle 2012-06-13 18:01:31 +02:00
Eloy Lafuente (stronk7) f7b3e092e9 Merge branch 'w24_MDL-33635_m23_sort' of git://github.com/skodak/moodle 2012-06-13 16:40:07 +02:00
Petr Skoda bc53b4e9d7 MDL-33635 improve collatorlib::ksort() coding style and perf
Thanks Eloy Lafuente for spotting my sloppy coding style!
2012-06-13 16:37:56 +02:00
Dan Poltawski 5c2bbfd6e9 Merge branch 'MDL-33611' of git://github.com/timhunt/moodle 2012-06-13 18:00:01 +08:00
Dongsheng Cai 24b96f0170 MDL-33513 Fixed source field 2012-06-13 19:57:10 +10:00
Andrew Robert Nicols b95b05085c MDL-33649 Hide page scrollbars when a chooser is open
This has the effect of preventing page scrolling which makes the chooser
difficult to use when there are many options or the page is too small.
2012-06-13 10:51:31 +01:00
Dan Poltawski 4413b48000 Merge branch 'MDL-33581' of git://github.com/mouneyrac/moodle 2012-06-13 17:45:27 +08:00
Tim Hunt 3f0e034d75 MDL-33611 quiz: acutally use the right help string
The previous commit for this bug actually managed to use the wrong one.
2012-06-13 10:43:04 +01:00
Dan Poltawski 52f2bb2995 Merge branch 'MDL-33611' of git://github.com/timhunt/moodle 2012-06-13 16:39:24 +08:00
Dan Poltawski dff798fd4a Merge branch 'wip-MDL-33590-master' of git://github.com/marinaglancy/moodle 2012-06-13 16:33:50 +08:00
Dan Poltawski 966f3a11e1 Merge branch 'w24_MDL-33553_m23_portfoliostrict' of git://github.com/skodak/moodle 2012-06-13 16:22:27 +08:00
Barbara Ramiro 64063bdbe2 MDL-33661 Aligned assignment 2.2 and its subtypes 2012-06-13 16:00:03 +08:00
Dan Poltawski eb6afd93b9 Merge branch 'wip-MDL-33597-m23' of git://github.com/samhemelryk/moodle 2012-06-13 15:45:19 +08:00
Rossiani Wijaya fb909757a6 MDL-33121 Book Module: Removing unused book_log(), renamed css class and fixed the book_preload_chpaters: next and previous values 2012-06-13 15:42:58 +08:00
Tõnis Tartes 5b7e511ea8 MDL-33121 Book Module: performed minor changes and cleanup for the module 2012-06-13 15:28:07 +08:00
Rossiani Wijaya b15ef0b058 MDL-33121 Book Module: Fixed documentation header 2012-06-13 15:25:23 +08:00
Dan Poltawski 2333058eb0 Merge branch 'MDL-33691' of git://github.com/netspotau/moodle-mod_assign 2012-06-13 15:24:42 +08:00
Barbara Ramiro ee0f34b514 MDL-33005 Drag and drop animation revised to play once only 2012-06-13 15:12:53 +08:00
Dan Poltawski 3aad3a5e64 Merge branch 'wip-MDL-33452-master' of git://github.com/marinaglancy/moodle 2012-06-13 15:03:07 +08:00
Nadav Kavalerchik 25df8c4e48 MDL-32479 - RTL Theme fixes for Moodle 2 (theme/base)
Correctly align the filemanager-toolbar , .fp-repo-name , .fp-repo-area , .fp-list .fp-repo
.fp-vb-icons , .fp-vb-details , .fp-vb-tree (need more work!)
.fp-icon , .fp-filename
theme/base/style/core.css
theme/base/style/filemanager.css

Conflicts:
	resolved by taking out all non .dir-rtl lines as there were heavy changes to filemanager and filepicker.
	we can't afford changes or breakage to LTR at this point.

	theme/base/style/core.css
	theme/base/style/filemanager.css
2012-06-13 14:44:43 +08:00
Nadav Kavalerchik cbf4d2f3af MDL-32479 - RTL Theme fixes for Moodle 2 (theme/base)
Correctly align the fp-toolbar, fp-pathbar, fp-viewbar, header, fp-mkdir-dlg
Add rtl images to the YUI file-picker
theme/base/style/core.css

Conflicts:
resolution was simply sticking with .dir-rtl changes only as we are near release and .dirrtl is borked.

	theme/base/style/core.css
	theme/base/style/filemanager.css
2012-06-13 14:22:00 +08:00
Dan Poltawski 3292d9f003 Merge branch 'master_MDL-33477' of git://github.com/danmarsden/moodle 2012-06-13 14:08:36 +08:00
Dan Poltawski 1904310572 Merge branch 'MDL-33608-master-1' of git://git.luns.net.uk/moodle 2012-06-13 14:02:05 +08:00
Nadav Kavalerchik 8c5bd0591b MDL-32479 - RTL Theme fixes for Moodle 2 (theme/base)
Right align NEW YUI3 overlay Activity/Resource Chooser
theme/base/style/core.css
2012-06-13 13:55:33 +08:00
Nadav Kavalerchik 7dd65ae2f2 MDL-32802 - RTL CSS fixes for Moodle 2 (lib/editor/tinymce)
Right align theme Clearlooks2
/lib/editor/tinymce/tiny_mce/3.4.9/plugins/inlinepopups/skins/clearlooks2/window.css
2012-06-13 13:55:17 +08:00
Ankit Agarwal 09b46f0e13 MDL-33645 assign: Teachers should not be allowed to change grades if it is overridden in the gradebook 2012-06-13 13:20:54 +08:00
Dan Poltawski 837eef2e64 MDL-33541 - remove cookies from filepicker 2012-06-13 12:17:52 +08:00
Marina Glancy 0b2bfbd1c6 MDL-33550 Correctly process situation when file reference source is missing
- do not die with fatal error if source file in moodle internal repository is missing;
- moved code duplication for moodle repositories into class repository (functions send_file, get_reference_details, get_file_by_reference, get_file_reference);
- update file status after repository::sync_external_file so we know that it is missing (or not missing anymore). Do not run this function more than once for file within one request;
- display readable name for Private Files and Server files with the new format;
- display broken icon in filemanager if we know that source is missing, display information (for admin) where it was located before: see repository::get_reference_details() and extending classes;
- removed unnecessary queries in stored_file::sync_external_file();
- syncronize files before displaying it's size in mod_resource, do not query  directly
2012-06-13 12:11:06 +08:00
Sam Hemelryk 463ccee1de Merge branch 'MDL-33128-master-1' of git://git.luns.net.uk/moodle 2012-06-13 15:40:39 +12:00
Sam Hemelryk a54a08b818 Merge branch 'MDL-32573' of git://github.com/danpoltawski/moodle 2012-06-13 15:32:54 +12:00
Dan Poltawski 9379a9190d Merge branch 'MDL-33576-2' of git://github.com/netspotau/moodle-mod_assign 2012-06-13 11:28:39 +08:00
Sam Hemelryk 7cbd6d8353 Merge branch 'MDL-33675-master-1' of git://git.luns.net.uk/moodle 2012-06-13 15:24:07 +12:00
Damyon Wiese 571cc0b7d2 MDL-33691: The grading table is showing "graded" for assignments with a NULL grade 2012-06-13 11:01:37 +08:00
Dan Poltawski 38569ad3a2 Merge branch 'master_MDL-32937' of git://github.com/danmarsden/moodle 2012-06-13 10:12:21 +08:00
Dan Marsden c6e423695a MDL-33477 Advanced grading Marking Guide - fix lang 2012-06-13 14:09:41 +12:00
Dan Poltawski b9c871b18a Merge branch 'wip-mdl-33664' of git://github.com/rajeshtaneja/moodle 2012-06-13 10:07:32 +08:00
Rajesh Taneja b0fc12189b MDL-33664 Hub: required renderer is passed to backup->display and huburl is initalised before use. 2012-06-13 09:21:13 +08:00
Marina Glancy be920f9acf MDL-33420 Enable references in Server files repository 2012-06-13 09:03:41 +08:00
Marina Glancy ff32444a7c MDL-33590 Correctly determine that file is an archive to enable unzip in filemanager 2012-06-13 08:57:10 +08:00
Damyon Wiese e7ade405eb MDL-33576: If grade set to "No grade" in mod_assign hide inputs for quickgrading 2012-06-13 08:55:02 +08:00
Eloy Lafuente (stronk7) 0961ca7998 MDL-33682 backup: keep old behavior, aka, use section number on empty section name. 2012-06-13 00:54:21 +02:00
Eloy Lafuente (stronk7) 1df09d3af2 Merge branch 'MDL-33682' of git://github.com/timhunt/moodle 2012-06-13 00:37:42 +02:00
Eloy Lafuente (stronk7) dbe4bcc959 Merge branch 'MDL-33681' of git://github.com/timhunt/moodle 2012-06-13 00:06:26 +02:00
Dan Marsden cb6782d4a5 MDL-32937 SCORM: better lang for dnd interface 2012-06-13 09:59:11 +12:00
Aparup Banerjee 039e110509 Merge branch 'MDL-33610' of git://github.com/danpoltawski/moodle 2012-06-13 01:59:33 +08:00
Aparup Banerjee fa4ae5ac9f Merge branch 'MDL-33593' of git://github.com/danpoltawski/moodle 2012-06-13 01:46:17 +08:00
Tim Hunt ff5d6f8872 MDL-33682 backup: cope with sections called '0'
It was not previously possible to have a section called 0 because of
bugs in the standard course formats, but we hit this with the OU course
format. You got an exception because backup settings tested to see if
their lable was empty, which means a section name of '0' was fatal.
Should work now.
2012-06-12 17:46:47 +01:00
Tim Hunt bb410a1ecc MDL-33681 course: cannot have a section called '0'.
No reason to prevent this. It is just a matter of doing a proper test,
rather than the sloppy PHP !empty().
2012-06-12 17:45:40 +01:00
Dan Poltawski c17ec774d7 MDL-33552 - portfolio api E_STRICT fixes
admin_config_form and admin_config_validation are now static
2012-06-12 22:56:42 +08:00
Dan Poltawski 4a126f1725 MDL-32573 - repository: make instance_config_form static 2012-06-12 22:17:29 +08:00
Andrew Robert Nicols 8635302e54 MDL-33675 Add updated help texts for modules to appear in activity chooser 2012-06-12 13:38:17 +01:00
Dan Poltawski 19774b885d Merge branch 'MDL-33676' of git://github.com/danpoltawski/moodle 2012-06-12 18:36:08 +08:00
Eloy Lafuente (stronk7) 2903a92b29 Merge branch 'MDL-33123-master' of git://github.com/ankitagarwal/moodle 2012-06-12 12:33:54 +02:00
Eloy Lafuente (stronk7) e47275fa0d Merge branch 'w24_MDL-33636_m23_yuislash' of git://github.com/skodak/moodle 2012-06-12 12:31:27 +02:00
Barbara Ramiro 59e807e800 MDL-33676 Activity chooser dialogue background set to transparent for IE 2012-06-12 18:30:22 +08:00
Tim Hunt 7ead73c106 MDL-33611 quiz: improve help string
Thanks to Helen and Michelle. Who would have thought that 124 words
would require such a team effort!
2012-06-12 10:38:47 +01:00
Dan Poltawski 8409bd51f4 Merge branch 'MDL-33612' of git://github.com/timhunt/moodle 2012-06-12 17:38:25 +08:00
Dan Poltawski 93de786561 Merge branch 'MDL-33292-master-3' of git://git.luns.net.uk/moodle 2012-06-12 17:18:18 +08:00
Dan Poltawski ac961e292a Merge branch 'MDL-33588-master-1' of git://git.luns.net.uk/moodle 2012-06-12 17:16:40 +08:00
Dan Poltawski ee6b360431 Merge branch 'w24_MDL-33182_m23_mnetstrict' of git://github.com/skodak/moodle 2012-06-12 17:10:54 +08:00
Petr Skoda 2e297453b8 MDL-33182 fix mnet enrol E_STRICT issue 2012-06-12 11:08:33 +02:00
Petr Skoda 6498b6190a MDL-33553 fix mod_data E_STRICT issue 2012-06-12 11:05:02 +02:00
Dan Poltawski 203d255116 Merge branch 'MDL-33393' of git://github.com/timhunt/moodle
Conflicts:
	mod/quiz/lang/en/quiz.php
2012-06-12 17:00:09 +08:00
Petr Skoda f327b9c3f3 MDL-33204 use natural filename sorting when importing books form html 2012-06-12 10:59:58 +02:00
Petr Skoda b71d0b43fc MDL-33635 add collatorlib::ksort() support 2012-06-12 10:57:24 +02:00
Petr Skoda 212826853b MDL-33635 improve collatorlib
1/ the sort flag can not use Intl extension constants because they may not be available
2/ add sort flag to all methods
3/ use private constructor instead of abstract - more Java like API to match the textlib
4/ add natural sorting support
5/ consistent bool return type
6/ better non-intl fallback
7/ more tests
2012-06-12 10:57:24 +02:00
Petr Skoda 7953149e01 MDL-33204 disable yui_combo slasharguments by default for now 2012-06-12 10:13:17 +02:00
Petr Skoda 84e1e04418 MDL-33636 add more yui caching goodness 2012-06-12 10:13:01 +02:00
Ankit Agarwal b0b30cb648 MDL-33123 book: Fixing numbering issue with hidden sub-chapters 2012-06-12 16:03:40 +08:00
Dan Poltawski 82fc6ae6e3 Merge branch 'MDL-33598-master-integration' of git://github.com/FMCorz/moodle 2012-06-12 15:57:58 +08:00
Dan Poltawski 071d8ea75b Merge branch 'wip-MDL-33156-master' of https://github.com/barbararamiro/moodle 2012-06-12 15:55:26 +08:00
Dan Poltawski f3e526b859 Merge branch 'wip-MDL-33005-master' of https://github.com/barbararamiro/moodle 2012-06-12 13:54:10 +08:00
Dan Poltawski 760c063bc0 Merge branch 'wip-MDL-33446-master' of git://github.com/marinaglancy/moodle 2012-06-12 13:45:10 +08:00
Dan Poltawski 502be9a069 MDL-33572 - assign: fixed syntax probblem found immediately after integration
Grr. shouldn't have escaped our review.
2012-06-12 13:41:54 +08:00
Dan Poltawski 08f5648de3 Merge branch 'MDL-33572' of git://github.com/netspotau/moodle-mod_assign 2012-06-12 13:38:34 +08:00
Dan Poltawski 14507142a1 Merge branch 'w23_MDL-33543_m23_datastrict' of git://github.com/skodak/moodle 2012-06-12 13:36:15 +08:00
Dan Poltawski 8550d72d85 MDL-32937 - scorm: switch commenting style to // 2012-06-12 13:18:51 +08:00
Dan Poltawski d87debaa3e MDL-32767 - course: Add a summary of activities
When in single-page summary mode
2012-06-12 13:13:52 +08:00
Frederic Massart db48ed64c7 MDL-33598 Messaging: students can change their assignment notification preferences 2012-06-12 13:10:43 +08:00
Dan Poltawski 91f0dd438a Merge branch 'master_MDL-32937' of git://github.com/danmarsden/moodle 2012-06-12 13:05:47 +08:00
Dan Poltawski 555099c666 Merge branch 'MDL-33400' of git://github.com/nebgor/moodle 2012-06-12 13:03:42 +08:00
Aparup Banerjee 7d22edb6b1 Merge branch 'master_MDL-33515' of git://github.com/danmarsden/moodle 2012-06-12 11:25:17 +08:00
Aparup Banerjee 575776c1bd Merge branch 'MDL-31863' of git://github.com/mouneyrac/moodle 2012-06-12 11:09:51 +08:00
Marina Glancy c0e8f211d3 MDL-33452 It must not possible to create an alias to another alias
- if the downloaded file is an alias we pretend that we operate with its source
2012-06-12 11:03:54 +08:00
Marina Glancy c469b3963b MDL-33446 Editor form field can filter return types
- Added possibility for editor form field to specify return_types (default FILE_INTERNAL | FILE_EXTERNAL | FILE_REFERENCE)
- For assignment, workshop, quiz essay submissions and form posts do not allow FILE_REFERENCE
- Fixed mod_resource return_types, reset them to default, because filemanager does not know how to work with FILE_EXTERNAL links
2012-06-12 11:03:43 +08:00
Sam Hemelryk 8f856cd041 MDL-33597 css_optimiser: Moved the Enable CSS optimiser setting from advanced to experimental settings 2012-06-12 14:23:20 +12:00
Sam Hemelryk b305d623a5 MDL-33596 css_optimiser: Added an option for themes to disable the CSS optimiser 2012-06-12 14:23:15 +12:00
Sam Hemelryk 5c1f0d1ff6 MDL-33592 navigation: Added support for local_ prefix on navigation callback 2012-06-12 14:23:09 +12:00
Sam Hemelryk d2830cdd93 MDL-33468 css_optimiser: pre-integration clean up 2012-06-12 14:22:56 +12:00
Sam Hemelryk f791122195 MDL-33468 css_optimiser: Fixed validation of individual background styles 2012-06-12 14:22:56 +12:00
Sam Hemelryk ecad5058a0 MDL-33504 css_optimiser: Added support for common media-queiries 2012-06-12 14:22:56 +12:00
Sam Hemelryk 3daafb9295 MDL-33468 css_optimiser: Fixed handling of !important in shorthand notations 2012-06-12 14:22:56 +12:00
Sam Hemelryk e3036985b2 MDL-33468 css_optimiser: Added support for multiple values for a single attribute 2012-06-12 14:22:55 +12:00
Sam Hemelryk 6a519fdcf1 MDL-33468 css_optimiser: Improved consolidation of background styles and fixed ordering issue 2012-06-12 14:22:55 +12:00
Sam Hemelryk 0663b5353c MDL-33468 css_optimiser: Added support for prioritising reset rules 2012-06-12 14:22:55 +12:00
Sam Hemelryk 1121f79b91 MDL-33468 css_optimiser: Added support for @keyframes to the CSS optimiser 2012-06-12 14:22:55 +12:00
Sam Hemelryk f2e8d3798c MDL-33468 css_optimiser: Numerous fixes to the CSS optimiser and its tests 2012-06-12 14:22:55 +12:00
Eloy Lafuente (stronk7) f8dfdb524b on-demand release 2.3dev 2012-06-12 03:01:04 +02:00
Eloy Lafuente (stronk7) 92b0d9820e Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-06-12 02:55:03 +02:00
Eloy Lafuente (stronk7) daf28d868b MDL-32117 equella: make it core plugin 2012-06-12 02:37:04 +02:00
Eloy Lafuente (stronk7) 74ea1b95f4 MDL-32117 equella: add missing MOODLE_INTERNAL + phpdocs tidy 2012-06-12 02:23:14 +02:00
Eloy Lafuente (stronk7) 37b8257de5 Merge branch 'equella' of git://github.com/danpoltawski/moodle 2012-06-12 02:22:26 +02:00
Andrew Robert Nicols 0080872fc4 MDL-33608 Correct modulename_link for the label module 2012-06-11 12:41:25 +01:00
Barbara Ramiro d76dfe97dd MDL-33005 Replaced drag and drop arrow with animated gif 2012-06-11 19:37:33 +08:00
Barbara Ramiro 398c04dc59 MDL-33156 Customized 16px icons and generic image icons 2012-06-11 16:28:54 +08:00
Dongsheng Cai 39c60294a6 MDL-33513 box.net repository should have filename in source field 2012-06-11 17:41:32 +10:00
Dan Poltawski 2365213fdb MDL-33623 - course: remove incorrect logic for marker moving 2012-06-11 15:11:10 +08:00
Frederic Massart 4988b54667 MDL-33317 Theme: added jQuery noConflict to myMobile 2012-06-11 14:54:54 +08:00
Jerome Mouneyrac ecd1bdf420 MDL-31863 fix responseerror when no files are found 2012-06-11 14:12:00 +08:00
Aparup Banerjee fef6b15ad9 MDL-31863 Web Service : get_files() optional $modified timestamp returns files changed after given time. 2012-06-11 14:06:56 +08:00
Yang Yang 8f3039576a MDL-31863 Web service : added modified to parameters and modifiedtime to description 2012-06-11 14:06:46 +08:00
Aparup Banerjee 42fd396171 Merge branch 'MDL-33548' of git://github.com/timhunt/moodle 2012-06-11 13:55:20 +08:00
Aparup Banerjee 6b8b0b2e68 MDL-34400 Libraries : maintained naming rule by removing stray mod_ function and class prefixes from activity modules.
This rule @ http://docs.moodle.org/dev/Activity_modules still stands for now.
2012-06-11 13:34:47 +08:00
Tim Hunt 33d7737711 MDL-33610 theme - increase activity icon spacing 2012-06-11 12:21:13 +08:00
Dan Poltawski 3d8fe4820a MDL-33623 - course: add unit tests for section moving
Including tracking of the course marker updates
2012-06-11 11:46:22 +08:00
Eloy Lafuente (stronk7) 3ea1330949 MDL-33455 restore: process grade_grades only if user matches.
Note this has been applied both to individual activities grade_grades
and to general ones.
2012-06-11 11:30:20 +08:00
Dan Poltawski d66e5720a1 MDL-32117 - equella: prevent errors when no username 2012-06-11 10:08:16 +08:00
Christopher Tombleson 01b5936cd0 MDL-32937 Add drag and drop support to SCORM 2012-06-11 12:18:32 +12:00
Petr Skoda 8d475fe4fe MDL-33543 fix mod_data E_STRICT issue when adding fields with file size limits 2012-06-10 10:05:59 +02:00
Dongsheng Cai 8a288971e2 MDL-33513: Make files->source field consistent 2012-06-10 17:47:00 +10:00
Eloy Lafuente (stronk7) f0852f474b MDL-33630 backup: invalidate ids cache on temptable drop. 2012-06-10 04:57:40 +02:00
AMOS bot 73da957671 Automatically generated installer lang files 2012-06-09 00:31:15 +00:00
Eloy Lafuente (stronk7) fcbf68fd05 Merge branch 'w23_MDL-33595_m23_phpunitinit' of git://github.com/skodak/moodle 2012-06-08 19:32:26 +02:00
Eloy Lafuente (stronk7) 997c7e2744 Merge branch 'MDL-33471' of git://github.com/timhunt/moodle 2012-06-08 17:08:18 +02:00
Tim Hunt 815fcecc40 MDL-33471 quiz cron: better mtrace output for overdue handling 2012-06-08 16:02:01 +01:00
Tim Hunt 4c7f377d9b MDL-33612 quiz: Improve page title 'Editing quiz'
Include the quiz name in the title. Also, add two missing format_string
calls around $quiz->name.
2012-06-08 11:47:03 +01:00
Petr Skoda 7cb76d1645 MDL-33595 fix recent initial PHPUnit init regression 2012-06-08 11:50:03 +02:00
Eloy Lafuente (stronk7) 78117cb1a4 MDL-33465 fix incorrect merge conflict resolution 2012-06-08 10:55:39 +02:00
Dan Marsden e099166635 MDL-33515 SCORM - attempts grading setting is confusing - last attempt is really last completed attempt. 2012-06-08 20:33:38 +12:00
Dan Poltawski ec3d3ede80 MDL-33465 - bump version number for new log entry defintion 2012-06-08 15:54:31 +08:00
Dan Poltawski 4e020fe71d Merge branch 'MDL-33465-master' of git://github.com/ankitagarwal/moodle 2012-06-08 15:51:41 +08:00
Ankit Agarwal 283ba570c0 MDL-33465 course: COALESCE is not cross-db compatible while using fields of different datatypes 2012-06-08 15:48:18 +08:00
Dan Poltawski dcac0787b9 Revert "MDL-31863 Web service : added modified to parameters and modifiedtime to description"
This reverts commit 25ccaf5494.
2012-06-08 15:25:40 +08:00
Dan Poltawski c13dcf934e Revert "MDL-31863 Web Service : get_files() optional $modified timestamp returns files changed after given time."
This reverts commit 130d3fbf96.
2012-06-08 15:25:34 +08:00
Dan Poltawski c9d7e6fa16 Merge branch 'MDL-33498' of git://github.com/netspotau/moodle-mod_assign 2012-06-08 13:39:17 +08:00
Jason Fowler d508e71d4c MDL-33594 - Glossary - fixing portfolio exports 2012-06-08 13:32:44 +08:00
Dan Poltawski b63084a58b MDL-33594 mod_data: use filelib rather than speciifc internal file 2012-06-08 13:31:31 +08:00
Frederic Massart 98d5bad9fa MDL-31499 Filepicker: download all function uses iframe instead of popup 2012-06-08 12:32:39 +08:00
Jerome Mouneyrac 3297d57528 MDL-33581 missing parameter defaults for some external functions 2012-06-08 11:54:59 +08:00
Dan Poltawski 8ac226d23c Merge branch 'MDL-33587-delete-alias' of git://github.com/mudrd8mz/moodle 2012-06-08 11:40:56 +08:00
Dan Poltawski e13388c1c0 MDL-32783 quiz overdue handling: improve lang string
And remove a stray #
2012-06-08 10:47:31 +08:00
Dan Poltawski 583c698ee1 Merge branch 'MDL-32783' of git://github.com/timhunt/moodle 2012-06-08 10:36:17 +08:00
Dan Poltawski 3970a4719c MDL-33593 course: rename editingenabled param
Change to notifyeditingon to better reflect what it does and
prevent people getting confused with edit=1
2012-06-08 10:21:58 +08:00
Eloy Lafuente (stronk7) 61aaad4833 Merge branch 'w23_MDL-33583_m23_keepall' of git://github.com/skodak/moodle 2012-06-08 01:56:06 +02:00
Sam Hemelryk c224cc643b Merge branch 'w23_MDL-33557_m23_initpath' of git://github.com/skodak/moodle 2012-06-08 11:53:43 +12:00
Eloy Lafuente (stronk7) a3974b0106 Merge branch 'w23_MDL-30725_m23_backuptrash' of git://github.com/skodak/moodle 2012-06-08 01:43:40 +02:00
Sam Hemelryk 76cc4fd177 Merge branch 'MDL-33080' of git://github.com/stronk7/moodle 2012-06-08 10:23:16 +12:00
Sam Hemelryk 5874cc6aab Merge branch 'MDL-32325-master' of git://github.com/FMCorz/moodle 2012-06-08 10:20:43 +12:00
Eloy Lafuente (stronk7) 03a94794fc Merge branch 'MDL-32985_integration' of git://github.com/merrill-oakland/moodle 2012-06-08 00:04:19 +02:00
Sam Hemelryk a15e8b4101 MDL-30506 navigation: Fixed up reference handling issue and added docs post integration 2012-06-08 09:34:19 +12:00
Sam Hemelryk a509cb29c3 Merge branch 'MDL-30506' of git://github.com/jonof/moodle 2012-06-08 09:04:46 +12:00
Tim Hunt a6866c7e9f MDL-32783 quiz overdue handling: enforce end of grace period
The summary page was not enforcing the end of the grace period. If the
user had the summary page open, then they coudl still stubmit after the
end of the grace period.

Also, the editing form was not validating that the quiz grace period was
greater than quiz|graceperiodmin in the quiz configuration, and that
should be checked, so I added it.

I fear that processattempt.php is becoming very spaghetti-like with all
the timing rules, it really needs to be refactored, but not 2 weeks
before the 2.3 release. (When refactoring, we really need unit tests for
this.)
2012-06-07 19:17:07 +01:00
Tim Hunt d9552ab44f MDL-33393 quiz overdue handling: improve strings and add help 2012-06-07 17:33:46 +01:00
David Mudrak 3b2465fee6 MDL-33587 Delete the reference properly in stored_file::delete() 2012-06-07 18:02:12 +02:00
David Mudrak 1c0da8498f MDL-33587 Improve stored_file::delete_reference() method 2012-06-07 17:37:25 +02:00
David Mudrak 2fa8aea279 MDL-33587 Throw coding exception when trying to unlink a non-reference file 2012-06-07 17:36:29 +02:00
David Mudrak 2d2c194bbe MDL-33587 Add unit tests for stored_file::delete_reference()
The first unit test forces the File API to be more picky as any sane
core API should be. The second one illustrates the buggy behaviour of
the current implementation of delete_reference(). They both fail at the
moment, of course...
2012-06-07 17:36:23 +02:00
Dan Poltawski 55244f8527 Merge branch 'MDL-33577' of git://github.com/timhunt/moodle 2012-06-07 23:15:45 +08:00
Dan Poltawski 901f49097a Merge branch 'MDL-33532' of git://github.com/timhunt/moodle 2012-06-07 22:23:38 +08:00
Dan Poltawski 9c1fe3356f Merge branch 'MDL-33565' of git://github.com/timhunt/moodle 2012-06-07 22:14:28 +08:00
Andrew Robert Nicols 984ec46e03 MDL-33292 Consume the new ability to move dialogues in chooser dialogues 2012-06-07 14:58:54 +01:00
Dan Poltawski 3bc24f9aa7 Merge branch 'MDL-33517' of git://github.com/timhunt/moodle 2012-06-07 21:49:14 +08:00
Andrew Robert Nicols 06a78ea6a4 MDL-33292 Add ability to move (drag) M.core.dialogue 2012-06-07 14:47:33 +01:00
Andrew Robert Nicols 371409f41e MDL-33588 Ensure that a drop target is defined before checking a drop group 2012-06-07 14:46:36 +01:00
Damyon Wiese a2d1d76961 MDL-33547: Fix for mod_assign portfolio export for a list of files.
This will fix any submission or feedback plugin using render_area_files
to show a list of files.
2012-06-07 14:46:36 +01:00
Tim Hunt 7f5f384477 MDL-33532 quiz editing: let uses enter locale floats.
So, for example, Croatian users can set the maximum grade to 65,5.
2012-06-07 12:55:53 +01:00
Tim Hunt b84477000a MDL-33577 qtype_multianswer: Fix strict syntax warning. 2012-06-07 12:32:41 +01:00
Dan Poltawski 620ecd38d2 Merge branch 'wip-MDL-33482-master' of git://github.com/danpoltawski/moodle 2012-06-07 18:11:10 +08:00
Barbara Ramiro 8d25aeb711 MDL-33482 Replaced modchooser with chooserdialouge and cleaned codes 2012-06-07 18:09:14 +08:00
Andrew Robert Nicols 255dd8d1e2 MDL-33482 Replaced modchooser with chooserdialogue 2012-06-07 18:09:14 +08:00
Barbara Ramiro 89e00e91cd MDL-33482 Activity Chooser styled similar to Filepicker particularly the look and feel with drop shadow 2012-06-07 18:09:14 +08:00
Dan Poltawski 644495114e Merge branch 'MDL-33475' of git://github.com/netspotau/moodle-mod_assign 2012-06-07 17:33:39 +08:00
Dan Poltawski a6eecb7c9d Merge branch 'MDL-33535-master-1' of git://git.luns.net.uk/moodle 2012-06-07 17:25:59 +08:00
Andrew Robert Nicols 928cc791e6 MDL-33573 Remove anchor from activity chooser link until JS is ready 2012-06-07 10:15:52 +01:00
Petr Skoda dbf7784e67 MDL-33583 really keep all automated backup files when told to do so 2012-06-07 11:05:15 +02:00
Petr Skoda 096702f698 MDL-30725 save automated external only backups directly to ext storage, do not pollute file pool
This solution is based on code by Tony Levi, thanks!
2012-06-07 10:49:48 +02:00
Dan Poltawski d9d59e3911 MDL-33551 googleapi: allow multiple uploads in one session
We need to clear state between multiple uploads
2012-06-07 16:38:10 +08:00
Andrew Robert Nicols 7ccec1e2cf MDL-33535 Correct typo in glossary documentation link 2012-06-07 09:17:40 +01:00
Dan Poltawski c9978ce67b Merge branch 'w23_MDL-33555_m23_assignfk' of git://github.com/skodak/moodle 2012-06-07 14:29:08 +08:00
Aparup Banerjee ac16f14512 Merge branch 'MDL-33465-master' of git://github.com/ankitagarwal/moodle
Conflicts:
	backup/moodle2/restore_stepslib.php
2012-06-07 14:04:08 +08:00
Dan Poltawski 25f288f2fd Merge branch 'MDL-33467' of git://github.com/timhunt/moodle 2012-06-07 13:33:22 +08:00
Dan Poltawski 2960a22052 Merge branch 'MDL-33322' of git://github.com/rwijaya/moodle 2012-06-07 13:02:38 +08:00
Aparup Banerjee 3872cae1eb Merge branch 'MDL-31863' of git://github.com/nebgor/moodle 2012-06-07 11:59:13 +08:00
Aparup Banerjee 130d3fbf96 MDL-31863 Web Service : get_files() optional $modified timestamp returns files changed after given time. 2012-06-07 11:57:19 +08:00
Yang Yang 25ccaf5494 MDL-31863 Web service : added modified to parameters and modifiedtime to description 2012-06-07 11:56:19 +08:00
Damyon Wiese eba009ea63 MDL-33475: Fix javascript error when advanced grading is used in mod_assign 2012-06-07 10:52:05 +08:00
Damyon Wiese 2d8a9ce96c MDL-33572: Make the display of the "graded" status consistent in mod_assign
Do not display "graded" when the grade is set to -1.
2012-06-07 10:22:46 +08:00
Damyon Wiese 4913af936f MDL-33498: Correct use of unformat_float for mod_assign decimal grades
This was affecting locales that use , instead of . in floating point numbers.
2012-06-07 09:27:59 +08:00
Andreas Grabs e7fc2ff42e MDL-27675 - Feedback module abuses data_submitted 2012-06-06 23:17:35 +02:00
Tim Hunt 98984c09a2 MDL-33565 setuplib: better error if you pass an object as $debuginfo
This changes makes sure the error is triggerd when the exception is
thrown, so that the problem code is in the stack-trace. Before, the
error happend in the exception hander, so you could not see the code
that caused the problem.
2012-06-06 20:33:16 +01:00
Tim Hunt ee326d5e7d MDL-33548 quiz manual grading: check the grade is in range.
To do this nicely, I refactored some code out of the quiz manual grading
report.
2012-06-06 20:21:33 +01:00
Tim Hunt f02a91fc50 MDL-33517 quiz: revise timelimit help string.
Thanks Helen.
2012-06-06 19:24:48 +01:00
Eric Merrill 54c2756ca2 MDL-32985 cron: Fixing related problem with setting of lastnotifyfailure
Because of a flaw in the logic, lastnotifyfailure was not set unless
there was a failure. This means that after 1 hour of no failures, the
function would execute every cron cycle, which has a pretty high cost
on large sites.
2012-06-06 12:04:03 -04:00
Petr Skoda 5f9ba165de MDL-33557 fix path in PHPUnit init hint
This resolves problem when execution phpunit in subdirectory.
2012-06-06 12:29:20 +02:00
Marina Glancy 2aad62e93c MDL-33467 fixed variable name conflict 2012-06-06 11:17:07 +01:00
Petr Skoda 3269c859bf MDL-33555 fix invalid FK in mod_assign
There is no need to upgrade DB because we create only indexes now.
2012-06-06 10:54:40 +02:00
Jerome Mouneyrac fe77a34ed0 MDL-33554 update_categories didn't update the path field when moving category 2012-06-06 16:40:06 +08:00
Dan Poltawski 4a5be0e949 MDL-33330 /lib/db/upgrade.php: fix stray semicolon
Breaking Oracle upgrade
2012-06-06 16:25:20 +08:00
Dan Poltawski 79c2b50980 Merge branch 'MDL-33330-files-reference' of git://github.com/mudrd8mz/moodle
Conflicts:
	version.php
    lib/db/upgrade.php
2012-06-06 16:18:30 +08:00
Dan Poltawski de6a0dfd3d Merge branch 'MDL-33547' of git://github.com/netspotau/moodle-mod_assign 2012-06-06 16:09:15 +08:00
Damyon Wiese 509e59ca38 MDL-33547: Fix for mod_assign portfolio export for a list of files.
This will fix any submission or feedback plugin using render_area_files
to show a list of files.
2012-06-06 15:49:37 +08:00
Jerome Mouneyrac 55e168e3a3 MDL-32581 Web services : should force type of external_format_value structure 2012-06-06 14:29:45 +08:00
Dan Poltawski 7f04dd633f Merge branch 'MDL-33088-master' of git://github.com/FMCorz/moodle 2012-06-06 13:20:59 +08:00
Frederic Massart a8608cba3f MDL-33088 Glossary: disabled filtering on concepts in recent activity block 2012-06-06 12:57:02 +08:00
Dan Poltawski dcba513f4b Merge branch 'w23_MDL-32632_m23_windate' of git://github.com/skodak/moodle 2012-06-06 12:27:10 +08:00
Sam Hemelryk 5dc4db1ef2 Merge branch 'MDL-33090-missing-xmldb-strings' of git://github.com/rlorenzo/moodle 2012-06-06 15:37:43 +12:00
Sam Hemelryk e5b200cd65 Merge branch 'wip-mdl-33367' of git://github.com/rajeshtaneja/moodle 2012-06-06 15:19:49 +12:00
Aparup Banerjee bfcf1a449c Merge branch 'wip-MDL-33527-master' of git://github.com/phalacee/moodle 2012-06-06 11:07:08 +08:00
Dan Poltawski c89331a4ca Merge branch 'MDL-33119' of git://github.com/timhunt/moodle 2012-06-06 10:31:12 +08:00
Frederic Massart 50d24a3c85 MDL-32325 Glossary: Entrylist print version is XHTML compliant 2012-06-06 09:55:36 +08:00
Jason Fowler abaf245f10 MDL-33527 - Database - Fixing the ability to export database entries 2012-06-06 09:13:26 +08:00
Jonathon Fowler 0cc24b8425 MDL-30506 navigation: Hook for local plugins to extend the settings_navigation tree 2012-06-06 10:38:03 +10:00
AMOS bot 4cd6f90eed Automatically generated installer lang files 2012-06-06 00:31:25 +00:00
Sam Hemelryk f064f0fd15 Merge branch 'w23_MDL-33103_m23_dataestrict' of git://github.com/skodak/moodle 2012-06-06 11:50:19 +12:00
Sam Hemelryk 9897974b82 Merge branch 'MDL-33511' of git://github.com/danpoltawski/moodle 2012-06-06 11:43:47 +12:00
Sam Hemelryk 1236d15b0e Merge branch 'MDL-33528' of git://github.com/mouneyrac/moodle 2012-06-06 11:13:32 +12:00
Sam Hemelryk 4744851197 Merge branch 'MDL-30837-master' of https://github.com/FMCorz/moodle 2012-06-06 11:00:20 +12:00
Sam Hemelryk ca774c940e MDL-31520 user-ws: Optimised if statement for email access by moving admin check to the start 2012-06-06 10:35:19 +12:00
Sam Hemelryk fd200bc5e5 Merge branch 'MDL-31520-master' of git://github.com/fabiomsouto/moodle 2012-06-06 10:33:31 +12:00
Sam Hemelryk dd9e2c8d44 Merge branch 'MDL-33503' of git://github.com/stronk7/moodle 2012-06-06 10:18:43 +12:00
Sam Hemelryk 447ebaa90e Merge branch 'MDL-31823_master' of git://github.com/dmonllao/moodle 2012-06-06 10:14:00 +12:00
Sam Hemelryk 4ed1657f3e Merge branch 'MDL-33441' of git://github.com/danpoltawski/moodle 2012-06-06 10:10:05 +12:00
Sam Hemelryk f48de74428 Merge branch 'MDL-33487' of git://github.com/danpoltawski/moodle 2012-06-06 10:06:17 +12:00
Kordan 9ad11a6c70 MDL-32905 theme_formal_white: changed three setting name, some string name and string content
AMOS BEGIN
 MOV [displaylogodesc,theme_formal_white],[headercontentdesc,theme_formal_white]
 MOV [frontpagelogo,theme_formal_white],[frontpagelogourl,theme_formal_white]
 MOV [frontpagelogodesc,theme_formal_white],[frontpagelogourldesc,theme_formal_white]
 MOV [heading,theme_formal_white],[displayheading,theme_formal_white]
 MOV [logo,theme_formal_white],[customlogourl,theme_formal_white]
 MOV [logodesc,theme_formal_white],[customlogourldesc,theme_formal_white]
 CPY [moodlelogo,theme_formal_white],[displaylogo,theme_formal_white]
AMOS END
2012-06-06 10:02:39 +12:00
Sam Hemelryk 238858e362 MDL-26277: Fixed whitespace post integration 2012-06-06 09:15:18 +12:00
Sam Hemelryk e8a20ce85a Merge branch 'MDL-26277-master' of https://github.com/mackensen/moodle 2012-06-06 09:07:34 +12:00
Sam Hemelryk 2c7a72df06 Merge branch 'MDL-33369-master' of git://github.com/ankitagarwal/moodle with changes 2012-06-06 09:05:04 +12:00
Sam Hemelryk b576a97554 Merge branch 'MDL-33031_master' of git://github.com/kordan/moodle 2012-06-06 08:54:38 +12:00
Sam Hemelryk 7df271d9b3 Merge branch 'MDL-27559-master-v2' of https://github.com/mackensen/moodle 2012-06-06 08:51:11 +12:00
Sam Hemelryk 5deaa764ba Merge branch 'MDL-33056_dnd_status_bar' of git://github.com/davosmith/moodle 2012-06-06 08:30:02 +12:00
David Mudrak 0ad654dc8b MDL-33330 Use the referencehash when searching for references
Together with this, refactoring and cleanup of search_references() and
similar methods was done. SQL was improved to use the INNER JOIN instead
of the LEFT JOIN as we are really interested in records that have a
reference. Also, joining the {repository_instances} table assures that
only references with valid repository_instance are returned (the check
against is_external_file() can't be applied to the methods that return
the count of references so I dropped it completely).
2012-06-05 14:07:25 +02:00
David Mudrak 6bbf31c395 MDL-33330 Create new unique index in files_reference
The combination of repositoryid and reference field is supposed to be a
unique identification of an external file. Because the reference is a
TEXT field, we can't use it to compose the index. So we use the
referencehash instead and the file API is responsible to keep it
up-to-date.
2012-06-05 14:07:24 +02:00
David Mudrak 8f47a60e4e MDL-33330 Remap all instances of an external file to a single record in files_reference 2012-06-05 14:07:24 +02:00
David Mudrak dccba8bcc9 MDL-33330 Populate referencehash field values 2012-06-05 14:07:24 +02:00
David Mudrak 5100365347 MDL-33330 Add referencehash field to the files_reference table 2012-06-05 14:07:19 +02:00
David Mudrak d83ce95322 MDL-33330 improved {files_reference} records creation
This patch unifies the way how records in {files_reference} get created.
Previously, each reference file (i.e. a file with referencefileid set)
created its own record in {files_reference}. This patch makes sure that
existing record is reused if possible.

Bye bye 1:1 relationships, you suck!
2012-06-05 13:39:09 +02:00
David Mudrak e28fbdba61 MDL-33330 introducing new file_reference_exception
This replaces the previously defined external_file_exception that was
not used anywhere in the code. The new exception will be thrown in
situations where there is some unexpected problem detected with the
records in the {files_reference} table (e.g. unable to find a record
referenced by some file from {file}, invalid reference value etc.)
2012-06-05 13:29:48 +02:00
Dan Poltawski 7f88c42608 MDL-33441 course/lib.php prevent fatal error when no visible categories 2012-06-05 16:40:40 +08:00
Dan Poltawski 469f4078c5 Merge branch 'MDL-33019-master-2' of git://git.luns.net.uk/moodle 2012-06-05 15:32:45 +08:00
Dan Poltawski 2812b87bab Merge branch 'MDL-32581' of git://github.com/mouneyrac/moodle 2012-06-05 15:23:28 +08:00
Aparup Banerjee 2330cf7af1 Merge branch 'wip-mdl-33455' of git://github.com/rajeshtaneja/moodle 2012-06-05 15:15:26 +08:00
Dan Poltawski c770311367 Merge branch 'wip-MDL-33409-master' of git://github.com/marinaglancy/moodle 2012-06-05 14:30:40 +08:00
Marina Glancy 6546a73dbb MDL-33445 reverted file size check for files inserted by reference 2012-06-05 13:57:16 +08:00
Jerome Mouneyrac 9615b623c6 MDL-33528 fix create_categories warnings + default parent parameter 2012-06-05 13:40:12 +08:00
Marina Glancy efa28f30f2 MDL-33391 Files API, Repository : mimetype should be determined from file extension when possible 2012-06-05 13:29:07 +08:00
Dan Poltawski 66726f61d0 Merge branch 'MDL-33502' of git://github.com/stronk7/moodle 2012-06-05 13:10:28 +08:00
Dan Poltawski a16757ed9c Merge branch 'MDL-33042-master-1' of git://git.luns.net.uk/moodle 2012-06-05 12:52:39 +08:00
Dan Poltawski 8e9e62fd8e Merge branch 'MDL-29103' of git://github.com/mouneyrac/moodle 2012-06-05 12:42:30 +08:00
Dan Poltawski 29304b6c7d Merge branch 'MDL-33401-master' of git://github.com/ankitagarwal/moodle 2012-06-05 12:34:29 +08:00
Dan Poltawski 820b845415 Merge branch 'MDL-33476' of git://github.com/esqueeze/moodle 2012-06-05 12:15:47 +08:00
Dan Poltawski 490ef89365 Merge branch 'wip-MDL-33409-master' of git://github.com/marinaglancy/moodle 2012-06-05 12:09:44 +08:00
Dan Poltawski ac0ad29c6f Merge branch 'MDL-33319' of git://github.com/netspotau/moodle-mod_assign 2012-06-05 12:03:56 +08:00
Dan Poltawski d54020bf4c Merge branch 'MDL-30880_feedback_property' of git://github.com/andyjdavis/moodle 2012-06-05 11:58:32 +08:00
nread e3e4ca5ae9 MDL-32117 equella: owner field in JSON maps back to author 2012-06-05 13:45:25 +10:00
Tim Barker 8de9272c6c MDL-33476 repositories: Added instructions to assist with setting up Dropbox keys 2012-06-05 10:19:06 +08:00
Dan Poltawski f7091beef4 Merge branch 'MDL-33485' of git://github.com/timhunt/moodle 2012-06-05 10:16:44 +08:00
Dan Poltawski 7e5789c12c Merge branch 'wip-tablelib' of git://github.com/marinaglancy/moodle 2012-06-05 10:10:21 +08:00
Rajesh Taneja a1a2cc5994 MDL-33455 gradebook: Grade will not be inserted for unknown user 2012-06-05 09:46:40 +08:00
nread 826b34836a MDL-32117 equella: pass through course shortname too 2012-06-05 11:45:24 +10:00
Rajesh Taneja ac5f641465 MDL-33367 course: Deprecated message added to move_section, so it can be removed in 2.5 2012-06-05 09:34:36 +08:00
Dan Poltawski 92c1f40445 MDL-31460 mod_forum: fix trailing whitespace 2012-06-05 09:34:26 +08:00
Rajesh Taneja eb01aa2c34 MDL-33367 course: move_section reuse move_section_to function
Conflicts:

	course/lib.php
2012-06-05 09:34:14 +08:00
Ankit Agarwal 336d8c49f4 MDL-33465 course: 'Course view section' logs should use sectionid instead of section number to generate action urls' 2012-06-05 09:33:45 +08:00
Dan Poltawski 50bc155cce Merge branch 'MDL-31460_unsubscribe' of git://github.com/andyjdavis/moodle 2012-06-05 09:33:38 +08:00
Marina Glancy 2ea47082f0 MDL-33479 removed legacy constructor causing strict notice in php5 2012-06-05 09:27:32 +08:00
Marina Glancy 9945ec5e13 MDL-33445 Added file size check to files inserted by reference 2012-06-05 09:26:26 +08:00
Marina Glancy 2dfa16ef8a MDL-33409 Newly copied files should take on the userid of the current user, and dates reset
- changed function repository::copy_to_area so it accepts more file attributes, pass changed attributes to it
- changed file_info::copy_to_storage and file_info_stored::copy_to_storage to accept more file attributes
- simplified file size check for moodle files in repository/repository_ajax.php
- removed unused code in repository/repository_ajax.php
2012-06-05 09:26:26 +08:00
Frederic Massart 775fe70093 MDL-30837 Accessibility: removed navigation icons default alt text 2012-06-05 09:11:46 +08:00
Helen Foster 3c97ce2461 MDL-31803 lang - make the mooch registration message more descriptive 2012-06-05 09:09:52 +08:00
Ankit Agarwal 5249ba7405 MDL-33369 course: Adding support for sectionid parameter for section view pages 2012-06-05 08:53:04 +08:00
Ankit Agarwal 586e797689 MDL-33401 blocks: Allow managers to have block:edit capability by default 2012-06-05 08:50:43 +08:00
Eloy Lafuente (stronk7) 0b1f477618 Merge branch 'MDL-32649_ratings_sort' of git://github.com/andyjdavis/moodle 2012-06-05 02:22:33 +02:00
Eloy Lafuente (stronk7) aa12ec984c MDL-32985 cron: prevent notices on "new" sites. 2012-06-05 02:14:13 +02:00
Eloy Lafuente (stronk7) 4baa746eae Merge branch 'MDL-32985' of git://github.com/merrill-oakland/moodle 2012-06-05 02:02:12 +02:00
Eloy Lafuente (stronk7) f61194e387 MDL-33080 IMSCC: look for imsmanifest.xml @ root dir 2012-06-05 01:04:29 +02:00
Eloy Lafuente (stronk7) d291dfd0aa Merge branch 'MDL-32107-master' of git://github.com/sammarshallou/moodle 2012-06-05 00:42:59 +02:00
Eloy Lafuente (stronk7) c76bd30885 Merge branch 'MDL-33133-master' of git://github.com/sammarshallou/moodle 2012-06-05 00:38:04 +02:00
Eloy Lafuente (stronk7) 080f585f39 Merge branch 'MDL-33507' of git://github.com/danpoltawski/moodle 2012-06-04 21:47:14 +02:00
Eloy Lafuente (stronk7) 0b702fca0b Merge branch 'w23_MDL-33436_m23_testprinter' of git://github.com/skodak/moodle 2012-06-04 19:55:21 +02:00
Dan Poltawski b3245b758c Merge branch 'MD-31803' of git://github.com/mouneyrac/moodle
Conflicts:
	admin/index.php
	admin/renderer.php
	version.php
2012-06-04 19:25:58 +08:00
Eloy Lafuente (stronk7) a301675101 Merge branch 'w23_MDL-33007_m23_buggyiconv' of git://github.com/skodak/moodle 2012-06-04 11:33:47 +02:00
Dan Poltawski 1cf840074b Merge branch 'wip-MDL-33218-master' of git://github.com/barbararamiro/moodle 2012-06-04 17:13:35 +08:00
Dan Poltawski f27735e470 Merge branch 'MDL-33480' of git://github.com/stronk7/moodle 2012-06-04 16:59:49 +08:00
Petr Skoda 03f0cd1039 MDL-33007 fix incorrect min_fix_utf8() tests
Credit goest to Eloy Lafuente.
2012-06-04 10:45:44 +02:00
David Monllaó d7eb773047 MDL-31823 - Remote hosts users created via mnet enrolments marked as confirmed 2012-06-04 10:39:41 +02:00
Dan Poltawski 1cbaf803d0 MDL-29173 - fix whitespace error 2012-06-04 16:32:25 +08:00
Dan Poltawski 6f337ea935 Merge branch 'MDL-29173_calc' of git://github.com/andyjdavis/moodle 2012-06-04 15:55:54 +08:00
Dan Poltawski 095b8c5818 MDL-32117 equella: Add validation rules to instance form
Also change equella_action to hardcoded value
2012-06-04 15:29:46 +08:00
Dan Poltawski e3e691cc6e MDL-32117 equella: die after redirection
To make it clear that nothing else happens.
2012-06-04 15:29:46 +08:00
Dan Poltawski 2e47347c88 MDL-32117 equella: callback.php params
* Properly cleaned and filtered
* Add utf8 content type

(Thanks Petr Škoda)
2012-06-04 15:29:45 +08:00
Dan Poltawski c1e688bba4 MDL-32117 equella: Moodle style checker issues
* Whitespace around control statements
* DOS formated version.php
2012-06-04 15:29:45 +08:00
Dan Poltawski 1256d67102 MDL-32117 equella: remove unused full_url() method 2012-06-04 15:29:45 +08:00
Dan Poltawski dcd51551d2 MDL-32117 equella: improve version.php
* Include component name
* Include requires version

(Thanks Petr Škoda)
2012-06-04 15:29:12 +08:00
Dan Poltawski bf4b1698a5 MDL-32117 equella: remove another unused global 2012-06-04 15:29:11 +08:00
Dan Poltawski d1546151e3 MDL-33511 admin/repositoryinstance.php: incorrect url 2012-06-04 15:26:21 +08:00
Dan Poltawski e38919c070 MDL-32117 equella: Make private functions private
Match mimetype function name to moodle coding style.
2012-06-04 12:32:15 +08:00
Dan Poltawski 7406ee9f57 MDL-32117 equella: Switch get_all_editing_roles to get_users_with_capability
This is the core function to do the same thing
2012-06-04 12:32:15 +08:00
Dan Poltawski 32f7f85862 MDL-32117 equella: Remove custom 'context tree' handling.
user_has_role_assignment will check parent contexts itself so there is
no need to do this manally
2012-06-04 12:32:10 +08:00
Dan Poltawski 3e3910a58d MDL-32117 equella: Remove unusused globals 2012-06-04 12:30:40 +08:00
Dan Poltawski 130b3f8c4f MDL-32117 equella: various E_STRICT fixes
* Make send_file compatible with its parent
* mktime -> time()
* callback.php: fix pass by reference warnings
2012-06-04 12:29:15 +08:00
Dongsheng Cai e88aa1e34c MDL-32117 Removed dots from language key names 2012-06-04 11:46:03 +08:00
Dongsheng Cai da1f4aee95 MDL-32117 EQUELLA plugin: Added some TODO comments in callback.php and changed variable names to conform moodle coding style 2012-06-04 11:46:03 +08:00
Dongsheng Cai 36f8060a6b MDL-32117 EQUELLA plugin: Fixed file downloading redirect issue 2012-06-04 11:46:02 +08:00
Dongsheng Cai 9225747e11 MDL-32117 EQUELLA plugin: Fixed callback parameters 2012-06-04 11:46:02 +08:00
nread 7283bb95ae MDL-32117 EQUELLA plugin: EQUELLA only support references, not external files 2012-06-04 11:46:02 +08:00
nread a3fde71746 MDL-32117 EQUELLA plugin: Remove warning when 'mimetypes' option is not set 2012-06-04 11:46:02 +08:00
nread 205f169edf MDL-32117 EQUELLA plugin: Turn off the login, refresh buttons and the search box 2012-06-04 11:46:02 +08:00
nread 1b4e7fbc37 MDL-32117 EQUELLA plugin: else if -> elseif 2012-06-04 11:46:02 +08:00
nread 11a55b46ff MDL-32117 EQUELLA plugin: Enforce selection restriction settings, but override if Moodle wants to restrict to specific MIME types as it is always going to be for resources only 2012-06-04 11:46:01 +08:00
nread cb1871a829 MDL-32117 EQUELLA plugin: Don't restrict to MIME types if '*' is used, as user should be able to select any type at this point 2012-06-04 11:46:01 +08:00
nread 1be875bab7 MDL-32117 EQUELLA plugin: Don't include the 'mimeTypes' option if it's empty or we get the wrong stuff 2012-06-04 11:46:01 +08:00
nread d3376ba684 MDL-32117 EQUELLA plugin: Spelling error in variable name 2012-06-04 11:46:01 +08:00
Dongsheng Cai 36bf3ff825 MDL-32117 EQUELLA plugin: Fixed the checking roles code when using filepicker in user context. Also format the SQL to use moodle coding style 2012-06-04 11:46:01 +08:00
nread 9c6d6c0eeb MDL-32117 EQUELLA plugin: Dynamic configuration for roles, and use 'write' tokens when selecting stuff 2012-06-04 11:46:01 +08:00
nread b709660fb2 MDL-32117 EQUELLA plugin: Don't show close icons or cancel links in EQUELLA because we're inside the File Picker dialog which has its own close button. Also, always return URLs for selected resources in the '?attachment.uuid=abcd' format so that URLs work if filenames are changed 2012-06-04 11:46:00 +08:00
Dongsheng Cai 27bb724f16 MDL-32117 EQUELLA plugin: initial commit 2012-06-04 11:46:00 +08:00
Dan Poltawski 7b61ac39d2 MDL-33507 - oauth2lib: switch 'code' to oauth2code
To avoid param collisions in future.
2012-06-04 11:25:19 +08:00
Dan Poltawski 5df1b73748 MDL-33501 - oauth2lib: enforce sesskey in oauth2callback.php
The sesskey needs to be embeded in the local url returned as this is the
only parameter we have control of.
2012-06-04 11:11:38 +08:00
Dan Poltawski db7602af7c MDL-33501 - oauth2lib: improve redirect url handling
Only accept PARAM_LOCALURL for state params and enforce
use of moodle_url param in oauthlib to facilitate that.
2012-06-04 10:57:39 +08:00
Andrew Davis c84d86e0b7 MDL-30880 grade: added a check for the feedback property existing before it is used 2012-06-04 09:17:06 +07:00
Andrew Davis 74a37e1deb MDL-31460 mod_forum: added some controls to mod/forum/unsubscribeall.php to prevent the removal of subscriptions the user shouldnt be able to delete 2012-06-04 09:16:21 +07:00
Andrew Davis 94e40193a4 MDL-32649 rating: fixed the sorting in /rating/index.php 2012-06-04 09:13:26 +07:00
Eloy Lafuente (stronk7) d57e6d531f MDL-33503 backup: Bump internal release and version information. 2012-06-04 02:35:51 +02:00
Eloy Lafuente (stronk7) f4624b6b0b MDL-33502 restore: there are no files with itemid based on section numbers. 2012-06-04 02:15:57 +02:00
Eloy Lafuente (stronk7) 34570f86bc MDL-33480 book print tool: display intro images properly 2012-06-04 01:46:53 +02:00
Petr Skoda bd672f7830 MDL-33436 include phpunit printer file from our lib.php
The problem is that the phpunit.xml does not support relative links.
2012-06-02 21:48:26 +02:00
Petr Skoda b208ded6cf MDL-33103 fix mod_data E_STRICT issue in import 2012-06-02 21:39:18 +02:00
Dan Poltawski 578d7f3dbd MDL-33487 - mod_forum: incorrect param ordering
Thanks to Garret Gengler for spotting it.
2012-06-01 23:35:26 +08:00
Tim Hunt 9378c99b02 MDL-33119 quiz complete report: fix placeholders in attempt string. 2012-06-01 08:45:41 -06:00
Tim Hunt fc86f69b52 MDL-33485 quiz manual grading report: fix SQL typo. 2012-06-01 08:11:48 -06:00
sam marshall 38d06fea66 MDL-32107 Activity completion: should use get_enrolled_sql instead of reinventing wheel 2012-06-01 12:25:59 +01:00
Davo Smith 6c0ae99b69 MDL-33056 Course dnd upload - improved status box styling and added fade in/out 2012-06-01 11:27:42 +01:00
Petr Skoda 63d59875b5 MDL-32632 fix date formatting on Windows 2012-06-01 12:24:33 +02:00
Petr Skoda 0aff15c2c9 MDL-33007 add workaround for broken iconv //IGNORE
This patch adds mbstring utf-8 cleanup fallback and admin warning if no utf-8 cleanup possible in user submitted data.
2012-06-01 12:23:09 +02:00
Petr Skoda 3681e78429 MDL-33007 add buggy iconv workaround to configonlylib, add tests and fix minor issues 2012-06-01 12:23:09 +02:00
Dan Poltawski 4db061680e on-demand release 2.3dev 2012-06-01 17:03:32 +08:00
Dan Poltawski fe591d0d24 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-06-01 17:01:41 +08:00
Koen Roggemans 61935d8ed0 MDL-29103 web service strings improvement 2012-06-01 11:36:37 +08:00
Marina Glancy 3c693ff4d2 MDL-33322: fixed strict standards 2012-06-01 10:53:10 +08:00
Sam Hemelryk 84ec16a861 Merge branch 'MDL-29857-3' of git://github.com/danpoltawski/moodle 2012-06-01 13:42:01 +12:00
Eloy Lafuente (stronk7) 5669b28d59 Merge branch 'MDL-33326' of git://github.com/stronk7/moodle 2012-06-01 00:58:08 +02:00
Eloy Lafuente (stronk7) dac01a7444 Merge branch 'MDL-33389_master' of git://github.com/kordan/moodle 2012-05-31 16:14:57 +02:00
Dan Poltawski c9bd018825 Merge branch 'MDL-33434' of git://github.com/stronk7/moodle 2012-05-31 16:59:23 +08:00
Aparup Banerjee 267080d4ea Merge branch 'MDL-33040-master-1' of git://git.luns.net.uk/moodle 2012-05-31 15:20:53 +08:00
Aparup Banerjee ffbe29a6bd Merge branch 'MDL-33140' of git://github.com/timhunt/moodle 2012-05-31 14:15:19 +08:00
Frederic Massart ccc604a24d MDL-33398 Cron: fix wrong variable type in completion criterias 2012-05-31 12:50:38 +08:00
Jerome Mouneyrac 93ce0e8296 MDL-32581 support additional format field with all text field in extrnal lib function + new possible ws params to decide how format is returned (which are stored in a singleton) 2012-05-31 12:31:27 +08:00
Rossiani Wijaya 4239150a60 MDL-33322 Filepicker: fix filepicker for recent file with JS turned of 2012-05-31 12:06:32 +08:00
Dan Poltawski 9c6e153888 Merge branch 'MDL-33397-master' of https://github.com/FMCorz/moodle 2012-05-31 10:35:50 +08:00
AMOS bot e1041a38ca Automatically generated installer lang files 2012-05-31 00:31:19 +00:00
Eloy Lafuente (stronk7) a3fa993212 MDL-33434 mssql: Improve handling of returned ids on insert.
This commit moves from the batch SCOPE_IDENTITY() way to return
the inserted ids to the OUTPUT alternative (supported and
recommended since 2005). Also the handling of possible return
values is improved, with all the alternatives leading to expected results.
2012-05-31 01:01:14 +02:00
Eloy Lafuente (stronk7) cbdcdd4734 MDL-33434 dml: define expected results when unique constraint is violated on insert. 2012-05-31 01:00:07 +02:00
Tim Hunt 602a76d86a MDL-33140 quiz browser security: block copy/paste more 2012-05-30 14:48:39 -06:00
Dan Poltawski b7acfd645b MDL-29857 google apis: OAuth 2.0 portfolio plugins upgrade
We are disabling the plugins if not configured. As part of
this upgrade we will emailing admins about this change
if they have a plugin configured.

This is required because OAuth 2 credentials are now required
in the plugin configuration.

NOTE: These strings are temporary and need to be improved.
2012-05-31 00:19:30 +08:00
Dan Poltawski ce30ff5df0 MDL-29857 google apis: OAuth 2.0 repository plugins upgrade
We are disabling the plugins on upgrade and emailing admins
about this if they have a plugin configured.

This is required because OAuth 2 credentials are now required
in the plugin configuration.

NOTE: These strings are temporary and need to be improved.
2012-05-31 00:19:30 +08:00
Dan Poltawski 4560fd1b66 MDL-29857 - google apis: Convert to OAuth 2.0
Updated the various plugins to use OAuth 2.0 for authentication
against google apis. Google are phasing out AuthSub and pushing OAuth as
the replacement.

This changes repository_googledocs, repository_picasa,
portfolio_googledocs and portfolio_picasa

The token for requests is now stored in session rather than a user
prefence and it persists less but doesn't bother the user more than
necessary.

The google docs portfolio plugin is converted to use resumable upload
API as this appears to be what Google have replaced this with.

Unfortunately unlike authsub OAuth will require some setup by admins,
this is linked as a docs page.
2012-05-31 00:00:25 +08:00
Dan Poltawski 469fb5d672 MDL-29857 - lib: Add an OAuth 2.0 client
A generic OAuth 2.0 for the web application flow, tested against
microsoft and google apis.

Added a callback endpoint for requests so that clients can use a single
endpoint (without GET params). I put this in /admin/ as I expect some
sites will have .htaccess denying access to /lib/.
2012-05-31 00:00:23 +08:00
Aparup Banerjee 1adb060a87 Merge branch 'MDL-32329-all-plugins-ok' of git://github.com/mudrd8mz/moodle 2012-05-30 16:48:23 +08:00
David Mudrak e937c5456e MDL-32329 fixed missing phpdoc and improved coding style
Credit goes to Aparup Banerjee for spotting this during the integration
review.
2012-05-30 10:35:28 +02:00
David Mudrak ead8ba3b63 MDL-32329 improved plugin dependencies check on upgrade
Previously, it was the renderer method that actually called
all_plugins_ok(). I believe that renderer methods should not be
responsible for such an important step in the install/upgrade code flow.
So dependencies are now checked by admin/index.php on upgrade, too.
2012-05-30 10:35:28 +02:00
David Mudrak 39f15cc712 MDL-32329 check for plugin dependencies during the pre-install checking
This follows the same path as we have in CLI installers. Plugin
dependencies are checked right after the environment checks and the
install can't continue unless all dependencies are fixed.
2012-05-30 10:35:28 +02:00
David Mudrak 3a2300f552 MDL-32329 new plugininfo_base::is_core_dependency_satisfied() method
The method's logic was previously implemented in all_plugins_ok() but we
will need to call it separately. Also make the code cleaner.
2012-05-30 10:35:28 +02:00
David Mudrak f1753a5b10 MDL-32329 CLI install and upgrade scripts display plugins with unsatisfied dependencies 2012-05-30 10:35:28 +02:00
David Mudrak 927cb51166 MDL-32329 plugin manager returns plugins with unsatisfied dependencies 2012-05-30 10:35:28 +02:00
Aparup Banerjee e4b5455738 Merge branch 'MDL-33184-master' of https://github.com/FMCorz/moodle 2012-05-30 15:18:59 +08:00
Aparup Banerjee 380d472314 Merge branch 'wip-mdl-27120' of git://github.com/rajeshtaneja/moodle 2012-05-30 14:22:34 +08:00
Dan Poltawski 2605112e0b Merge branch 'MDL-33045-master-2' of git://git.luns.net.uk/moodle 2012-05-30 14:14:50 +08:00
Barbara Ramiro 7c3e665289 MDL-33218 Filepicker repository and toolbar aligned for IE 2012-05-30 13:56:34 +08:00
Sam Hemelryk 378eb6f6a2 Revert "Merge branch 'MDL-27675_master_wip' of git://github.com/grabs/moodle"
This reverts commit a09a9be812, reversing
changes made to 08e0aaa173.
2012-05-30 16:34:11 +12:00
Dan Poltawski d88f1a51fc Merge branch 'MDL-33414' of git://github.com/netspotau/moodle-mod_assign 2012-05-30 11:45:32 +08:00
Rossiani Wijaya 6b0e5f4d6d MDL-32766 course view section log: fixed the forth param for restore rule specification to use course_section 2012-05-30 15:41:07 +12:00
Dan Poltawski 7fd264b0d1 Merge branch 'MDL-33398b' of git://github.com/srynot4sale/moodle 2012-05-30 11:35:56 +08:00
Sam Hemelryk 6fbe06e530 Merge branch 'MDL-33385' of git://github.com/netspotau/moodle-mod_assign 2012-05-30 15:26:27 +12:00
Dan Poltawski 0a16fa45ec Merge branch 'wip-MDL-33373-master' of git://github.com/marinaglancy/moodle 2012-05-30 11:03:11 +08:00
Marina Glancy f1bd371c79 MDL-33373 fixed bug in backup of files as a regression from MDL-28666 2012-05-30 10:11:41 +08:00
Frederic Massart 322945e9ca MDL-33184 Filepicker: rephrased drag and drop sentence 2012-05-30 10:05:10 +08:00
Dan Poltawski 7e82553331 Merge branch 'MDL-33404_resource_dnd_defaults' of https://github.com/moodler/moodle 2012-05-30 09:38:22 +08:00
Aaron Barnes 28e0c239ec MDL-33398 completion: Fix coding error (should be arrays not objects) 2012-05-30 13:27:51 +12:00
Damyon Wiese 0047693f09 MDL-33385: Assignment plugin settings not visible in admin tree.
* Also fixes a regression where file_submissions were not set to default for new installs.
2012-05-30 09:01:11 +08:00
Damyon Wiese 7ee1548acb MDL-33414: The setting $showviewlink needs to be passed by reference
This was preventing the view full submission/feedback link from appearing
everywhere in the assignment when the submission/feedback content had been
truncated in the summary because it was too long (or too many files)
2012-05-30 08:37:56 +08:00
AMOS bot 64f812f924 Automatically generated installer lang files 2012-05-30 00:31:17 +00:00
Eloy Lafuente (stronk7) 294d976e28 MDL-33326 filestorage tests: Coding style fixes 2012-05-30 02:26:57 +02:00
Dan Poltawski 996f8b6442 MDL-33326 filestorage tests: Add more coverage 2012-05-30 02:26:46 +02:00
Dan Poltawski 7c89a18fca MDL-33326 filestorage tests: Actually verify results
Rather than the placeholder tests which were added before to trigger
DB incompatibilities
2012-05-30 02:26:36 +02:00
kordan 311300e208 MDL-3389 mod_book: changed "Summary" to "Description" in mod_form 2012-05-29 19:23:33 +02:00
Andrew Davis eb9f06f9c1 MDL-29173 grade: altered the definiton of round() in /lib/evalmath/evalmath.class.php 2012-05-29 16:38:42 +07:00
Aparup Banerjee 7df02eacf7 Merge branch 'MDL-32779' of git://github.com/danpoltawski/moodle 2012-05-29 17:11:11 +08:00
Aparup Banerjee 4fe0673c48 Merge branch 'MDL-33375' of git://github.com/danpoltawski/moodle 2012-05-29 17:06:19 +08:00
Dan Poltawski 2bb9e53106 MDL-32779 course/format: Return to correct section
When editing a single section mode item
2012-05-29 16:54:04 +08:00
Aparup Banerjee 5eb80ab73d Merge branch 'MDL-33382-cli-install' of git://github.com/mudrd8mz/moodle 2012-05-29 16:43:39 +08:00
Aparup Banerjee 95a8956884 Merge branch 'w22_MDL-33089_m23_phpunitrecover' of git://github.com/skodak/moodle 2012-05-29 16:31:26 +08:00
Rajesh Taneja e7b24943e6 MDL-27120 backup: fixed docblock and code cleanup 2012-05-29 16:22:45 +08:00
Dan Poltawski 076fbeb136 Merge branch 'MDL-30905-master' of git://github.com/FMCorz/moodle 2012-05-29 16:20:21 +08:00
Dan Poltawski 038c47f6e7 Merge branch 'wip-mdl-33102' of git://github.com/rajeshtaneja/moodle 2012-05-29 16:10:59 +08:00
Dan Poltawski 96601152f2 Merge branch 'w22_MDL-33001_m23_innodb' of git://github.com/skodak/moodle 2012-05-29 15:56:28 +08:00
Dan Poltawski 02796eab69 Merge branch 'wip-MDL-33377-master' of git://github.com/marinaglancy/moodle 2012-05-29 15:40:36 +08:00
Dan Poltawski 786cd60ee3 Merge branch 'MDL-32824-master-2' of git://git.luns.net.uk/moodle
Conflicts:
	course/format/weeks/format.js
	course/format/weeks/lib.php
2012-05-29 15:21:55 +08:00
Dan Poltawski 05d80ae6cd Merge branch 'MDL-30888-master' of git://github.com/FMCorz/moodle 2012-05-29 15:12:38 +08:00
Dan Poltawski 0ed8a933d6 Merge branch 'MDL-33212-master' of git://github.com/sammarshallou/moodle 2012-05-29 15:08:46 +08:00
Dan Poltawski 9856d05c26 Merge branch 'MDL-33378-tiff-thumb' of git://github.com/mudrd8mz/moodle 2012-05-29 15:00:21 +08:00
Frederic Massart a960dfa900 MDL-33397 Filepicker: cancel button always present in private files 2012-05-29 15:00:19 +08:00
Dan Poltawski fa31bfc181 Merge branch 'wip-MDL-33026-master' of git://github.com/marinaglancy/moodle 2012-05-29 14:58:31 +08:00
Dan Poltawski e73b42ca57 Merge branch 'wip-MDL-33399-m23' of git://github.com/samhemelryk/moodle 2012-05-29 14:57:05 +08:00
Tony Levi 7f98b12f91 MDL-27120: Cache DB operations in restore_dbops 2012-05-29 14:44:07 +08:00
Tony Levi 066af1bbc7 MDL-27120: Cache dirname transformations in progressive_parser::dirname 2012-05-29 14:44:07 +08:00
Adam Olley 28729e23a4 mdl-27120 Fix static cache for backup_xml_transformer::register_link_encoders() 2012-05-29 14:44:07 +08:00
Jason Ilicic ec404105ae mdl-27120 Fixed incorrect variable in parameter when adding form dependencies. 2012-05-29 14:44:07 +08:00
Ashley Holman d729ef29cf MDL-27120 Add global cache to backup_xml_transformer::register_link_encoders() 2012-05-29 14:44:07 +08:00
Ashley Holman 631764ea2f MDL-27120 More efficient use of QuickForms in backup UI 2012-05-29 14:44:06 +08:00
Ashley Holman f213bbd77a MDL-27120 backup: replace sequential scan search with hash-based lookup. 2012-05-29 14:44:06 +08:00
Aparup Banerjee 7f1fcda5ad Revert "Merge branch 'wip-mdl-27120' of git://github.com/rajeshtaneja/moodle"
MDL-27120 backup: reverting due to phpunit failure at backup/converter/moodle1/tests/fixtures/lib_test.php test_stash_storage()

This reverts commit c70b7fd81f, reversing
changes made to e6f5528585.
2012-05-29 14:29:09 +08:00
Martin Dougiamas 5fece0f28d MDL-33404 Fix defaults for ordinary files that are drag/dropped into the course page 2012-05-29 12:58:24 +08:00
Sam Hemelryk 849b9a6af7 MDL-33399 mixed: Fixed up calls to get_area_files that used empty sorts 2012-05-29 16:44:28 +12:00
Sam Hemelryk 9f4789b842 MDL-33399 files: Fixed up handling of empty sort in File API methods.
The following three methods of file_storage have been patched:
* get_external_files
* get_area_files
* get_directory_files
2012-05-29 16:38:47 +12:00
Aparup Banerjee c70b7fd81f Merge branch 'wip-mdl-27120' of git://github.com/rajeshtaneja/moodle 2012-05-29 10:26:21 +08:00
Dan Poltawski f40f6c14b1 MDL-32221 - googledocs: Add support for all file types.
Now google supports 'file' as well as converted formats.
2012-05-29 10:13:21 +08:00
Dan Poltawski 9b27ffa042 MDL-29857 - portfolio: Fix E_STRICT errors 2012-05-29 10:13:20 +08:00
Sam Hemelryk e6f5528585 MDL-28949 upgrade: Split course completion upgrade into smaller chunks 2012-05-29 08:50:45 +12:00
Sam Hemelryk bd633dda9a Merge branch 'MDL-28949d' of git://github.com/srynot4sale/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-05-29 08:49:29 +12:00
Eloy Lafuente (stronk7) b3520a4ae7 Merge branch 'MDL-33359' of git://github.com/danpoltawski/moodle 2012-05-28 21:25:01 +02:00
sam marshall 540f89d7d4 MDL-33212 Course page: Eye icon should override other conditions 2012-05-28 16:17:39 +01:00
Ruslan Kabalin c1d09c6fa3 MDL-33042: Assign: get rid of email statements in messaging functions 2012-05-28 11:48:18 +01:00
David Mudrak 77a439336f MDL-33378 file thumbnail falls back to the default mimetype icon
If for some reason the thumbnail generation fails, the default core
mimetype icon for the given file is sent to the browser.
2012-05-28 12:19:05 +02:00
Ruslan Kabalin 599f7a279c MDL-33045: Assign: remove references to old assignment in URLs 2012-05-28 10:53:40 +01:00
Ruslan Kabalin f5b32abe57 MDL-33045: Assign: Make get_module_name() return something 2012-05-28 10:52:11 +01:00
Marina Glancy 140669a9dd MDL-33026 set default author and license in drag-n-drop upload 2012-05-28 17:05:25 +08:00
David Mudrak 2da7fbc0c2 MDL-33382 CLI install and upgrade scripts display hint on --allow-unstable in non-interactive mode 2012-05-28 10:59:22 +02:00
Dan Poltawski 6bea694b6c Revert "MDL-33212 Course page: Eye icon should override other conditions"
This reverts commit 5d0d373733.
2012-05-28 16:57:41 +08:00
Marina Glancy f92b65e5a6 MDL-33377 Do not allow to link to course files since reference is preferable 2012-05-28 16:27:22 +08:00
Petr Skoda 716b50dc2c MDL-33001 improve error handling in mysql engine conversion tool and add listing of engines 2012-05-28 10:25:58 +02:00
Petr Skoda b7c5627f5b MDL-33089 flag test database as soon as possible in PHPUnit init 2012-05-28 10:10:32 +02:00
Petr Skoda 17b60e9d98 MDL-33089 detect more problems when initialising PHPUnit test environment 2012-05-28 10:10:32 +02:00
Dan Poltawski f18dd15d3e Merge branch 'wip-MDL-33321-master' of git://github.com/kwiliarty/moodle 2012-05-28 16:10:16 +08:00
Dan Poltawski da5cd8cee8 Merge branch 'MDL-33212-master' of git://github.com/sammarshallou/moodle 2012-05-28 16:03:03 +08:00
Dan Poltawski 995e479067 Merge branch 'wip-MDL-33338-master' of git://github.com/marinaglancy/moodle 2012-05-28 15:43:33 +08:00
Dan Poltawski 830fdc8ce8 Merge branch 'wip-MDL-33356-master' of git://github.com/marinaglancy/moodle 2012-05-28 15:37:31 +08:00
Dan Poltawski ffec9bc70f Merge branch 'MDL-31393' of git://github.com/timhunt/moodle 2012-05-28 15:23:01 +08:00
Marina Glancy 4c2fcbfc85 MDL-33338 recognising the mimetype for uploaded files
- when file is uploaded in php, the tmpname does not have initial extension and mimetype recognition by extension fails
- another issue is that import form for questions fails with fatal error when it should just say that field is required
2012-05-28 15:19:41 +08:00
Dan Poltawski 5ab310d5d3 Merge branch 'wip-MDL-32199-master' of git://github.com/abgreeve/moodle 2012-05-28 15:18:51 +08:00
Dan Poltawski 0fe4db6dd1 Merge branch 'MDL-33194-master' of https://github.com/mackensen/moodle 2012-05-28 14:58:56 +08:00
Dan Poltawski c865e08fab Merge branch 'MDL-32860_user_iterator' of git://github.com/andyjdavis/moodle 2012-05-28 14:56:48 +08:00
Dan Poltawski d079d6d8c1 Merge branch 'MDL-33110_master' of git://github.com/lazydaisy/moodle 2012-05-28 14:54:23 +08:00
Dan Poltawski 54495fe41d MDL-33375 course: set anchor after changing sections
So scrolling isn't required
2012-05-28 14:44:23 +08:00
Dan Poltawski 3f1bca9d56 Merge branch 'master_MDL-27368' of git://github.com/danmarsden/moodle
Conflicts:
	version.php
    lib/db/upgrade.php
2012-05-28 14:32:16 +08:00
Marina Glancy 6adb5f1363 MDL-33356 fixed a regression after function form_filemanager_redner() was deleted 2012-05-28 13:52:32 +08:00
Adrian Greeve 17ec4bf045 Alteration to the code to hide the body of the post / discussion 2012-05-28 13:09:23 +08:00
Andrew Robert Nicols 7ea78d9f28 MDL-32199 Ensure that forum RSS feeds don't leak posts and discussions 2012-05-28 13:09:22 +08:00
Sam Hemelryk bdb315cca2 Merge branch 'w21_MDL-32972_m23_avatargifs' of git://github.com/skodak/moodle 2012-05-28 17:05:10 +12:00
Dan Poltawski 193198187c Merge branch 'wip-mdl-33347' of git://github.com/rajeshtaneja/moodle 2012-05-28 13:01:44 +08:00
Sam Hemelryk c67b08828c MDL-18763 Fixed up typo in comments of new pic size 2012-05-28 16:52:53 +12:00
Sam Hemelryk a2aba3f612 Merge branch 'w21_MDL-18763_m23_avatar512' of git://github.com/skodak/moodle 2012-05-28 16:50:46 +12:00
Rossiani Wijaya 8d5745fa92 MDL-32766: course view section log: fixed typo for course_sections table
Conflicts:

	version.php
2012-05-28 16:46:29 +12:00
Dan Poltawski 287451dcd4 Revert "MDL-29173 grade: altered the definiton of round() in /lib/evalmath/evalmath.class.php"
Breaking unit tests.

This reverts commit 4be0947bbe.
2012-05-28 12:37:50 +08:00
Dan Poltawski 83ae05f620 Merge branch 'MDL-29173_calc' of git://github.com/andyjdavis/moodle 2012-05-28 12:16:12 +08:00
Aaron Barnes 424a19b106 MDL-28949 course completion: Database structure fixes 2012-05-28 16:13:25 +12:00
Marina Glancy 5e11746696 MDL-33218 fixing filemanager/filepicker look in IE
now all YUI dialogues are under the div with id #filesskin. This way we can avoid using !important in CSS and use #filesskin instead. It will have priority over YUI skin in all browswers including IE (!important does not work in IE).

Conflicts:

	files/renderer.php
	theme/base/style/filemanager.css
2012-05-28 11:54:33 +08:00
Dan Poltawski 131bd2f68f Merge branch 'MDL-33192-master-1' of git://git.luns.net.uk/moodle 2012-05-28 11:47:22 +08:00
Barbara Ramiro 6077e3813c MDL-33218 Filemanager and Filepicker IE issue 2012-05-28 11:44:51 +08:00
Damyon Wiese 2c6a3dbfca MDL-33319: Support quickgrading in feedback plugins 2012-05-28 11:10:09 +08:00
Sam Hemelryk d8a05d83b5 Merge branch 'MDL-32752-master-1' of git://git.luns.net.uk/moodle 2012-05-28 14:56:06 +12:00
Sam Hemelryk 681789b4c1 Merge branch 'MDL-33331-master' of git://github.com/micaherne/moodle 2012-05-28 14:52:47 +12:00
Sam Hemelryk bb0eaec490 Merge branch 'MDL-32879' of git://github.com/lazydaisy/moodle
Conflicts:
	theme/magazine/config.php
2012-05-28 14:49:12 +12:00
Sam Hemelryk 9757d47ebf Merge branch 'MDL-33084_strict_calc' of git://github.com/andyjdavis/moodle 2012-05-28 14:07:59 +12:00
Sam Hemelryk d9ce6f6442 Merge branch 'MDL-32380_master' of git://github.com/kordan/moodle 2012-05-28 14:03:20 +12:00
Rajesh Taneja 33fcc04082 MDL-33347 course: section move is visible without ajax 2012-05-28 09:59:48 +08:00
Sam Hemelryk 48cb6e0b1c Merge branch 'MDL-33364' of git://github.com/stronk7/moodle 2012-05-28 13:51:22 +12:00
Sam Hemelryk 064cac7866 MDL-27675 mod_feedback: Tidy up of phpdocs and scope within feedback mod 2012-05-28 13:38:36 +12:00
Sam Hemelryk a09a9be812 Merge branch 'MDL-27675_master_wip' of git://github.com/grabs/moodle 2012-05-28 13:37:59 +12:00
Dan Poltawski 4ad85bd857 MDL-33359 - mtrace: dont output to STDOUT in unit tests
This allows us to use phpunit output buffering functions
2012-05-28 09:36:12 +08:00
Eloy Lafuente (stronk7) fde4c60911 MDL-33364 automated backup: return and log each course result correctly 2012-05-28 02:44:24 +02:00
Sam Hemelryk 08e0aaa173 Merge branch 'MDL-33191' of git://github.com/lazydaisy/moodle 2012-05-28 11:22:12 +12:00
Sam Hemelryk c31081d0a4 Merge branch 'MDL-32766' of git://github.com/rwijaya/moodle
Conflicts:
	version.php
2012-05-28 11:19:06 +12:00
Sam Hemelryk c994797ea9 Merge branch 'MDL-33120' of git://github.com/stronk7/moodle 2012-05-28 11:12:36 +12:00
Sam Hemelryk 63f2813497 Merge branch 'dev_MDL-33147_transaction' of git://github.com/dongsheng/moodle 2012-05-28 11:04:43 +12:00
Sam Hemelryk 7824c9d820 Merge branch 'MDL-33325-master' of git://github.com/ankitagarwal/moodle 2012-05-28 10:52:24 +12:00
eLeDia GmbH (Andreas Grabs) 1cb73662b2 MDL-27675 - Feedback module abuses data_submitted 2012-05-28 00:40:05 +02:00
Andreas Grabs 9a2c4dbd00 MDL-27675 - Feedback module abuses data_submitted 2012-05-28 00:40:04 +02:00
Dan Marsden d2e3a1b4f9 MDL-27368 Clean up invalid course completion records
keep oldest timestamps from all records
2012-05-28 08:55:57 +12:00
Eloy Lafuente (stronk7) a60d964abc MDL-33120 book: changes in code based on amended strings
- Replace numberingoptions_help by numberingoptions_desc.
- Delete the faq code and related styles.
- Bump version to force lang/style refresh.
2012-05-27 17:42:53 +02:00
Helen Foster 9e302b63b9 MDL-33120 book: Amend module strings
Al the changes are fixes but numberingoptions_help
that is one change of string key too, hence we instruct AMOS to move it.

AMOS BEGIN
 MOV [numberingoptions_help,mod_book],[numberingoptions_desc,mod_book]
AMOS END
2012-05-27 17:31:31 +02:00
Charles Fulton 80c27aab8c MDL-27559 opendir: validate directory pointer on open 2012-05-25 08:52:12 -07:00
Ruslan Kabalin a252a14835 MDL-33192: Prevent global DDM conflicting with others drag-drop instances. 2012-05-25 16:33:39 +01:00
Ruslan Kabalin 9f3015ecf8 MDL-32824: Make dragdrop work correctly with section titles/links
Initially, the default section title was swapped within the course format
javascript functions. Though some section titles may be custom and does not
require swapping, in addition they may have links to single section view. This
introduces some callback functions for define what needs to be done in
sections libs and js files.
2012-05-25 11:39:44 +01:00
Dan Poltawski 4631e39533 on-demand release 2.3dev 2012-05-25 18:07:10 +08:00
Dan Poltawski cc8801e33d Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-05-25 18:04:43 +08:00
Dan Poltawski e7b7cd5b98 Merge branch 'w21_MDL-33075_m23_phpunitclassreflex' of git://github.com/skodak/moodle 2012-05-25 15:25:30 +08:00
Aparup Banerjee 66905a4cf7 Merge branch 'MDL-33196' of git://github.com/rwijaya/moodle 2012-05-25 14:13:21 +08:00
Aparup Banerjee b74ad708b1 Merge branch 'MDL-33307' of git://github.com/danpoltawski/moodle 2012-05-25 12:08:03 +08:00
Aparup Banerjee 09cb95f861 MDL-33324 Filepicker : fixed syntax. 2012-05-25 11:44:04 +08:00
Aparup Banerjee 0479a2873e MDL-33324 Filepicker : removed redundant parantheses. 2012-05-25 11:25:57 +08:00
Aparup Banerjee 708738cd73 Merge branch 'wip-MDL-33324-master' of git://github.com/marinaglancy/moodle 2012-05-25 11:25:25 +08:00
Dan Poltawski c86d6be226 Merge branch 'MDL-29924-master' of git://github.com/FMCorz/moodle 2012-05-25 11:14:22 +08:00
Dan Poltawski c46da75917 MDL-28557 - calendar: fix trivial whitespace issue 2012-05-25 11:08:14 +08:00
Dan Poltawski ccee3cd67f Merge branch 'MDL-28557' of git://github.com/bostelm/moodle 2012-05-25 11:07:14 +08:00
Dan Poltawski 9a16bd1798 Merge branch 'w22_MDL-33114_m23_tinymce3511' of git://github.com/skodak/moodle 2012-05-25 11:00:53 +08:00
Dan Poltawski 588d3a7e1f Merge branch 'MDL-33135-master-3' of git://git.luns.net.uk/moodle 2012-05-25 10:55:49 +08:00
Dan Poltawski ada7dbd93a Merge branch 'w21_MDL-27575_m23_skype' of git://github.com/skodak/moodle 2012-05-25 10:44:47 +08:00
Dan Poltawski 10a9d27d74 Merge branch 'w21_MDL-33034_m23_roletests' of git://github.com/skodak/moodle 2012-05-25 10:37:48 +08:00
Dan Poltawski 488656491d MDL-29836 webservice: version bump to pickup new string 2012-05-25 10:36:43 +08:00
Vadim Dvorovenko 5e963820a5 MDL-29836 webservices: use individual string
To allow accurate transalation
2012-05-25 10:33:02 +08:00
Dan Poltawski 8cba2bb747 Merge branch 'MDL-33028' of git://github.com/mouneyrac/moodle 2012-05-25 10:22:35 +08:00
Dan Poltawski 2ffd7f1824 Merge branch 'MDL-33060' of git://github.com/mouneyrac/moodle 2012-05-25 10:16:12 +08:00
Dan Poltawski 8119141b91 Merge branch 'MDL-33020' of git://github.com/timhunt/moodle 2012-05-25 10:14:17 +08:00
Dan Poltawski 494573dc43 Merge branch 'MDL-32339-css-updates' of git://github.com/mudrd8mz/moodle 2012-05-25 10:13:19 +08:00
Dan Poltawski 2528e8e52f MDL-33139 mod_forum: fix minor whitespace problem 2012-05-25 10:09:09 +08:00
Dan Poltawski 1e448fed27 Merge branch 'MDL-33139-master' of https://github.com/mackensen/moodle 2012-05-25 10:08:33 +08:00
Dan Poltawski f5a68663db MDL-33173 files: correct @package name 2012-05-25 10:03:33 +08:00
Dan Poltawski 753199ba63 Merge branch 'MDL-33173-master' of git://github.com/FMCorz/moodle 2012-05-25 09:57:35 +08:00
Frederic Massart 4c88645920 MDL-33173 Filepicker: renamed private files edit page to main page 2012-05-25 09:24:39 +08:00
AMOS bot c291e996c8 Automatically generated installer lang files 2012-05-25 00:31:16 +00:00
Sam Hemelryk 6347a6216d MDL-33172: Fixed whitespace 2012-05-25 11:37:07 +12:00
Dan Poltawski 3447100cdb MDL-33172 - filestorage: Fix oracle incompatibilites
Fixes the following problems:

* When we select from two tables with the same named fields (id)
  and ask to sort by that field, Oracle doesn't know which table to
  sort frm unless that field is named in the SELECT. Here we do that
  by explicitly naming the fields. This keeps compatibility with before
  the reference table was added.

* Text comparisong without sql_compare_text
2012-05-25 11:17:56 +12:00
Dan Poltawski ac29403e39 MDL-33172 - filestorage: Add unit test for breaking oracle functions 2012-05-25 11:17:56 +12:00
Petr Skoda 798f0dece2 MDL-33114 import TinyMCE 3.5.1.1 and fix preview 2012-05-24 23:15:52 +02:00
Dan Poltawski 4b0992ca19 Merge branch 'wip-MDL-33329-master' of git://github.com/marinaglancy/moodle 2012-05-24 23:30:23 +08:00
Dan Poltawski b6283a4970 MDL-33307 format_weeks - sort out week date display
* Introduce function format_weeks_get_section_dates which is used
  as the consistent place to calculate the current section start and
  end date

* Rework callback_weeks_get_section_name to not use the above function
  rather than do crazy needless looping through all sections to work
  out the current week title.

* Change the just introduced is_current renderer function to share
  the format_weeks_get_section_dates function to ensure both the title
  and 'current week' are using the same dates to do their job
2012-05-24 23:10:28 +08:00
Dan Poltawski 2ea6533a36 MDL-33307 format_weeks - highlight current week 2012-05-24 23:10:27 +08:00
Charles Fulton c2c071a274 MDL-33139 forum: indicate which user's post was edited 2012-05-24 06:14:21 -07:00
Dan Poltawski 5744ea3682 Revert "MDL-33063 course: Reuse get_all_sections()"
This reverts commit 66b494771f.
2012-05-24 20:42:58 +08:00
Dan Poltawski 108526897d Merge branch 'MDL-33063' of git://github.com/srynot4sale/moodle 2012-05-24 20:32:31 +08:00
Michael Aherne 7dfe4b92d0 MDL-33331 Strict warning in Shibboleth auth 2012-05-24 13:04:21 +01:00
David Mudrak 5536f2fccf MDL-32339 improving the layout for narrow screens 2012-05-24 11:49:36 +02:00
Dan Poltawski cf36df4316 Merge branch 'MDL-33315_blog_rss' of git://github.com/andyjdavis/moodle 2012-05-24 16:49:28 +08:00
Dan Poltawski 0fb13aa3d8 Merge branch 'dev_MDL-33127_draft_storing' of git://github.com/dongsheng/moodle 2012-05-24 16:34:32 +08:00
Dan Poltawski 2625d99b52 Merge branch 'wip-MDL-33144-master' of git://github.com/marinaglancy/moodle 2012-05-24 16:32:32 +08:00
Marina Glancy 2d7c111734 MDL-33329 Filepicker form element can not link by reference. Also better handling of maxbytes 2012-05-24 16:14:02 +08:00
Dan Poltawski 505978801f MDL-33162 filepicker: fix trailingw hitespace 2012-05-24 16:12:15 +08:00
Dan Poltawski 77cb9b6ce6 Merge branch 'wip-MDL-33162-master' of git://github.com/barbararamiro/moodle 2012-05-24 16:10:06 +08:00
Dan Poltawski 5c44b03559 Merge branch 'wip-MDL-33146-master' of git://github.com/abgreeve/moodle 2012-05-24 16:05:25 +08:00
Dan Poltawski ab1c1571a3 Merge branch 'MDL-33186-master-1' of git://git.luns.net.uk/moodle 2012-05-24 15:53:39 +08:00
Aparup Banerjee a91b4aa661 MDL-33318 lib : code style fix 2012-05-24 15:40:06 +08:00
Ankit Agarwal 6a9949a489 MDL-33325 folder: 'set as main file' option removed, from filepicker when editing a file in a folder resource 2012-05-24 15:13:22 +08:00
Kevin Wiliarty ee45a48b9c turning off the hspace attribute on move icon image... 2012-05-24 03:07:46 -04:00
Barbara Ramiro a9352f1f3c MDL-33162, MDL-33183, MDL-33150 Adjusted styles filemanager, file picker and file picker form element
- MDL-33162 Vertical align text to the middle of 24px icon for table view and tree view both on filemanager and filepicker
- MDL-33183 Layout file picker on form element on edit profile for drag and drop with dashed border and animated arrow consistent with filemanager (outputrenderers.php)
- MDL-33150 Added more space in between tool buttons both for file manager and filepicker
2012-05-24 15:02:52 +08:00
Aparup Banerjee b9dade0c65 Merge branch 'master_MDL-33318' of git://github.com/danmarsden/moodle 2012-05-24 14:46:38 +08:00
Dan Poltawski 20005a0ed8 Merge branch 'wip-MDL-33152-master' of git://github.com/abgreeve/moodle 2012-05-24 14:39:58 +08:00
Marina Glancy 9213f5476f MDL-33324 fixed bugs with icons in filepicker/filemanager treeview
- in treeview the icons for parent folders did not appear
- in treeview after refreshing (expanding subtrees) the image previews were replaced back to filetype icons
- also fixed a mistype in icon url in repository_local
2012-05-24 14:10:40 +08:00
Frederic Massart 7eea889b76 MDL-30905 Accessibility: recent activity list is XHTML compliant 2012-05-24 13:49:51 +08:00
Rossiani Wijaya 1e98e05f03 MDL-33196 filepicker: fixed link output error 2012-05-24 13:43:01 +08:00
Dan Poltawski 313514ec9b Merge branch 'w22_MDL-33293_m23_revisions' of git://github.com/skodak/moodle 2012-05-24 11:26:35 +08:00
Andrew Davis c53a64449a MDL-33315 blog: fixed up the navigation for when youre viewing another users blog 2012-05-24 09:40:59 +07:00
Dan Marsden eef67fe8c5 MDL-33318 use $CFG->admin in path correctly - thanks to Clarence Prudhoe for report/fix 2012-05-24 14:08:01 +12:00
Frederic Massart 6534a90b2c MDL-30888 Accessibility: small calendars summary does not display 'Data table' 2012-05-24 09:35:23 +08:00
AMOS bot f208652438 Automatically generated installer lang files 2012-05-24 00:31:26 +00:00
Sam Hemelryk cd7963eabd Merge branch 'MDL-32203c' of git://github.com/srynot4sale/moodle 2012-05-24 11:42:39 +12:00
Sam Hemelryk 8dd37f1f69 Merge branch 'MDL-33189-master-1' of git://git.luns.net.uk/moodle 2012-05-24 11:11:13 +12:00
Sam Hemelryk 119e228621 Merge branch 'MDL-26562-23' of git://github.com/vadimonus/moodle 2012-05-24 11:00:09 +12:00
sam marshall 5d0d373733 MDL-33212 Course page: Eye icon should override other conditions 2012-05-23 13:46:51 +01:00
Ruslan Kabalin 7fcd3c30fd MDL-33019: Check that message providers' plugins are enabled and exist 2012-05-23 10:47:08 +01:00
Petr Skoda 1635da56cd MDL-33293 init JS and theme revisions to timestamps in install to match new reset code 2012-05-23 11:28:10 +02:00
Petr Skoda f11db1a602 MDL-33293 use time() instead of counter for theme and JS revisions
This should help on sites that reset database, reinstall or switch databases.
2012-05-23 11:11:13 +02:00
Aparup Banerjee 04b66cb43c Merge branch 'wip-mdl-33143' of git://github.com/rajeshtaneja/moodle 2012-05-23 16:44:00 +08:00
Adrian Greeve 9ec5ee5168 MDL-33146 - course - Changed weekdates to sectionname to fix a JavaScript error 2012-05-23 16:13:32 +08:00
Marina Glancy ae7f35b934 MDL-33144 display filetype icon and mimetype based on extension
- use finfo to determine mimetype of a file only when it is unknown from file extension
- display filetype icon and mimetype in filemanager based on file extension
- fixed a small issue with specifying extension instead of group in file_get_typegroup()
- allow only web-compartible image types when embedding into editor or using in database field
- created new groups web_video and web_audio to use in resource module
2012-05-23 14:51:55 +08:00
Damyon Wiese 56ff1300d9 MDL-31414: Add sendlatenotifications support to the mod_assign upgrade tool
Prevents an SQL error on upgrade from mod_assignment to mod_assign
2012-05-23 14:05:35 +08:00
Dan Poltawski 419c47c74a Merge branch 'wip-mdl-32155' of git://github.com/rajeshtaneja/moodle 2012-05-23 13:28:01 +08:00
Rajesh Taneja 34b455fc98 MDL-32155 blocks: User can't access file, if block is hidden or doesn't have block:view capability 2012-05-23 12:52:27 +08:00
Rajesh Taneja d598040a98 MDL-33143 wiki-2.0 : wiki edit form will have mform1 as id for JS to work 2012-05-23 12:50:45 +08:00
Sam Hemelryk c831400563 MDL-31414 mod_assign: Fixed issue with assign cron when there was nothing to process 2012-05-23 16:23:53 +12:00
Dan Poltawski d9038d715b Merge branch 'MDL-32338' of git://github.com/nebgor/moodle 2012-05-23 11:27:54 +08:00
Dan Poltawski de424071ca MDL-32895 tool_assignmentupgrade: fix trailing whitespace 2012-05-23 11:20:23 +08:00
Dan Poltawski f310b16d80 Merge branch 'MDL-32895' of git://github.com/netspotau/moodle-mod_assign 2012-05-23 11:13:03 +08:00
Dan Poltawski 91b24de2e5 Merge branch 'wip-MDL-31414-m23' of git://github.com/samhemelryk/moodle 2012-05-23 10:39:16 +08:00
Dan Poltawski c14cad3167 Merge branch 'MDL-33074_groupmode_button' of git://github.com/davosmith/moodle 2012-05-23 10:26:40 +08:00
Andrew Davis 8c222e1768 MDL-33084 grade: made localize() and unlocalize() in lib/mathslib.php static as they are used as if they were static 2012-05-23 07:19:01 +07:00
Sam Hemelryk 3f7b501e66 MDL-31414 mod_assign: Code cleanup for notification improvements
* No need to manually call update of providers that happens automatically.
* Added upgrade code for the new sendlatenotifications field.
* Added AMOS syntax for the two renamed strings
* Refactored assign::cron to use half as many DB queries
* Cleaned up unused vars and globals, coding style and phpdocs.
* Removed string notifications added previously but never used.

AMOS BEGIN
   MOV [emailgradermail,mod_assign],[gradersubmissionupdatedtext,mod_assign]
   MOV [emailgradermailhtml,mod_assign],[gradersubmissionupdatedhtml,mod_assign]
AMOS END
2012-05-23 09:34:23 +12:00
Damyon Wiese 75f87a5795 MDL-31414: Separate settings to control notifications for submissions, late submissions and submission receipts
This adds separate controls for the sending of notifications from the mod_assign.

The separate notifications are: student submission receipt (for students), feedback available (for students)
and submission updated (for graders). The grader notifications can be enabled for all submissions or just late ones.

Added code to reset the message providers on upgrade (only applies for a 2.3 dev version)
2012-05-23 08:29:22 +12:00
Charles Fulton 4cd5ae4f00 MDL-33194 forum: correct number of parameters for get_record() 2012-05-22 11:33:21 -07:00
Eloy Lafuente (stronk7) 5a5cdaf92e on-demand release 2.3dev 2012-05-22 18:07:42 +02:00
Eloy Lafuente (stronk7) 2575871e5a Fix permissions 2012-05-22 18:06:52 +02:00
Mary Evans 5f73d19ddd MDL-33191 theme_magazine: changes to magazine/config.php fixes $THEME->layouts for Base & Standard 2012-05-22 16:54:00 +01:00
Ruslan Kabalin 7d84dfe704 MDL-33189: Make checkboxcontroller functionable 2012-05-22 14:26:09 +01:00
Sun Zhigang 4714f5323a MDL-33035 workshop: typo in strings 2012-05-22 19:22:12 +08:00
Andrew Robert Nicols 088258c160 MDL-33186 Ensure that the comment textarea exists before toggling it 2012-05-22 11:24:24 +01:00
Dan Poltawski 198244e2d9 Merge branch 'dev_MDL-33177_restore_warning' of git://github.com/dongsheng/moodle 2012-05-22 17:14:43 +08:00
Dan Poltawski 37eba7d5d6 Merge branch 'dev_MDL-33149_stored_file_access' of git://github.com/dongsheng/moodle 2012-05-22 16:51:33 +08:00
Dongsheng Cai 291a3d1fb6 MDL-33149 stored_file::repository should be private 2012-05-22 15:00:49 +08:00
Dongsheng Cai 65fead53fb MDL-33127 Fixed the problem when storing draft files 2012-05-22 14:50:47 +08:00
Dongsheng Cai ac0628e913 MDL-33177 Fixed restore warning when backup has external contents 2012-05-22 14:43:06 +08:00
Dan Poltawski 21878be7c8 Merge branch 'wip-files23-fixes' of git://github.com/marinaglancy/moodle 2012-05-22 14:32:35 +08:00
Barbara Ramiro 67fab8a534 MDL-33160 new filetype icons 2012-05-22 14:25:23 +08:00
Marina Glancy e563582760 MDL-33158 fixed bugs with restricting file typs in filepicker
- extension was returned without leading dot which resulted in improper validation
- fixed human-readable mime type in error message
- fixed youtube repository to support video files and pass filetype validation
2012-05-22 14:24:11 +08:00
Marina Glancy ca9875db1b MDL-33160 fixed some icons and groups for file types 2012-05-22 14:18:06 +08:00
Rossiani Wijaya 34b84d45b6 MDL-32766 course view section log: update patch 2012-05-22 14:02:48 +08:00
Dan Poltawski afe23ae76a Merge branch 'dev_MDL-33154_sesskey_error' of git://github.com/dongsheng/moodle 2012-05-22 13:57:51 +08:00
Dongsheng Cai e3c0211879 MDL-33147 Added transaction support for some Files APIs 2012-05-22 13:51:04 +08:00
Rossiani Wijaya 15a848ba90 MDL-32766 course log: specify log for viewing course section 2012-05-22 13:50:40 +08:00
Dan Poltawski d106cf1d7d Merge branch 'w21_MDL-32564_m23_timezonecontext' of git://github.com/skodak/moodle 2012-05-22 13:34:18 +08:00
Dan Poltawski b8644958e3 Merge branch 'w21_MDL-32379_m23_forumcron' of git://github.com/skodak/moodle 2012-05-22 13:05:28 +08:00
Adrian Greeve f5d0c2a69f MDL-33152 - themes - Moved the action buttons more to the right, inline with the rest of the form. 2012-05-22 12:51:48 +08:00
Dan Poltawski 49f6790323 Merge branch 'MDL-33116-master' of git://github.com/sammarshallou/moodle 2012-05-22 12:51:45 +08:00
Dan Poltawski f4e9103a95 Merge branch 'MDL-32744-master-3' of git://git.luns.net.uk/moodle 2012-05-22 12:28:37 +08:00
Dongsheng Cai 7992b93686 MDL-33154 added missing sesskey to navgation nodes 2012-05-22 12:14:59 +08:00
Dan Poltawski c1e1560843 Merge branch 'wip-mdl-33027' of git://github.com/rajeshtaneja/moodle 2012-05-22 11:54:30 +08:00
Dan Poltawski 2a3ff9e8df Merge branch 'MDL-33153-master-integration' of github.com:FMCorz/moodle 2012-05-22 11:44:23 +08:00
Rajesh Taneja bcf7175f4e MDL-33027 theme: Hidden section link will be displayed dimmed in section navigation 2012-05-22 11:31:35 +08:00
Rajesh Taneja c129f430bb MDL-33027 themes: Modified heading to be displayed for section in all themes 2012-05-22 11:31:34 +08:00
Dan Poltawski 3e832fe3e5 Merge branch 'MDL-32981-master' of github.com:FMCorz/moodle 2012-05-22 11:14:12 +08:00
Frederic Massart c598ea55fe MDL-32981 Filepicker: my private files uses edit page instead of view 2012-05-22 10:56:11 +08:00
Sam Hemelryk cba59b3d83 Merge branch 'MDL-32204-mnet-auth' of git://github.com/mudrd8mz/moodle 2012-05-22 14:49:35 +12:00
Sam Hemelryk 0b02faa076 Merge branch 'MDL-33051' of git://github.com/danpoltawski/moodle 2012-05-22 14:40:31 +12:00
Sam Hemelryk 4f4476081f Merge branch 'MDL-33055_master' of git://github.com/kordan/moodle 2012-05-22 14:31:59 +12:00
Dan Poltawski c8f0f2cd85 Merge branch 'wip-MDL-33066-m23' of git://github.com/samhemelryk/moodle 2012-05-22 10:30:36 +08:00
Sam Hemelryk 2a4fbc327c MDL-32932 mod_assign: Coding style clean up and security improvement 2012-05-22 14:21:47 +12:00
Sam Hemelryk c5b8ae0eb7 Merge branch 'MDL-32932' of git://github.com/netspotau/moodle-mod_assign
Conflicts:
	mod/assign/gradingtable.php
2012-05-22 14:21:41 +12:00
Dan Poltawski 5d6e603e1f Merge branch 'MDL-33167' of git://github.com/lazydaisy/moodle 2012-05-22 10:18:45 +08:00
Mary Evans 228408475c MDL-33167 theme_afterburner: added z-index to fix issue with yui3-widget when adding activity or resourse using new feature dialogue box 2012-05-22 03:05:42 +01:00
Rajesh Taneja 2b1b897271 MDL-33102 blogs: userid will be added during blog visibility upgrade 2012-05-22 09:49:27 +08:00
Frederic Massart 50fb4c8fd9 MDL-33153 Resource: rename submit button to 'save changes' in folder resource 2012-05-22 09:36:29 +08:00
Andrew Davis 4be0947bbe MDL-29173 grade: altered the definiton of round() in /lib/evalmath/evalmath.class.php 2012-05-22 08:30:39 +07:00
Sam Hemelryk ad5d189c93 Merge branch 'MDL-33118' of git://github.com/lazydaisy/moodle 2012-05-22 11:38:03 +12:00
Sam Hemelryk ac12e3b42e MDL-33122 Coding style cleanup during integration 2012-05-22 11:33:52 +12:00
Sam Hemelryk 4c32b79957 Merge branch 'MDL-33122-master' of git://github.com/ankitagarwal/moodle 2012-05-22 10:54:48 +12:00
Sam Hemelryk 25bea62d33 Merge branch 'MDL-33137-master-2' of git://git.luns.net.uk/moodle 2012-05-22 10:49:59 +12:00
Matteo Scaramuccia 8ac8aae4f4 MDL-33053 AICC: Incorrect Table Of Content hierarchy using "structured" AICC
courses
[Fix] 'scorm_scoes' doesn't contain all the entries described in the DES file
[Fix] HTMLizing the parent relationship, described in the CST file,
      fails: it considers 'index = 0' (found) equals to 'false' (not found)
2012-05-22 00:47:01 +02:00
Davo Smith 82d2a84002 MDL-33074 Course drag and drop upload - fixed incorrect group mode button 2012-05-21 22:11:38 +01:00
Andrew Robert Nicols 35e1abcde7 MDL-33137 Add styling to activity chooser buttons 2012-05-21 17:02:13 +01:00
Andrew Robert Nicols d9bd472bee MDL-33135 Prevent duplicate form submission on the course activity chooser 2012-05-21 16:55:47 +01:00
sam marshall a3c17aed9f MDL-33116 Media filter broken with slasharguments off 2012-05-21 14:24:42 +01:00
Ruslan Kabalin 243e9bf984 MDL-32752: Drag-drop: Follow the ghost note if the drop target is missed.
Simulate drop_hit and substitute target of where ghost node was dropped last
time.
2012-05-21 13:59:44 +01:00
sam marshall 52e9dfc58f MDL-33133 Conditional section: restore to existing course fix 2012-05-21 13:59:00 +01:00
Ruslan Kabalin 405eaac272 MDL-32744: Maintain format specific CSS selectors in the format configuration.
This updates existing core formats and introduce a configuration function.
2012-05-21 13:53:04 +01:00
Dan Poltawski f7290156ad Merge branch 'MDL-33126-master' of git://github.com/sammarshallou/moodle 2012-05-21 20:17:12 +08:00
Dan Poltawski b99065be04 MDL-33032 - dont require repository/lib.php until necessary
This is an ugly fix to a broken installer only.
2012-05-21 20:04:42 +08:00
Dan Poltawski 1082e7daf7 MDL-31901: Fix trailing whitespace 2012-05-21 19:18:44 +08:00
sam marshall 57a42a24ad MDL-33126 Fix error on first view of new course page 2012-05-21 12:05:30 +01:00
Dan Poltawski 6a0d7194f7 MDL-31901: filemanager/picker.js - match coding style
* No inline ifs
* Spacing between ternary operators
* Missing ;'s
2012-05-21 18:25:56 +08:00
Dan Poltawski 7d44f9c2a2 MDL-28666: filelib - remove unusused globals 2012-05-21 18:21:36 +08:00
Dan Poltawski f8e74b20f9 MDL-28666 repository - Switch usefilereference to PARAM_BOOL 2012-05-21 18:21:31 +08:00
Dan Poltawski 49957d3858 MDL-28666 admin/repository: use PARAM_BOOL for booleans. 2012-05-21 18:21:25 +08:00
Dan Poltawski 2b4f1cbc32 Merge branch 'wip-files23' of git://github.com/marinaglancy/moodle 2012-05-21 18:19:32 +08:00
Marina Glancy 55711b0a0d Merge pull request #4 from mudrd8mz/wip-files23-fixes
Changing the tinyicon size to 24x24
2012-05-21 03:17:25 -07:00
Andrew Robert Nicols 48a5e55ee2 MDL-33128 Swap Activities and Resources in the module chooser 2012-05-21 11:08:32 +01:00
David Mudrak 10f0978bff MDL-32471 redefining the tinyicon thumbnail size to 24x24
As requested by the Files 2.3 UI team.
2012-05-21 11:37:29 +02:00
Fábio Souto 90e30b965f Allow admin to consult user email address
Currently the admin user cannot check the user email using this function. This fix allows the admin user to retrieve the email in any situation.
2012-05-21 10:32:21 +01:00
Dan Poltawski 5c50d45b79 Merge branch 'MDL-22504_drag_and_drop_upload_integration' of git://github.com/davosmith/moodle 2012-05-21 17:22:13 +08:00
Marina Glancy a8d6dda4f2 MDL-32247 fixed bug with displaying icon for unknown filetype, fixed merge mistakes 2012-05-21 17:12:55 +08:00
Davo Smith 1ddc3d1f4c MDL-22504 Course drag and drop upload - experimental setting is now a checkbox 2012-05-21 10:03:55 +01:00
Kordan e201eff9cc MDL-32380 theme_formal_white: just a new style class for wrong config parameters 2012-05-21 10:41:26 +02:00
Dongsheng Cai 70c1bc843a MDL-33127 stored_file::update should use get_content_file_location because it tried to update file_record 2012-05-21 16:37:53 +08:00
Barbara Ramiro 0f1bdd0d2c MDL-32900 Change Icons to FileTypesIcons 2012-05-21 16:37:14 +08:00
Marina Glancy 559276b153 MDL-32247,MDL-32831,MDL-32900 Use correct url building of file type icons
- function get_mimetypes_array() now contains also information about filetype groups and language strings
- use 'smart' human-readable mimetype description
- never determine filetype group based on filetype icon image! remove function mimeinfo_from_icon()
- get rid of class filetype_parser and file lib/filestorage/file_types.mm, replaced with functions file_get_typegroup(), file_extension_in_typegroup() and file_mimetype_in_typegroup()
- support multiple icon sizes, not only 16 and 32
- retrieve filetype icon only using proper functions file_..._icon() from lib/filelib.php throughout the code
- increase size of repository thumbnails to 90 and icons to 24 (will take effect when new icons exist)
2012-05-21 16:01:04 +08:00
Kordan c19d6d1b97 collapsed margin around header logo a increased the margin around header menu 2012-05-21 09:57:29 +02:00
Davo Smith f684250bda MDL-22504 Course drag and drop upload - removed browser specific content hacks, made 'text and link' dragging an experimental feature 2012-05-21 08:34:50 +01:00
Kordan 5ac3b1c0ba MDL-33055 theme_formal_white: changed "general" to "standard" in $theme->layouts array index 2012-05-21 09:26:52 +02:00
Dongsheng Cai 8177b7b9f0 MDL-33082 Detecting mimetype based on content bytes 2012-05-21 15:26:39 +08:00
Barbara Ramiro b456271028 MDL-31901 filemanager and filepicker styling
- Swaped tool buttons and view buttons sequence for keyboard access both on filemanager and filepicker
- Added "new folder name" label and "cancel" button on create a folder dialogue
- Added href="#" and resized fonts on confirmation  and message dialogue
2012-05-21 15:25:20 +08:00
Ankit Agarwal 55e25598e7 MDL-33122 repositories: Enable youtube,url and wikimedia repositories by default 2012-05-21 13:32:02 +08:00
Dan Poltawski 04acd26663 Merge branch 'MDL-33079' of git://github.com/stronk7/moodle 2012-05-21 13:26:36 +08:00
Dan Poltawski 78de004483 MDL-33051 - topics format: remove section number from section column
We don't think its necessary anymore
2012-05-21 12:12:44 +08:00
David Mudrak f653c9d830 MDL-33096 update the file's timemodified if it was changed in the draft area
Previously up to 2.2, new file records were created for all files that
were modified in the draft area - see file_save_draft_area_files().
The commit aba1e17dd7ffa5e42d309fb2efe7945aeb3b3d39 introduced a new way
of re-using the previous file's record. We need to transfer the
timemodified of the file in the draft area into the file in the real
area when saving the draft area to achieve the same behaviour now in 2.3.

Note this may eventually lead to kinda weird situation when the file was
created say on a certain timecreated but then was replaced with another file
that has timemodified set to a lower value (in other words, the file
will look as if it was firstly modified and then created). This case
should be handled by the filepicker if it is seen as the issue.
2012-05-21 11:57:56 +08:00
David Mudrak 3333e7e20c MDL-33093 invalidate the thumbnail in the local browser's cache on update
This adds &oid= parameter to the URL of file preview images. The
parameter is supposed to be ignored by draftfile.php and pluginfile.php.
It just holds some unique identification of the original file's
revision. Currently, we use the timestamp of the most recent
modification of the original file.
2012-05-21 11:57:56 +08:00
David Mudrak b53fad1e8b MDL-33098 filemanager now stores the new author field correctly 2012-05-21 11:57:56 +08:00
Dongsheng Cai 61506a0af9 MDL-33032 Fixed issues for file integration
1. Added tracker issue number in comment
2. Fixed stored_file::delete_reference()
3. repository::send_file() will throw exception if not implemented by subclass
4. Fixed renaming unit test, added one unit test for deleting original file
5. Fixed copyright statement for googledoc and picasa repository plugin
6. Implemented stored_file::set_filesize()
2012-05-21 11:57:56 +08:00
Dongsheng Cai 4712676dfa MDL-28666, Fixed source field when download a file using filepicker 2012-05-21 11:57:56 +08:00
Barbara Ramiro 0f0d10c5be MDL-31901 filemanager and filepicker styling
- Thumbnail for Private files, Server file and Recent file restyled
- Thumbnail for Context menu made flexible
- Filenames on hover made all text visible
- Drag and drop arrow hidden for unsupported browsers
- Drag and drop styled applied on edit profile
- Yui3 panel focused removed
2012-05-21 11:57:55 +08:00
Marina Glancy 16dfd717f7 MDL-31901 fixed forgotten overwrite dialogue in filepicker 2012-05-21 11:57:55 +08:00
Dongsheng Cai fc4e8034fc MDL-32867 filemanager and repository
1. Allowing "." as filename, so filemanager can rename folder
2. Fixed import_external_file method
3. Disallow recent repository to list file references
2012-05-21 11:57:55 +08:00
Marina Glancy 55e868053c MDL-32867: changed renaming of folders to the new API (function 'rename'), removed unused code 2012-05-21 11:57:55 +08:00
Petr Skoda 9bd553b7b8 MDL-33015 fix invalid PAGE->url in repo instance config pages
Conflicts:

	admin/repositoryinstance.php
2012-05-21 11:57:55 +08:00
Petr Skoda a38a17a12a MDL-33015 revert form actions to default back to FULLME
This is a temporary workaround until we fix all admin pages to set up actual url properly in admin_externalpage_setup().
2012-05-21 11:57:55 +08:00
Marina Glancy 469a53a053 MDL-31901 Implemented lazy loading of thumbnails in filemanager 2012-05-21 11:57:55 +08:00
Dongsheng Cai 04e3b007c2 MDL-28666 phpdoc improvements 2012-05-21 11:57:54 +08:00
Marina Glancy 9dbdf31f8c MDL-32867 Display a list of references pointing to the file in filemanager 2012-05-21 11:57:54 +08:00
Barbara Ramiro 420e7bb27b MDL-31901 Styled File Manager Icon view, Table view and Tree view 2012-05-21 11:57:54 +08:00
Dongsheng Cai 462c4955f4 MDL-28666 file_storage::get_directory_files() supports references 2012-05-21 11:57:54 +08:00
Dongsheng Cai 7051415cca MDL-28666 Files API and db changes
1. Fix db regression
2. Unit tests for is_external_file() and rename exception
3. Searching reference method exclude draft files
2012-05-21 11:57:54 +08:00
Marina Glancy 6dd299befa MDL-31901, MDL-28666 merged files API changes 2012-05-21 11:57:53 +08:00
David Mudrak dafe129637 MDL-31901 draft files manager supports realthumbnail, realicon and dimensions for images 2012-05-21 11:57:53 +08:00
David Mudrak 9d19777234 MDL-31901 draftfile.php supports the preview parameter 2012-05-21 11:57:53 +08:00
David Mudrak 97b603c621 MDL-31901 fixed the name of user draft file serving handler
Files stored in user context, draft are must be served by draftfile.php,
not the pluginfile.php.
2012-05-21 11:57:53 +08:00
David Mudrak dfad252c9e MDL-31901 repositories serving images from the filepool now provide preview details 2012-05-21 11:57:53 +08:00
David Mudrak 0dbf6c88bb MDL-31901 file_info_stored now provides access to the wrapped stored_file's get_imageinfo() method 2012-05-21 11:57:53 +08:00
Marina Glancy b7725e30c2 MDL-32914 fixed function get_imageinfo() to get rid of notice messages 2012-05-21 11:57:53 +08:00
Marina Glancy 9a62f7799b MDL-32867 Working with external references in filemanager
- Files that are references to external resources have special shortcut icon in filemanager
- When user selects a REF file in filemanager, he can see the 'Original' of the file in the way that original repository wants to show it, it is loaded dynamically via AJAX request
- Files that are themselves the source of references of other files in the system have 'link' icon in filemanager. When user tries to remove/rename/overwrite SRC file he is warned that all ## existing references will be updated/converted to copies.
- Changed confirmation messages for deleting, moving/renaming of the folders
- confirmation dialog in filemanager is using YUI3 now
2012-05-21 11:57:53 +08:00
Marina Glancy dd1f051e4a MDL-31901 filepicker interface changes:
- fixed displaying and dragging of dialog popups;
- fixed error when repository results are filtered;
- added string for image dimensions
2012-05-21 11:57:53 +08:00
Marina Glancy 55089a9d01 MDL-31901: moved select-file panel outside of filepicker/filemanager for better UI 2012-05-21 11:57:53 +08:00
Marina Glancy 5cf44c1f1f MDL-31901,MDL-28666: add support for external references in new filepicker design 2012-05-21 11:57:53 +08:00
Marina Glancy 1908ae06fb MDL-31901: filemanger: fixed bug with switching to treeview in empty folder 2012-05-21 11:57:52 +08:00
Marina Glancy e0ff0867bd MDL-31901: filemanager: fixed 'Original' label, and small bug in treeview navigation 2012-05-21 11:57:52 +08:00
Marina Glancy 4325db53ab MDL-31901: Filemanager and Filepicker, cleaned up requirements and strings 2012-05-21 11:57:52 +08:00
Marina Glancy 6c2367ccf1 MDL-31901: Highlighting main file in FileManager 2012-05-21 11:57:52 +08:00
Marina Glancy c092681b4b MDL-31901: Updating/moving files in FileManager
- added new functions to the backend (repository/draftfiles_ajax.php) to allow changing of file name, location, license and author in one request
- enabled changing file properties using JS UI (lib/form/filemanager.js)
2012-05-21 11:57:52 +08:00
Marina Glancy 694beb548c MDL-31901: FileManager uses more YUI3 windows and more renderers
- Add folder dialog in FileManager now uses YUI3 and renderer;
- Fixed bug with remembering current folder in Tree view;
- Display error messages in FileManager using YUI3 and not using 'alert'
2012-05-21 11:57:52 +08:00
Marina Glancy 23b830091a MDL-31901: FileManager, added image for accessing right-click action 2012-05-21 11:57:52 +08:00
Marina Glancy acd78d9d82 MDL-31901: removed accidentally commited testing code 2012-05-21 11:57:52 +08:00
Barbara Ramiro e88d564186 MDL-31901: Change the UI in filepicker CSS rendered and images 2012-05-21 11:57:52 +08:00
Marina Glancy e709ddd29c MDL-31901: Allow FileManager to re-use FilePicker JS code for view modes:
- when loading core_filepicker we extend the Node element with functions necessary to display files list in different view modes;
- repository/filepicker.js is changed to use those functions;
- FileManager now has three different view modes (icon view, tree view and table view), JS code is re-used from FilePicker;
- files in FileManager no longer have context menu, they have one popup Widget with different actions instead;
- Added more templates for JS code to FileManager, use similar CSS class names as FilePicker;
- lib/filelib.php : fixed double slashes in path, return more data about files;
- lib/form/filemanager.php : pass information to FileManager about available licenses and default author;
- repository/draftfiles_ajax.php : return information about directory tree for file moving UI in FileManager, return formatted information;
- repository/lib.php : function repository::prepare_listing() now can work also with draftarea files listing;
2012-05-21 11:57:52 +08:00
Marina Glancy d1d186917c MDL-31901: moved filepicker html to files/renderer.php, pass templates once per page 2012-05-21 11:57:52 +08:00
Marina Glancy 906e7d89a5 MDL-31901: user renderer for filemanager, decrease html generation in filemanager.js and dndupload.js 2012-05-21 11:57:52 +08:00
Marina Glancy 830acea6c1 MDL-31901: show shorttile instead of title where applicable 2012-05-21 11:57:52 +08:00
Marina Glancy ce3eeb98f1 MDL-32473,MDL-32471: Lazy loading of next page and image thumbnails when scrolling 2012-05-21 11:57:52 +08:00
Marina Glancy 7ccf18a629 MDL-31901: Simple loading of the next page, migrating to YUI 3.5.0
- instead of using paging bar and navigating between pages, there is a link 'more' in the bottom of the list that loads the files from the next page and adds them to the bottom of the list;
- DataTable is updated to YUI 3.5.0, sorting is done properly
2012-05-21 11:57:52 +08:00
Marina Glancy b92241f280 MDL-31901: Changing interface of file picker, use renderers:
- Filepicker window is now resizable and draggable;
- filepicker&renderer: removed id substitution from renderer, replaced it with classes (better readability);
- filepicker: allowed tree and table view for search results;
- filepicker: fixed small bug with displaying external link checkbox
- filepicker: display additional information about file in select window, repository returns more formatted information
2012-05-21 11:57:51 +08:00
Marina Glancy 5bdf63cce0 MDL-14636: Support table view in Filepicker, provide more info about files
- Added table view in Filepicker where for each file we show Name, Last modified, Size and Type. Sortable by column
- Preprocess list of files returned from repositories to include formatted size, dates, type and also add filetype icon
- Make sure that local repositories (coursefiles, filesystem, local, recent, user) return information about file size, datemodified, datecreated, author, license
2012-05-21 11:57:51 +08:00
Marina Glancy 2f6749f4bf MDL-32083: Filepicker tree view should display folders starting from top
- path bar is not displayed in tree view mode
 - display (and load) hierarchy of folders above the current - take it from path and load siblings
 - make sure the current folder is remembered when navigating between folders in tree view so it remains when switching to other view mode
 - fix couple of small bugs caused by previous changes in MDL-31901
2012-05-21 11:57:51 +08:00
Marina Glancy 3a1e425b7f MDL-31901: Modifying filepicker to use renderers
- fixed some small errors and made cosmetic changes to the code
- added 'loading' icon when selecting a file
- finished population of login form, added support for radio elements there
2012-05-21 11:57:51 +08:00
Marina Glancy 5ce13292b5 MDL-31901: Filepicker: Moved HTML for loginform into renderer 2012-05-21 11:57:51 +08:00
Marina Glancy b5e7b6385e MDL-31901: Introducing renderers for filepicker:
- create repository renderer, implement functions for returning HTML templates used in filepicker
- let filepicker use HTML from templates
- move CSS for filemanager and filepicker to the separate css file in base theme
- use only YUI3 in filepicker (get rid of YUI2)
- add button for 'View details' in filepicker (though this view mode is still not ready)
2012-05-21 11:57:51 +08:00
Marina Glancy 4adecd7beb MDL-31901: brushing the filepicker code
- use the same function for displaying request result for list/search/login/logout commands since sometimes we can not predict what kind of result is going to be returned
- prevent default behaviour for links, so ### does not appear in URL
- use flag issearchresult as received in the response from repository because we can't guess it right sometimes
- do not make excessive AJAX request when user switches to list view
2012-05-21 11:57:51 +08:00
Dongsheng Cai 6723372514 MDL-28666 Extends repository to support references
1. Allow repository to create references to external contents
2. Extends files API to handle file references
3. Generic file caching
4. Backup/restore file references
5. Download external contents if repository uninstalled
6. Allow filepicker to display iframe
7. PHPUnit test suits
2012-05-21 11:57:51 +08:00
Rajesh Taneja f2bfe26aea MDL-27120 backup: fixed docblock and code cleanup 2012-05-21 11:02:16 +08:00
Tony Levi 0c99b72299 MDL-27120: Cache DB operations in restore_dbops 2012-05-21 11:02:16 +08:00
Tony Levi 55f6d9d378 MDL-27120: Cache dirname transformations in progressive_parser::dirname 2012-05-21 11:02:16 +08:00
Adam Olley 16bf868513 mdl-27120 Fix static cache for backup_xml_transformer::register_link_encoders() 2012-05-21 11:02:16 +08:00
Jason Ilicic 67bf69416e mdl-27120 Fixed incorrect variable in parameter when adding form dependencies. 2012-05-21 11:02:16 +08:00
Ashley Holman 588605efa6 MDL-27120 Add global cache to backup_xml_transformer::register_link_encoders() 2012-05-21 11:02:16 +08:00
Ashley Holman 01ab87feda MDL-27120 More efficient use of QuickForms in backup UI 2012-05-21 11:02:16 +08:00
Ashley Holman 9e4b9a00cc MDL-27120 backup: replace sequential scan search with hash-based lookup. 2012-05-21 11:02:16 +08:00
Andrew Davis 728ff21b9f MDL-32860 grade: refactored graded_users_iterator 2012-05-21 09:11:25 +07:00
Sam Hemelryk 2cd972c1c6 MDL-32709 Pre-integration trivial clean up
* Added a comment for the BOOK_NUM_* defines.
* Fixed broken redirects in tool/importhtml/index.php
* Fixed typo in book_preload_chapters [subchpaters => subchapters]
* Fixed copy paste docblock error in tool/print/locallib.php
* Removed the .gitignore file as Eloy had previously mentioned that.
2012-05-21 14:06:00 +12:00
Eloy Lafuente (stronk7) 079be74dd5 MDL-32709 book: finish coding style review (errors only) 2012-05-21 01:50:20 +02:00
Eloy Lafuente (stronk7) a1448fc012 MDL-32709 book: fix send_stored_file() call 2012-05-21 01:27:40 +02:00
Eloy Lafuente (stronk7) 9717aa2ddd MDL-32709 book: delete some not needed stuff 2012-05-21 01:26:52 +02:00
Eloy Lafuente (stronk7) f7e6dd4d41 MDL-32709 book: now standard module + new strings added
Note the lang file is completely disordered yet
2012-05-21 00:54:53 +02:00
Eloy Lafuente (stronk7) a87aa28d51 MDL-32709 book: Fix logs handling 2012-05-21 00:33:58 +02:00
Mary Evans fc11586b03 MDL-33118 theme_mymobile: changed MAIN_CONTENT_TOKEN in layout/embedded.php to new format 2012-05-20 22:37:54 +01:00
Eloy Lafuente (stronk7) b9a363548d MDL-32709 book: DB definition & upgrade cleanup 2012-05-20 21:48:07 +02:00
Eloy Lafuente (stronk7) 29656fe24b MDL-32709 book: coding style, deprecated and minor fixes 2012-05-20 21:47:58 +02:00
Eloy Lafuente (stronk7) 1fc9e895ef MDL-32709 book: replace some deprecated stuff. Some pending yet, blame $PAGE 2012-05-20 21:47:50 +02:00
Eloy Lafuente (stronk7) 98cef39d28 MDL-32709 book: Add some missing MOODLE_INTERNALs 2012-05-20 21:47:38 +02:00
Eloy Lafuente (stronk7) 3542c4f4a9 MDL-32709 book: general comments and phpdocs cleanup 2012-05-20 21:47:29 +02:00
Eloy Lafuente (stronk7) e81c01b676 Subtree merged git://github.com/skodak/moodle-mod_book.git (master branch) into mod/book 2012-05-20 21:43:40 +02:00
Vadim Dvorovenko 5429460127 MDL-26562 2012-05-20 19:44:32 +07:00
Rex Lorenzo ae11631886 MDL-33090 - Missing strings in XMLDB editor - added in missing strings 2012-05-19 21:27:38 -07:00
Mary Evans b3d5a51a8d MDL-33110 themes: removed redundent boilerplate.css from Boxxie and all layout files from Serenity. 2012-05-20 01:15:25 +01:00
Petr Skoda 65f78adf42 MDL-27575 use new skype call URI
As described in official Skype page at http://www.skype.com/intl/en-us/tell-a-friend/get-a-skype-button/
2012-05-19 20:48:48 +02:00
Petr Skoda 103f34d88d MDL-32379 fix forum cron user caching 2012-05-19 18:56:19 +02:00
Petr Skoda fb1ec806c5 MDL-32564 fix admin/timezone.php page setup 2012-05-19 18:52:58 +02:00
Petr Skoda 8b5d2864ab MDL-32972 keep gif transparency when processing user avatar images 2012-05-19 18:47:23 +02:00
Petr Skoda 33d9f44bc6 MDL-18763 add 512x512px user avatar support 2012-05-19 18:47:23 +02:00
Petr Skoda dfa6a34638 MDL-33034 some more accesslib tests
It is not complete yet, but it should be enough to verify patch in MDL-8249 works properly.
2012-05-19 18:40:32 +02:00
Petr Skoda f32ecd2fbe MDL-33075 find correct location of failed test case classes 2012-05-19 18:38:51 +02:00
Eloy Lafuente (stronk7) 4f7f2a8828 weekly release 2.3dev 2012-05-19 12:24:31 +02:00
Eloy Lafuente (stronk7) 5204c07bd4 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-05-19 12:17:09 +02:00
AMOS bot f348b9dac6 Automatically generated installer lang files 2012-05-19 00:31:42 +00:00
Eloy Lafuente (stronk7) 128af10645 MDL-32005 Avoid some notices restoring old backup files without idnumber 2012-05-18 13:36:03 +02:00
Dan Poltawski 4a3d07972c Merge branch 'MDL-30617-master-patches' of git://git.luns.net.uk/moodle 2012-05-18 17:40:33 +08:00
Adrian Greeve 0a498686c0 MDL-32126 replaced _order with sortorder to make sorting work in oracle 2012-05-18 11:37:21 +02:00
Andrew Robert Nicols 2d1151817f MDL-30617 Center dialogue title 2012-05-18 10:28:53 +01:00
Andrew Robert Nicols af75421c54 MDL-30617 Adjustments to styling of module chooser
These changes fix several points and suggested changes:
* increase the size of the help popup to 800x600
* fix issues with centering of the dialogue
* swap next/cancel buttons
* convert next button to use string for 'Add'
* convert add text to 'Add an activity or resource'
2012-05-18 10:10:20 +01:00
Dan Poltawski eeba64d02e MDL-32727 - quiz: fix incorrect variable name in upgrade 2012-05-18 15:08:07 +08:00
Dan Poltawski 5316007e08 MDL-24419 section availability: display availability info to teachers 2012-05-18 14:56:00 +08:00
Jerome Mouneyrac 96d3b93ba3 MDL-33060 remove some get_string from exceptions 2012-05-18 14:45:15 +08:00
Dan Poltawski 1edff8c7ed MDL-30617 lang: improve mod chooser strings 2012-05-18 12:46:13 +08:00
Dan Poltawski ad10c481e1 Merge branch 'MDL-33048' of git://github.com/timhunt/moodle 2012-05-18 12:12:51 +08:00
Sam Hemelryk d5e6fe3ecc Merge branch 'MDL-32727' of git://github.com/timhunt/moodle
Conflicts:
	mod/quiz/db/upgrade.php
2012-05-18 16:07:20 +12:00
Dan Poltawski 82258830b7 Merge branch 'MDL-32933' of git://github.com/netspotau/moodle-mod_assign 2012-05-18 11:23:47 +08:00
Dan Poltawski a4d0f6f06a Merge branch 'w20_MDL-32868_m23_iplookup' of git://github.com/skodak/moodle 2012-05-18 11:05:28 +08:00
Dan Poltawski 7e89cbe0ac Merge branch 'MDL-31675-file-browsing' of git://github.com/mudrd8mz/moodle 2012-05-18 10:30:22 +08:00
Dan Poltawski 79f3d0e027 Merge branch 'MDL-32535-master' of git://github.com/sammarshallou/moodle 2012-05-18 10:28:19 +08:00
Dan Poltawski 33e693b5e1 Merge branch 'MDL-32909' of git://github.com/netspotau/moodle-mod_assign 2012-05-18 10:05:32 +08:00
AMOS bot 2f7bd55c0c Automatically generated installer lang files 2012-05-18 00:31:47 +00:00
Eloy Lafuente (stronk7) ad4dc7d265 MDL-33079 Enable IMS-CC export (backup converter) 2012-05-18 01:35:07 +02:00
Sam Hemelryk 67cfce0245 Merge branch 'MDL-33069' of git://github.com/danpoltawski/moodle 2012-05-18 10:48:23 +12:00
Sam Hemelryk 957983b702 MDL-33066 navigation: Fixed ambiguously defined columns in DB queries for Oracle 2012-05-18 10:37:44 +12:00
Eloy Lafuente (stronk7) f823158b07 MDL-32941 Add transaction support to delete_categories 2012-05-18 00:06:42 +02:00
Eloy Lafuente (stronk7) 3ec163ddf1 MDL-32941 Reorganise functions a bit 2012-05-17 23:45:41 +02:00
Eloy Lafuente (stronk7) 754c2deab6 Merge branch 'MDL-32941' of git://github.com/mouneyrac/moodle
Conflicts:
	course/externallib.php
	lib/db/services.php
	version.php
2012-05-17 22:35:57 +02:00
Davo Smith 5a4decbc2d MDL-22504 Course drag and drop upload - (mostly) fixed the dragging of text between Firefox <==> Chrome 2012-05-17 21:19:52 +01:00
Dan Poltawski 46e046b7b3 MDL-30617 modchoser: minor tweaks
* Change markup way from 'activity module style' to its own markup
* Remove 'a new' from the 'add an activity' string
* Remove the 'personalisation' from the nohelp lang string
2012-05-18 00:27:42 +08:00
Andrew Robert Nicols 01e0e7044a MDL-30617 Add a javascript interface for adding modules to a course
This interface allows for additional metadata, such as the module's help
and icon, to be displayed.
2012-05-18 00:27:16 +08:00
Helen Foster 2e6b68f4a8 MDL-32925 lang: Add extended help texts for all modules
Thanks to Mary Cooch & Martin Dougiamas who contributed to this
rewording.

AMOS BEGIN
   REM These module help texts are going to be displayed more prominently in the Moodle interface
AMOS END
2012-05-18 00:27:04 +08:00
Tim Hunt 36e48cb82f MDL-33048 quiz / my moodle: fatal error due to missing include. 2012-05-17 16:06:41 +01:00
Dan Poltawski bc449b18a6 Merge branch 'MDL-33025-master-1' of git://git.luns.net.uk/moodle 2012-05-17 21:19:37 +08:00
Dan Poltawski 03ba9dac94 Merge branch 'MDL-33073-master-1' of git://git.luns.net.uk/moodle 2012-05-17 21:04:30 +08:00
Davo Smith b64300fc42 MDL-22504 Improved drag and drop status message, fixed text dragged from firefox, fix icon 2012-05-17 13:59:54 +01:00
Dan Poltawski 1ed2dc6f96 Merge branch 'MDL-24419' of git://github.com/danpoltawski/moodle 2012-05-17 20:46:21 +08:00
Dan Poltawski 6e0d176934 Merge branch 'MDL-24419-master' of git://github.com/sammarshallou/moodle 2012-05-17 20:45:37 +08:00
sam marshall 52f1406101 MDL-24419 Fix bug with section creation for new courses 2012-05-17 13:37:33 +01:00
Andrew Robert Nicols 537194ffc5 MDL-33073 Fix application of toolbox JS for drag/dropped content 2012-05-17 11:49:53 +01:00
Dan Poltawski d6c94cf4eb MDL-33069 assignment: change pluralname to (2.2) 2012-05-17 17:28:26 +08:00
Aparup Banerjee ffa7d1cda0 Merge branch 'MDL-32087' of git://github.com/timhunt/moodle 2012-05-17 17:17:37 +08:00
Aparup Banerjee 8280dec6fa Merge branch 'w20_MDL-33016_m23_hubperf' of git://github.com/skodak/moodle 2012-05-17 16:57:01 +08:00
Aparup Banerjee defd2dcc13 Merge branch 'wip-mdl-32866' of git://github.com/rajeshtaneja/moodle 2012-05-17 16:48:07 +08:00
Frederic Massart 096d4d8767 MDL-29924 Glossary: Entry attachments displayed in Moodle dialogue 2012-05-17 15:12:22 +08:00
Aparup Banerjee 7ded1e29f9 Merge branch 'w20_MDL-32907_m23_like' of git://github.com/skodak/moodle 2012-05-17 14:47:44 +08:00
Dan Poltawski 331a8feecf Merge branch 'w20_MDL-29054_m23_sqlsrvdbt' of git://github.com/skodak/moodle 2012-05-17 14:33:42 +08:00
Dan Poltawski 5a0a64661c Merge branch 'w20_MDL-32967_m23_sqlsrvstrings' of git://github.com/skodak/moodle 2012-05-17 14:30:30 +08:00
Dan Poltawski aa141671a3 Merge branch 'MDL-31814' of git://github.com/timhunt/moodle 2012-05-17 14:11:14 +08:00
Jerome Mouneyrac 8c507544d4 MDL-32941 fix criteriaerror exception code + wrong phpdoc scope 2012-05-17 13:36:40 +08:00
Dan Poltawski b5378c1113 Merge branch 'w20_MDL-32961_m23_phpunitperf' of git://github.com/skodak/moodle 2012-05-17 12:35:45 +08:00
Dan Poltawski b24d1dbbad MDL-24419: redirect_if_major_upgrade_required version update
The conditional topics changes need users to go to /admin/index.php
2012-05-17 11:57:12 +08:00
Aaron Barnes 66b494771f MDL-33063 course: Reuse get_all_sections() 2012-05-17 15:40:03 +12:00
Dan Poltawski 65d0d4b654 Merge branch 'w20_MDL-32961_m23_phpunitperf' of git://github.com/skodak/moodle 2012-05-17 11:29:04 +08:00
Dan Poltawski 12ba24a8f8 Merge branch 'MDL-24419' of git://github.com/stronk7/moodle 2012-05-17 11:19:02 +08:00
Sam Hemelryk 2bdafb867a Merge branch 'MDL-32337-uptodate' of git://github.com/mudrd8mz/moodle 2012-05-17 14:55:21 +12:00
Sam Hemelryk b945325339 Merge branch 'MDL-31850-master' of https://github.com/mackensen/moodle 2012-05-17 14:49:03 +12:00
Jerome Mouneyrac d6ebe011b6 Fix codecheck/moodlechecker errors 2012-05-17 10:35:05 +08:00
Jerome Mouneyrac d7238d0839 MDL-32941 change category name limit from 30 to 255 2012-05-17 10:35:02 +08:00
Fábio Souto f2229c6895 MDL-32941 Implement core_course_update_categories, add webform and unittests
Conflicts:

	admin/webservice/testclient_forms.php
	course/externallib.php
	lib/db/services.php
2012-05-17 10:34:59 +08:00
Jerome Mouneyrac 6c6ec1d6b7 MDL-32941 use + operator instead array merge to avoid duplicate. Sort resulting array for better display to the client and for entring in the excluding algo. Exception reformatting. Minor formatting fixes. 2012-05-17 10:34:57 +08:00
Eloy Lafuente (stronk7) 20854c75f1 MDL-32941 external: core_course_get_categories() fixing.
This includes:

- Multiple coding violations.
- Better detection of criteria, avoiding troublemaker 0 != ''
- Minor formatting.
- Ordering by path always to cause excludes to work ok.
2012-05-17 10:34:14 +08:00
jleyva d4a17894ef MDL-32941 Some changes to the core_course_get_categories functions. Adding key parameters 2012-05-17 10:34:12 +08:00
Jerome Mouneyrac dd5e31f3cb MDL-32941 parameters moved on top level, little performance improvement, filter and format the description, browse all sub categories level and adjust checks 2012-05-17 10:34:09 +08:00
Fábio Souto d4a246bc3b MDL-32941 Add implementation for core_course_get_categories() 2012-05-17 10:34:06 +08:00
Fábio Souto 2f951d866a MDL-32941 Added service definition and implementation for core_course_delete_categories()
Included is a bug correction to categories_delete_move() which does not
respect showfeedback parameter, printing feedback even when not wanted
(this breaks the webservice output)

Conflicts:

	admin/webservice/testclient_forms.php
	lib/db/services.php
2012-05-17 10:34:03 +08:00
Fábio Souto be05180890 MDL-32941 complete unit tests and webform 2012-05-17 10:33:56 +08:00
Jerome Mouneyrac 95693c43aa MDL-32941 improve create_categories() web service function (wip) 2012-05-17 10:33:53 +08:00
Fábio Souto 479a5db197 MDL-32941 Create service definition and implementation for
core_course_create_categories()
2012-05-17 10:33:51 +08:00
Sam Hemelryk 72f1957393 Merge branch 'MDL-32903' of git://github.com/netspotau/moodle-mod_assign 2012-05-17 14:24:40 +12:00
Eloy Lafuente (stronk7) 71cbb2516b MDL-24419 (6): Backup and restore fixes and improvements
- annotate used grouping
- reorganize restore methods
- roll availability dates
- observe $CFG->enableavailability
- observe $CFG->enablegroupmembersonly
- TODO: 2 TODOs
2012-05-17 03:58:51 +02:00
Damyon Wiese d37ec15ca1 MDL-32903: Remove unused variable $tempsettings from mod_assign
This was left over from when I removed all the pass by reference calls.
2012-05-17 08:30:54 +08:00
Sam Hemelryk 1220843c02 Merge branch 'MDL-32610-hide-updates' of git://github.com/mudrd8mz/moodle 2012-05-17 12:30:44 +12:00
Sam Hemelryk bcc52e748a Merge branch 'master_MDL-32794' of git://github.com/danmarsden/moodle 2012-05-17 12:27:50 +12:00
Sam Hemelryk 536e3203e7 Merge branch 'MDL-32904' of git://github.com/netspotau/moodle-mod_assign 2012-05-17 11:54:07 +12:00
Sam Hemelryk 333127136a Merge branch 'MDL-23016c' of git://github.com/srynot4sale/moodle 2012-05-17 11:53:08 +12:00
Sam Hemelryk a0a06d05fa MDL-22504 course-dndupload: Fixed up a couple of minor bugs 2012-05-17 11:29:38 +12:00
Sam Hemelryk 7b06151288 Merge branch 'MDL-22504_drag_and_drop_upload_final' of https://github.com/davosmith/moodle
Conflicts:
	course/lib.php
	theme/base/style/course.css
2012-05-17 10:55:35 +12:00
Eloy Lafuente (stronk7) 94dc3c7d1e MDL-24419 (5): Coding style cleanup 2012-05-17 00:51:50 +02:00
Sam Hemelryk fbb4c959b5 MDL-32881 Prevent course/view.php from being cached
This should prevent browser caching which will ensure that changes made
using the course javascript (e.g. drag/drop, show/hide) will not be 'lost'
by using the browser back button.

This reverts commit 3aaa184399.
2012-05-17 10:12:29 +12:00
Eloy Lafuente (stronk7) dd420abadf Merge branch 'MDL-24419-master' of git://github.com/sammarshallou/moodle
Conflicts:
	lib/db/upgrade.php
	lib/phpunit/lib.php
	version.php

Fixed:
    lib/db/upgrade.php - duplicate course->sectioncache add code
    lib/db/install.xml - cleanup needed because xmldb editor was not used
    lib/phpunit/classes/util.php - cleanup $GROUPLIB_CACHE on test reset
2012-05-16 23:53:47 +02:00
Eloy Lafuente (stronk7) 0c408f5a3d NOBUG: Minibump to get latest WS installed 2012-05-16 16:28:59 +02:00
Eloy Lafuente (stronk7) ea01d3c601 Merge branch 'MDL-32233-core_course_duplicate_course-usersdata' of git://github.com/jleyva/moodle 2012-05-16 16:23:00 +02:00
Juan Leyva d7f465d497 MDL-32233 core_course_duplicate_course: Forcing backup and restore in MODE_SAMESITE always as suggested by Eloy. 2012-05-16 16:10:47 +02:00
Andrew Robert Nicols eb7b030a8b MDL-33040 Validate dates correctly on log page 2012-05-16 13:52:11 +01:00
Juho Viitasalo e566bfa1ae MDL-31850 wiki: extra whitespace removed from form 2012-05-16 03:43:17 -07:00
Juan Leyva 6c7d3e3100 MDL-32233 core_course_duplicate_course: Fixed integrator review details described here http://tracker.moodle.org/browse/MDL-32233?focusedCommentId=157707&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-157707 2012-05-16 12:10:09 +02:00
Andrew Robert Nicols c9cbb5a9bf MDL-33025 Ensure that hitting cancel clears the resource title editor 2012-05-16 10:56:45 +01:00
Andrew Robert Nicols e0319e7be7 MDL-33025 Ensure that popups aren't triggered when editing resource titles 2012-05-16 10:46:09 +01:00
Eloy Lafuente (stronk7) 6b4769bc8b Merge branch 'MDL-32662-core_course_groups_xxx_groupings' of git://github.com/jleyva/moodle 2012-05-16 11:41:48 +02:00
Juan Leyva 2c8ad38eff MDL-32662 core_group_xxx_groupings: Fixed integrator review potential problem detected in update_groupings. More info: http://tracker.moodle.org/browse/MDL-32662?focusedCommentId=157706&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-157706 2012-05-16 10:45:40 +02:00
Aparup Banerjee 485e67982c Merge branch 'MDL-32633' of git://github.com/timhunt/moodle 2012-05-16 15:59:07 +08:00
Davo Smith 33b24bdd99 MDL-22504 Course drag and drop upload - moved file locations 2012-05-16 08:25:22 +01:00
Aparup Banerjee 9e66e96049 Merge branch 'MDL-31657' of git://github.com/scriby/moodle 2012-05-16 14:32:51 +08:00
Aparup Banerjee 7585ac89bd Merge branch 'MDL-32988-master' of git://github.com/sammarshallou/moodle 2012-05-16 14:03:56 +08:00
Aparup Banerjee ca91bdcdf7 MDL-32921 lti : reused a moodle_url. 2012-05-16 13:49:32 +08:00
Aparup Banerjee 184287f0ce Merge branch 'MDL-32921' of git://github.com/scriby/moodle 2012-05-16 13:48:42 +08:00
Jerome Mouneyrac 3a68419430 MDL-33028 display debuginfo when server die at developer mode 2012-05-16 12:04:13 +08:00
Aparup Banerjee e7ebfb8058 Merge branch 'MDL-32005-master-10' of git://git.luns.net.uk/moodle
- fixed up comments (was phpdoc blocks)
2012-05-16 10:39:48 +08:00
Sam Hemelryk 19d1525f6b Merge branch 'MDL-32641-master-1' of git://git.luns.net.uk/moodle 2012-05-16 13:14:59 +12:00
Sam Hemelryk ba94f1d503 Merge branch 'MDL-32889-master' of https://github.com/mackensen/moodle 2012-05-16 13:09:32 +12:00
AMOS bot bbbb140065 Automatically generated installer lang files 2012-05-16 00:31:32 +00:00
Aaron Barnes 1d09e12936 MDL-32016 unit tests: Remove hard coded file hash and calculate dynamically 2012-05-16 11:55:39 +12:00
Sam Hemelryk a5bf3c520f Merge branch 'MDL-31215-master-11' of git://git.luns.net.uk/moodle
Conflicts:
	course/lib.php
2012-05-16 09:59:45 +12:00
Sam Hemelryk fdbd219b33 Merge branch 'MDL-30434_debug_exception' of git://github.com/andyjdavis/moodle 2012-05-16 09:51:48 +12:00
Henning Bostelmann 7fd5786e6f MDL-28557 Calendar filters: show all group events in course to teacher 2012-05-15 22:21:43 +01:00
Sam Hemelryk 3cb5b9ccf6 Merge branch 'MDL-31458' of git://github.com/danpoltawski/moodle 2012-05-16 09:12:17 +12:00
Tim Hunt 5ef18d8250 MDL-33020 qtype unit tests: improve failure messages. 2012-05-15 17:55:29 +01:00
David Mudrak cb1c329186 MDL-32337 admin notifications page checks for the recent updates fetch timestamp
Now the message 'Your Moodle code is up-to-date!' is displayed only if
the fetch was done within the last hour. Otherwise, just the button
'Check for available updates' is displayed.
2012-05-15 16:59:45 +02:00
Tim Hunt 4267fc5272 MDL-32727 quiz upgrade: sort out potential unique key violations
... before trying to create the unique index that should be there.
The violations may come from old buggy code.

We do two things.
1. First we delete all previews.
2. Then, if there are still problems, we renumber attempts to eliminate
the duplicates.
2012-05-15 15:23:53 +01:00
Petr Skoda 13f18ae197 MDL-33016 eliminate unnecessary DB query on /index.php 2012-05-15 15:40:22 +02:00
Petr Skoda 1d4d115ae1 MDL-32868 document PHPUNIT_LONGTEST in phpunit.xml.dist 2012-05-15 15:35:48 +02:00
Wiktor Wandachowicz 5bd2824a79 MDL-32204 MNet: set auth method to mnet for users enrolled remotely 2012-05-15 15:33:53 +02:00
David Mudrak fef693c858 MDL-32610 cron based fetch of available updates can be disabled from config.php 2012-05-15 14:32:55 +02:00
David Mudrak 4db58f5fc7 MDL-32610 available updates info at the admin Notifications page can be hidden 2012-05-15 14:30:47 +02:00
David Mudrak fa1d403f2e MDL-32610 available updates info at the Plugins check upgrade page can be hidden 2012-05-15 14:23:48 +02:00
David Mudrak 7716057f7d MDL-32610 available updates info at the Plugins overview admin page can be hidden 2012-05-15 13:43:08 +02:00
Eloy Lafuente (stronk7) 3e632cf4e6 Merge branch 'MDL-32998' of git://github.com/mouneyrac/moodle 2012-05-15 13:14:13 +02:00
Eloy Lafuente (stronk7) 5b0800d30e MDL-32949 ws: minor comments cleanup 2012-05-15 13:10:50 +02:00
sam marshall a7d09b7008 MDL-32988 Lib: Course delete does availability/completion in wrong order
When deleting modules that failed to delete using normal method, it deleted
the course-modules table first and then the availability/completion,
which depend on the entries in course-modules table. This commit switches
the order.
2012-05-15 12:02:00 +01:00
Eloy Lafuente (stronk7) 4617939723 Merge branch 'MDL-32949' of git://github.com/mouneyrac/moodle 2012-05-15 12:59:18 +02:00
Jerome Mouneyrac 50f9449faa MDL-32998 add warnings structure 2012-05-15 18:40:06 +08:00
Jerome Mouneyrac 506df9acbf MDL-32949 return exception errorcode from the REST/SOAP/XMLRPC servers 2012-05-15 18:23:43 +08:00
David Mudrak 4fb3a06821 MDL-32610 site administration > server > update notifications section can be hidden 2012-05-15 11:39:04 +02:00
David Mudrak 5aab24ef17 MDL-32610 config-dist.php has info about $CFG->disableupdatenotifications flag 2012-05-15 11:37:59 +02:00
Aparup Banerjee 154128a50f Merge branch 'wip-mdl-32770' of git://github.com/rajeshtaneja/moodle 2012-05-15 16:41:54 +08:00
Andrew Robert Nicols 74b714df7e MDL-32005 Add idnumber field to groups and groupings 2012-05-15 09:38:51 +01:00
Dan Poltawski 61bb4184a7 Merge branch 'w20_MDL-25197_m23_innodb' of git://github.com/skodak/moodle 2012-05-15 15:41:46 +08:00
Dan Poltawski b60b839d31 Merge branch 'MDL-32869_master' of git://github.com/kordan/moodle 2012-05-15 15:32:03 +08:00
Dan Poltawski 0a6202232c Merge branch 'MDL-32321_master' of git://github.com/kordan/moodle 2012-05-15 15:30:28 +08:00
Dan Poltawski 1e1931a797 Merge branch 'MDL-32978-master-integration' of git://github.com/FMCorz/moodle 2012-05-15 14:43:31 +08:00
Yang 03d38b9207 MDL-32998 add warnings structure 2012-05-15 13:40:58 +08:00
Damyon Wiese bf78ebd650 MDL-32932: Add quickgrading support to mod_assign 2012-05-15 13:33:59 +08:00
Damyon Wiese a769a00157 MDL-32933: Add outcomes to mod_assign and upgrade tool 2012-05-15 12:27:27 +08:00
Aparup Banerjee c459e91789 Merge branch 'MDL-25695-master' of https://github.com/mackensen/moodle 2012-05-15 11:03:07 +08:00
AMOS bot fecd0c95ab Automatically generated installer lang files 2012-05-15 00:31:35 +00:00
Dan Marsden 0ae299769c MDL-32794 SCORM prevent items in tree that have no navigation from triggering a navigation change. 2012-05-15 09:36:35 +12:00
Tim Hunt 18056cd8dd MDL-32087 question preview: add a help icon to the technical info. 2012-05-14 19:26:06 +01:00
Tim Hunt 05a7d15511 MDL-32087 question preview: update the code to use html_writer. 2012-05-14 19:26:05 +01:00
Tim Hunt a2b4d8968c MDL-32087 question preview: add a Save button.
Without this, there are some interactions with the question that could
only be tested by adding the question to a quiz, which was a pain.
2012-05-14 19:26:04 +01:00
Tim Hunt 802f8d2af4 MDL-32087 question preview: make more technical info available.
... but hide it in a collapsible region.
2012-05-14 19:26:04 +01:00
Tim Hunt fc6b4c1b4d MDL-31393 qtype_essay upgrade: save old question_answers.feebdack 2012-05-14 16:34:24 +01:00
Eric Merrill 192a8e13c3 MDL-32985 cron: don't execute notify_login_failures unnecessarily 2012-05-14 11:21:14 -04:00
Andrew Robert Nicols 7a9a07d24a MDL-31215 Add the ability to change activity titles using AJAX calls 2012-05-14 14:22:02 +01:00
Dan Poltawski 7a76aad7b7 Merge branch 'MDL-32930' of git://github.com/tmuras/moodle 2012-05-14 20:57:14 +08:00
Dan Poltawski 095de3cee6 Merge branch 'MDL-32863' of git://github.com/jonof/moodle 2012-05-14 20:49:05 +08:00
Dan Poltawski eca95b639d Merge branch 'MDL-32375' of git://github.com/timhunt/moodle 2012-05-14 20:42:12 +08:00
sam marshall ce4dfd2703 MDL-24419 (4): Add conditional availability support to sections; section cache
Credit: original version done by Kirill Astashov of NetSpot (netspot.com.au),
finished and tweaked by sam.

This change adds conditional availability support for sections analagous to
that already available for activities. (Backend, UI, backup/restore.)

In order that this feature does not reduce performance, section cacheing has
also been added using a new course 'sectioncache' field analagous to modinfo.

The new feature integrates with activity availability so that activities
inside sections which are not available are automatically not available
themselves (meaning it works to restrict access).
2012-05-14 11:19:25 +01:00
sam marshall 637da99edb MDL-24419 (3): Add new parameter to format_float for shorter display 2012-05-14 11:15:16 +01:00
sam marshall ae3fbf7b06 MDL-24419 (2): Moved groupings cache to get_all_groupings function
There was a static cache inside course/lib.php. I need to access this
information in other places, so to avoid making two queries, I am
moving the cache into the groups_get_all_groupings function instead.
2012-05-14 11:15:15 +01:00
sam marshall 1cf121e1d2 MDL-24419 (1): Core restore steps should have after_restore function
At present core restore steps cannot have an after_restore function,
even though plugin restore steps can. Technically it would be possible
to just override the launch_after_restore_methods function but this
is not very neat. Instead, I added code to call after_restore function
(exactly the same way after_execute works).
2012-05-14 11:15:14 +01:00
sam marshall cfa722c9c1 MDL-32535 Completion lang string incorrect use, text 2012-05-14 11:13:54 +01:00
Dan Poltawski bdd773d565 Merge branch 'MDL-30291' of git://github.com/rwijaya/moodle 2012-05-14 18:08:30 +08:00
Dan Poltawski 36e686a07e MDL-32923 phpunit: make copy/paste easier 2012-05-14 17:38:58 +08:00
Davo Smith 5103b5e667 MDL-22504 Course drag and drop upload - now correctly ignores disabled modules and allows upload to orphaned sections 2012-05-14 09:48:04 +01:00
Dan Poltawski 225097f75a Merge branch 'MDL-31719_master' of git://github.com/lazydaisy/moodle 2012-05-14 15:53:19 +08:00
Dan Poltawski 7e86180956 MDL-32923 phpunit: be a bit more verbose about re-run cmmand 2012-05-14 15:48:26 +08:00
Dan Poltawski a5fefe0bbd Merge branch 'w20_MDL-32923_m23_phpunithint' of git://github.com/skodak/moodle 2012-05-14 15:46:23 +08:00
Dan Poltawski cf037ba049 Merge branch 'w20_MDL-26901_m23_tinymceoptions' of git://github.com/skodak/moodle 2012-05-14 14:44:04 +08:00
Dan Poltawski bf9b08dd5e Merge branch 'wip-mdl-31941' of git://github.com/rajeshtaneja/moodle 2012-05-14 14:26:29 +08:00
Dan Poltawski ec3f19bddb Merge branch 'MDL-31951' of git://github.com/rwijaya/moodle 2012-05-14 14:23:41 +08:00
Dan Poltawski 8715472b1d Merge branch 'MDL-32742-master-1' of git://git.luns.net.uk/moodle 2012-05-14 14:21:57 +08:00
Dan Poltawski 1af542ed67 Merge branch 'MDL-31804_ambiguous_sql' of git://github.com/andyjdavis/moodle 2012-05-14 14:20:05 +08:00
Dan Poltawski a225149c9a Merge branch 'MDL-24401' of git://github.com/rwijaya/moodle 2012-05-14 14:12:30 +08:00
Dan Poltawski b728070f5d Merge branch 'MDL-32902' of git://github.com/netspotau/moodle-mod_assign 2012-05-14 14:08:27 +08:00
Dan Poltawski 77acdb26f2 Merge branch 'w20_MDL-32915_m23_chatdiv' of git://github.com/skodak/moodle 2012-05-14 14:06:37 +08:00
Dan Poltawski 783669b96b Merge branch 'wip-MDL-32872-m23' of git://github.com/samhemelryk/moodle 2012-05-14 14:00:51 +08:00
Dan Poltawski 3359a6fe07 Merge branch 'w20_MDL-32926_m23_phpunitevil' of git://github.com/skodak/moodle 2012-05-14 13:36:11 +08:00
Dan Poltawski ae745307ef Merge branch 'w20_MDL-32960_m23_phpunitref' of git://github.com/skodak/moodle 2012-05-14 13:32:18 +08:00
Frederic Massart 6189c7b4d3 MDL-32978 Gradebook: Fix strict standards notices 2012-05-14 13:27:06 +08:00
Dan Poltawski a271c57af8 Merge branch 'wip-MDL-32611-m23' of git://github.com/samhemelryk/moodle 2012-05-14 13:12:53 +08:00
Dan Poltawski 950632673b Merge branch 'MDL-32875-master-1' of git://git.luns.net.uk/moodle 2012-05-14 13:08:40 +08:00
Damyon Wiese 5b12114476 MDL-32895: Improvements to assignment upgrade tool for large numbers of assignments.
* Form to control the perpage variable for the upgradable assignments table.
    * Set timeout and increase memory limit for batch upgrades
    * Output/renderer pages to the upgrade progress is progressively displayed
    * Cleanup of relative includes in assignmentupgrade tool
    * More verbose errors reported for failed upgrades
2012-05-14 12:53:21 +08:00
Jonathon Fowler ef8c793d74 MDL-31804 duplicated columns cause Oracle error in grader report 2012-05-14 11:00:29 +07:00
Damyon Wiese 3b6bbd767b MDL-32902: Remove 70% width stylesheet rule for tables on the mod_assign submission screen. 2012-05-14 11:39:42 +08:00
Sam Hemelryk dfb597b447 Merge branch 'MDL-31134-master' of git://github.com/ankitagarwal/moodle 2012-05-14 15:36:55 +12:00
Damyon Wiese 12945803b8 MDL-32904: Fix incorrect call to update_record (not causing an error) 2012-05-14 11:34:08 +08:00
Damyon Wiese b11808c7d6 MDL-32909: assign_user_get_grades does not need to lookup context and was doing it wrong
cmidnumber is not the same as coursemodule->id
2012-05-14 11:29:43 +08:00
Damyon Wiese c45261df97 MDL-32933: Add outcomes to mod_assign and upgrade tool 2012-05-14 11:23:40 +08:00
Jonathon Fowler 0eefca3b66 MDL-32863 question: fix for Oracle ambiguous column error 2012-05-14 12:52:58 +10:00
Sam Hemelryk 86558590a4 Merge branch 'MDL-31944' of git://github.com/ankitagarwal/moodle 2012-05-14 14:52:10 +12:00
Dan Poltawski bb30328fe1 Merge branch 'w20_MDL-26553_m23_sqlsrvconfig' of git://github.com/skodak/moodle 2012-05-14 10:49:52 +08:00
Sam Hemelryk edd25271c4 Merge branch 'MDL-30305-master-1' of git://git.luns.net.uk/moodle 2012-05-14 14:48:31 +12:00
Dan Poltawski e87a7c65f1 Merge branch 'MDL-32714-rubric' of git://github.com/mudrd8mz/moodle 2012-05-14 10:41:46 +08:00
Sam Hemelryk f98a3833b9 Merge branch 'w20_MDL-32659_m23_navcourses' of git://github.com/skodak/moodle 2012-05-14 14:37:51 +12:00
Dan Poltawski 41ea0d3cc2 Merge branch 'MDL-31902-master' of git://github.com/ankitagarwal/moodle 2012-05-14 10:28:05 +08:00
Rossiani Wijaya 1dedecf260 MDL-30291 outputrenderers: fixed typo for 2012-05-14 10:25:05 +08:00
Dan Poltawski 85c85b8102 Merge branch 'MDL-27322_export' of git://github.com/andyjdavis/moodle 2012-05-14 10:22:21 +08:00
Dan Poltawski 2edce32ad4 Merge branch 'MDL-32910' of git://github.com/timhunt/moodle 2012-05-14 10:10:03 +08:00
Sam Hemelryk 04d7103804 Merge branch 'MDL-32340-master-2' of git://git.luns.net.uk/moodle 2012-05-14 14:04:21 +12:00
Sam Hemelryk 924c34df8c MDL-32873 course: Fixed up unused global + phpdocs 2012-05-14 13:41:15 +12:00
Sam Hemelryk 1c0441bd6a Merge branch 'MDL-32873-master-1' of git://git.luns.net.uk/moodle
Conflicts:
	course/lib.php
2012-05-14 13:39:55 +12:00
Sam Hemelryk 8ec7c2cfd9 Merge branch 'MDL-32881-master-2' of git://git.luns.net.uk/moodle 2012-05-14 13:30:16 +12:00
Sam Hemelryk c96e613c66 Merge branch 'wip-MDL-32126-master' of git://github.com/abgreeve/moodle 2012-05-14 13:20:07 +12:00
Adrian Greeve 0ba303e85f MDL-32126 - data - Fix of an error when sorting by other criteria. 2012-05-14 07:27:01 +08:00
Sam Hemelryk fe579c15b7 MDL-32611 editcategory: Fixed up navigation error. 2012-05-14 09:16:43 +12:00
Sam Hemelryk 6669b8e91e MDL-32872 tool_roles: Fixed up navigation on user roles page 2012-05-14 08:54:50 +12:00
Mary Evans b87ac3867e MDL-31719 lang/en/admin.php: changed text in $string['configallowthemechangeonurl'] to make less ambiguous 2012-05-13 14:40:30 +01:00
Petr Skoda 246c8d497c MDL-26553 add sqlsrv to list of available db types in config-dist.php 2012-05-13 14:28:25 +02:00
Petr Skoda c1592e514f MDL-25197 add existing InnoDB engine detection in conversion tool 2012-05-13 13:54:35 +02:00
Petr Skoda 99a5cd78ec MDL-29054 add sqlsrv to list dbtransfer targets, remove unfinished sqlite support 2012-05-13 12:28:19 +02:00
Petr Skoda 0739e690ee MDL-32967 add diagnostic strings for missing Microsoft drivers for SQL Server 2012-05-13 12:21:04 +02:00
Petr Skoda 7edfd54fcf MDL-32915 fix bogus open div in basic chat ui 2012-05-13 10:24:43 +02:00
Petr Skoda ed7259d112 MDL-32923 on failure print hint how to execute the failed test case 2012-05-13 09:56:57 +02:00
Petr Skoda b136a25b16 MDL-32961 try to use native grep when searching for DONOT...COMMIT tags 2012-05-12 23:05:42 +02:00
Petr Skoda d59ef9c5ab MDL-32926 exorcise setUser(2) evil from phpunit 2012-05-12 21:42:07 +02:00
Petr Skoda 08ad325702 MDL-32960 put phpunit integration tests to one test suite and execute them first 2012-05-12 21:33:23 +02:00
Petr Skoda 7e7cfe7a03 MDL-32960 refactor phpunit integration to one class per file structure 2012-05-12 20:53:48 +02:00
Petr Skoda db990d3a47 MDL-32830 add new hidden yuidebug setting for module backtraces 2012-05-12 17:06:45 +02:00
Petr Skoda ed63f7f883 MDL-32907 prevent sql_like() backslash quoting problems in PostgreSQL 2012-05-12 16:40:11 +02:00
Petr Skoda 64b0f3ab68 MDL-32868 fix iplookup inconsistencies and add missing unit tests
Please note you need to define PHPUNIT_LONGTEST in config.php or phpunit.xml to get the tests to execute because it takes long time to fetch the geoip data and we do not want to DDOS geoPlugin server.
2012-05-12 14:25:01 +02:00
Petr Skoda fca2d3d754 MDL-32659 potential navigation course loading improvements
The idea is to not use inequalities in SQL queries for loading of courses in navigation because ti seems some SQL query optimiser have problems with that.
2012-05-12 13:20:11 +02:00
David Mudrak d20bffa2fd MDL-32714 workshop: fixed SQL to load assessment form fields
Obvious problems emerged once there were some records in the
workshopform_rubric table with no workshopform_rubric_levels. As l.id
(empty in that case) was used as the key of the returned array, they all
were collapsed into a single one.
2012-05-12 10:27:34 +02:00
Mary Evans 96e0e914ce MDL-32879 changes default region from side-post to side-pre for most CORE themes (Afterburner,Anomally, Arialist, Base, Boxxie, Canvas, Formal White, Formfactor, Leatherbound, Magazine,Splash and Standard Old) 2012-05-12 02:09:31 +01:00
Petr Skoda 1fea5537d4 MDL-26901 add new option to specify list of available fonts in TinyMCE
Also modified the list of languages appearance, textarea is more suitable for entry of long texts. It is now also possible to specify empty list of languages and fonts which removes the button from the editor toolbar. Includes release name fix.
2012-05-11 22:12:32 +02:00
Tim Hunt 62a3bfb37e MDL-32633 quiz editing: recreate grade item when max changed from 0 2012-05-11 20:23:37 +01:00
Tim Hunt 6cdef715df MDL-32375 question unit tests: fix breakage from phpunit coversion.
Three things:

1. Fixes to select expectation.

2. Fixes to match walkthrough tests (No idea how these managed to pass
under Simpletest!)

3. Fix expected values for multianswer upgrade tests.
2012-05-11 14:59:58 +01:00
Eloy Lafuente (stronk7) 71d7bc34a8 weekly release 2.3dev 2012-05-11 12:18:06 +02:00
Eloy Lafuente (stronk7) 28f7bbb0c8 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-05-11 12:10:16 +02:00
Dan Poltawski 93f11331e4 MDL-31458 forum: email subjects containing ampersand are sent as &amp; 2012-05-11 15:25:26 +08:00
Tomasz Muras 04bfa67c41 MDL-32930 Add escaping for '_' character 2012-05-11 08:56:01 +02:00
Andrew Davis fb71453ddc MDL-30434 core: modified get_exception_info() to provide more debug information 2012-05-11 12:40:46 +07:00
Aparup Banerjee 429f2bd096 MDL-32707 Moved fix to make youtube videos use transparent wmode setting into medialib.php
(this should have gone in with the previous merge. oops)
2012-05-11 12:57:55 +08:00
Aparup Banerjee ddd492ad7f Merge branch 'MDL-32707-master-1' of git://git.luns.net.uk/moodle
fix moved into medialib.php

Conflicts:
	filter/mediaplugin/filter.php
2012-05-11 12:40:38 +08:00
Frederic Massart 50a8374ef8 MDL-30649 Glossary : Fixed floating element breaking HTML 2012-05-11 10:53:22 +08:00
Ankit Agarwal 3afe75a79c MDL-31902 general: Removing deprecated functions 2012-05-11 10:30:40 +08:00
Rajesh Taneja 5d8215ccf4 MDL-31941 chat: removed chat_get_participants, deprecated function 2012-05-11 09:21:04 +08:00
Eloy Lafuente (stronk7) 6265a43af7 Merge branch 'MDL-32924' of git://github.com/timhunt/moodle 2012-05-11 03:13:00 +02:00
Tomasz Muras c92e462b04 MDL-32930 Improve the performance of get_tables 2012-05-10 23:35:18 +02:00
Chris Scribner bc2a92aeda MDL-32921: Fixing an issue with adding LTI tool providers from the admin UI 2012-05-10 12:07:13 -04:00
Tim Hunt 667c090728 MDL-32924 improve unit test performance. 2012-05-10 16:22:09 +01:00
Andrew Robert Nicols d083084a23 MDL-32340 Improve performance of calendar selection 2012-05-10 16:05:37 +01:00
Chris Scribner 66c1441213 MDL-31657: Remove some unused LTI localization strings 2012-05-10 09:43:23 -04:00
Andrew Robert Nicols b286fcdfdc MDL-30305 Automatically hide the dateselector after choosing a date 2012-05-10 14:11:19 +01:00
Andrew Robert Nicols 96c8f933fd MDL-32641 Ensure that the form change protector does not kick in when adding/editing feedback questions 2012-05-10 12:15:24 +01:00
Andrew Robert Nicols 3aaa184399 MDL-32881 Prevent course/view.php from being cached
This should prevent browser caching which will ensure that changes made
using the course javascript (e.g. drag/drop, show/hide) will not be 'lost'
by using the browser back button.
2012-05-10 11:38:42 +01:00
Tim Hunt 1921d47b0a MDL-32910 MDL-32569 broke unit tests in third-party qtypes 2012-05-10 11:16:06 +01:00
Juan Leyva 67aa60f9b7 MDL-32662 Fixed review problems 2012-05-10 11:41:46 +02:00
Juan Leyva 7ce235909a MDL-32662 Added new groupings methods to services file 2012-05-10 11:41:03 +02:00
Juan Leyva fb3f5d3173 MDL-32662 Added unassign_grouping method 2012-05-10 11:40:57 +02:00
Juan Leyva 20053b8c3d MDL-32662 Added assign_grouping method 2012-05-10 11:40:51 +02:00
Juan Leyva a531136e98 MDL-32662 Added delete_groupings method 2012-05-10 11:40:46 +02:00
Juan Leyva 85e42d2218 MDL-32662 Added get_course_groupings method 2012-05-10 11:40:40 +02:00
Juan Leyva ed849fbace MDL-32662 Added get_groupings method 2012-05-10 11:40:35 +02:00
Juan Leyva 87e959f33b MDL-32662 Added update_groupings method 2012-05-10 11:40:29 +02:00
Juan Leyva 882bac854f MDL-32662 Added method create_groupings 2012-05-10 11:40:23 +02:00
Aparup Banerjee 1c7eb3df38 Merge branch 'MDL-31133-master' of git://github.com/ankitagarwal/moodle 2012-05-10 16:54:35 +08:00
Dan Poltawski 702cb399b2 Merge branch 'MDL-28134_branch' of git://github.com/nebgor/moodle 2012-05-10 16:51:12 +08:00
Andrew Robert Nicols 314eae407f MDL-32873 Separate out course ajax enabled detection into new function 2012-05-10 09:34:27 +01:00
Andrew Robert Nicols d4365c0364 MDL-32837 Add style to allow for js elements to be shown only if js is enabled 2012-05-10 09:34:18 +01:00
Rajesh Taneja 36be7e1453 MDL-32770 course: fixed section title and footer 2012-05-10 16:23:17 +08:00
Juan Leyva 9aa84e9168 MDL-32233 Added usersdata support in WS method core_course_duplicate_course 2012-05-10 09:57:09 +02:00
Aparup Banerjee ad394588db MDL-28134 General : fixed CFG->branch notice during web/cli installation 2012-05-10 15:43:52 +08:00
Juan Leyva 3dc1d76e06 MDL-32233 Added WS method core_course_duplicate_course 2012-05-10 09:38:04 +02:00
Ankit Agarwal 99c4dcd3e2 MDL-31944 feedback: remove deprecated function feedback_get_participants() 2012-05-10 15:16:47 +08:00
Dan Poltawski b84eb3cf20 Merge branch 'MDL-32901' of git://github.com/netspotau/moodle-mod_assign 2012-05-10 14:24:20 +08:00
Damyon Wiese 755bfecae9 MDL-32901: Default feedback plugin for gradebook was using incorrect component name
This fix allows this setting to be set to the default correctly and prevents it showing on the
front page settings screen for a new install.
2012-05-10 14:16:18 +08:00
Damyon Wiese d82bb44d74 MDL-32899: Assignment upgrade tool fails to upgrade some online text submissions
This is a fix for onlinetext assignments with submissions that have feedback but no
actual submission (data1 and data2 are NULL)
2012-05-10 14:00:23 +08:00
Dan Poltawski 3388649065 Merge branch 'MDL-28134_branch' of git://github.com/nebgor/moodle 2012-05-10 13:44:03 +08:00
Sam Hemelryk c56d266a58 MDL-31763 mod_data: Fixed array iteration reference issue 2012-05-10 17:31:42 +12:00
Aparup Banerjee 83c9d449e0 MDL-29624 Media embedding system : phpdoc tweaks. 2012-05-10 10:52:41 +08:00
Aparup Banerjee e1e3fa217f Merge branch 'MDL-29624-master' of git://github.com/sammarshallou/moodle 2012-05-10 10:52:32 +08:00
Rossiani Wijaya 6176184bcc MDL-31951 Lesson module: Removed deprecated lesson_get_participants() function 2012-05-10 10:51:05 +08:00
Ankit Agarwal e2ec154ec1 MDL-31134 calendar: Deleting deprecated function calendar_get_link_tag() 2012-05-10 10:48:25 +08:00
Sam Hemelryk 5ba2e3150f Merge branch 'wip-MDL-31763-master' of git://github.com/abgreeve/moodle 2012-05-10 14:11:24 +12:00
Adrian Greeve 541685ec20 MDL-31763 - data - users can only override their own presets unless they have manage presets permission. 2012-05-10 10:04:30 +08:00
Sam Hemelryk 3c611a360e Merge branch 'MDL-32780-CLEAN' of git://github.com/netspotau/moodle-mod_assign 2012-05-10 14:04:14 +12:00
Sam Hemelryk 137467f5b4 Merge branch 'master_MDL-32507' of git://github.com/danmarsden/moodle 2012-05-10 13:58:12 +12:00
Sam Hemelryk 6bfa88103d Merge branch 'master-MDL-31028_2' of git://github.com/chtombleson/moodle 2012-05-10 13:52:31 +12:00
Andrew Davis 78ab98bc5e MDL-27322 grade: added the ability to not have suspended students included in a grade export 2012-05-10 08:34:51 +07:00
AMOS bot c670c3a3f6 Automatically generated installer lang files 2012-05-10 00:31:40 +00:00
Sam Hemelryk 78ed2ec79f Merge branch 'MDL-32857' of git://github.com/danpoltawski/moodle 2012-05-10 12:15:50 +12:00
Sam Hemelryk 60301632b9 Merge branch 'wip-mdl-27562' of git://github.com/rajeshtaneja/moodle 2012-05-10 12:00:54 +12:00
Sam Hemelryk efd412dda9 MDL-30649 Fixed up whitespace 2012-05-10 11:57:59 +12:00
Sam Hemelryk 320b4deb6a Merge branch 'wip-MDL-30649-master' of git://github.com/phalacee/moodle 2012-05-10 11:56:58 +12:00
Charles Fulton 66969d5004 MDL-32889 lib: escape filename in Content-Disposition header 2012-05-09 16:03:33 -04:00
Eloy Lafuente (stronk7) 5c7b68f25a Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-05-09 19:31:03 +02:00
sam marshall 8b7d95b625 MDL-29624 Media embedding system, part 3: resource module (and URL, lesson)
This change makes the resource module use the new API when it embeds media
files (audio/video/Flash), and removes the resourcelib library functions
which were previously used for this.

The old API is still used for embedding non-media files such as PDFs and
HTML.

The URL and Lesson module both used copy/paste duplicates of a section of
resource module code which called the removed functions. I have changed
these too. As a bonus this significantly reduces the duplication involved.
2012-05-09 18:29:31 +01:00
sam marshall f4e7ba5ea8 MDL-29624 Media embedding system, part 2: preview in file picker
The JavaScript file picker API shows a preview of the media file you have chosen.
This preview facility now uses an iframe, in order not to duplicate the embed code
in JavaScript. The iframe uses the standard embed API.
2012-05-09 18:29:30 +01:00
sam marshall daefd6eb97 MDL-29624 Media embedding system, part 1: new API and filter changes
Includes new API in medialib.php and core_media_renderer in outputrenderers.php.
Enable/disable settings moved from filter to systemwide appearance page.
Filter changed to use new API.

AMOS BEGIN
 MOV [flashanimation,filter_mediaplugin],[flashanimation,core_media]
 MOV [flashanimation_help,filter_mediaplugin],[flashanimation_desc,core_media]
 MOV [flashvideo,filter_mediaplugin],[flashvideo,core_media]
 MOV [flashvideo_help,filter_mediaplugin],[flashvideo_desc,core_media]
 MOV [html5audio,filter_mediaplugin],[html5audio,core_media]
 MOV [html5audio_help,filter_mediaplugin],[html5audio_desc,core_media]
 MOV [html5video,filter_mediaplugin],[html5video,core_media]
 MOV [html5video_help,filter_mediaplugin],[html5video_desc,core_media]
 MOV [mp3audio,filter_mediaplugin],[mp3audio,core_media]
 MOV [mp3audio_help,filter_mediaplugin],[mp3audio_desc,core_media]
 MOV [legacyquicktime,filter_mediaplugin],[legacyquicktime,core_media]
 MOV [legacyquicktime_help,filter_mediaplugin],[legacyquicktime_desc,core_media]
 MOV [legacyreal,filter_mediaplugin],[legacyreal,core_media]
 MOV [legacyreal_help,filter_mediaplugin],[legacyreal_desc,core_media]
 MOV [legacywmp,filter_mediaplugin],[legacywmp,core_media]
 MOV [legacywmp_help,filter_mediaplugin],[legacywmp_desc,core_media]
 MOV [legacyheading,filter_mediaplugin],[legacyheading,core_media]
 MOV [legacyheading_help,filter_mediaplugin],[legacyheading_desc,core_media]
 MOV [sitevimeo,filter_mediaplugin],[sitevimeo,core_media]
 MOV [sitevimeo_help,filter_mediaplugin],[sitevimeo_desc,core_media]
 MOV [siteyoutube,filter_mediaplugin],[siteyoutube,core_media]
 MOV [siteyoutube_help,filter_mediaplugin],[siteyoutube_desc,core_media]
AMOS END
2012-05-09 18:29:29 +01:00
sam marshall ffe4de973b MDL-29624 Media embedding system, part 0: Add get_path() to moodle_url
(It may not seem directly related, but this function is needed for the
media embedding system.
2012-05-09 18:22:12 +01:00
Andrew Robert Nicols 5720019d91 MDL-32873 Separate out course ajax enabled detection into new function 2012-05-09 16:19:01 +01:00
Ruslan Kabalin a7d0e1fdb5 MDL-32742: Remove right div swapping
Swapping div.right is not required, as toolboxes determine section id on each toggle event.
2012-05-09 13:50:03 +01:00
Ruslan Kabalin e7b6e6b9f7 MDL-32875: Fix highlighted section drag-drop issue 2012-05-09 11:25:08 +01:00
Rajesh Taneja 1826cf12de MDL-32866 filemanager: Fixed Page url typo 2012-05-09 17:45:10 +08:00
Kordan bfc241a452 MDL-32869 theme_formal_white: reduced the height or rows in admin filter table 2012-05-09 11:26:15 +02:00
Ankit Agarwal 064f0c8ac3 MDL-31133 calendar: Deleting the deprecated function calendar_get_events() 2012-05-09 14:24:11 +08:00
Rajesh Taneja 04de8f35d1 MDL-27562 formslib: Added unit test for dateselector and datetimeselector 2012-05-09 14:23:46 +08:00
Ankit Agarwal f468956988 MDL-31133 calendar: Replace the deprecated function usage with core_calendar_renderer class 2012-05-09 14:23:27 +08:00
Rossiani Wijaya 272bc0a6ed MDL-24401: fixed string for adding content page 2012-05-09 14:19:49 +08:00
Dan Poltawski 7cb8bfdb5c MDL-32857 course: single topic summary rewriting pluginfile urls 2012-05-09 10:06:40 +08:00
David Mudrak 386b67d100 MDL-31675 File browsing support for the Database module
AMOS BEGIN
 CPY [fields,mod_data],[areacontent,mod_data]
AMOS END
2012-05-09 04:03:34 +02:00
Christopher Tombleson 4447223b38 MDL-31028: Added pathname hashes to eventdata
Also fix strict standard warning
2012-05-09 13:46:20 +12:00
David Mudrak 7978d5dc31 MDL-31675 File browsing support for the Glossary module
AMOS BEGIN
 CPY [attachments,mod_forum],[areaattachment,mod_glossary]
 CPY [definitions,mod_glossary],[areaentry,mod_glossary]
AMOS END
2012-05-09 03:01:46 +02:00
David Mudrak 9a1c075119 MDL-31675 File browsing support for the Forum module
AMOS BEGIN
 CPY [attachments,mod_forum],[areaattachment,mod_forum]
AMOS END
2012-05-09 03:00:16 +02:00
David Mudrak b75ec1040e MDL-32853 Forum: fixed serving files from posts in a visible group
The previous code was copied from the part where emails are being sent.
In that case, we do not want to send copies of posts from other groups.
But in terms of access control, the user has full read access to posts
in any visible group.
2012-05-08 17:04:27 +02:00
Kordan 27912e600b MDL-32321 theme_formal_white: added autolink and adminwarning.maturityinfo.maturity* classes 2012-05-08 10:47:29 +02:00
AMOS bot 4d09f9f2d3 Automatically generated installer lang files 2012-05-08 00:31:40 +00:00
Dan Marsden 37ca1722cd MDL-32507 SCORM fix some strict standard errors 2012-05-08 09:00:46 +12:00
Rajesh Taneja c106a9bff0 MDL-27562 formslib: applydst should be always true, hence option removed from dateselector and datetimeselector form elements 2012-05-07 15:23:45 +08:00
Rajesh Taneja fa70f63522 MDL-27562 formslib: Timezone option is passed to usergetdate for dateselector and datetimeselector form element 2012-05-07 15:23:44 +08:00
Charles Fulton 280b223d84 MDL-26277 grade import: validate file pointer before reading 2012-05-06 20:14:55 -07:00
Damyon Wiese 5d81b754be MDL-32780: Use Moodle functions for building SQL in assignment upgrade tool
Fixed functions:
tool_assignmentupgrade_load_all_upgradable_assignmentids() and
tool_assignmentupgrade_any_upgradable_assignments()
2012-05-07 10:54:24 +08:00
Tim Hunt ad3b37cf87 MDL-31814 question bank: fix possible error with sort columns. 2012-05-04 17:29:04 +01:00
Davo Smith abed5d655f MDL-22504 Fixed issues raised by Sam Hemelryk 2012-05-04 12:12:52 +01:00
Eloy Lafuente (stronk7) e16e2300c5 weekly release 2.3dev 2012-05-04 13:10:40 +02:00
Eloy Lafuente (stronk7) f8e293008d Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-05-04 13:06:42 +02:00
Dan Marsden abf0c875bb MDL-31731 gradeing form: Fix module name 2012-05-04 16:20:58 +08:00
Dan Marsden cfc73aa790 MDL-31731 Advanced Grading: Marking Guide - prevent negative scores when marking users 2012-05-04 16:20:50 +08:00
Eloy Lafuente (stronk7) bea7f96c87 Merge branch 'MDL-32754' of git://github.com/netspotau/moodle-mod_assign 2012-05-04 10:01:07 +02:00
Dan Poltawski 9fdbd69e22 MDL-31731 gradeing form: Fix hardcoded module name 2012-05-04 14:02:39 +08:00
Andrew Robert Nicols 0c053c5368 MDL-32508 Add error when trying to access an unknown course section 2012-05-04 13:41:59 +08:00
Sam Hemelryk 3df72f8ce7 MDL-32508 Trivial whitespace cleanup 2012-05-04 17:13:36 +12:00
Damyon Wiese b843e2b747 MDL-32754: Add missing string for assign:addinstance capability
AMOS BEGIN
    CPY [assignment:addinstance,mod_assignment],[assign:addinstance,mod_assign]
AMOS END
2012-05-04 12:05:58 +08:00
Aparup Banerjee fd87d0bf78 MDL-32338 Libraries : made pluginlib.php cron_execute handle the exceptions it faces. 2012-05-04 11:25:42 +08:00
Dan Poltawski 637bc17400 MDL-32508 backup: coursedisplay now included in backup 2012-05-04 11:00:53 +08:00
Aaron Barnes dbfcf440fa MDL-32203 completion: Fix issues with data object where clauses 2012-05-04 14:58:32 +12:00
Andrew Robert Nicols 575826c730 MDL-32508 Close the topic/week ul before showing the add section link 2012-05-04 10:53:06 +08:00
Dan Poltawski cbf449972f MDL-32508 course formats: make renderer methods protected
The renderer isn't a public API yet, its just reducing code duplication
and tidying things up. So not making the methods public for other plugins
to abuse. We hope to solve this properly in 2.4
2012-05-04 10:53:06 +08:00
Dan Poltawski a8f02a3462 MDL-32508 course_formats: change format_renderer_base to format_section_renderer_base
Make it clear that this isn't a golden supported API
2012-05-04 10:53:05 +08:00
Dan Poltawski 2db66a9319 MDL-32505 course_formats: introduce upgrade.txt 2012-05-04 10:53:05 +08:00
Dan Poltawski 96e1285162 MDL-32508 course_format: fix up some minor style issues
Noticed whilst reviewing again
2012-05-04 10:53:05 +08:00
Dan Poltawski 10cdacfecb MDL-32508 Remove debuggign warning about callback_format_get_section_url
It is not the time to deprecate this callback as we may be doing
major changes in 2.4 so removing the warning about it.
2012-05-04 10:53:04 +08:00
Dan Poltawski 2c3d986894 MDL-32505 lib/tests: fix unit test using removed table 2012-05-04 10:53:04 +08:00
Dan Poltawski 3246428b95 MDL-32505/MDL-32508 course: fix section_links block
Now course_display has gone
2012-05-04 10:53:03 +08:00
Dan Poltawski fe221dd583 MDL-32508 navigation: show empty sections 2012-05-04 10:53:03 +08:00
Dan Poltawski 243b7003e3 MDL-32508 course/format: Display general section above title 2012-05-04 10:53:03 +08:00
Dan Poltawski 803e36e105 MDL-32508 course/format: Hide 'format outline' titles
It is now hidden for for accessibility only
2012-05-04 10:53:02 +08:00
Dan Poltawski a830d86673 MDL-32508 course/format: Only display topic number in topic format 2012-05-04 10:53:02 +08:00
Dan Poltawski d628215d49 MDL-32508 course: turn editting on/off stays on current page
Rather than always going to the index page, we can edit on section page
2012-05-04 10:53:01 +08:00
Dan Poltawski 1abf12532d MDL-32508 course: Add basic 'add a section' button at the bottom of the course page
With thanks to LUNS who provided this code from when I did it working
there.
2012-05-04 10:53:01 +08:00
Dan Poltawski 1804b7c1bc MDL-32508 course/formats: Respect single page course display mode
Topics and weeks have been converted to use a shared renderer to output
their content.

Note, I started with good intentions but this renderer has mixed
paradgims due to fast and cheap winning out on the trinity.

AMOS BEGIN
   MOV [currenttopic,access],[currentsection,format_topics]
   MOV [currentweek,access],[currentsection,format_weeks]
AMOS END
2012-05-04 10:53:01 +08:00
Dan Poltawski 143d743743 MDL-32508 course: make_editting_buttons now takes optionally returns to section 2012-05-04 10:53:00 +08:00
Dan Poltawski 838d013bb2 MDL-32508 course/mod.php: Use $sectionreturn param
This param is now used so that users are returned to the
page they started at
2012-05-04 10:53:00 +08:00
Dan Poltawski a5a38c9473 MDL-32508 course/editsection: add a sectionreturn param
This is used so that when editing on a section page you
are returned to the section in question.
2012-05-04 10:53:00 +08:00
Dan Poltawski d9e1326536 MDL-32508 course: deprecate get_section_url format callback 2012-05-04 10:52:59 +08:00
Dan Poltawski f755868314 MDL-32508 course formats: Remove key callback
This was used by course formats but now there is a standardised
'section' param
2012-05-04 10:52:59 +08:00
Dan Poltawski 5218b9bb7d MDL-32508 course: Introduce course_get_url() 2012-05-04 10:52:58 +08:00
Dan Poltawski 45774bddf7 MDL-32508 course: Switch to 'section' URL param
This is a course format independent url param and replaces weekly/topic specific params.
By using a standardised param we are able to use this url consistenly across the codebase
and reduce the risk of param collision
2012-05-04 10:52:58 +08:00
Dan Poltawski e3c171e19b MDL-32508 course/view.php: action cleanup
After doing actions redirect back to the 'real url' in order to
prevent problems with caching/bookmarking bad urls
2012-05-04 10:52:58 +08:00
Dan Poltawski 599a52fec7 MDL-32508 course/view.php: moderise with MUST_EXIST 2012-05-04 10:52:57 +08:00
Dan Poltawski 3fe600aacf MDL-32505 course formats: zooming feature be gone! 2012-05-04 10:52:57 +08:00
Dan Poltawski b9bcdb54da MDL-32505 course: drop course_display table and settings 2012-05-04 10:52:56 +08:00
Dan Poltawski 1156d38d94 MDL-32504 course: Add coursedisplay setting to course table
This will replace the course_display database table
2012-05-04 10:49:52 +08:00
Jason Fowler 486a138bf1 MDL-30649 - Glossary - Adding functions so recent glossary activity shows up in the activity reports 2012-05-04 10:11:50 +08:00
Dan Poltawski 4d6206ce67 MDL-32628 lib/filelib.php: Set user profile image expires to 1 year
This is to reduce the performance impact of user profile images
requests. Pictures are now referenced by a revision counter so
any changes in picture will not be badly cached any longer.
2012-05-04 09:36:11 +08:00
Dan Poltawski 0dda790c05 Merge branch 'w18_MDL-32628_m23_avatarperf2' of git://github.com/skodak/moodle
Conflicts:
    lib/db/upgrade.php
	version.php
2012-05-04 09:28:41 +08:00
Dan Poltawski 313cdd4fe4 Merge branch 'MDL-32757' of git://github.com/timhunt/moodle 2012-05-04 07:30:45 +08:00
Dan Poltawski fcbd37e38a Merge branch 'master_MDL-31731' of git://github.com/danmarsden/moodle 2012-05-04 07:28:29 +08:00
Dan Marsden 6c20925827 MDL-31731 Advanced Grading: Marking Guide display scale warning for higher max grade as well as lower. 2012-05-04 09:33:30 +12:00
Dan Marsden b4b1d49044 MDL-31731 Advanced Grading: Marking Guide: fix bug with check to display warning about discrepency between module maxgrade and number of marks in Marking Guide. 2012-05-04 09:12:29 +12:00
Tim Hunt 070511062a MDL-32757 / MDL-3030 quiz: SQL typo breaks quiz editing. 2012-05-03 19:45:18 +01:00
Dan Poltawski e50de8764b Merge branch 'MDL-32738' of git://github.com/timhunt/moodle 2012-05-04 01:09:53 +08:00
Tim Hunt f59f85717e MDL-32738 quiz overdue handling cron: appease MySQL.
Thanks to sam marshall for giving my the idea of using a subquery to
make the SQL work on all DBs.
2012-05-03 18:07:59 +01:00
Dan Poltawski 59e430718a Merge branch 'MDL-32740' of git://github.com/timhunt/moodle 2012-05-04 00:58:00 +08:00
Eloy Lafuente (stronk7) 97101a0397 Merge branch 'MDL-32693' of git://github.com/danpoltawski/moodle 2012-05-03 18:22:05 +02:00
Petr Skoda 3690955e65 MDL-32680 import latest TinyMCE 3.5 2012-05-03 15:49:23 +02:00
Dan Poltawski f1e8e6adce Merge branch 'MDL-32739' of git://github.com/timhunt/moodle 2012-05-03 21:23:19 +08:00
Dan Poltawski 9b06d97381 Merge branch 'master_MDL-31731' of git://github.com/danmarsden/moodle 2012-05-03 20:43:28 +08:00
Tim Hunt 96e5168c7e MDL-32740 / MDL-3030 quiz summary: no Return to attempt for overdue. 2012-05-03 12:16:43 +01:00
Tim Hunt a558acf93f MDL-32739 quiz reports: process_actions broken. Regression from MDL-3030 2012-05-03 12:02:29 +01:00
Eloy Lafuente (stronk7) f171c37dda Merge branch 'w18_MDL-32697_m23_oci' of git://github.com/skodak/moodle 2012-05-03 12:22:22 +02:00
Dan Marsden e529ec8c09 MDL-31731 Grading form Marking Guide - fix for test 6.2, checkboxes not saving state when clearing both. 2012-05-03 22:12:34 +12:00
Dan Poltawski 1619a38b9b MDL-31270 pluginlib: Add assign subplugins as standard modules 2012-05-03 17:22:34 +08:00
Dan Poltawski 10ef48fc1e MDL-31270 mod_assign: now added to the standard plugin list 2012-05-03 17:13:09 +08:00
Petr Skoda 8d741d4dfc MDL-32697 use current database sequences instead of global scope
Credit goes to Eloy, thanks!
2012-05-03 10:52:19 +02:00
Dan Poltawski e6236edebf MDL-31270 mod_assign: version dump
Introduce depdency from assignmentupgrade to mod_assign
2012-05-03 16:46:06 +08:00
Dan Poltawski c06b2127bc MDL-31270 mod_assign: Fix another whitespace issue.
Seems I didn't catch them all :(
2012-05-03 16:46:06 +08:00
Aparup Banerjee ed01233ace MDL-28134 General : added branch variable to version.php for reliable docs versioned links. 2012-05-03 16:30:20 +08:00
Dan Poltawski 08b5ac5aae Merge branch 'w18_MDL-32587_m23_phpunitindividual' of git://github.com/skodak/moodle 2012-05-03 16:11:00 +08:00
Dan Poltawski 1ca059ee88 MDL-31270 mod_assign: fix another whitespace issue 2012-05-03 16:10:16 +08:00
Dan Poltawski 9682626eec MDL-31270: mod_assign fix whitespace issues 2012-05-03 16:05:58 +08:00
Petr Skoda 62f9a5c4b6 MDL-32587 fix --buildcomponentconfigs compatibility with Windows 2012-05-03 09:34:35 +02:00
Damyon Wiese bbd0e548c3 MDL-31270 mod_assign: introducing the assignment module
* Includes an assignment upgrade tool to convert from the old mod_assignment.
* Hides mod_assignment on new installs
2012-05-03 14:44:06 +08:00
Dan Poltawski 875f2e459e Merge branch 'wip-mdl-31498-default' of git://github.com/rajeshtaneja/moodle 2012-05-03 13:26:33 +08:00
Dan Poltawski d5bf8f0ba3 Merge branch 'MDL-32689' of git://github.com/jrchamp/moodle 2012-05-03 13:10:56 +08:00
Andrew Davis 184ec2d68f MDL-31488 admin: made admin_externalpage_setup() try to guess the reason why the requested section couldnt be found 2012-05-09 11:58:02 +08:00
Dan Poltawski 96fdfb4486 Merge branch 'w19_MDL-32843_m23_yui351' of git://github.com/skodak/moodle 2012-05-09 11:24:40 +08:00
Dan Poltawski bc5a657bfb MDL-32813 - fix trailing whitespace 2012-05-09 11:17:57 +08:00
Dan Poltawski b7e4b76536 Merge branch 'MDL-32813' of github.com:netspotau/moodle-mod_assign 2012-05-09 11:13:09 +08:00
Dan Poltawski 096c68b585 Merge branch 'w19_MDL-32733_m23_authorizemessage' of git://github.com/skodak/moodle 2012-05-09 10:28:48 +08:00
Dan Poltawski 0f1513be80 Merge branch 'w19_MDL-32775_m23_searchpix' of git://github.com/skodak/moodle 2012-05-09 10:22:48 +08:00
Dan Poltawski e5214ea13b Merge branch 'w19_MDL-32793_m23_iplookup' of git://github.com/skodak/moodle 2012-05-09 10:17:50 +08:00
Sam Hemelryk 86e62f9223 Merge branch 'wip-MDL-31147-master' of git://github.com/phalacee/moodle 2012-05-09 11:50:17 +12:00
Sam Hemelryk 303cb36b18 Merge branch 'wip-MDL-31948-master' of git://github.com/phalacee/moodle 2012-05-09 11:49:33 +12:00
Sam Hemelryk a8f127950e Merge branch 'wip-MDL-31950-master' of git://github.com/phalacee/moodle 2012-05-09 11:49:23 +12:00
Sam Hemelryk d779cd65a9 Merge branch 'wip-MDL-31952-master' of git://github.com/phalacee/moodle 2012-05-09 11:49:14 +12:00
Sam Hemelryk b370716f7b Merge branch 'wip-MDL-31953-master' of git://github.com/phalacee/moodle 2012-05-09 11:48:35 +12:00
Sam Hemelryk 09d64cadee Merge branch 'MDL-32164-master-2' of git://git.luns.net.uk/moodle 2012-05-09 11:47:00 +12:00
Sam Hemelryk 55a8b2eefc Merge branch 'MDL-31940-master' of git://github.com/ankitagarwal/moodle 2012-05-09 11:43:27 +12:00
Sam Hemelryk a6c1f5a4cc Merge branch 'MDL-31943-master' of git://github.com/ankitagarwal/moodle 2012-05-09 11:39:02 +12:00
Sam Hemelryk d7e6345c11 Merge branch 'MDL-31945-master' of git://github.com/ankitagarwal/moodle 2012-05-09 11:37:29 +12:00
Sam Hemelryk b1851f4639 Merge branch 'MDL-31946-master' of git://github.com/ankitagarwal/moodle 2012-05-09 11:35:38 +12:00
Sam Hemelryk 3803b4706a Merge branch 'MDL-18095-master-2' of git://git.luns.net.uk/moodle 2012-05-09 11:31:58 +12:00
Sam Hemelryk 70ebfcee6f Merge branch 'w19_MDL-32178_m23_dbenrolignore' of git://github.com/skodak/moodle 2012-05-09 11:17:39 +12:00
Sam Hemelryk b11afed8cd Merge branch 'w19_MDL-32807_m23_navref' of git://github.com/skodak/moodle 2012-05-09 11:01:31 +12:00
Sam Hemelryk b3c35188b0 MDL-32654 course-toolbox: Fixed up JS issue caused by incorrect selector 2012-05-09 10:55:17 +12:00
Sam Hemelryk 45d79572b5 Merge branch 'w19_MDL-32849_m23_urlrewriting' of git://github.com/skodak/moodle 2012-05-09 10:41:58 +12:00
Sam Hemelryk 9eb54eb4d7 Merge branch 'w19_MDL-32846_m23_syncyui2' of git://github.com/skodak/moodle 2012-05-09 10:27:46 +12:00
Petr Skoda 8c6136a879 MDL-32793 use geoLookup for IP address lookup by default 2012-05-08 23:45:28 +02:00
Sam Hemelryk 73002f1992 Merge branch 'MDL-32654-master-2' of git://git.luns.net.uk/moodle
Conflicts:
	course/yui/toolboxes/toolboxes.js
2012-05-09 09:32:01 +12:00
Sam Hemelryk b34e00c197 Merge branch 'MDL-32771-2' of git://github.com/danpoltawski/moodle 2012-05-09 09:14:20 +12:00
Petr Skoda 18ac11b730 MDL-32849 add support for url rewriting in min_get_slash_argument() and combo loader
This helps especially IIS servers using ^([^\?]+?\.php)(\/.+)$ rewrite rule.
2012-05-08 20:11:44 +02:00
Dan Poltawski f7ae27e887 Merge branch 'w19_MDL-32683_m23_publiccache' of git://github.com/skodak/moodle 2012-05-08 21:10:49 +08:00
Petr Skoda acc165aac7 MDL-32846 do not forget to create dir for bogus image file placeholders 2012-05-08 14:44:50 +02:00
Petr Skoda 1c6d3af542 MDL-32683 fix sloppy copy/pasting from yui_combo 2012-05-08 14:31:23 +02:00
Petr Skoda 0dbe494b39 MDL-32846 force async loading of all YUI2 modules 2012-05-08 14:16:48 +02:00
Ruslan Kabalin c5883e7994 MDL-18095 gradebook: Make sure grade override flag is cleared whenever required
The check for feedback and grade equality between recorded values and the current
form ones before removing override flag is not really required.
2012-05-08 11:53:31 +01:00
Dan Poltawski cd41392c83 Merge branch 'w19_MDL-32825_m23_caches' of git://github.com/skodak/moodle 2012-05-08 17:46:39 +08:00
Andrew Robert Nicols b003b556cc MDL-32683 M.util.image_url shouldn't require the component 2012-05-08 10:25:58 +01:00
Andrew Robert Nicols 45b364b92c MDL-32654 Improve course javascript status spinner 2012-05-08 09:12:15 +01:00
Frederic Massart 114dd080e1 MDL-32718 Fixed typo in column name 2012-05-08 15:54:11 +08:00
Petr Skoda 353efa008d MDL-32843 import YUI 3.5.1 2012-05-08 09:21:27 +02:00
Ankit Agarwal d5f7468eca MDL-31940 data: Removing deprecated function data_get_participants 2012-05-08 15:04:53 +08:00
Dan Poltawski 3a35a9ff8b MDL-32771 - course: add ability to increase/reduce number of sections
* addsection.php is renamed to changenumsections.php to reflect new purpose
* The add button is changed to a +- toggle rahter than big 'add section'
2012-05-08 15:00:46 +08:00
Ankit Agarwal 8bb7fb7008 MDL-31940 assignment: Removing deprecated function assignment_get_participants 2012-05-08 14:59:23 +08:00
Jason Fowler ce5f042b82 MDL-31948 - IMC-CP - Removing the deprecated imscp_get_participants function 2012-05-08 14:58:02 +08:00
Jason Fowler 3edf380de6 MDL-31950 - Label - Removing the deprecated label_get_participants function 2012-05-08 14:53:54 +08:00
Ankit Agarwal ecb6b25b0d MDL-31946 forum: Removing deprecated function folder_get_participants 2012-05-08 14:50:22 +08:00
Ankit Agarwal c1413e22e2 MDL-31945 folder: Removing deprecated function folder_get_participants 2012-05-08 14:44:47 +08:00
Jason Fowler dd6ae1784c MDL-31952 - Resource - Removing the deprecated page_get_participants function 2012-05-08 14:40:53 +08:00
Jason Fowler c72c01b184 MDL-31953 - Resource - Removing the deprecated resource_get_participants function 2012-05-08 14:37:43 +08:00
Jason Fowler 58cc51ee15 MDL-31947 - Glossary - Removing the deprecated glossary_get_participants function 2012-05-08 14:33:42 +08:00
Sam Hemelryk bbb0a6eb02 Merge branch 'MDL-32509' of git://github.com/danpoltawski/moodle 2012-05-08 18:12:28 +12:00
Sam Hemelryk cd6b62c849 Merge branch 'MDL-32670' of git://github.com/rlorenzo/moodle 2012-05-08 18:07:07 +12:00
Sam Hemelryk d7013dba20 Merge branch 'MDL-32777' of git://github.com/danpoltawski/moodle 2012-05-08 17:49:44 +12:00
Sam Hemelryk 301cf946a6 Merge branch 'MDL-31671-master2' of git://github.com/ankitagarwal/moodle 2012-05-08 17:42:03 +12:00
Dan Poltawski 4022860ea8 Merge branch 'w19_MDL-31691_m23_cohortidnumber' of git://github.com/skodak/moodle 2012-05-08 12:40:33 +08:00
Dan Poltawski 1fb26160f2 Merge branch 'MDL-32718-sql-typo' of git://github.com/mudrd8mz/moodle 2012-05-08 12:35:49 +08:00
Dan Poltawski 92e1ae5447 Merge branch 'MDL-31854' of git://github.com/timhunt/moodle 2012-05-08 12:33:45 +08:00
Dan Poltawski 35c5e46d88 Merge branch 'master-MDL-30598' of git://github.com/danmarsden/moodle 2012-05-08 12:22:30 +08:00
Dan Poltawski 8243bc686b Merge branch 'MDL-32768-CLEAN' of git://github.com/netspotau/moodle-mod_assign 2012-05-08 11:24:43 +08:00
Damyon Wiese 3ec209133d MDL-32768: Remove unused function count_files from mod_assign
This is implemented in the plugins and is not used in the base assign class.
This was also using a constant from the assignsubmission_file plugin which is
bad form.
2012-05-08 11:02:25 +08:00
Sam Hemelryk 4ecbd65d32 Merge branch 'MDL-32681-master-2' of git://git.luns.net.uk/moodle 2012-05-08 11:14:12 +12:00
Sam Hemelryk 42708cbeb1 Merge branch 'MDL-32743-master-2' of git://git.luns.net.uk/moodle 2012-05-08 11:05:53 +12:00
Petr Skoda 979d320722 MDL-32825 try to improve atomicity of cache file operations in themes and javascript 2012-05-07 18:45:13 +02:00
Dan Poltawski 4dd63b6d70 Merge branch 'w19_MDL-32683_m23_publiccache' of git://github.com/skodak/moodle 2012-05-07 19:17:40 +08:00
Petr Skoda 3db67789a1 MDL-32683 assert $CFG->slasharguments is enabled in new installs
Thanks Dan Poltawski for spotting it.
2012-05-07 13:05:42 +02:00
Petr Skoda fcc4f23d0d MDL-32683 fix outdated tests 2012-05-07 12:49:26 +02:00
Dan Poltawski a84b57e603 Merge branch 'w19_MDL-32683_m23_publiccache' of git://github.com/skodak/moodle 2012-05-07 17:55:31 +08:00
Dan Marsden 3cc7515843 MDL-30598 SCORM fix a few coding guideline issues, tidy up phpdocs 2012-05-07 21:08:53 +12:00
David Mudrak 6c09cb4a64 MDL-32718 fixing an SQL typo in workshop_get_recent_mod_activity() 2012-05-07 10:02:41 +02:00
Dan Poltawski 96a241736e Merge branch 'MDL-18335' of git://github.com/rwijaya/moodle 2012-05-07 15:32:24 +08:00
Dan Poltawski 63313eca72 Merge branch 'w19_MDL-32762_m23_forumstrict' of git://github.com/skodak/moodle 2012-05-07 15:27:51 +08:00
Dan Poltawski c3c70f09d6 Merge branch 'w19_MDL-32735_m23_feedbackstrict' of git://github.com/skodak/moodle 2012-05-07 15:08:21 +08:00
Ankit Agarwal 5ff114adae MDL-31671 calendar: update_event hook should be triggered when updating event 2012-05-07 15:01:50 +08:00
Ankit Agarwal ff284fac9e MDL-31671 calendar: Fixing error when trying to delete parent of a repeated event series 2012-05-07 15:01:49 +08:00
Dan Poltawski 5c46aee8fd Revert "MDL-32379: Fix memory leak in session_set_user"
This reverts commit 22dc32042a.

This integrator didn't properly read the diff, sorry.
2012-05-07 14:39:43 +08:00
Dan Poltawski 74bf5cb999 Merge branch 'MDL-32781' of git://github.com/netspotau/moodle-mod_assign 2012-05-07 13:17:07 +08:00
Dan Poltawski 57417ab1ec Merge branch 'MDL-32684' of git://github.com/lazydaisy/moodle 2012-05-07 13:03:50 +08:00
Dan Poltawski 007fe3f775 Merge branch 'w19_MDL-32719_m23_enrolstrict' of git://github.com/skodak/moodle 2012-05-07 12:58:40 +08:00
Dan Poltawski 73c670423d Merge branch 'w19_MDL-31617_m23_coursesortorder' of git://github.com/skodak/moodle 2012-05-07 12:51:20 +08:00
Dan Poltawski efff2ab77f Merge branch 'MDL-32430' of git://github.com/timhunt/moodle 2012-05-07 12:48:18 +08:00
Dan Poltawski 9af52f493a Merge branch 'MDL-32786' of git://github.com/stronk7/moodle 2012-05-07 12:44:19 +08:00
Dan Poltawski deda57ae1a Merge branch 'MDL-32768-CLEAN' of git://github.com/netspotau/moodle-mod_assign 2012-05-07 12:37:09 +08:00
Dan Poltawski defbe24610 Merge branch 'MDL-32772-CLEAN' of git://github.com/netspotau/moodle-mod_assign 2012-05-07 12:34:06 +08:00
Dan Poltawski 7e6d3880b4 Merge branch 'MDL-32774-CLEAN' of git://github.com/netspotau/moodle-mod_assign 2012-05-07 12:28:34 +08:00
Damyon Wiese 9f91316495 MDL-32781: assignfeedback_comments plugin not loading previous comments
Was setting the wrong field names in the form.
2012-05-07 12:15:08 +08:00
Dan Poltawski 33e71140bb Merge branch 'MDL-32698_questionengine_typos' of git://github.com/davosmith/moodle 2012-05-07 12:05:43 +08:00
Damyon Wiese cfc81f03c5 MDL-32813: Change mod_assign settings to use plugin settings table.
Also move the 'default' setting for each plugin into it's own settings file
so that it is handled properly on new installs.
(ensure the plugin is available at setting time)
Also make the file submission plugin on by default
2012-05-07 11:49:15 +08:00
Dan Poltawski 35be447cda Merge branch 'wip-MDL-32267-m23' of git://github.com/samhemelryk/moodle 2012-05-07 11:35:26 +08:00
Dan Poltawski 11a4313109 Merge branch 'mdl32379_23' of git://github.com/tlevi/moodle 2012-05-07 11:29:01 +08:00
Dan Poltawski 11c33d32be Merge branch 'MDL-32788' of git://github.com/timhunt/moodle 2012-05-07 11:16:22 +08:00
Dan Poltawski b2344ab366 Merge branch 'MDL-32009-master-3' of git://git.luns.net.uk/moodle 2012-05-07 11:07:28 +08:00
Damyon Wiese 8ab7bb9f56 MDL-32768: mod_assign - Change plugin constants to use correct prefix for component 2012-05-07 10:59:07 +08:00
Damyon Wiese ee225061dc MDL-32774: Require sesskey for all actions in the assignment upgrade tool 2012-05-07 10:51:05 +08:00
Damyon Wiese a3dbdc2c03 MDL-32772: Change SQL for mod_assign gradingtable to use named query parameters
This makes it consistent with the built in filtering in flexible_table.

Fix additional issue with SQL for grading table when there are no enrolled users

Change SQL for mod_assign grading table to use get_in_or_equal
As Suggested by Andrew Nicols in tracker
2012-05-07 10:45:23 +08:00
Christopher Tombleson 1273dde9f7 MDL-30598 SCORM api.php moved to loaddatamodel.php
Merged api.php into loaddatamodel.php. Changed all references to api.php
to point at loaddatamodel.php
2012-05-07 14:41:57 +12:00
Dan Poltawski dafea445db Merge branch 'MDL-32782' of git://github.com/netspotau/moodle-mod_assign 2012-05-07 10:20:46 +08:00
Dan Poltawski b766edea0a Merge branch 'MDL-32745-master-1' of git://git.luns.net.uk/moodle 2012-05-07 10:18:06 +08:00
Sam Hemelryk 98556b23c7 MDL-28967 navigation: PHPdoc and coding style cleanup 2012-05-07 13:00:29 +12:00
Sam Hemelryk 80c695228e MDL-28967 navigation: courses branch is only shown if all courses are loaded or you're not enrolled in any course 2012-05-07 13:00:28 +12:00
Sam Hemelryk f7ee4baaee MDL-28967 navigation: Removed buggy caching of course loading information 2012-05-07 13:00:28 +12:00
Sam Hemelryk d4bb6462fc MDL-28967 navigation: Fixed up AJAX loading of categories 2012-05-07 13:00:28 +12:00
Sam Hemelryk 176b75b59c MDL-28967 navigation: Optimised load_all_categories to load preload contexts to greatly reduce database queries 2012-05-07 13:00:23 +12:00
Sam Hemelryk ee03fe79ef MDL-28967 navigation: Fixed up front page generation when showing categories and no enrolled courses 2012-05-07 12:42:24 +12:00
Sam Hemelryk 8e8de15f6c MDL-28967 navigation: Several navigation fixes
* Fixed implementation of navigation settings navshowcategories, navshowallcourses, and navcourselimit
    * Improved performance associated with loading all, or a collection of courses
    * Fixed duplicate calls to loading functions when we had the information required to know it had already occurred
2012-05-07 12:42:24 +12:00
Petr Skoda 3c8d3d4df2 MDL-31691 treat cohort idnumbers as plain text 2012-05-06 21:37:57 +02:00
Petr Skoda bc8926e34b MDL-32178 ignore duplicates in enroL_database external course table 2012-05-06 15:51:25 +02:00
Petr Skoda cc8cc1df80 MDL-32645 fix enrol_database tests 2012-05-06 14:46:14 +02:00
Petr Skoda 082513badf MDL-32807 remove PHP4 object reference coding style 2012-05-06 13:31:55 +02:00
Petr Skoda c859433c3d MDL-32735 add missing message provider info for unmaintained enrol_authorize 2012-05-06 12:10:47 +02:00
Petr Skoda 411fd747cf MDL-32735 fix multiple E_STRICT feedback issues 2012-05-06 12:02:54 +02:00
Petr Skoda 0209f96485 MDL-32762 fix E_STRICT issue in forum 2012-05-06 10:54:37 +02:00
Petr Skoda 869b12554d MDL-32683 minor css related refactoring 2012-05-05 18:46:00 +02:00
Petr Skoda 8ab2974341 MDL-32683 improve and standardise JS serving 2012-05-05 18:16:50 +02:00
Petr Skoda dbe14f39c0 MDL-32683 fine tune yui resource caching 2012-05-05 17:25:27 +02:00
Petr Skoda 2c61e7cc4a MDL-32683 fine tune theme style sheet caching 2012-05-05 17:06:58 +02:00
Petr Skoda 8475b9704f MDL-32683 fine tune theme javascript caching 2012-05-05 16:54:06 +02:00
Petr Skoda 71d4c60389 MDL-32683 fine tune theme image caching 2012-05-05 16:53:45 +02:00
Petr Skoda d5222fae5f MDL-32683 use slashargument urls for yui images 2012-05-05 16:14:48 +02:00
Petr Skoda 6e7b46018e MDL-32683 use slashargument urls for yui combo loader 2012-05-05 16:13:35 +02:00
Petr Skoda ecbad2ad1c MDL-32683 use slashargument urls for theme javascript files 2012-05-05 15:31:27 +02:00
Petr Skoda 7070b7f261 MDL-32683 use slashargument urls for theme style sheets 2012-05-05 15:26:24 +02:00
Petr Skoda 9d473266a7 MDL-32683 use slashargument urls for theme images 2012-05-05 15:23:59 +02:00
Petr Skoda 8c672cf9f3 MDL-32683 explicitly allow more caching of static content 2012-05-05 14:09:31 +02:00
Petr Skoda c119a2eeb5 MDL-31617 add course sortorder index to improve perf 2012-05-05 10:55:57 +02:00
Petr Skoda 47bd498f6a MDL-32719 fix old enrol UI E_STRICT issue 2012-05-05 10:45:39 +02:00
Petr Skoda bc81191a09 MDL-32775 fix invalid url in mediaplugin CSS 2012-05-05 10:31:51 +02:00
Dan Poltawski 9fa74379dc MDL-32509 enablecourseajax: remove setting from DB 2012-05-05 11:00:47 +08:00
Dan Poltawski 7aaed66901 MDL-32509 course: remove enablecourseajax setting
We just have the single enableajax setting
2012-05-05 10:56:06 +08:00
Dan Poltawski a60cc6e174 MDL-32777 format_topics/weeks: section-summary CSS
Ensure there isn't list-style like bullets
2012-05-05 10:37:38 +08:00
Tim Hunt 26d9ee4ee9 MDL-31854 quiz grades report: move total grade closer to names. 2012-05-04 17:41:25 +01:00
Tim Hunt 8180ee2360 MDL-32430 quiz calendar events: fix pluginfile URLs in the description. 2012-05-04 15:17:23 +01:00
Tim Hunt 9e83f3d11d MDL-32788 quiz: clean up codechecker issues before the 2.3 release. 2012-05-04 15:12:23 +01:00
Eloy Lafuente (stronk7) 75c386d4b2 MDL-32786 E_STRICT: fix warning when creating a new service. 2012-05-04 12:44:10 +02:00
Damyon Wiese 01e5ce8781 MDL-32782: Remove unused source file from assignment upgrade tool (lib.php) 2012-05-04 16:01:41 +08:00
Andrew Robert Nicols 5bd03e12fa MDL-32743 Set resource anchor correctly following course ajax changes 2012-05-03 16:25:56 +01:00
Andrew Robert Nicols 178f351480 MDL-32745 Don't apply course ajax to site_main_menu block 2012-05-03 14:27:43 +01:00
Aparup Banerjee b21a1d4086 Merge branch 'wip-MDL-32416-master' of git://github.com/marinaglancy/moodle 2012-05-03 11:33:55 +08:00
Marina Glancy 169709383a MDL-32416: Picasa repository now returns path, also fixed album title retrieval 2012-05-03 11:30:08 +08:00
Rex Lorenzo 4ff8dccccc MDL-32670 mod/chat: also added missing call to ->set_heading in report.php 2012-05-02 19:09:43 -07:00
AMOS bot d3e43d13a9 Automatically generated installer lang files 2012-05-03 00:31:27 +00:00
Eloy Lafuente (stronk7) 03764014af MDL-32234 Library: usergetdate tests moved to assertSame()
(to check both type and value)
2012-05-03 00:52:25 +02:00
Eloy Lafuente (stronk7) 150166d371 Merge branch 'wip-mdl-32234' of git://github.com/rajeshtaneja/moodle 2012-05-03 00:35:34 +02:00
Jonathan Champ 0885166fcc MDL-32689 Allow Blocks to decide whether they are collapsible. 2012-05-02 10:23:07 -04:00
Ruslan Kabalin 0872ee1dd0 MDL-32717: Fix strict standards warning on uninstall 2012-05-02 11:58:37 +01:00
Dan Poltawski 307621dfce Merge branch 'MDL-32638-workshop-files' of git://github.com/mudrd8mz/moodle 2012-05-02 18:01:40 +08:00
David Mudrak f08c15685b MDL-32638 fixing the area names and file_browser::get_file_info() API call
These two bug made the file browsing non-working in workshop 2.x
2012-05-02 11:39:30 +02:00
Dan Poltawski 0c38671095 Merge branch 'MDL-32657-master-2' of git://git.luns.net.uk/moodle 2012-05-02 16:54:54 +08:00
Ruslan Kabalin d95b77bdb7 MDL-32657: Add format.js for topics format and remove default
Using topics format as default is not a great idea, as we can end up
half-working dragdrop for some formats. With the current soiution, drag-drop
will not work for format, unless required js functions have been created in
format.js
2012-05-02 09:42:06 +01:00
Tim Hunt 9ab9f9feb7 MDL-32721 quiz: missing message provider lang string from MDL-3030 2012-05-02 08:19:10 +01:00
Aparup Banerjee 648baa788c Merge branch 'MDL-28657-master' of https://github.com/mackensen/moodle 2012-05-02 13:55:39 +08:00
Sam Hemelryk ab45e3b491 Merge branch 'MDL-31762' of git://github.com/mouneyrac/moodle 2012-05-02 17:52:13 +12:00
Sam Hemelryk 1470c0f46e Merge branch 'MDL-26275_large_grader' of git://github.com/andyjdavis/moodle 2012-05-02 17:44:35 +12:00
Rajesh Taneja 86b600d67a MDL-31498 formslib: repeat_elements will now set default for group elements 2012-05-02 13:20:40 +08:00
Sam Hemelryk 398e6932b0 Merge branch 'MDL-32657-master-1' of git://git.luns.net.uk/moodle 2012-05-02 14:41:11 +12:00
Mary Evans c6e8b3b235 MDL-32684 lib/pagelib: adds break; statements to theme order in lib/pagelib.php 2012-05-02 01:20:04 +01:00
Sam Hemelryk fe9693df87 Merge branch 'w18_MDL-26028_m23_xsendfile' of git://github.com/skodak/moodle 2012-05-02 11:48:24 +12:00
Sam Hemelryk a6d2cf82dc Merge branch 'w18_MDL-32595_m23_unsignedandlob' of git://github.com/skodak/moodle 2012-05-02 10:25:09 +12:00
Andrew Robert Nicols 185d90ad27 MDL-32707 Make youtube videos use the transparent wmode setting 2012-05-01 14:54:56 +01:00
Petr Skoda a090587234 MDL-32697 improve MySQL and Oracle test reset performance 2012-05-01 14:35:23 +02:00
Davo Smith d50e8a1bda MDL-32698 Question - Fixed typos in load_question_attempt 2012-05-01 10:17:08 +01:00
Andrew Robert Nicols 19d041bf2b MDL-32681 Only add drag/drop icons if moveup/movedown icons are present 2012-05-01 09:52:46 +01:00
Juan Leyva 63a85dc7a3 MDL-13130 webservices: Implementation of core_course_delete_courses 2012-05-01 15:23:50 +08:00
Dan Poltawski 1cba46c793 MDL-32693 webservice: fix typo in URL 2012-05-01 12:27:43 +08:00
Andrew Davis 1e2698f6fa MDL-26275 grade: made some equality checks more strict and added some explanatory comments 2012-05-01 10:43:09 +07:00
Dan Poltawski 6b445cb17a Merge branch 'w18_MDL-30686_m23_guessurl' of git://github.com/skodak/moodle 2012-05-01 11:27:16 +08:00
Dan Poltawski 35a1c03448 Merge branch 'MDL-27508-workshop-groups' of git://github.com/mudrd8mz/moodle 2012-05-01 11:16:20 +08:00
Dan Poltawski 3869858d3e Merge branch 'MDL-30986-attempt2' of git://github.com/mouneyrac/moodle 2012-05-01 10:59:06 +08:00
Dan Poltawski 73d595faf3 Merge branch 'MDL-32181' of https://github.com/ppichet/moodle 2012-05-01 10:30:43 +08:00
Dan Poltawski a4c9412b15 Merge branch 'w18_MDL-19071_m23_unicode' of git://github.com/skodak/moodle 2012-05-01 10:19:17 +08:00
Dan Poltawski 94b9d44f28 Merge branch 'w18_MDL-32586_m23_glibciconv' of git://github.com/skodak/moodle 2012-05-01 10:00:01 +08:00
Sam Hemelryk 7c30505be8 Merge branch 'MDL-32009-master-3' of git://git.luns.net.uk/moodle 2012-05-01 13:43:07 +12:00
Sam Hemelryk 75c9c54be4 Merge branch 'w18_MDL-32587_m23_phpunitindividual' of git://github.com/skodak/moodle 2012-05-01 13:41:37 +12:00
Sam Hemelryk 3a4b0d0bc0 Merge branch 'w18_MDL-32607_m23_upgrade2' of git://github.com/skodak/moodle 2012-05-01 13:34:08 +12:00
Sam Hemelryk 46847c220c Merge branch 'w18_MDL-32612_m23_debug' of git://github.com/skodak/moodle 2012-05-01 13:29:39 +12:00
Sam Hemelryk 4bbefa1c19 Merge branch 'w18_MDL-32640_m23_forumstrict' of git://github.com/skodak/moodle 2012-05-01 13:26:53 +12:00
Sam Hemelryk ea7cc40eda Merge branch 'MDL-28955_master' of git://github.com/lazydaisy/moodle 2012-05-01 13:17:33 +12:00
Sam Hemelryk 16fd605208 MDL-32012 Fixed white space 2012-05-01 12:38:37 +12:00
Sam Hemelryk 2dcc93644f Merge branch 'MDL-32012' of git://github.com/merrill-oakland/moodle 2012-05-01 12:37:59 +12:00
AMOS bot f4b668393f Automatically generated installer lang files 2012-05-01 00:31:38 +00:00
Petr Skoda 4d254790c4 MDL-32628 add revision for user avatar images
This should finally resolve all avatar caching issues and should also help with performance.
2012-04-30 23:36:47 +02:00
Sam Hemelryk 1ad903ea8b Merge branch 'MDL-29264_zindex' of git://github.com/andyjdavis/moodle 2012-05-01 08:23:52 +12:00
Petr Skoda e61f888d36 MDL-26028 fix invalid separator constant and support root dirs in aliases
Credit goes to Loic Jeannin, thanks.
2012-04-30 18:08:37 +02:00
Petr Skoda f7d26a0545 MDL-26028 implement Nginx X-Sendfile directory aliases setting 2012-04-30 15:52:42 +02:00
Tim Hunt 59d14f31bd Improve the wording of overdue messages. Thanks Phil. 2012-04-30 13:46:02 +01:00
Rossiani Wijaya 3c0ea9b284 MDL-18335 calendar event: fixed role capability checking to create new event 2012-04-30 17:41:54 +08:00
Ruslan Kabalin c9e34994cb MDL-32009 messaging: Fix using message processor term inconsistency. 2012-04-30 10:34:39 +01:00
Ruslan Kabalin 3f9d9e2856 MDL-32009 messaging: Add message processor uninstall functionality 2012-04-30 10:34:39 +01:00
Ruslan Kabalin bede23f7bc MDL-32009 messaging: Add is_enabled method to plugintype_message 2012-04-30 10:34:37 +01:00
Ruslan Kabalin bc795b98e9 MDL-32009 messaging: Refator get_settings_url plugintype method
No need to duplicate checks since we have them in one place.
2012-04-30 10:34:37 +01:00
Dan Poltawski 06dcb573c4 Merge branch 'w18_MDL-32589_m23_proxytest' of git://github.com/skodak/moodle 2012-04-30 17:00:23 +08:00
Davo Smith 32528f94e4 MDL-22504 Drag and drop upload course - enables upload of files, text and urls to a course page 2012-04-30 09:53:25 +01:00
Jerome Mouneyrac 4615817d1c MDL-30986 external API, check and update DocBlock
Conflicts:

	group/externallib.php
2012-04-30 15:11:56 +08:00
Petr Skoda 46cb5d9ace MDL-32589 remove bogus webproxy whitelisting
Thanks Dan Poltawski!
2012-04-30 08:35:16 +02:00
Dan Poltawski bc24339e00 Merge branch 'MDL-32357' of git://github.com/timhunt/moodle 2012-04-30 14:29:40 +08:00
Dan Poltawski b53cb1294a Merge branch 'master_MDL-31731' of git://github.com/danmarsden/moodle 2012-04-30 12:54:22 +08:00
Dan Poltawski fdf26a0ec0 MDL-3030 mod_quiz: fix training whitespace 2012-04-30 11:05:29 +08:00
Dan Poltawski c1bb7a6f39 Merge branch 'MDL-3030' of git://github.com/timhunt/moodle 2012-04-30 11:05:19 +08:00
Rajesh Taneja 4a9c429b0c MDL-32234 Library: usergetdate return different values when timezone is set
usergetdate should return consistent values for different timezone. There are
two return path
1. If timezone is servertime, it returns getdate
2. If timezone other then servertime, it use gmstrftime, which returns string and
   values with leading zero.
In second case, leading zero's are removed and values are type casted. One major fix
is with yday, getdate returns 0 through 365, whereas %j returns 001 through 366. This
has been fixed as well.
2012-04-30 10:59:01 +08:00
Andrew Davis a740a0ad98 MDL-26257 grade: fixed the grader report edit mode ajax and fixed a spot in the grader report that should be using get_students_per_page() 2012-04-30 08:56:27 +07:00
Andrew Davis 8233747e0e MDL-26275 grade: made the grader report retrieve the existing grades from the DB rather than sending them to the client which then returns them to the server 2012-04-30 08:56:26 +07:00
Andrew Davis d3b698a46e MDL-26275 grade: added a safety check to avoid hitting PHP's max_input_var by reducing the number of students per page if necessary 2012-04-30 08:56:26 +07:00
Dan Poltawski e669ee3a96 Merge branch 'w18_MDL-32627_m23_userajax' of git://github.com/skodak/moodle 2012-04-30 09:50:04 +08:00
Dan Poltawski 008655ca04 Merge branch 'MDL-32613' of git://github.com/timhunt/moodle 2012-04-30 09:30:24 +08:00
Sam Hemelryk 21f7b01d19 Merge branch 'MDL-32638-workshop-files' of git://github.com/mudrd8mz/moodle 2012-04-30 13:26:38 +12:00
Sam Hemelryk ac3f3571a5 Merge branch 'master_MDL-32597' of git://github.com/danmarsden/moodle 2012-04-30 13:21:54 +12:00
Sam Hemelryk cc2ae468d2 Merge branch 'MDL-28735-master' of git://github.com/ankitagarwal/moodle 2012-04-30 13:19:56 +12:00
Dan Poltawski 81ea734992 Merge branch 'w18_MDL-32651_m23_phpunit6' of git://github.com/skodak/moodle 2012-04-30 09:16:24 +08:00
Sam Hemelryk 6caa86747f Merge branch 'MDL-29044-master-3' of git://git.luns.net.uk/moodle 2012-04-30 12:50:38 +12:00
Sam Hemelryk 446326ab67 Merge branch 'MDL-26523_grader' of git://github.com/andyjdavis/moodle 2012-04-30 12:46:48 +12:00
Sam Hemelryk 3d173c1d38 Merge branch 'MDL-31429_paypal_messages' of git://github.com/andyjdavis/moodle 2012-04-30 12:33:05 +12:00
Sam Hemelryk fd8335c90e Merge branch 'w18_MDL-32676_m23_yuibootstrap' of git://github.com/skodak/moodle 2012-04-30 12:26:07 +12:00
Sam Hemelryk bc0be2fb80 Merge branch 'MDL-19391-master-1' of git://git.luns.net.uk/moodle 2012-04-30 12:16:35 +12:00
Sam Hemelryk 49ddf4195c MDL-31510 grader report: Fixed whitespace 2012-04-30 12:13:00 +12:00
Sam Hemelryk e074f9763b Merge branch 'MDL-31510_group_activities' of git://github.com/andyjdavis/moodle 2012-04-30 12:11:23 +12:00
Sam Hemelryk b5aa51419a Merge branch 'MDL-32238-master' of git://github.com/ankitagarwal/moodle 2012-04-30 12:03:01 +12:00
Sam Hemelryk c547c7c784 Merge branch 'MDL-32624_master_wip' of git://github.com/grabs/moodle 2012-04-30 11:57:40 +12:00
Dan Marsden 77143217f2 MDL-31731 - new grading form - Marking Guide 2012-04-30 08:44:43 +12:00
Petr Skoda 0be17303c0 MDL-32676 improve YUI init performance via combo loader caching 2012-04-29 19:00:51 +02:00
Petr Skoda 7e9f1b63e5 MDL-26028 use X-Sendfile for theme images and javascript 2012-04-29 18:59:08 +02:00
Petr Skoda d5dd0540c2 MDL-26028 send_file performance improvements
Includes X-Sendfile support, ETags for stored_files and general cleanup.
2012-04-29 18:27:23 +02:00
Tim Hunt df710f84d0 MDL-32357 Try to fix unread post notification for blog-style forums.
I know that showing unread posts is not 100% blog-style, but I think
it is useful functionality, therefore, I chose to fix it, rather than,
say, disable it completely.

I think this fix will only affect blog-style forums since
forum_print_latest_discussions is only called with mode 'plain' in
three places:
1. Blog-style forums - the case we want to fix,
2. Site news forum, and
3. Social course format.

In all cases, having read tracking work properly seems like the
right thing to do.
2012-04-28 18:57:05 +01:00
Petr Skoda 99302c5e96 MDL-26028 cleanup all IE6 gzip hacks 2012-04-28 18:00:06 +02:00
Petr Skoda 5d234a34ef MDL-32612 prevent dir creation race condition notices in theme images 2012-04-28 17:14:38 +02:00
Petr Skoda ee891dacc7 MDL-32612 disable error displaying in theme files and javascript
The correct place to write errors and notices is log, we can let Javascript and binary files to be randomly modified.
2012-04-28 17:14:38 +02:00
Petr Skoda 463a9874ef MDL-32612 respect NO_DEBUG_DISPLAY in scripts that need only config.php 2012-04-28 17:14:37 +02:00
Dan Poltawski 1f43065d95 MDL-32673 ajax: remove legacy debugging info 2012-04-28 15:00:37 +08:00
Mary Evans 18e5c3332f MDL-28955 theme_nimble: added css rules to display horizontal/vertical-menu-submenu-indicator 2012-04-28 02:48:26 +01:00
Rex Lorenzo a9ce6b1f8d MDL-32670 mod/chat: added missing call to $PAGE->set_heading 2012-04-27 15:58:16 -07:00
Eric Merrill 4eef1c2e14 MDL-32012 resource: flaw in restore from moodle 1.9 backups 2012-04-27 16:16:00 -04:00
ppichet 0cba6a8d5e MDL-32181 question/calculatedmulti validate multianswers
restructuring the validation function of edit_calculatedmulti_form.php
correcting attempt
defining = new stdClass() before using them : Strict standards
2012-04-27 14:30:36 -04:00
Tim Hunt 75733895bb MDL-32613 qbank: improve print_choose_qtype_to_add_form for contrib modules. 2012-04-27 15:08:28 +01:00
Tim Hunt b640e6815a MDL-3030 quiz overdue handling: allow access to summary during grace period 2012-04-27 15:07:43 +01:00
Tim Hunt 2512341872 MDL-3030 quiz statistics: fix stict syntax problem. 2012-04-27 15:07:42 +01:00
Tim Hunt e1bf1619e1 MDL-3030 quiz overdue handling: cron to update overdue attempts. 2012-04-27 15:07:41 +01:00
Tim Hunt be18f589e2 MDL-3030 quiz overdue handling: test state, not timefinish where applicable. 2012-04-27 15:07:40 +01:00
Tim Hunt 3e77b60f36 MDL-3030 quiz overdue handling: ignore responses received much too late. 2012-04-27 15:07:38 +01:00
Tim Hunt fd0537ce36 MDL-3030 quiz overdue handling: catch the overdue event and send message. 2012-04-27 15:07:37 +01:00
Tim Hunt a403bce0bd MDL-3030 quiz overdue handling: back-end code for the new transitions 2012-04-27 15:07:36 +01:00
Tim Hunt 34b7d8383d MDL-3030 quiz overdue handling: trigger automatic state transitions.
Here, we catch all the places where a student might be accessing their
own attempts, and make sure any automatic state transitions that
should happen, do happen, before the student sees the attempt.

The places where we need to check this are view.php, startattempt.php
and processattempt.php.

We do not really need to check attempt.php or summary.php, because if
the student is on one of those pages, the JavaScript timer will
auto-submit when time expires, taking them to processattempt.php,
which will do the acutal work.

We intentionally do not trigger state transition when a teacher is
looking at a student's quiz attemp. We will trigger state transitions
on cron, but that is still to do.

Also, the body of the process_... methods still needs to be written.
2012-04-27 15:07:35 +01:00
Tim Hunt 863872e3e7 MDL-3030 quiz overdue handling: show the attempt state in the reports. 2012-04-27 15:07:33 +01:00
Tim Hunt 2cdd2df92d MDL-3030 quiz overdue handling: only finished attempts in stats. 2012-04-27 15:07:32 +01:00
Tim Hunt c547514a9e MDL-3030 quiz overdue handling: show attempt state in the reports. 2012-04-27 15:07:31 +01:00
Tim Hunt b39b5d77c3 MDL-3030 quiz overdue handling: show attempt state on the review page. 2012-04-27 15:07:30 +01:00
Tim Hunt 2b2b645842 MDL-3030 quiz overdue handling: display message on the summary page.
This change also includes a clean-up of how we display and initialise the countdown timer.
2012-04-27 15:07:29 +01:00
Tim Hunt 2de9be52aa MDL-3030 quiz overdue handling: show attempt state on the view page 2012-04-27 15:07:27 +01:00
Tim Hunt fd55f4bf49 MDL-3030 quiz overdue handling: backup and restore new settings. 2012-04-27 15:07:26 +01:00
Tim Hunt 18efef384b MDL-3030 quiz overdue handling: new capability 2012-04-27 15:07:25 +01:00
Tim Hunt 87427d9c7c MDL-3030 quiz overdue handling: new settings on quiz form and admin. 2012-04-27 15:07:23 +01:00
Tim Hunt 84da4788fd MDL-3030 quiz settings: reorganise form before adding new fields. 2012-04-27 15:07:22 +01:00
Tim Hunt c761b7757d MDL-3030 quiz db: add comments to many colums, and reorder more logically. 2012-04-27 15:07:21 +01:00
Tim Hunt 20b77578d0 MDL-3030 quiz overdue handling: new DB columns. 2012-04-27 15:07:19 +01:00
Ruslan Kabalin c77582fe42 MDL-32657: course dragdrop: define elements changes within the format
It allows to define M.course.format.swap_sections and
M.course.format.get_section_selector in the course format javascript file, so
that course dragdrop is aware about perculiar layout and changes that need to
be done when sections are swapped.
2012-04-27 15:01:02 +01:00
Petr Skoda 80705c1000 MDL-32628 add user_picture->get_url() tests 2012-04-27 15:03:24 +02:00
David Mudrak 7528e238e0 MDL-32638 workshop_pluginfile() checks for access rights to get the submission files 2012-04-27 14:58:59 +02:00
David Mudrak 92039f1cb4 MDL-32638 fixed capability checks for instructauthors and instructreviewers
The workshop_pluginfile() can't be more restrictive than the code that
actually displays the text with the embedded images. To view both
instructions fields in view.php, the capability to view the workshop is
enough. So the same level of access control is applied here by
require_login() at the top of the function.
2012-04-27 14:56:15 +02:00
David Mudrak b7a5e3d603 MDL-32638 improved file browser access to submission_content and submission_attachment areas
The user has to have viewallsubmissions capability to be able to see the
submission files in the browser. Additionally, in the separate groups
mode, the user has to have accessallgroups or share at least one group
with the submission author to view their files.
2012-04-27 14:56:14 +02:00
David Mudrak 76966a0058 MDL-32638 fixed workshop file info library comments 2012-04-27 14:56:14 +02:00
Petr Skoda fa5306878b MDL-32628 fix all deleted users to not have picture flag 2012-04-27 14:44:18 +02:00
David Mudrak a1df59bea9 MDL-27508 workshop does not use get_users_by_capability() any more
This is a big win, we are now taking enrolment fully into account.
Also, no need to fetch big data from DB just to get their count. Should
have much better performance now.
2012-04-27 14:41:59 +02:00
David Mudrak 74f54102dc MDL-27508 display submission link at the manual allocator page 2012-04-27 14:41:59 +02:00
David Mudrak 25bae250ee MDL-27508 workshop manual allocator supports groups
Pagination support improved, too.
2012-04-27 14:41:59 +02:00
David Mudrak 079219bf07 MDL-27508 introducing workshop::count_participants() 2012-04-27 14:41:59 +02:00
David Mudrak c90a88bfb7 MDL-27508 improving the docs for workshopallocation_manual_allocations class 2012-04-27 14:41:59 +02:00
David Mudrak ec1bf0f23d MDL-27508 workshop manual allocator supports configurable page size for items pagination 2012-04-27 14:41:59 +02:00
David Mudrak dda42a19cd MDL-27508 workshop::prepare_grading_report_data() accepts $groupid
Workshop grades reports in all three last phases were fixed to support
the group selection. They layout of the report has been unified to be
consistent across all phases.
2012-04-27 14:41:59 +02:00
David Mudrak 8741ebb0bd MDL-27508 introducing workshop::get_participants() and workshop::is_participant()
Note how the participant is defined: it is a user that (1) can submit or
assess or both and (2) is actively enrolled in the course. This means
that usually admins or managers won't be considered as workshop
participants, for example.
2012-04-27 14:41:59 +02:00
David Mudrak 11a97e66e8 MDL-27508 workshop supports configurable page size for items pagination 2012-04-27 14:41:59 +02:00
David Mudrak 5547b0dce1 MDL-27508 introducing mod_workshop_renderer::perpage_selector() 2012-04-27 14:41:58 +02:00
David Mudrak 0d2331cce3 MDL-27508 workshop supports pagination at the submissions list in the submission phase 2012-04-27 14:41:58 +02:00
David Mudrak 8a23733753 MDL-27508 common pagination and sorting interface across all phases in view.php 2012-04-27 14:41:58 +02:00
David Mudrak cd57f558d9 MDL-27508 introducing workshop::count_submissions() and pagination support for get_submissions() 2012-04-27 14:41:58 +02:00
David Mudrak 9326a2aa84 MDL-27508 fixing the description of groups related behaviour of some capabilities 2012-04-27 14:41:58 +02:00
David Mudrak 3f5e99153c MDL-27508 workshop checks separate groups membership when displaying an assessment 2012-04-27 14:41:58 +02:00
David Mudrak f65bc55fcd MDL-27508 workshop checks separate groups membership when displaying a submission 2012-04-27 14:41:58 +02:00
David Mudrak a4e848360d MDL-27508 workshop_user_complete() checks group membership in separate groups mode 2012-04-27 14:41:58 +02:00
David Mudrak 1c0c3ef5ee MDL-27508 workshop shows submissions per group in the submission phase 2012-04-27 14:41:58 +02:00
David Mudrak 872ed8591e MDL-27508 workshop::get_submissions() now accepts optional $groupid 2012-04-27 14:41:58 +02:00
David Mudrak 9691e2b10e MDL-27508 workshop::get_users_with_capability_sql() supports groupmembersonly
If the method is called with $groupid set to 0 and the workshop is in
the groupmembersonly mode, a recursive call is used to populate the
fragments of SQL code that fetch users from all relevant groups. These
fragments are then concatenated using UNION statement.
2012-04-27 14:41:58 +02:00
David Mudrak 21f58287d7 MDL-27508 workshop: improved getting of potential authors and reviewers
This patch reimplements get_potential_authors() and get_potential_reviewers()
so that get_enrolled_sql() is used instead of get_users_by_capability().
This excludes non-enrolled users (or users with suspended enrolment)
from the list of potential users.

The patch also extends the returned user structure. Objects in the
returned collection are now suitable for user_picture renderer.
2012-04-27 14:41:58 +02:00
Petr Skoda faa328c385 MDL-32628 fix user_picture performance 2012-04-27 13:56:08 +02:00
Petr Skoda 32962961a8 MDL-32651 increase memory limit to 2G when running phpunit tests
This should help when running tests with coverage reports.
2012-04-27 13:54:38 +02:00
Petr Skoda fffd3703cf MDL-32640 fix E_STRCIT issue when editing somebody post of other user 2012-04-27 13:53:35 +02:00
Petr Skoda 789df20f64 MDL-32627 enable ajax by default in new user form
This change makes the new user form consistent with install.xml default. I do not think we should discourage ajax any more.
2012-04-27 13:52:38 +02:00
Petr Skoda b814d1b4b2 MDL-32607 prevent upgrade_set_timeout abort in CLI scripts
Credit goes to Michael Aherne, thanks.
2012-04-27 13:51:38 +02:00
Petr Skoda e427ad302f MDL-32595 fix mysql int and lob defaults during conversion
Integer columns can not have empty string default, lobs fields handle empty strings defaults automatically too if null not allowed.
2012-04-27 13:45:10 +02:00
Petr Skoda 366c6adba3 MDL-32589 phpunit: allow proxy server specification via config.php 2012-04-27 13:43:21 +02:00
Petr Skoda 8e5c963e6b MDL-32587 improve component phpunit config building and make the util.php help fit 80char screens 2012-04-27 13:42:18 +02:00
Eloy Lafuente (stronk7) cb48174266 MDL-32587 phpunit: new option to create distributed phpunit.xml files 2012-04-27 13:42:17 +02:00
Petr Skoda 51b7297b7e MDL-32586 silence buggy glibc when fixing utf-8 strings 2012-04-27 13:41:12 +02:00
Petr Skoda bd319d12c2 MDL-30686 fix typo
Thanks Dan Poltawski!
2012-04-27 13:39:18 +02:00
Petr Skoda f0202ae9a2 MDL-30686 improve accuracy of qualified_me() by trying PAGE->url first
This should help SSL proxies and returning to current page after require_login().
2012-04-27 13:39:18 +02:00
Petr Skoda 6c0e5cd193 MDL-19071 test PCRE compatibility with unicode characters 2012-04-27 13:37:54 +02:00
Eloy Lafuente (stronk7) aa753ac24f weekly release 2.3dev 2012-04-27 12:46:57 +02:00
Eloy Lafuente (stronk7) cb6de349e4 Fix permissions 2012-04-27 12:45:22 +02:00
Eloy Lafuente (stronk7) cef0090c51 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-04-27 12:38:28 +02:00
Eloy Lafuente (stronk7) 291e168894 Revert "MDL-32249 completion: Round course grades and remove hardcoded string"
This reverts commit 412cecc32b.
2012-04-27 12:03:26 +02:00
Petr Skoda dcb83c348f fix use of legacy object class 2012-04-27 11:09:53 +02:00
Petr Skoda 41ee480a9b fix bogus post action params 2012-04-27 10:51:47 +02:00
Petr Skoda 2975523afb CONTRIB-3616 Book module do not display icon for book and chapter print
Credit goes to Peter Svec, thanks.
2012-04-27 10:49:59 +02:00
Andrew Davis bd3238e611 MDL-29264 course: removed the z-index from course css for course completion elements 2012-04-27 10:49:29 +07:00
Andrew Davis 692e4f7b4d MDL-26523 grade: fixed a called to addHelpButton() that was asking for a non-existent string 2012-04-27 09:13:36 +07:00
Eloy Lafuente (stronk7) 7c0d3f4c1d Merge branch 'wip-MDL-26014-master' of git://github.com/phalacee/moodle 2012-04-27 03:15:51 +02:00
AMOS bot 66cf7bcbe9 Automatically generated installer lang files 2012-04-27 00:31:39 +00:00
Andrew Robert Nicols 95ef704d7d MDL-31096 Handle addition/removal of mod-indent-huge to match non-ajax display 2012-04-26 11:02:39 +01:00
Andrew Robert Nicols eac3ed52c7 MDL-31096 Add hiding of activity descriptions 2012-04-26 10:40:32 +01:00
Andrew Davis aee748d32c MDL-31510 grade: made the user report observe $cm->uservisible so that activities not available to a student because of groups do not appear on their user report 2012-04-26 16:31:56 +07:00
Andrew Robert Nicols 9d40f585da Revert MDL-31215 Add the ability to change activity titles using AJAX calls
This *partially* reverts commit 6a14c4ffdd.

Note however parts of that commit were unrelated and haven't been
reverted.
2012-04-26 17:25:06 +08:00
Jason Fowler 06aad19cc7 MDL-26014 - blog - improving the label for the URL of an external blog feed 2012-04-26 11:09:44 +08:00
Dan Poltawski 70b36b488b MDL-31263 lib/ajax/blocks.php fix nonsensical url 2012-04-26 11:03:05 +08:00
Eloy Lafuente (stronk7) ee5855687e Merge branch 'MDL-31052-js-rewrite' of git://github.com/danpoltawski/moodle 2012-04-26 03:32:08 +02:00
Eloy Lafuente (stronk7) e97eefd8c8 Merge branch 'MDL-19263-master' of https://github.com/mackensen/moodle 2012-04-26 02:46:21 +02:00
Eloy Lafuente (stronk7) 0529f63373 Merge branch 'MDL-32630-workshop-calendar' of git://github.com/mudrd8mz/moodle 2012-04-26 02:17:00 +02:00
David Mudrak de7daa8333 MDL-32630 workshop_calendar_update() does not check for calendar permissions
As discussed in MDL-32631, calendar_event::update() should not do
capability checks at all. Until that issue is fixed, we just explicitly
declare that no capability checks should be done.

The function workshop_calendar_update() is executed when adding or
updating a workshop instance (where permissions to modify the instance
were already checked and are sufficient) and in the upgrade code (where
no check should be performed anyway).
2012-04-25 15:35:59 +02:00
Eloy Lafuente (stronk7) d7f84a2962 Merge branch 'MDL-32471-thumbnails' of git://github.com/mudrd8mz/moodle 2012-04-25 15:14:27 +02:00
David Mudrak b861b60932 MDL-32471 fixed strict standards in the declaration of send_file() in assignment types
All subtypes declaration should be compatible with that of assignment_base::send_file()
2012-04-25 13:48:12 +02:00
David Mudrak f7eec6ce79 MDL-32471 improved SQL to prevent potential full table scans 2012-04-25 13:44:36 +02:00
Eloy Lafuente (stronk7) e69ac1546b Merge branch 'MDL-32192_rename_string' of git://github.com/andyjdavis/moodle 2012-04-25 13:07:48 +02:00
David Mudrak 94d104172e MDL-32471 just a trivial change to prevent eventual issues with various preview modes 2012-04-25 11:53:57 +02:00
David Mudrak 8f110835c1 MDL-32471 adding preview generation unit tests
The test image is a public domain file from
http://commons.wikimedia.org/wiki/File:Easter_eggs_-_onion_decoration.jpg
2012-04-25 11:42:17 +02:00
Eloy Lafuente (stronk7) 9c51f675fa Merge branch 'wip-MDL-32417-master' of git://github.com/marinaglancy/moodle 2012-04-25 03:40:53 +02:00
Eloy Lafuente (stronk7) 344c07c3de Merge branch 'wip-MDL-26959-master' of git://github.com/phalacee/moodle 2012-04-25 03:20:23 +02:00
Eloy Lafuente (stronk7) 2360f60fd8 MDL-32322 tests: apply changes in simpletests (now deleted) to phpunit ones. 2012-04-25 03:09:42 +02:00
Eloy Lafuente (stronk7) d3cb25dfef Merge branch 'MDL-32322' of git://github.com/timhunt/moodle
Conflicts:
	mod/quiz/report/simpletest/testreportlib.php
	mod/quiz/report/statistics/simpletest/test_qstats.php
2012-04-25 03:02:14 +02:00
Eloy Lafuente (stronk7) 2c6dbf4a54 MDL-32490 Offline assignment: phpdocs and whitespace fixes 2012-04-25 02:40:35 +02:00
AMOS bot 10686a150c Automatically generated installer lang files 2012-04-25 00:31:34 +00:00
Eloy Lafuente (stronk7) 2ae4f3849a Merge branch 'MDL-32490' of git://github.com/bostelm/moodle 2012-04-25 02:28:50 +02:00
Eloy Lafuente (stronk7) cb626376c1 Merge branch 'MDL-32566_master' of git://github.com/kordan/moodle 2012-04-25 02:05:09 +02:00
Eloy Lafuente (stronk7) 0317b8d4b3 Merge branch 'MDL-32082_messaging_readability' of git://github.com/andyjdavis/moodle 2012-04-25 01:55:24 +02:00
Eloy Lafuente (stronk7) ee35fa43de Merge branch 'wip-MDL-30478-master' of git://github.com/abgreeve/moodle 2012-04-25 01:11:38 +02:00
Eloy Lafuente (stronk7) 795558d3e5 Merge branch 'MDL-31548-master' of git://github.com/ankitagarwal/moodle 2012-04-24 21:56:57 +02:00
Andreas Grabs 7e5dc9f3bb MDL-32624 - initialbars disappears 2012-04-24 21:26:56 +02:00
Petr Skoda bcb4958e2a fix invalid function name in legacy file migration
Credit goes to t6nis. Closes issue #25.
2012-04-24 17:53:29 +02:00
Aparup Banerjee aed560a197 MDL-19391 Database : fixed icon size 2012-04-24 16:00:38 +01:00
David Mudrak fe68aac7d9 MDL-32471 using === for string comparison
Thanks to Petr Skoda for spotting this during the peer-review.
2012-04-24 16:10:46 +02:00
David Mudrak 9120a46257 MDL-32471 remove orphaned preview files via cron 2012-04-24 15:14:09 +02:00
David Mudrak 7a00d4385d MDL-32471 preview thumbnails support for other component types
This commit affects mostly qtypes. Other standard components either do
not have pluginfile handler or have been already updated to the new API.
2012-04-24 14:29:44 +02:00
David Mudrak 957fc845b6 MDL-32471 preview thumbnails support for blocks
block_xxx_pluginfile() now accepts the $options parameter that is to be passed
to the send_stored_file() function.
2012-04-24 14:01:53 +02:00
Eloy Lafuente (stronk7) 2ea2549e13 MDL-31914 db fix - cannot use table aliases on DELETE statements. Credit goes to Andrew Nicols (LUNS). 2012-04-24 13:07:11 +02:00
Eloy Lafuente (stronk7) c833026b24 Merge branch 'MDL-32249' of github.com:srynot4sale/moodle 2012-04-24 12:56:30 +02:00
Andrew Robert Nicols ede323e2b3 MDL-31914 Ensure that completion criteria are deleted when removing a course module
Conflicts:

	lib/db/upgrade.php
	version.php
2012-04-24 12:25:53 +02:00
David Mudrak 261cbbacc1 MDL-32471 preview thumbnails support for activity modules
Activity module's xxx_pluginfile() now accepts the $options parameter
that is to be passed to the send_stored_file() function.
2012-04-24 12:09:45 +02:00
David Mudrak 82c224ee7a MDL-32471 send_stored_file() now supports the preview option
If for any reason the preview image can't be generated for the given
file (eg we do not support its mimetype yet), the function will send
404 Not Found HTTP header. This will be useful for the lazy loading of
the file thumbnails as the JavaScript will simply ignore such response
and will not replace the default icon for the file.

In the future, a fallback thumbnail generator can be implemented that
would generate some sort of default preview for all files (eg using
the mimetype icon like some desktop OS do).
2012-04-24 12:09:45 +02:00
David Mudrak c4d19c5a07 MDL-32471 introducing file_storage::get_file_preview() method 2012-04-24 12:09:45 +02:00
David Mudrak f0a23f5322 MDL-32471 introducing generate_image_thumbnail() function
This helper function uses GD library to generate a thumbnail of the
given image file.
2012-04-24 12:09:45 +02:00
David Mudrak f0f4fff900 MDL-32471 fixing the coding style in lib/gdlib.php
The GD functions are listed in lowercase in the PHP manual. So they
should be using this case in our code, too (otherwise, doc autolinking
tools may not work). I did not remove the underscore from the parameters
names intentionally to have the function interface compatible with the
one documented in the PHP manual.

See http://www.php.net/manual/en/ref.image.php
<
2012-04-24 12:09:44 +02:00
David Mudrak 796495fed2 MDL-32471 changing the interface of the send_stored_file() 2012-04-24 12:09:44 +02:00
David Mudrak b071498f1b MDL-32471 pluginfile.php accepts optional parameter 'preview' 2012-04-24 12:09:44 +02:00
Andrew Robert Nicols b1a8aa73b5 MDL-29044: Move course category creation to a separate function 2012-04-24 10:57:12 +01:00
Eloy Lafuente (stronk7) 14ffb91959 Merge branch 'w17_MDL-32574_m23_adodb' of git://github.com/skodak/moodle 2012-04-24 10:37:13 +02:00
Petr Skoda 3932d474e3 MDL-32574 fi sqlsrv adodb test 2012-04-24 09:22:26 +02:00
Dan Poltawski e5055d3e5e Merge branch 'master_MDL-32102' of git://github.com/danmarsden/moodle 2012-04-24 15:17:43 +08:00
Jerome Mouneyrac 45b4464c76 MDL-31762 username should be lowercase and check against PARAM_USERNAME when creating/updating user by web service 2012-04-24 15:09:37 +08:00
Ruslan Kabalin ff92b71140 MDL-31720 Refactor course/rest.php
This removes duplicates and block actions remains. It also makes it
possible to include course/rest.php in such a way that it could be extended
by non-core modules wishing to overide parts of its functionality (e.g.
mod_subpage)
2012-04-24 13:25:49 +08:00
Andrew Robert Nicols 6a14c4ffdd MDL-31215 Add the ability to change activity titles using AJAX calls 2012-04-24 13:25:49 +08:00
Ruslan Kabalin 5683815612 MDL-31263 Rewrite block drag/drop using YUI3 2012-04-24 13:25:43 +08:00
Dan Poltawski 06f29d7d76 Merge branch 'wip-MDL-31928-master' of git://github.com/marinaglancy/moodle 2012-04-24 10:32:18 +08:00
Dan Poltawski 8e8f247f2c Merge branch 'w17_MDL-32427_m23_protocols' of git://github.com/skodak/moodle 2012-04-24 10:27:15 +08:00
Dan Poltawski 1e77ca296d Merge branch 'w17_MDL-25407_m23_innodb' of git://github.com/skodak/moodle 2012-04-24 10:23:14 +08:00
Ankit Agarwal 7ca52615d1 MDL-32238 course: Timemodifed should be updated when a course's visible status is toggled from the category page 2012-04-24 10:08:23 +08:00
Eloy Lafuente (stronk7) 434fc13dbe Merge branch 'MDL-32454-master-1' of git://git.luns.net.uk/moodle 2012-04-24 01:47:14 +02:00
Eloy Lafuente (stronk7) 55a0c2d787 Merge branch 'MDL-32514-master-1' of git://git.luns.net.uk/moodle 2012-04-24 01:42:28 +02:00
Dan Marsden b5a64b112c MDL-32597 typo in path to version.php file for local plugins 2012-04-24 11:12:01 +12:00
Eloy Lafuente (stronk7) 5989454498 Merge branch 'MDL-19549' of git://github.com/danpoltawski/moodle 2012-04-24 01:00:16 +02:00
Eloy Lafuente (stronk7) 9614e54bfc Merge branch 'MDL-28176' of git://github.com/danpoltawski/moodle 2012-04-24 00:30:50 +02:00
Eloy Lafuente (stronk7) f24628a290 Merge branch 'MDL-32134' of git://github.com/danpoltawski/moodle 2012-04-24 00:07:23 +02:00
Eloy Lafuente (stronk7) 3e0b0ae59b Merge branch 'wip-MDL-26500' of git://github.com/danpoltawski/moodle 2012-04-24 00:03:36 +02:00
Ruslan Kabalin 15e2552f00 MDL-31216 Create dragdrop course module 2012-04-23 21:28:39 +01:00
Ruslan Kabalin ae2afddcd6 MDL-31222 Create a core YUI3 Module for drag-drop 2012-04-23 21:28:39 +01:00
Andrew Robert Nicols ebaa29d107 MDL-31096 Convert course resource/section javascript to YUI3 Module
AMOS BEGIN
  MOV [hideweekfromothers,moodle],[hidefromothers,format_week]
  MOV [showweekfromothers,moodle],[showfromothers,format_week]
  MOV [hidetopicfromothers,moodle],[hidefromothers,format_topics]
  MOV [showtopicfromothers,moodle],[showfromothers,format_topics]
AMOS END
2012-04-23 21:28:39 +01:00
Andrew Robert Nicols cd6081f558 MDL-31096 Create generic coursemodule javascript library
This library handles registration and invocation of calls for other
libraries. It allows us to register javascript modules containing functions
which may called dynamically later on, for example when adding a resource
or section dynamically
2012-04-23 21:18:17 +01:00
Ruslan Kabalin d8feba6ce7 MDL-31052 Add generic lightbox spinner to indicate progress to user 2012-04-23 21:17:50 +01:00
Petr Skoda e498621a95 MDL-25407 ignore errors in CLI mysql engine conversion script 2012-04-23 19:19:19 +02:00
kordan 011c24fbe9 MDL-32566 theme_formal_white: restyling of login block 2012-04-23 15:13:13 +02:00
Eloy Lafuente (stronk7) 93f9755c74 MDL-29262 phpunit: fix forgotten mock objects to avoid strict notices 2012-04-23 15:01:14 +02:00
Dan Poltawski a0a87e85f0 Merge branch 'w17_MDL-32477_m23_cloneperm' of git://github.com/skodak/moodle 2012-04-23 16:35:26 +08:00
Petr Skoda d72bb48662 MDL-32427 add HTML Purifier allowed scheme tests 2012-04-23 10:30:00 +02:00
Petr Skoda 590abcf801 MDL-32427 fix suport for extra schemes in links in HTML Purifier 2012-04-23 10:29:43 +02:00
Dan Poltawski 3bbfe7d636 Merge branch 'w17_MDL-32449_m23_tinymce' of git://github.com/skodak/moodle 2012-04-23 15:37:34 +08:00
Dan Poltawski 98fc9c8363 Merge branch 'w17_MDL-31553_m23_clitimeout' of git://github.com/skodak/moodle 2012-04-23 15:25:42 +08:00
kordan 25d4221200 MDL-32578 theme_formal_white: modified two lang strings 2012-04-23 15:20:34 +08:00
Ankit Agarwal 05f9d136a8 MDL-28735 calendar: Fixing issues with course selection dropdown 2012-04-23 15:10:35 +08:00
Dan Poltawski be7358bc18 Merge branch 'wip-MDL-32497-master' of git://github.com/marinaglancy/moodle 2012-04-23 14:25:59 +08:00
Dan Poltawski 4e25e4696b Merge branch 'wip_mdl-31540-master' of https://github.com/iarenaza/moodle
Conflicts:
	auth/ldap/auth.php
2012-04-23 13:55:00 +08:00
Dan Poltawski b68eef5e0b Merge branch 'MDL-32462' of git://github.com/timhunt/moodle 2012-04-23 12:54:01 +08:00
Dan Poltawski 544cfe962e Merge branch 'MDL-32104-master' of git://github.com/ankitagarwal/moodle 2012-04-23 12:49:56 +08:00
Dan Poltawski e0ed91ba39 Merge branch 'MDL-29262' of git://github.com/stronk7/moodle
Conflicts:
	version.php
2012-04-23 12:42:16 +08:00
Dan Poltawski fb1b14299a Merge branch 'w17_MDL-25407_m23_innodb' of git://github.com/skodak/moodle 2012-04-23 12:24:39 +08:00
Dan Poltawski e7e0f8d27f Merge branch 'MDL-32215-master' of git://github.com/sammarshallou/moodle
Conflicts:
	course/simpletest/testcourselib.php
    lib/db/upgrade.php
	version.php
2012-04-23 12:20:57 +08:00
Dan Poltawski bebf083159 Merge branch 'w17_MDL-31607_m23_login' of git://github.com/skodak/moodle 2012-04-23 11:47:11 +08:00
Jerome Mouneyrac e1f9702056 MDL-31431 webservices: improve user pic docs
Explain how to retrieve profile picture when forcelogin is set to NO and guestaccess to Yes
2012-04-23 11:42:30 +08:00
Dan Poltawski f488088109 Merge branch 'w17_MDL-32569_m23_phpunit5' of git://github.com/skodak/moodle 2012-04-23 11:21:06 +08:00
Dan Poltawski eadff47811 Merge branch 'master_MDL-29975' of git://github.com/danmarsden/moodle 2012-04-23 10:59:17 +08:00
Dan Poltawski 0439fed4d3 Merge branch 'MDL-30187-master-2' of git://git.luns.net.uk/moodle 2012-04-23 10:51:02 +08:00
Dan Poltawski 42b206e47a Merge branch 'MDL-32459-master-1' of git://git.luns.net.uk/moodle 2012-04-23 10:42:42 +08:00
Dan Poltawski 75285aa03a Merge branch 'wip_mdl-16646_master' of https://github.com/iarenaza/moodle 2012-04-23 10:32:37 +08:00
Dan Poltawski c6d2dca7a0 Merge branch 'MDL-23647_master' of git://github.com/lazydaisy/moodle 2012-04-23 10:27:44 +08:00
Dan Poltawski d6dd4f40e1 Merge branch 'w17_MDL-32451_m23_wikistrict' of git://github.com/skodak/moodle 2012-04-23 10:25:54 +08:00
Dan Poltawski a50a1b5dbf Merge branch 'w17_MDL-32512_m23_estrict' of git://github.com/skodak/moodle 2012-04-23 10:22:04 +08:00
Dan Poltawski 1d99324f38 Merge branch 'w17_MDL-32451_m23_blockstrict' of git://github.com/skodak/moodle 2012-04-23 10:16:27 +08:00
Dan Poltawski c4974b077a Merge branch 'w17_MDL-32576_m23_markdown' of git://github.com/skodak/moodle 2012-04-23 10:09:02 +08:00
Dan Poltawski 242c26e063 Merge branch 'w17_MDL-32575_m23_typo3' of git://github.com/skodak/moodle 2012-04-23 10:07:07 +08:00
Dan Poltawski 1c8be0eb7f Merge branch 'w17_MDL-32574_m23_adodb' of git://github.com/skodak/moodle 2012-04-23 10:00:24 +08:00
Chris Follin 895e76ea51 MDL-32492 auth/cas: respect https login links 2012-04-23 09:49:19 +08:00
Marina Glancy dc571f3010 MDL-32497: WebDAV repository need to return more information and work correctly with subdirs 2012-04-23 09:34:08 +08:00
Marina Glancy 6819c4287d MDL-32417: Fixed pagination bug in Flickr search results, also return thumbnail sizes 2012-04-23 09:33:58 +08:00
Marina Glancy 8685679a2a MDL-31928: Fixing bugs in repository_url
- if the same image occurs several times on the page list it only once
- resolve image path correctly if it has a query string
- show images included in CSS
- non-JS file picker ignores thumbnail width and height attributes (this is a temp fix until renderers are implemented)
2012-04-23 09:33:27 +08:00
Aaron Barnes 412cecc32b MDL-32249 completion: Round course grades and remove hardcoded string 2012-04-23 12:18:44 +12:00
Jason Fowler f77f2406fe MDL-26959 - Blog - changing wording of the entry delete confirmation string to make it more appropriate 2012-04-23 08:01:22 +08:00
Dan Marsden cbed6472b4 MDL-32102 Course completion - only restore user completion if not adding to existing course 2012-04-23 11:30:11 +12:00
Petr Skoda b29487664d MDL32575 make sure typo3 is not confused by non-string data types 2012-04-23 00:20:47 +02:00
Eloy Lafuente (stronk7) 749fd68cbb MDL-29262 restore: Clean controller obj form DB once finished ok 2012-04-23 00:14:32 +02:00
Eloy Lafuente (stronk7) 6e803b9fe4 MDL-29262 backup: Clean controller obj form DB once finished ok 2012-04-23 00:03:37 +02:00
Eloy Lafuente (stronk7) 14e2704ad4 MDL-29262 backup: new setting to control the ttl of backup logs
Add one new backup setting, moving from the general CFG->loglifetime,
to be able to delete backup logged information often.
2012-04-22 21:23:55 +02:00
Petr Skoda 5563f5fbbb MDL-31553 do not timeout CLI upgrade scripts
Credit goes to Michael Aherne.
2012-04-22 17:51:06 +02:00
Petr Skoda cdbea7eed1 MDL-31607 use full course object for require_login() if already available
This eliminates 1 db query.
2012-04-22 17:41:47 +02:00
Petr Skoda fb8e3faba2 MDL-32569 always set $CFG->wwwroot to http://www.example.com/moodle in test environment 2012-04-22 17:23:20 +02:00
Petr Skoda bcecc9ba68 MDL-32574 basic addodb connection tests + improved connection handling in enrol_database
This should allow us to allow connection via dsn which will allow a lot more options in the future.
2012-04-22 11:03:32 +02:00
AMOS bot 49e87823c6 Automatically generated installer lang files 2012-04-22 00:31:37 +00:00
Petr Skoda e4ba066f1d MDL-32576 import Markdown 1.2.5 2012-04-21 22:17:41 +02:00
Petr Skoda bc5c10f69e MDL-32575 import latest Typo3 libs for textlib and other improvements
Includes new textlib reset, new test for faulty integer lower/upper casing.
2012-04-21 21:31:03 +02:00
Petr Skoda ee97a3adbb MDL-32574 import adodb 5.16 2012-04-21 20:02:29 +02:00
Petr Skoda d88b0f9c29 MDL-32569 remove unittestprefix from config-dist.php, do not link other pages from old UI 2012-04-21 17:50:40 +02:00
Petr Skoda 37ba2528c1 MDL-32569 convert the remaining tests 2012-04-21 17:47:30 +02:00
Petr Skoda 4ca04fb58b MDL-32569 remove remaining references to simpletest and improve events test 2012-04-21 17:08:30 +02:00
Petr Skoda f596005b6c MDL-32569 drop migrated module tests 2012-04-21 16:58:07 +02:00
Petr Skoda 2338458ac5 MDL-32569 drop all migrated question simpletests 2012-04-21 16:43:34 +02:00
Petr Skoda 5c3d290d75 MDL-32569 drop outdated webservice tests - it will be replaced by new tests soon 2012-04-21 16:37:45 +02:00
Petr Skoda 7a636d6e7f MDL-32569 drop migrated core simpletests 2012-04-21 16:36:37 +02:00
Petr Skoda 05d531a5fb MDL-32569 drop old functional DB tests 2012-04-21 16:32:14 +02:00
Petr Skoda f59f03ad2d MDL-32569 drop more core simpletests that were already migrated 2012-04-21 16:27:30 +02:00
Petr Skoda bb7898c6ab MDL-32569 convert remaining backup tests and drop old simpletests 2012-04-21 16:24:33 +02:00
Petr Skoda 10156165ae MDL-32569 hide old SimpleTest UI 2012-04-21 16:13:38 +02:00
Petr Skoda b38d2ce7f8 MDL-32569 move other test related files to new tests directory 2012-04-21 16:11:36 +02:00
Petr Skoda f2c648edc3 MDL-25407 ignore errors when converting to InnoDB and ignore timeout
This should help resolve problems with table views and other unsupported stuff.
2012-04-21 11:50:43 +02:00
Petr Skoda 7e41a08d7a MDL-32512 remove deprecated table_sql constructor breaking E_STRICT 2012-04-21 11:26:14 +02:00
Petr Skoda b3aad0a25a MDL-32451 fix block edit strict issue 2012-04-21 11:21:21 +02:00
Petr Skoda dde4368ffc MDL-32451 fix remaining E_STRICT issues in wiki 2012-04-21 11:15:39 +02:00
Petr Skoda c8bd9402ea MDL-32449 import latest version of TinyMCE 3.5dev 2012-04-21 11:04:54 +02:00
Petr Skoda 0e83167422 addinstance support in book 2012-04-21 09:39:25 +02:00
Andrew Davis babc03f400 MDL-32082 message: added a function to make user checks more readable 2012-04-21 10:45:10 +07:00
Petr Skoda 6e9f0fd15d MDL-32569 improve SimpleTest emulation 2012-04-20 22:20:43 +02:00
Charles Fulton 2f8b49d569 MDL-25695 wiki: enable anchor tags 2012-04-20 12:47:23 -07:00
Charles Fulton 66150286b5 MDL-28657 backup: make automated backup filenames site admin-configurable 2012-04-20 08:52:56 -07:00
Charles Fulton d402ee1c56 MDL-19263 assignment: only notify users enrolled in course 2012-04-20 06:10:33 -07:00
Tim Hunt 9d58dae33b MDL-32322 quiz reports: fix PHPdoc comments. Thanks Smurf. 2012-04-20 11:34:56 +01:00
Tim Hunt 33af12eb8c MDL-32462 accesslib: fix context_user::build_paths performance
The problem was that the query was updating every row whether it needed
it or not. This turns out to be a really bad thing to do on Postgres,
because it then triggers a long expensive vacuum, which lock the context
table for a long time a really bad thing to do.
2012-04-20 10:09:44 +01:00
Tim Hunt c0270961a8 MDL-32322 more changes to make the code more similar before refactoring. 2012-04-20 10:07:28 +01:00
Tim Hunt 361cf27d7f MDL-32322 quiz reports: refactor processing actions. 2012-04-20 10:07:26 +01:00
Tim Hunt e97d60adce MDL-32322 quiz reports: pass options object -> table, not separate args. 2012-04-20 10:07:25 +01:00
Tim Hunt 9e67e357eb MDL-32322 quiz_reports: move some more options into the options class. 2012-04-20 10:07:23 +01:00
Tim Hunt ac4d91575a MDL-32322 quiz reports: name improvement attempt_report -> attempts_report. 2012-04-20 10:07:22 +01:00
Tim Hunt dcd65f1b4f MDL-32322 quiz reports: extract a mod_quiz_attempt_report_options class.
More clean-ups are possible in the reports after this, but I am committing now, having got the code back to a working state.
2012-04-20 10:07:21 +01:00
Tim Hunt 303aa3b8d0 MDL-32322 quiz reports: killing more duplication. 2012-04-20 10:07:19 +01:00
Tim Hunt 5ca45fddab MDL-32322 quiz reports: eliminate more duplication. 2012-04-20 10:07:18 +01:00
Tim Hunt 5bf8a1695d MDL-32322 quiz reports: defines -> class constants. 2012-04-20 10:07:17 +01:00
Tim Hunt 2639a68ad5 MDL-32322 quiz reports: refactor the settings forms to eliminate duplication. 2012-04-20 10:07:15 +01:00
Tim Hunt 4747c788c0 MDL-32322 quiz reports: edit to increase duplication, before refactoring. 2012-04-20 10:07:14 +01:00
Tim Hunt 768a758854 MDL-32322 quiz reports: Appease the great god codechecker. 2012-04-20 10:07:12 +01:00
Tim Hunt 90fbad644b MDL-32322 quiz reports: fix more strict syntax issues. 2012-04-20 10:07:11 +01:00
Tim Hunt 8d76124c5b MDL-32322 quiz reports: fix up PHP doc comments. 2012-04-20 10:07:09 +01:00
Tim Hunt 6b4e2d76a3 MDL-32322 quiz reports: rename classes, and fix one strict syntax. 2012-04-20 10:07:08 +01:00
Tim Hunt f5e42695bd MDL-32322 quiz reports: split attemptsrepor.php into one file per class. 2012-04-20 10:07:06 +01:00
Tim Hunt 26aded5581 MDL-32322 quiz reports: get_context_instance -> new classes.
Also, eliminate unnecessary use of global $COURSE.
2012-04-20 10:07:05 +01:00
Tim Hunt e66c9c077b MDL-32519 completio: Fix spelling of Enrolled. 2012-04-20 09:47:43 +01:00
Andrew Davis af4f61720d MDL-32191 grade:renamed a mis-spelled string name
AMOS BEGIN
 MOV [invalidgradeitmeid,error],[invalidgradeitemid,error]
AMOS END
2012-04-20 12:03:34 +07:00
Andrew Davis 1218879656 MDL-31429 enrol: added db/messages.php for enrolment plugins and added some smarts to messaging so it won't display message settings for disabled enrolment plugins 2012-04-20 11:48:46 +07:00
Chris Follin b804a56d2c MDL-31429 enrol: Add missing string for PayPal enrolment messages.
Signed-off-by: Andrew Davis <andrew@moodle.com>
2012-04-20 10:47:00 +07:00
Ankit Agarwal 33c5202ba2 MDL-32104 forum: Fixing issue with logs during restore 2012-04-20 08:55:40 +08:00
Ankit Agarwal 9ffd29ceb3 MDL-31548 enrollments: Introducing new api enrol_get_all_users_courses() that returns all user courses without any checks 2012-04-20 08:54:06 +08:00
AMOS bot 68fe261e4b Automatically generated installer lang files 2012-04-20 00:32:25 +00:00
Adrian Greeve 5dedd64d58 MDL-30478 - wiki - Fixing up group problems when viewing and creating wiki pages.
Thanks to Matt Kolb for his contribution.
2012-04-20 07:27:50 +08:00
Dan Marsden d5159fb8d3 MDL-29975 SCORM improve pop-up generation 2012-04-20 10:28:12 +12:00
Petr Skoda 9a251f1884 MDL-32477 tests for cloning of permissions 2012-04-19 22:09:32 +02:00
Petr Skoda a36e170f7c MDL-32477 allow cloning of plugin permissions from core
Please note it is discouraged to clone from different plugin type because the upgrade order is not guaranteed.
2012-04-19 22:09:32 +02:00
Henning Bostelmann 2159c1eaed MDL-32490 Offline assignment: do not display lateness information 2012-04-19 19:27:11 +01:00
sam marshall cf76b3353c MDL-32215 Course: Ensure section entries are unique on course, section 2012-04-19 15:16:56 +01:00
Dan Poltawski ead4f180a0 weekly release 2.3dev 2012-04-19 17:47:01 +08:00
Dan Poltawski d10a9ee4df Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-04-19 17:37:38 +08:00
Iñaki Arenaza 7cac2608ae MDL-16646 auth/cas CAS configuration page mis-spellings
Signed-off-by: Iñaki Arenaza <iarenaza@mondragon.edu>
2012-04-18 18:42:05 +02:00
Andrew Robert Nicols 2e83961018 MDL-32514 Remove onclick for the group delete button 2012-04-18 11:52:00 +01:00
Dan Poltawski f0ab3a05e3 Merge branch 'w16_MDL-32377_m23_strcache' of git://github.com/skodak/moodle 2012-04-18 18:30:03 +08:00
Tim Hunt 34b037dec6 MDL-32396 more quiz strict syntax problems. 2012-04-18 16:05:13 +08:00
Jerome Mouneyrac b449d3b7a2 MDL-30225 add some phpdoc mentioning to avoid to use broken get_user_capabilities ws lib function 2012-04-18 14:03:54 +08:00
Eloy Lafuente (stronk7) 099aaa8d51 Merge branch 'MDL-32061-master-2' of git://git.luns.net.uk/moodle 2012-04-18 02:31:47 +02:00
Eloy Lafuente (stronk7) 80695b2d51 MDL-32448 import YUI 3.5.0: update readme 2012-04-17 18:15:16 +02:00
Dan Poltawski a161888254 Merge branch 'MDL-30225' of git://github.com/mouneyrac/moodle 2012-04-17 18:53:32 +08:00
Jerome Mouneyrac fbf6cfe6fc MDL-30225 Creating new web service tokens create error 2012-04-17 18:08:55 +08:00
Dan Poltawski 285665550d MDL-26500 blog: Rewrite pluginfile urls in RSS 2012-04-17 17:47:11 +08:00
Dan Poltawski 20d1c739dd MDL-26500 mod/glossary: Rewrite pluginfile urls in RSS 2012-04-17 17:47:11 +08:00
Dan Poltawski af89cdd43b MDL-26500 mod/forum: Rewrite pluginfile urls in RSS 2012-04-17 17:47:11 +08:00
Dan Poltawski ec0a11285d MDL-19549 lang: make a string less scary 2012-04-17 17:14:25 +08:00
Dan Poltawski bb0bd8cb58 Merge branch 'MDL-25660-workshop-calendar' of git://github.com/mudrd8mz/moodle
Conflicts:
	mod/workshop/lang/en/workshop.php
	mod/workshop/version.php
    mod/workshop/db/upgrade.php
2012-04-17 16:31:41 +08:00
Dan Poltawski d3272039b2 MDL-28176 lang - rephrase conditional access description 2012-04-17 13:37:06 +08:00
Dan Poltawski f7b16c4220 MDL-32134 lang: Add missing PNG string 2012-04-17 10:58:39 +08:00
AMOS bot 68c6444c9a Automatically generated installer lang files 2012-04-17 00:31:44 +00:00
Eloy Lafuente (stronk7) 2a1f43a1db Merge branch 'w16_MDL-32448_m23_yui350' of git://github.com/skodak/moodle 2012-04-17 00:29:35 +02:00
Eloy Lafuente (stronk7) bf8086623d Merge branch 'MDL-32359' of git://github.com/timhunt/moodle 2012-04-17 00:16:28 +02:00
Petr Skoda d7b44d5e95 MDL-32377 do not rewrite on-disk string cache when double checking if string really does not exist in get_string()
This should help with performance on production sites and may indirectly resolve race condition problems in MDL-31904.
2012-04-16 23:58:50 +02:00
Petr Skoda ea7d4b0972 MDL-32377 do not store incomplete component strings without local packs in on-disk string cache 2012-04-16 23:55:35 +02:00
Dan Poltawski 74c7692265 Merge branch 'w16_MDL-32437_m23_tablename' of git://github.com/skodak/moodle 2012-04-16 20:50:21 +08:00
Andrew Robert Nicols 38a8779d81 MDL-32061 Use old lesson_answer ID and correct when restoring lesson attempts 2012-04-16 13:39:43 +01:00
Andrew Robert Nicols b1d45bbbac MDL-32459 Adjust order of remote enrolment help text to suit form order 2012-04-16 11:50:16 +01:00
Petr Skoda 36902e062e MDL-32448 import YUI 3.5.0 2012-04-16 11:59:43 +02:00
Andrew Robert Nicols 8219502369 MDL-32454 Fix issues highlighted by strict warnings in MNet code 2012-04-16 09:34:41 +01:00
Dan Poltawski 54e4d1b3a1 Merge branch 'w16_MDL-32400_m23_phpunit4' of git://github.com/skodak/moodle 2012-04-16 16:12:35 +08:00
Andrew Robert Nicols f50633a5c7 MDL-30187 Make mahara network logo transparent
With thanks to Roshan Kumar for supplying this fix
2012-04-16 09:10:47 +01:00
Dan Poltawski aa4ebbe5f7 Merge branch 'MDL-32358' of https://github.com/ppichet/moodle 2012-04-16 14:31:07 +08:00
Dan Poltawski db27798502 Merge branch 'MDL-31694' of git://github.com/mouneyrac/moodle 2012-04-16 14:27:18 +08:00
Dan Poltawski ef4965afe4 Merge branch 'MDL-32396' of git://github.com/timhunt/moodle 2012-04-16 13:55:25 +08:00
Dan Poltawski 71504afc99 Merge branch 'w16_MDL-32392_m23_minversion' of git://github.com/skodak/moodle 2012-04-16 13:52:50 +08:00
Dan Poltawski 5599620feb Merge branch 'MDL-32438-master' of git://github.com/micaherne/moodle 2012-04-16 13:46:03 +08:00
Dan Poltawski 04b16edb6d Merge branch 'w16_MDL-32434_m23_droptemp' of git://github.com/skodak/moodle 2012-04-16 13:40:32 +08:00
Sam Hemelryk 6669669fdb Merge branch 'MDL-29174-master' of git://github.com/raymanuk/moodle 2012-04-16 17:37:06 +12:00
Dan Poltawski 2e70e457bd Merge branch 'w16_MDL-32423_m23_flowplayer' of git://github.com/skodak/moodle 2012-04-16 13:32:40 +08:00
Sam Hemelryk a02e2eafa4 Merge branch 'w16_MDL-32405_m23_estrict4' of git://github.com/skodak/moodle 2012-04-16 17:31:45 +12:00
Dan Poltawski 788c5164aa Merge branch 'wip-MDL-32393-m23' of git://github.com/samhemelryk/moodle 2012-04-16 13:29:04 +08:00
Sam Hemelryk 9f31cf9f33 Merge branch 'w16_MDL-32447_m23_tcpdf' of git://github.com/skodak/moodle 2012-04-16 17:25:27 +12:00
Dan Poltawski a096a21ef3 MDL-32443 queupgradehelper cli: fix path & whitespace 2012-04-16 13:22:53 +08:00
Eric Merrill 8767142576 MDL-32443 qeupgradehelper: Add cli tool to execute qeupgrade helper 2012-04-16 13:16:17 +08:00
Sam Hemelryk 0064f3cfbb MDL-32393 navigation: Fixed up issue when rendering action_link instances for the navigation 2012-04-16 17:12:48 +12:00
Sam Hemelryk fa3671d49f Merge branch 'MDL-32385_master' of git://github.com/lazydaisy/moodle 2012-04-16 17:06:15 +12:00
Dan Poltawski 31aec26c18 Merge branch 'MDL-32404' of git://github.com/timhunt/moodle 2012-04-16 13:01:48 +08:00
Sam Hemelryk 52bb02020d Merge branch 'MDL-32444_master' of git://github.com/lazydaisy/moodle 2012-04-16 15:59:55 +12:00
Sam Hemelryk d4e2d9463e MDL-32353 fixed up very minor whitespace 2012-04-16 15:23:05 +12:00
Sam Hemelryk cb4b46f45c Merge branch 'MDL-32353' of git://github.com/merrill-oakland/moodle 2012-04-16 15:14:45 +12:00
Sam Hemelryk e3d34313ab Merge branch 'MDL-26099-workshop-phase-switch' of git://github.com/mudrd8mz/moodle 2012-04-16 15:00:20 +12:00
Dan Poltawski 20dcbbf26a Merge branch 'MDL-32442' of git://github.com/merrill-oakland/moodle 2012-04-16 10:45:02 +08:00
Dan Poltawski 570d76c456 Merge branch 'wip-MDL-32381-master' of git://github.com/marinaglancy/moodle 2012-04-16 10:35:56 +08:00
Dan Poltawski 85b0540605 Merge branch 'wip-MDL-32395-m23' of git://github.com/samhemelryk/moodle 2012-04-16 10:32:09 +08:00
ppichet c9340ac145 MDL-32358 : numerical question: validation messages errors
The selected unit parameter is added answer paramter when renderer call
 $question->get_validation_error() so that it mimics the
is_complete_response(array $response) structure.
2012-04-15 22:11:10 -04:00
Sam Hemelryk 448cebee57 Merge branch 'master_MDL-32388' of git://github.com/danmarsden/moodle 2012-04-16 12:23:23 +12:00
Kordan 8b83e36e60 MDL-32355 theme_formal_white: changed the order of parent themes 2012-04-16 12:06:13 +12:00
Kordan 71e5d66642 MDL-32355 formal_white: improved reliability e maintainability 2012-04-16 12:04:56 +12:00
Sam Hemelryk d8b09e5eb2 Merge branch 'MDL-32356_master' of git://github.com/kordan/moodle 2012-04-16 12:00:55 +12:00
Sam Hemelryk 885d208283 Merge branch 'MDL-32433_master' of git://github.com/kordan/moodle 2012-04-16 11:58:17 +12:00
Sam Hemelryk 2a535174c0 MDL-32426 phpunit: Fixed up phpdocs for generator changes 2012-04-16 11:52:56 +12:00
Sam Hemelryk e3a660a2e7 Merge branch 'MDL-32426-master-1' of git://git.luns.net.uk/moodle 2012-04-16 11:52:12 +12:00
Sam Hemelryk f295ffebd0 Merge branch 'MDL-30819_grader_col_highlight' of git://github.com/andyjdavis/moodle 2012-04-16 11:45:55 +12:00
Sam Hemelryk be58371e4e Merge branch 'MDL-30955_forum_ratings' of git://github.com/andyjdavis/moodle 2012-04-16 11:34:39 +12:00
Mary Evans cbeb231f05 MDL-23647 theme_anomaly: Removed margin + added padding to current week main content to give it more definition. 2012-04-16 00:27:32 +01:00
Sam Hemelryk b9afb90b7f Merge branch 'MDL-32316_master_wip' of git://github.com/grabs/moodle 2012-04-16 11:00:43 +12:00
Sam Hemelryk 68c7673088 Merge branch 'MDL-27547' of git://github.com/mouneyrac/moodle 2012-04-16 10:48:15 +12:00
Petr Skoda 54c5b1ad35 MDL32392 delete unused is_min_version() in some DB drivers 2012-04-15 19:40:07 +02:00
Petr Skoda c990e4bfcb MDL-32405 fix PHP4isms and other E_STRICT issues in custom profile fields 2012-04-15 17:15:50 +02:00
Petr Skoda 66b3302dec MDL-32405 workaround for non-static PEAR::raise_error() and fixed -1 debug support 2012-04-15 17:02:26 +02:00
Petr Skoda 585ae3d949 MDL-32447 import latest tcpdf and point cache to tcpdf subdirectory of moodle cache dir 2012-04-15 16:08:46 +02:00
Petr Skoda afd1c47c10 MDL32423 import latest flowplayer 2012-04-15 15:59:07 +02:00
Petr Skoda 7467f4c911 MDL-32437 add gradebook querylib tests 2012-04-15 14:23:07 +02:00
Petr Skoda f41741e7ba MDL-32437 fix invalid gradebook query sql 2012-04-15 14:20:14 +02:00
Petr Skoda 6b04fdc0b6 MDL-32400 improve module generators
Module generators are using standard *_add_instance() methods which helps with testing, it also updates grades and calendar events if used.
2012-04-15 14:16:59 +02:00
Petr Skoda 322cf28415 MDL-32400 fix PHPUnit configuration file paths on windows 2012-04-15 12:23:42 +02:00
Petr Skoda 0684ea9972 MDL-32400 do not silence diagnostic PHPUnit includes 2012-04-15 12:23:42 +02:00
Petr Skoda 0d8e51a65f MDL-32400 rework phpunit exit codes, use only php based init 2012-04-15 12:23:42 +02:00
Petr Skoda 589376d385 MDL-32400 ignore outdated config settings in future upgrades 2012-04-15 12:23:41 +02:00
Petr Skoda e2b8630b5c MDL-32400 store version hash also in database
This prevents problems when switching databases in config.php and keeping the same test dataroot.
2012-04-15 12:23:41 +02:00
Petr Skoda 4059b64510 MDL-32400 convert completion tests 2012-04-15 12:23:41 +02:00
Petr Skoda a66b2ae4f4 MDL-32434 deprecate drop_temp_table() in favour of drop_table() 2012-04-15 12:23:15 +02:00
Mary Evans 3689a8599b MDL-32444 theme_afterburner: adds 5px margin to the left of #loginbtn, input, button, select in /style/afterburner_styles.css 2012-04-15 01:37:55 +01:00
Tim Hunt b8a70832be MDL-32404 question export: missing error message when exporting an empty category. 2012-04-14 15:58:54 +01:00
Tim Hunt c691f2f513 MDL-32396 quiz: Strict syntax notice on the quiz attempt page. 2012-04-14 15:58:47 +01:00
Tim Hunt f9e41d206d MDL-32359 Forum usability: reduce accidental clicks on mark thread read
I hope this little CSS change does not break anybody's theme. I is a big
usability win, at least as far as I am concerned.
2012-04-14 15:58:39 +01:00
Mary Evans 0465dd3e01 MDL-32385 theme_base: adds line-height:normal in style/course.css for section summary 2012-04-14 14:40:09 +01:00
Eric Merrill 288893f3a7 MDL-32442 questionupgrade: error in SQL from postgres systems 2012-04-14 09:05:12 -04:00
AMOS bot 32b2d5e7dc Automatically generated installer lang files 2012-04-14 00:31:53 +00:00
Petr Skoda 9b3323b8be MDL-32434 allow database_manager->drop_table() for temporary tables 2012-04-13 16:58:17 +02:00
Michael Aherne b09912f8ab MDL-32438 choice: fix fatal error on making choice 2012-04-13 15:16:12 +01:00
David Mudrak 2fc04a4b9b MDL-26099 fixing the strict standards warning
The signature of mod_workshop_mod_form::validation() is now compatible
with that of moodleform_mod::validation() even though the parent's
declaration sucks. No one can choose their parents.
2012-04-13 14:04:43 +02:00
kordan 275526d27a MDL-32433_master theme_formal_white: increased the line spacing in plugin list page 2012-04-13 13:24:05 +02:00
David Mudrak 33d0cb3ce1 MDL-25660 workshop removes its calendar events on instance deletion 2012-04-13 13:10:04 +02:00
David Mudrak cb48a42ada MDL-25660 recreate all workshop calendar events
Due to complex workshop upgrade path from 1.9 and missing calendar events
support in 2.x, the only safe way to get rid of potentially invalid
calendar events (such as those reported in MDL-26687) is to remove all
current workshop events and recreate them from scratch.
2012-04-13 04:58:10 +02:00
David Mudrak ac069aeb9d MDL-25660 workshop registers events in the calendar 2012-04-13 04:52:40 +02:00
David Mudrak 9260bb3c48 MDL-26099 workshop can be switched into the assessment phase automatically 2012-04-13 04:49:46 +02:00
David Mudrak 3fe6d62289 MDL-26099 workshop planner tool displays info about the automatic phase switching 2012-04-13 04:49:46 +02:00
David Mudrak 40ff3ce33c MDL-26099 New i/scheduled icon
Based on http://commons.wikimedia.org/wiki/File:Appointment-new.svg
(public domain Tango! Desktop Project icon)
2012-04-13 04:49:46 +02:00
David Mudrak 3ff0805726 MDL-26099 new workshop DB field phaseswitchassessment
Note that most line changes in the patch are caused by the recent
changes in the XMLDB TEXT fields handling (no size specified now) and by
the change in the indentation.
2012-04-13 04:49:46 +02:00
David Mudrak df558765a4 MDL-26099 validate the phases open dates and deadlines 2012-04-13 04:49:46 +02:00
David Mudrak a80b772864 MDL-32235 scheduled allocation settings form displays the execution status
AMOS BEGIN
 CPY [allocationsettings,workshopallocation_random],[randomallocationsettings,workshopallocation_scheduled]
AMOS END
2012-04-13 04:49:46 +02:00
David Mudrak 2a3aac40e4 MDL-32235 execute scheduled allocation by cron 2012-04-13 04:49:46 +02:00
David Mudrak 782a35e225 MDL-32235 fixing DB schema
Removing the table "scheduled" created by the XMLDB by default (it's a
bug in XMLDB, I'm just too lazy now to fix it). Adding new fields to
hold the result of the most recent execution.
2012-04-13 04:49:46 +02:00
David Mudrak f6bc60cbe4 MDL-32235 workshop cron support
On every invocation, the workshop will give its subplugins a chance to
to something useful. For now, we know that the scheduled allocator will
use it, no need to load other plugin types yet (until there will be a
real reason for it).
2012-04-13 04:49:46 +02:00
David Mudrak 9f8f380832 MDL-32235 the allocation settings form can be saved and edited 2012-04-13 04:49:46 +02:00
David Mudrak 9862128087 MDL-32235 introducing new workshop scheduled allocation plugin
The idea is to build a plugin that will internally call the random
allocator when the submissions deadline is reached. The teacher is able
to pre-define the configuration for the random allocator.
2012-04-13 04:49:45 +02:00
David Mudrak b7cd6736e8 MDL-32235 workshop random allocator now uses the new workshop_allocation_result class 2012-04-13 04:49:45 +02:00
David Mudrak 8a62500fd5 MDL-32235 workshop manual allocator now uses the new workshop_allocation_result class 2012-04-13 04:49:45 +02:00
David Mudrak 31cea236af MDL-32235 improving the allocation results rendering
The new renderable class workshop_allocation_result provides a cleaner
interface between the allocator's init() method and the allocation.php
script.
2012-04-13 04:49:45 +02:00
David Mudrak 0ee608e99d MDL-32235 preparing the random allocator's API
The random allocator's init() method was split into two logical
parts. The init() now handles data from the form and executes the new
execute() method to do the actual job. The execute() method will be
called by the future scheduled allocator, too.
2012-04-13 04:49:45 +02:00
Eric Merrill eba9236cea MDL-32353 backup: Flaw in settings logic for user info and anonymise 2012-04-12 11:01:08 -04:00
Kordan c9aeac6299 MDL-32356_master theme_formal_white: swapped style and color in css border style 2012-04-12 16:40:37 +02:00
Andrew Robert Nicols f15d451549 MDL-32426 Add unit test generators for groups and groupings 2012-04-12 15:32:19 +01:00
Marina Glancy 061eeed5df MDL-32381: Fixed Accessing non-static methods in repository class as static (causing php notices) 2012-04-12 15:05:20 +08:00
Jerome Mouneyrac 803ed74166 MDL-31694 Fix XSS security issue with service name accepting javascript 2012-04-12 14:44:16 +08:00
Dan Poltawski 668a499d89 weekly release 2.3dev 2012-04-12 13:29:01 +08:00
Dan Poltawski 86be24f5a6 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-04-12 12:59:33 +08:00
AMOS bot 5e937e8da1 Automatically generated installer lang files 2012-04-12 00:31:23 +00:00
Eloy Lafuente (stronk7) 7823af0994 MDL-32323 tests: check both deletion with truncate and with delete 2012-04-12 00:13:38 +02:00
Petr Skoda 5a798e7eac MDL-32323 improve SQL Server test reset performance 2012-04-11 23:21:05 +02:00
Petr Skoda bd42a2657e MDL-32323 do try to fetch all other grade objects with existing test fields 2012-04-11 22:56:27 +02:00
Petr Skoda 15db9f7d66 MDL-32323 do try to fetch grades with existing test fields 2012-04-11 22:41:37 +02:00
Petr Skoda 8eaa21e195 MDL-32323 fix issues breaking phpunit tests for sqlsrv driver 2012-04-11 22:14:18 +02:00
Kordan e78356a095 MDL-32356_master theme_formal_white: fixed a typo in a comment 2012-04-11 13:56:59 +02:00
Dan Marsden b952d27517 MDL-32388 SCORM: Fix chrome pop-ups 2012-04-11 20:46:53 +12:00
Jerome Mouneyrac bc81eadb19 MDL-27547 When deleting a local plugin containing a built-in service, the built-in service is not deleted 2012-04-11 14:49:14 +08:00
Sam Hemelryk 3211569a6a Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag"
This reverts commit f9f281b8fe.
2012-04-11 17:18:58 +12:00
Dan Poltawski 7a1ed64587 Merge branch 'w15_MDL-32323_m23_phpunit3' of git://github.com/skodak/moodle 2012-04-11 09:32:58 +08:00
Dan Poltawski 4a59665b9f Merge branch 'MDL-32217' of git://github.com/ppichet/moodle 2012-04-11 09:27:29 +08:00
Eloy Lafuente (stronk7) 6565d55a34 MDL-22895 backup: minor fixes 2012-04-11 01:47:53 +02:00
Eloy Lafuente (stronk7) f229d83c11 Merge branch 'MDL-22895-master' of git://github.com/ankitagarwal/moodle 2012-04-11 01:44:39 +02:00
Sam Hemelryk 9315a5fb59 MDL-32395 dml: Minor phpdoc fixes 2012-04-11 09:47:50 +12:00
Sam Hemelryk e19dc11e51 MDL-30843 editor: Fixed up out of place if 2012-04-11 09:22:14 +12:00
Eloy Lafuente (stronk7) 97d00c9f51 MDL-32368 pgsql: bytea_output only available in 9.0 and upwards 2012-04-10 21:32:56 +02:00
Eloy Lafuente (stronk7) 7b74fb7071 MDL-32392 cleanup: adding @todo about unused is_min_version() method 2012-04-10 21:26:00 +02:00
Petr Skoda 4e5ff72ea7 MDL-32323 always verify that database PHPUnit extension is available 2012-04-10 21:15:33 +02:00
Petr Skoda c691274bf9 MDL-32323 use new loadDataSet in mod_data and fix typos in last commit 2012-04-10 21:07:56 +02:00
Eloy Lafuente (stronk7) 7475638c2a Merge branch 'w15_MDL-32368_m23_bytea' of git://github.com/skodak/moodle 2012-04-10 20:59:34 +02:00
Petr Skoda e396e8ed5f MDL-32323 implement data set loader support in advanced_testcase 2012-04-10 20:58:27 +02:00
Eloy Lafuente (stronk7) 7f3f024d48 MDL-32365 mssql and sqlsrv: introspect metainfo to look for identities 2012-04-10 20:24:05 +02:00
Eloy Lafuente (stronk7) 55edb9416b MDL-32365 oracle: ensure table has 'before each row' trigger to
determine if the 'id' column is sequence based or no
2012-04-10 19:49:34 +02:00
Petr Skoda d2999716aa MDL-32323 all our base test case classes should be abstract 2012-04-10 19:03:24 +02:00
Eloy Lafuente (stronk7) b331269687 Merge branch 'w15_MDL-32365_m23_id' of git://github.com/skodak/moodle 2012-04-10 18:55:33 +02:00
Petr Skoda a4d53e4b26 MDL-32323 make base test case classes abstract to prevent empty testcase warnings, fix property access 2012-04-10 18:51:34 +02:00
Petr Skoda 351f4bc248 MDL-32323 allow specification of test class in webrunner and add some explanation of parameters 2012-04-10 15:27:15 +02:00
Petr Skoda d5d096d0db MDL-32323 add php version of all-in-one phpunit init script 2012-04-10 15:27:14 +02:00
Petr Skoda 39e2e9c41f MDL-32323 prevent modification of our heavily modified runBare() methods
This should help with compatibility of future PHPUnit and it also allows us to improve test reset without breaking existing moodle test cases.
2012-04-10 15:27:14 +02:00
Petr Skoda 920f4efe51 MDL-32323 improve inline docs 2012-04-10 15:27:14 +02:00
Petr Skoda 9571db04d8 MDL_32323 improve test readme 2012-04-10 15:27:14 +02:00
Petr Skoda 95dcf96559 MDL-32323 allow mocking of global $DB 2012-04-10 15:27:13 +02:00
Petr Skoda ce9f3beb53 MDL-32323 automate transaction handling in test reset 2012-04-10 15:27:13 +02:00
Petr Skoda 3124abe213 MDL-32323 simplify phpunit integration readme 2012-04-10 15:27:13 +02:00
Petr Skoda 5b8d5c19fd MDL-32323 convert mod_data search test 2012-04-10 15:27:13 +02:00
Petr Skoda 713d20918f MDL-32323 reset state after failed test 2012-04-10 15:27:12 +02:00
Petr Skoda 9bb2b515ce MDL-32323 fix generator file name typos 2012-04-10 15:27:12 +02:00
Petr Skoda 603bd00112 MDL-32323 convert question tests
1/ type/match/tests/walkthrough_test.php - tests are failing randomly, looks like some weird randomisation is going on there - see TODOs

2/ type/multianswer/tests/upgradelibnewqe_test.php contains invalid expected value - see TODO
2012-04-10 15:27:11 +02:00
Petr Skoda 4594a381e5 MDL-32323 add list of common first and last names + long text
Random users now get proper first and last names, course and category descriptions contains longer text. The names can be also used as source of random complex utf-8 strings.
2012-04-10 15:27:11 +02:00
Petr Skoda b5b10866e2 MDL-32323 require at least PHPUnit 3.6.0 2012-04-10 15:27:11 +02:00
Petr Skoda cbdf52baa5 MDL-32323 add basic mod_data data generator 2012-04-10 15:27:10 +02:00
Petr Skoda c06563c845 MDL-32323 do not pollution config-dist.php with settings that only DML driver devs use 2012-04-10 15:27:10 +02:00
Petr Skoda 7620602cc2 MDL-32323 improve transaction handling in PHPUnit test cases 2012-04-10 15:27:10 +02:00
Petr Skoda 948d46da34 MDL-32323 add grade tests 2012-04-10 15:27:10 +02:00
Petr Skoda b0429d0073 MDL-32323 add basic mod_assignment data generator 2012-04-10 15:27:09 +02:00
Petr Skoda f8965a3d30 MDL-32323 add basic mod_forum data generator 2012-04-10 15:27:09 +02:00
Petr Skoda de3d1590ee MDL-32323 fix PHPUnit diag regression 2012-04-10 15:27:09 +02:00
Petr Skoda b6b8a19316 MDL-32323 improve PHPUnit related diagnotic messages 2012-04-10 15:27:08 +02:00
Petr Skoda e10736b3cc MDL-32323 improve mysql test reset performance 2012-04-10 15:27:08 +02:00
Petr Skoda 27f27eb4f4 MDL-32323 add windows test database init script 2012-04-10 15:27:08 +02:00
Petr Skoda e370154157 MDL-32323 make test locking win compatible 2012-04-10 15:27:08 +02:00
Petr Skoda 3f1e87973f MDL-32323 always create test dirs using standard functions and close handles before delete 2012-04-10 15:27:07 +02:00
Petr Skoda bd4d412a10 MDL-32323 do not write to system /tmp/ in tests 2012-04-10 15:27:07 +02:00
Petr Skoda 31fb8724f6 MDL-32323 undo path mangling, we have to trust admins 2012-04-10 15:27:07 +02:00
Petr Skoda 6c583c75f9 MDL-32323 do lot try to acquire lock before dataroot init 2012-04-10 15:27:07 +02:00
Petr Skoda 4787e466d6 MDL-32323 make sure DDL libs are loaded before starting function db tests 2012-04-10 15:27:06 +02:00
Petr Skoda 2fde539255 MDL-32323 fix PHPUNIT_UTIL constant usage 2012-04-10 15:27:06 +02:00
Petr Skoda 94a994b4fc MDL-32323 fix installer warning 2012-04-10 15:27:06 +02:00
Petr Skoda 812013b1c1 MDL-32323 reset event handlers in phpunit test reset 2012-04-10 15:27:06 +02:00
Petr Skoda a0c5affee6 MDL-32323 test detection of changes and improve coding style 2012-04-10 15:27:05 +02:00
Petr Skoda ab483c0a07 MDL-32323 use auto_increment instead of primary_key for sequence detection and improve coding style 2012-04-10 15:27:05 +02:00
Petr Skoda 219d1a4e72 MDL-32323 improve self-diagnostic messages 2012-04-10 15:27:05 +02:00
Petr Skoda 8b5413ccf2 MDL-32323 rework db reset once more, now with tests 2012-04-10 15:27:05 +02:00
Petr Skoda 50be93d1d7 MDL-32323 add fast transaction based database reset for PostgreSQL 2012-04-10 15:27:04 +02:00
Petr Skoda fe11e694d1 MDL-32323 test database first, if DML/DDL fails everything else will too 2012-04-10 15:27:04 +02:00
Petr Skoda 714f3998a8 MDL-32323 rework buggy database reset optimisation and fix blog tests 2012-04-10 15:27:04 +02:00
Petr Skoda 0b9251e330 MDL-32323 cache structure of all tables and reset sequences only in table where id is primary key 2012-04-10 15:27:04 +02:00
Petr Skoda fe35ccafe3 MDL-32323 fix recently borked detection of DB changes and improve coding style 2012-04-10 15:27:03 +02:00
Petr Skoda 61d3013c8b MDL-32323 fix concurrent run collision caused by setup reset 2012-04-10 15:27:03 +02:00
Petr Skoda 4be2ad3660 MDL-32323 prevent concurrent execution of unit tests 2012-04-10 15:27:03 +02:00
Petr Skoda 3604563c79 MDL-32323 allow execution of tests through util.php and add option to include alternative phpunit files (for testing only!) 2012-04-10 15:27:02 +02:00
Petr Skoda 5987e6932c MDL-32323 more magic to allow init.sh symlinks
from http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
2012-04-10 15:27:02 +02:00
Petr Skoda 3c4c51891c MDL-32323 improve phpunit data generators 2012-04-10 15:27:02 +02:00
Petr Skoda 93c4ee56c7 MDL-32323 fix skipped config rebuild in init script 2012-04-10 15:27:02 +02:00
Petr Skoda 6e2cff2d81 MDL-32323 minor phpunit related improvements and cleanup 2012-04-10 15:27:01 +02:00
Petr Skoda 7b0ff21385 MDL-32323 experimental web UI for execution of PHPUnit tests
It is not localised intentionally because only developers should use it…
2012-04-10 15:27:01 +02:00
Petr Skoda 4b17369567 MDL-32323 all-in-one PHPUnit init script 2012-04-10 15:27:01 +02:00
Petr Skoda 6aaae357c9 MDL-32323 add schema for phpunit.xml configuration file
Credit goes to https://github.com/gooh/phpunit-schema, thanks Gordon Oheim!
2012-04-10 15:27:01 +02:00
Petr Skoda d2b357b923 MDL-32368 fix pg to always use old bytea encoding 2012-04-10 15:25:20 +02:00
Petr Skoda 4bf855771f MDL-32365 fix hardcoded auto-increment on id columns 2012-04-10 15:22:16 +02:00
Petr Skoda 3b4f7338a7 MDL-32365 fix invalid checking for returned id when custom sequence used 2012-04-10 15:22:15 +02:00
Dan Poltawski 3d83a9f504 Merge branch 'MDL-32300' of git://github.com/timhunt/moodle 2012-04-10 17:42:28 +08:00
Sam Hemelryk 9e98c4053a MDL-32124 mod_feedback: Cleanup post-integration of unused var 2012-04-10 17:21:37 +12:00
Sam Hemelryk 9f8662a528 Merge branch 'MDL-32124_master_wip' of git://github.com/grabs/moodle 2012-04-10 17:21:00 +12:00
Andrew Davis 08f06b1c24 MDL-30955 rating: corrected /rating/index.php as it was determining the maximum rating incorrectly for custom scales 2012-04-10 12:01:52 +07:00
Tony Levi 22dc32042a MDL-32379: Fix memory leak in session_set_user
session_set_user mistakingly sets the session user to be a reference to the passed object.

This is a problem when alot of data is attached to the session user object,
as any process holding a list of these users will use more memory each time it changes user.
2012-04-10 14:07:59 +09:30
Dan Poltawski a98ff41f1a Merge branch 'wip-MDL-27427-master' of git://github.com/phalacee/moodle 2012-04-10 12:04:06 +08:00
Dan Poltawski f4bd3cd6c9 Merge branch 'MDL-32347' of git://github.com/timhunt/moodle 2012-04-10 11:34:12 +08:00
Dan Poltawski 44d70cc753 MDL-32299 quiz mod_form: fix help string typo 2012-04-10 11:29:57 +08:00
Dan Poltawski 26932315f1 Merge branch 'MDL-32299' of git://github.com/timhunt/moodle 2012-04-10 11:25:09 +08:00
Dan Poltawski 098312b149 Merge branch 'wip-mdl-30051' of git://github.com/rajeshtaneja/moodle 2012-04-10 11:05:59 +08:00
Dan Poltawski 2d74d8a612 Merge branch 'MDL-32318' of git://github.com/timhunt/moodle 2012-04-10 10:26:49 +08:00
Tim Hunt 59ea81767e MDL-32300 quiz reports: proper frankenstyle prefixes on class names. 2012-04-10 10:04:55 +08:00
Dan Poltawski 4c8ec44828 Merge branch 'MDL-25801' of git://github.com/timhunt/moodle 2012-04-10 09:11:38 +08:00
Sam Hemelryk 0ccb4dcce0 Merge branch 'MDL-32349-master' of git://github.com/sammarshallou/moodle 2012-04-10 12:38:40 +12:00
Sam Hemelryk 50f7bbf95c MDL-30843 admin: Fixed up label for attribute 2012-04-10 12:35:26 +12:00
Sam Hemelryk 5bfeb5ffd3 Merge branch 'MDL-30843_b' of git://github.com/rwijaya/moodle 2012-04-10 12:34:37 +12:00
Sam Hemelryk 859a181627 Merge branch 'wip-mdl-32270' of git://github.com/rajeshtaneja/moodle 2012-04-10 10:53:34 +12:00
Sam Hemelryk aef4aafa0b Merge branch 'w15_MDL-32263_m23_enroladmin' of git://github.com/skodak/moodle 2012-04-10 10:48:34 +12:00
Sam Hemelryk 93068559b7 Merge branch 'w15_MDL-32293_m23_timeout' of git://github.com/skodak/moodle 2012-04-10 10:43:08 +12:00
Sam Hemelryk 756d5f7610 Merge branch 'w15_MDL-32308_m23_sharing' of git://github.com/skodak/moodle 2012-04-10 10:37:45 +12:00
Andreas Grabs bf4fb3b317 MDL-32316 feedback: fix tem type label does honor trusted text 2012-04-10 00:26:08 +02:00
Petr Skoda bcb368d988 MDL-32263 remove broken admin test in enrol_check_plugins() 2012-04-09 19:59:19 +02:00
Hugh Davenport 5b244e2bb0 MDL-32308 Fix error when testing id of guest user 2012-04-09 19:03:45 +02:00
Petr Skoda 0c5406ca93 MDL-32293 move the upgrade_set_timeout() function to lib/upgradelib.php
Credit goes to Eloy Lafuente.
2012-04-09 18:14:27 +02:00
Andrew Davis 13aa8f0e09 MDL-30819 grade: fixed column highlighting on the grader report 2012-04-09 12:28:00 +07:00
Andreas Grabs 31ff56202a MDL-32124 - mails to non respondents are sent as plain text with html-tags 2012-04-07 17:29:52 +02:00
ppichet 57239949ac MDL-32217 Setting options->unitgradingtype 2012-04-06 11:02:13 -04:00
Kordan f0a8c9192b MDL-32356 theme_formal_white: added blockpadding setting 2012-04-06 10:05:59 +02:00
sam marshall ebb98bf53c MDL-32349 Installing can time out with large number of plugins 2012-04-05 18:29:00 +01:00
Tim Hunt a031b0f334 MDL-32347 questions: API improvement for the benefit of strict syntax. 2012-04-05 17:26:44 +01:00
Tim Hunt b9832f2b87 MDL-32318 question preview: fix php stric syntax error
Also, cheating, and committing a whitespace fix in the same commit.

Conflicts:

	question/engine/questionusage.php
2012-04-05 16:42:23 +01:00
Tim Hunt ce74dcc3b6 MDL-32299 quiz mod_form: help icons for the review options 2012-04-05 16:25:32 +01:00
Tim Hunt 7e3ac96cbe MDL-32300 quiz manual grading report: also do some other cleanup. 2012-04-05 15:33:09 +01:00
Tim Hunt d42b8ac2f3 MDL-32300 quiz reports: proper frankenstyle prefixes on class names. 2012-04-05 15:33:07 +01:00
Tim Hunt 5127e52df7 MDL-25801 quiz editing: fix inconsistent grade-related terminology
AMOS BEGIN
 MOV [totalpointsx,mod_quiz],[totalmarksx,mod_quiz]
AMOS END
2012-04-05 15:29:57 +01:00
Eric Merrill f930cf6b41 MDL-32143 output lib: Add ability have override core icons in dataroot
Searches dataroot/pix/ and dataroot/pix_plugins/type/plugin for icons
to override base install
2012-04-05 08:50:16 -04:00
Aparup Banerjee 9ad535c550 weekly release 2.3dev 2012-04-05 16:39:52 +08:00
Aparup Banerjee 5ea892f8c9 fix permissions 2012-04-05 16:36:10 +08:00
Aparup Banerjee 69b101f811 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-04-05 16:19:27 +08:00
Dan Poltawski 8411c24ec1 MDL-20438 pluginlib: Don't run update checker on install
This is unlikely to be the long term solution and so MDL-32329 has been
created to address that
2012-04-04 21:02:07 +08:00
Dan Poltawski 86cfd9966a MDL-32220 question import: readquestions arguments change
Removed the context parameter for blackboard and blackboard_six formats.

This parameter was removed in 4d188926
2012-04-04 14:46:54 +08:00
Aparup Banerjee 5661f7b454 Merge branch 'wip-MDL-31631-m23' of git://github.com/samhemelryk/moodle 2012-04-04 13:40:58 +08:00
Dan Poltawski da859ecf46 MDL-20438 Upgrade version number to triger /admin/ upgrade 2012-04-04 11:18:43 +08:00
Dan Poltawski 660c4d4643 MDL-20438 pluginlib: Fix trivial whitespace issues issues
Also fixed a comment typo I spotted whilst reviewing
2012-04-04 11:18:09 +08:00
Dan Poltawski a973d320f1 Merge branch 'MDL-20438-update-notification' of git://github.com/mudrd8mz/moodle 2012-04-04 11:17:43 +08:00
Sam Hemelryk b8f452165a MDL-32009 reverting changes as they break installation 2012-04-04 14:37:37 +12:00
Sam Hemelryk e96b10b121 MDL-32009 message: Small changes before integration 2012-04-04 14:20:07 +12:00
Sam Hemelryk f1b06f6d54 Merge branch 'MDL-32009-master-1' of git://git.luns.net.uk/moodle 2012-04-04 14:19:32 +12:00
Eloy Lafuente (stronk7) 97e84c80b0 MDL-32149 remove some now breaking expectError() uses.
I've tested that unit with debug developer, debug notices and
debug none and it passes always. So, as far as I cannot find
any reason to have those expectError() there... they are out now.
2012-04-04 03:44:10 +02:00
Eloy Lafuente (stronk7) a3e7cca432 MDL-32149 Delete two more portfolio leftovers preventing simpletests to run
(b60d21747f is where
all the portfolio testing stuff was deleted)
2012-04-04 03:22:05 +02:00
Eloy Lafuente (stronk7) 2000cd85da Merge branch 'w14_MDL-32149_m23_phpunit2' of git://github.com/skodak/moodle 2012-04-04 01:32:15 +02:00
Petr Skoda d78e33488a MDL-32149 adding test changes from MDL-32081 2012-04-04 01:31:43 +02:00
Eloy Lafuente (stronk7) 959a709ebe Merge branch 'MDL-32240' of git://github.com/timhunt/moodle 2012-04-04 00:10:37 +02:00
Eloy Lafuente (stronk7) eeb3295fd8 Merge branch 'wip-MDL-32265-m23' of git://github.com/samhemelryk/moodle 2012-04-03 23:59:07 +02:00
Eloy Lafuente (stronk7) 6643e10f39 Merge branch 'wip-MDL-29678-m23' of git://github.com/samhemelryk/moodle 2012-04-03 23:52:10 +02:00
Petr Skoda 6761e62d6d MDL-32149 link wiki docs and tracker from phpunit readme file 2012-04-03 23:08:25 +02:00
Petr Skoda ce80640051 MDL-32149 final readme cleanup for stage 2 of PHPUnit integration 2012-04-03 22:50:45 +02:00
Petr Skoda 5073880583 MDL-32149 grade related tests 2012-04-03 22:31:03 +02:00
Petr Skoda 0348088621 MDL-32149 tests for conditional activities 2012-04-03 22:31:03 +02:00
Petr Skoda b60d21747f MDL-32149 remove empty tests and outdated/disabled portfolio tests 2012-04-03 22:31:02 +02:00
Petr Skoda 7fe8aac1a7 MDL-32149 add quiz unit tests 2012-04-03 22:31:02 +02:00
Petr Skoda e72ea4a5e4 MDL-32149 add basic file picker test and new way to set current user via int
Please note that testing of individual plugins should not be done in repositorylib_test.php.
2012-04-03 22:31:01 +02:00
Petr Skoda f4fd0a13d1 MDL-32149 navigation tests 2012-04-03 22:31:01 +02:00
Petr Skoda b0e980d77f MDL-32149 prevent accidental overriding of testcase constructors, use setUpBeforeClass() instead 2012-04-03 22:31:01 +02:00
Petr Skoda 4c6062ea65 MDL-32149 scale generator and workshop tests 2012-04-03 22:31:00 +02:00
Petr Skoda 03c2d04d0a MDL-32149 make complete PHPUnit test time 2s faster 2012-04-03 22:31:00 +02:00
Petr Skoda 7514f9c243 MDL-32149 allow defining of PHPUNIT_LONGTEST from /config.php and improve acceslib tests 2012-04-03 22:30:59 +02:00
Petr Skoda ba0c484308 MDL-32149 tests for mod_wiki, mod_lti and mod_scorm 2012-04-03 22:30:59 +02:00
Petr Skoda 78d6314daa MDL-32149 add rating tests 2012-04-03 22:30:58 +02:00
Petr Skoda 2a7ace1193 MDL-32149 add filter tests 2012-04-03 22:30:58 +02:00
Petr Skoda 354b214c9f MDL-32149 courselib tests and support for generation of course sections 2012-04-03 22:30:57 +02:00
Petr Skoda 4b02743182 MDL-32149 improve testcase naming and list in config file 2012-04-03 22:30:57 +02:00
Petr Skoda 7ddef99455 MDL-32149 some more cleanup and testing of PHPUnit asserts 2012-04-03 22:30:56 +02:00
Petr Skoda 1cbf2a20ca MDL-32149 setUp() and tearDown() are supposed to be 'protected', add missing blog testcase 2012-04-03 22:30:56 +02:00
Petr Skoda 814a96edfb MDL-32149 add blog tests 2012-04-03 22:30:55 +02:00
Petr Skoda 4ac88d6d10 MDL-32149 remaining phpunit tests for backup/restore 2012-04-03 22:30:55 +02:00
Petr Skoda 728eadac78 MDL-32149 significantly faster database reset, "util.php --drop" can now be interrupted at any time 2012-04-03 22:30:54 +02:00
Petr Skoda dbf5a44798 MDL-32149 add backup tests and dropping of extra tables 2012-04-03 22:30:54 +02:00
Petr Skoda 458b33866d MDL-32149 reset all globals in PHPUnit tests, fix setting of $USER 2012-04-03 22:30:54 +02:00
Petr Skoda a3d5830a0a MDL-32149 PHPUnit test support - part 2
Includes:
* constants refactoring
* reworked db table init
* support for $CFG->debug = -1
* functional DB tests
* fixed $DB->get_indexes() to not throw exceptions when table does not exist
* fix handling of user passwords in test db
* add debug info to exception messages
* removed unnecessary PHP debug errors from mathslib
* fixed @error suppression in get_string
* fixed PHPUnit error handler setup
* added timezone info to default install
2012-04-03 22:30:53 +02:00
Sam Hemelryk cad96a8a36 Merge branch 'MDL-32137-master-1' of git://git.luns.net.uk/moodle 2012-04-04 08:22:16 +12:00
Eloy Lafuente (stronk7) c9d1f4338b MDL-32251 Two more E_STRICT detected on tests execution 2012-04-03 21:59:25 +02:00
Eloy Lafuente (stronk7) 46ed2f8b7f Merge branch 'w14_MDL-32251_m23_strict3' of git://github.com/skodak/moodle 2012-04-03 21:17:58 +02:00
Eloy Lafuente (stronk7) 6c51c08b13 Merge branch 'wip-MDL-32018-m23' of git://github.com/samhemelryk/moodle 2012-04-03 21:04:36 +02:00
Ray Guo 8e6530d897 MDL-29174 Remove the empty modulename_extend_navigation() stub from 7
modules.
2012-04-03 14:38:47 +01:00
Aparup Banerjee c82745d016 Merge branch 'wip-MDL-30784-master' of git://github.com/phalacee/moodle 2012-04-03 17:00:47 +08:00
Aparup Banerjee 82d5042a73 Merge branch 'wip-MDL-31789-master' of git://github.com/marinaglancy/moodle 2012-04-03 16:31:53 +08:00
Aparup Banerjee 9cafd9c6e0 Merge branch 'wip-MDL-32081-m23' of git://github.com/samhemelryk/moodle 2012-04-03 16:08:18 +08:00
Aparup Banerjee 91596e2211 Merge branch 'MDL-31867-master' of git://github.com/ankitagarwal/moodle 2012-04-03 15:55:12 +08:00
Aparup Banerjee c197d5f028 MDL-17327 database : fixed comparisions in sql to be cross db compatible in data_get_advanced_search_sql()
This was failing under the MSSQL database drivers.
2012-04-03 15:06:09 +08:00
Aparup Banerjee 31b6200263 Merge branch 'wip-MDL-17327-master' of git://github.com/abgreeve/moodle 2012-04-03 14:58:27 +08:00
Petr Skoda 4218d813bf MDL-32251 add missing spikephpcoverage modification info, improve coding style in competionlib 2012-04-03 07:59:39 +02:00
Jason Fowler 4def8463fe MDL-27427 - Blog - Adding ability to delete entries from external blogs 2012-04-03 12:54:25 +08:00
Aparup Banerjee bc706271c8 Merge branch 'wip-MDL-32171-master' of git://github.com/marinaglancy/moodle 2012-04-03 11:42:58 +08:00
Dan Poltawski 4fe5849b72 Merge branch 'wip-mdl-30904' of git://github.com/rajeshtaneja/moodle 2012-04-03 11:39:14 +08:00
Rajesh Taneja ab6ec58a2e MDL-32270 Library: ->defaulthomepage is checked before used 2012-04-03 11:28:07 +08:00
Dan Poltawski 1d40f283ce Merge branch 'MDL-32220' of git://github.com/timhunt/moodle 2012-04-03 11:09:31 +08:00
Aparup Banerjee cc6c84373a Merge branch 'wip-MDL-32269-master' of git://github.com/marinaglancy/moodle 2012-04-03 10:18:19 +08:00
Sam Hemelryk 7b98a1dfd8 Merge branch 'wip-mdl-32150' of git://github.com/rajeshtaneja/moodle 2012-04-03 10:33:06 +12:00
Dan Poltawski aefc7e28ff Merge branch 'MDL-32213_manual_grade_question_upgrade' of git://github.com/davosmith/moodle 2012-04-02 16:59:10 +08:00
Dan Poltawski 8408d23c99 Merge branch 'w14_MDL-32250_m23_simpletest110' of git://github.com/skodak/moodle 2012-04-02 16:15:35 +08:00
Petr Skoda 97621c33c9 MDL-32250 fixed case typo
Thanks Dan!
2012-04-02 09:21:14 +02:00
Ankit Agarwal 8331a159c5 MDL-22895 backup: Adding the feature to support backing up and restoring calendar events 2012-04-02 13:58:33 +08:00
Dan Poltawski 6461e1482e Merge branch 'MDL-32039' of git://github.com/timhunt/moodle 2012-04-02 11:49:20 +08:00
Andreas Grabs abd2899cad MDL-31768 - it is not possible to add a picture to the thanks page in feedback 2012-04-02 11:16:32 +08:00
M Kassaei 011187104f MDL-32214 quiz regrading: with many attempts, PHP runs out of memory 2012-04-02 11:04:05 +08:00
Sam Hemelryk 530eecc0f9 Merge branch 'MDL-32239' of git://github.com/timhunt/moodle 2012-04-02 14:31:30 +12:00
Dan Poltawski 69f4556602 Merge branch 'wip-MDL-32264-m23' of git://github.com/samhemelryk/moodle 2012-04-02 10:17:35 +08:00
Dan Poltawski 6e83ae36a8 Merge branch 'MDL-32246' of git://github.com/timhunt/moodle 2012-04-02 10:03:10 +08:00
Dan Poltawski bec21793d2 Merge branch 'MDL-32201' of git://github.com/timhunt/moodle 2012-04-02 09:40:09 +08:00
Sam Hemelryk f9488a6f73 MDL-30981 upgrade: Fixed a couple of phpdoc typos 2012-04-02 12:27:23 +12:00
Sam Hemelryk ea6805f009 Merge branch 'MDL-30981' of git://github.com/stronk7/moodle 2012-04-02 12:26:41 +12:00
Sam Hemelryk 880a40c5b1 Merge branch 'MDL-32256-cron-return' of git://github.com/mudrd8mz/moodle 2012-04-02 11:28:09 +12:00
Sam Hemelryk 4958b6f224 Merge branch 'MDL-32258-data-cron' of git://github.com/mudrd8mz/moodle 2012-04-02 11:24:54 +12:00
Sam Hemelryk 90ad4ed589 Merge branch 'master_MDL-31908_glossary_entrylist_print_version_not_showing_content' of git://github.com/kanikagoyal/moodle 2012-04-02 11:19:58 +12:00
Eloy Lafuente (stronk7) 39b90b5152 MDL-30981 Upgrade API: Added related phpdocs 2012-04-02 00:40:13 +02:00
Sam Hemelryk 3279dd4253 Merge branch 'MDL-31711' of git://github.com/nebgor/moodle 2012-04-02 10:22:22 +12:00
Sam Hemelryk 6b8e99dd87 Merge branch 'MDL-32289' of git://github.com/lazydaisy/moodle 2012-04-02 10:16:52 +12:00
Petr Skoda c9c2027332 MDL-32251 E_STRICT fix 2012-04-01 15:22:42 +02:00
Petr Skoda 324d210fe4 MDL-32251 one more E_STRICT fix 2012-04-01 12:23:07 +02:00
Mary Evans 76002f94f5 MDL-32289 theme_afterburner: added lang menu to frontpage layout in config.php 2012-04-01 01:05:14 +01:00
Mary Evans d0760eac6c MDL-32262 theme_afterburner: fixed missing comma in afterburner_styles.css 2012-04-01 00:31:23 +01:00
Petr Skoda d9d61fa340 MDL-32251 use standard PHP debug levels instead of original 38911 2012-03-30 19:19:06 +02:00
Petr Skoda 54352ac979 MDL-32251 more E_STRICT fixes 2012-03-30 19:02:58 +02:00
David Mudrak 5a08e363f0 MDL-20438 removing sesskey checks from places where there is no sesskey support guaranteed yet
Thanks Petr Skoda for spotting this during the peer-review.
2012-03-30 11:08:48 +02:00
David Mudrak cd89994d88 MDL-20438 getting rid of left to-do notes 2012-03-30 11:05:42 +02:00
David Mudrak 8342171b52 MDL-20438 reintroducing plugin_management_page renderer method
See http://moodle.org/local/chatlogs/index.php?conversationid=9784#c340340
for the whole saga.
2012-03-30 11:05:42 +02:00
David Mudrak a687fcac7a MDL-20438 added a link to toggle the plugins check page back to the shorter list 2012-03-30 11:05:42 +02:00
David Mudrak 5344ddd116 MDL-20438 warn the admin that we are just showing available updates
This warning is displayed so that folks do not expect any sort of
auto-update ala Wordpress (yet).
2012-03-30 11:05:42 +02:00
David Mudrak 18e55c294d MDL-20438 removing the word 'extension'
It was suggested not to use this term as in moodleverse, non-standard
plugins have always been referred to as 'contributed plugins'.
2012-03-30 11:05:42 +02:00
David Mudrak 718eb2a59f MDL-20438 small fixes spotted during various testing 2012-03-30 11:05:42 +02:00
David Mudrak 4442cc8036 MDL-20438 finishing the updatenotifybuilds feature
Unit tests say that all.
2012-03-30 11:05:42 +02:00
David Mudrak 21cde6ac14 MDL-20438 fixing the message_send() docblock
This is not directly relevant to the issue. I just spotted it while
working on the messaging API. Consider it as a well meant Trojan horse
on this branch ;-)
2012-03-30 11:05:42 +02:00
David Mudrak a77141a7dc MDL-20438 send notifications via messaging API 2012-03-30 11:05:42 +02:00
David Mudrak 19d11b3b34 MDL-20438 introducing the cron_notifications() method
This method accepts all detected changes in cron-based fetch and picks
those the site admins want to be informed about (based on the maturity
level etc).
2012-03-30 11:05:42 +02:00
David Mudrak c6f008e747 MDL-20438 dropping get_core_update_info() method
There is now a single method get_update_info() used for both core and
plugins.
2012-03-30 11:05:41 +02:00
David Mudrak 7b35553b9b MDL-20438 Introducing new compare_responses() method 2012-03-30 11:05:41 +02:00
David Mudrak be37888050 MDL-20438 Initial support for cron based notifications
If enabled, Moodle sites will check for updates every night sometimes
between 01:00 AM and 06:00 AM local time. The actual offset will be
generated randomly at the beginning and used consistently since then.
This way, the queries against the server are supposed to be spread in
time.

Serious site admins should not try to upgrade their sites later than
01:00 AM as they are too tired already. Neither should they do it before
06:00 AM as they did not have a morning coffee yet and are too tired yet
:-)
2012-03-30 11:05:41 +02:00
David Mudrak 96dd92376f MDL-20438 display available updates during the upgrade, too
We are displaying available updates for installed plugins only. It was
decided (by me and Eloy) that we will not display info about available
Moodle update during the upgrade. It seems to be redundant as the admin
just uploaded a new version of Moodle so they probably chose what they
wanted.
2012-03-30 11:05:41 +02:00
David Mudrak bc06cbc36b MDL-20438 rewording confusing status_uptodate
The status_uptodate is a flag that the plugin's on-disk version and the
in-db version are in sync, that is no upgrade will be performed.
However, there can be a newer version of the plugin available. So using
the term "up-to-date" may be confusing.
2012-03-30 11:05:41 +02:00
David Mudrak f9286139d9 MDL-20438 make sure that the curl class has been included
The filelib is usually loaded already. However, during some steps of the
upgrade the curl class must be available to perform fetches of updates
and the library does not need to be loaded yet.
2012-03-30 11:05:41 +02:00
David Mudrak 9bdedf322a MDL-20438 admin/plugins.php now respects required maturity setting 2012-03-30 11:05:41 +02:00
David Mudrak d8f18e5dd0 MDL-20438 admin/index.php now respects required maturity setting 2012-03-30 11:05:41 +02:00
David Mudrak 2f5904d920 MDL-20438 new administration settings for the update notifications machinery 2012-03-30 11:05:41 +02:00
David Mudrak 55585f3ac0 MDL-20438 initial support for checking available core update
In case of Moodle code itself, there is no plugin_manager like class
available so the checker class itself must be aware of versions and
actually do the checks. On the other hand, we can always rely that
version, release and maturity are always returned by the remote server.
2012-03-30 11:05:41 +02:00
David Mudrak e761138997 MDL-20438 colorize available updates for a plugin based on the update's maturity level 2012-03-30 11:05:41 +02:00
David Mudrak 37f75ad459 MDL-20438 colorize the maturity warning at the admin notifications page 2012-03-30 11:05:41 +02:00
David Mudrak 00ea11f82e MDL-20438 sesskey check to execute fetch() 2012-03-30 11:05:40 +02:00
David Mudrak c7f3ab4381 MDL-20438 moodle code maturity must be always defined in version.php now
This code was a temporary solution used during the development of the
maturity checks feature.
2012-03-30 11:05:40 +02:00
David Mudrak 7d8de6d84a MDL-20438 updated response format support
Multiple component updates are supported now. Code cleanup and
refactoring.
2012-03-30 11:05:40 +02:00
David Mudrak 3204daeae3 MDL-20438 The Plugins overview admin page now provides a way to check for updates 2012-03-30 11:05:40 +02:00
David Mudrak 2b47947ef5 MDL-20438 A set of unittests to illustrate the update checking integration in the plugin_manager 2012-03-30 11:05:40 +02:00
David Mudrak dd119e21fa MDL-20438 Let plugin_manager class use the service provided by the new available_update_checker
All plugininfo classes now have new property that holds their remote
status information.
2012-03-30 11:05:40 +02:00
David Mudrak cd0bb55f84 MDL-20438 Introducing new available_update_checker class
The purpose of the class is to fetch the information about available
updates for the Moodle core and/or Moodle components from a remote site
and cache it locally.
2012-03-30 11:05:40 +02:00
David Mudrak 00ef3c3ed1 MDL-20438 Introducing plugininfo classes factory and plugin manager unit tests 2012-03-30 11:05:40 +02:00
David Mudrak 9c26cf7060 MDL-20438 New moodle_major_version() function
We will need to know our major version to fetch the relevant data from remote
servers. This patch also fixes yet another place where the version used
to be hard-coded.
2012-03-30 11:05:40 +02:00
David Mudrak 2b135b05d8 MDL-20438 Making the plugins overview page space-friendly 2012-03-30 11:05:40 +02:00
David Mudrak 4ed266809c MDL-20438 Change the order of plugin types at the overview pages 2012-03-30 11:05:40 +02:00
David Mudrak d26f3ddde7 MDL-20438 New plugins overview panel displaying some stats 2012-03-30 11:05:39 +02:00
David Mudrak b6ad85946d MDL-20438 Refactoring pluginlib before adding anything new
These changes are motivated by feedback from Tim Hunt (17 October 2011
in the developers chat room). The combination of using an interface, but
then putting all the useful information in public fields, was not good
design of this library. So I am merging the plugin_information interface
and the plugintype_base class into a new abstract class plugininfo_base.
This new class defines the basic API of all information holding
subclasses. This does not change the code, just puts the documentation
closer to the methods they are actually implemented.
2012-03-30 11:05:39 +02:00
Rajesh Taneja a415ecc21c MDL-30051 cron: login error sql is now cross db 2012-03-30 16:48:31 +08:00
Rossiani Wijaya f9f281b8fe MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag 2012-03-30 16:26:58 +08:00
adrian@moodle.com db546510a1 MDL-17327 - data - improved the sql query for very large advanced searches 2012-03-30 13:18:23 +08:00
Rajesh Taneja 91f7f8c1c1 MDL-32150 Libraries: checkbox controller will not check or uncheck freezed checkboxes 2012-03-30 13:04:04 +08:00
Rajesh Taneja af8def57f6 MDL-32150 Libraries: checkall and uncheckall will not select disabled or readonly checkboxes 2012-03-30 13:04:04 +08:00
Rajesh Taneja 675715a78e MDL-30904 Calendar: Event links are descriptive with hidden event name, for screen readers 2012-03-30 13:01:11 +08:00
Sam Hemelryk 0b4f925c2e MDL-31867 tags: Improve performance of course_get_tagged_courses() 2012-03-30 09:42:43 +08:00
Marina Glancy bde16d799a MDL-32269: undoing changes from MDL-32095 causing fatal error when using wikimedia 2012-03-30 09:11:57 +08:00
Marina Glancy a45e65206a MDL-32171: add 'Manage' link to Picasa repository 2012-03-30 08:33:28 +08:00
AMOS bot 41606cffaf Automatically generated installer lang files 2012-03-30 00:33:06 +00:00
Marina Glancy b2cb00c2e9 MDL-31789: Allowing context object to be passed to JS using json_encode()
Classes with magic properties such as context do not pass through json_encode().
The solution is to implement iterator in such classes and convert what we
feed to json_encode to array using 'foreach' before we pass it to json_encode():
- class context implements IteratorAggregate
- added function convert_to_array() that converts anything to array
- before calling json_encode we convert the argument to array
2012-03-30 08:27:53 +08:00
Jason Fowler 27c3b8d8c7 MDL-30784 - lib - Patch provided by Jason Hardin to provide detection for Android Tablets to allow the theme engine to provide the tablet theme 2012-03-30 08:16:38 +08:00
Sam Hemelryk aa4a6566a5 MDL-29678 lib: Require login now overrides to false for AJAX scripts 2012-03-30 10:23:46 +13:00
Sam Hemelryk 04bcd1ce39 MDL-29678 navigation: Navigation AJAX require_login calls no longer set wantsurl or redirect 2012-03-30 10:23:46 +13:00
Sam Hemelryk c18facf2eb MDL-31631 navigation: Removed caching of activities and sections arrays in favour of relying on cminfo caching 2012-03-30 10:22:45 +13:00
Sam Hemelryk 4ae89dfea7 MDL-32018 mod_wiki: Fixed up whitespace after peer-review 2012-03-30 10:21:23 +13:00
Sam Hemelryk 4c4e659173 MDL-32018 mod_wiki: Fixed formatting of the page title so that is is consistent and secure 2012-03-30 10:21:23 +13:00
Sam Hemelryk 0c700cc48d MDL-32018 mod_wiki: Improved form definitions to ensure they consistent and secure 2012-03-30 10:21:23 +13:00
Sam Hemelryk 50e49c917d MDL-32081 csslib: Improved handling of parentheses when processing styles 2012-03-30 10:20:59 +13:00
Sam Hemelryk 897ad664e4 MDL-32081 csslib: Added unit tests for complex background images 2012-03-30 10:20:59 +13:00
Sam Hemelryk c74863b19e MDL-32264 theme_standard: Fixed multi-day calendar event border issue 2012-03-30 10:19:20 +13:00
Sam Hemelryk dd57a4de08 MDL-32265 moodlelib: Improved performance of moodle_needs_upgrading 2012-03-30 10:19:12 +13:00
Tim Hunt 9e4598293b MDL-32039 qeupgradehelper: fix typos in the lang strings 2012-03-29 21:20:04 +01:00
Petr Skoda 9aa09d8fed MDL-32251 more E_STRCT fixes 2012-03-29 16:29:29 +02:00
David Mudrak ac381d0381 MDL-32258 database module does not have any data_cron() function to execute 2012-03-29 15:59:45 +02:00
David Mudrak 7b0f4a3711 MDL-32256 quiz_cron() now returns true as expected by the current API 2012-03-29 15:45:45 +02:00
Petr Skoda caee6e6c26 MDL-32251 E_STRICT fixes part 3 2012-03-29 15:24:30 +02:00
Tim Hunt 87b564df81 MDL-32246 question export: should cope with unrecognised qtypes.
If a question is of an unrecognised type, then we just omit it from the export.
2012-03-29 14:14:32 +01:00
Tim Hunt 76cf77e4d3 MDL-32240 quiz editing: check permissions questions are added.
We also check permissions when removing questions from the quiz, so that
we do not let users make mistakes they cannot immediately undo.
2012-03-29 14:14:12 +01:00
Tim Hunt 51c5e6057c MDL-32239 question bank: wrong cap checks editing/viewing quesitions
None of these problems affect the default roles. They only occur when
the permissions have been edited to allow restricted subsets of the
question capabilities.

In some cases, things that the restriced subset of capabilities should
have allowed were blocked by errors. In other cases, users were allowed
to do more than they should bave been due to failures to check the
right capabilities in the right places.

For full details, see the bug report.

Two of the bugs were previously reported separately as MDL-26395 and
MDL-27232.
2012-03-29 14:14:10 +01:00
Tim Hunt 4d18892676 MDL-32220 question import: files sometimes stored in the wrong context.
Sadly, this involves a small API change, but I don't believe anyone was
using the argument I had to remove (because we were sometimes passing a
wrong value, and there is not way to compute the right value at that
point in the code.)

Also sadly, the code to compute the context we are importing into is now
rather spaghetti-like, but it works.
2012-03-29 14:13:28 +01:00
Tim Hunt 04fcd1f5a8 MDL-32201 question export: use qformat_xml::write_answer in base class
Without this, images in answers were not being written to the export
file for questions using extra_answer_fields.
2012-03-29 14:12:58 +01:00
Petr Skoda 0bb48cc2a1 MDL-32250 import latest SimpleTest 1.1.0 2012-03-29 15:07:53 +02:00
Eloy Lafuente (stronk7) a280078197 weekly release 2.3dev 2012-03-29 13:25:53 +02:00
Eloy Lafuente (stronk7) db5d8b66c0 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-03-29 13:19:59 +02:00
Dan Poltawski a4051353d1 Revert "Merge branch 'MDL-31914-master-4' of git://git.luns.net.uk/moodle"
This reverts commit 296c0247c6, reversing
changes made to 2511b0742a.

Conflicts:

	lib/db/upgrade.php
	version.php
2012-03-29 16:07:30 +08:00
AMOS bot 0f78e4911c Automatically generated installer lang files 2012-03-29 00:31:42 +00:00
Eloy Lafuente (stronk7) 3f0cb423b2 Merge branch 'w13_MDL-32095_m23_strict2' of git://github.com/skodak/moodle 2012-03-28 22:49:38 +02:00
Petr Skoda 17854cb92c MDL-32095 last E_STRICT fix for now 2012-03-28 22:48:18 +02:00
Petr Skoda b137739b5e MDL-32095 fix outputlib test to setup debug level properly 2012-03-28 22:47:57 +02:00
Petr Skoda e63f95d7c1 MDL-12730 new debug levels (support strict) + upgrade from old ones 2012-03-28 16:39:42 +02:00
Davo Smith 1892a35625 MDL-32213 Question upgrade now correctly handles non-core manually-graded question types 2012-03-27 13:44:07 +01:00
Dan Poltawski 0094c90c79 MDL-31775 lesson: fix undefined variable warnings 2012-03-27 20:01:06 +08:00
Eloy Lafuente (stronk7) 296c0247c6 Merge branch 'MDL-31914-master-4' of git://git.luns.net.uk/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-03-27 10:10:17 +02:00
Aparup Banerjee 1469dee12f MDL-31711 Documentation : changed usages of @property to @var for non-magic variables. 2012-03-27 16:01:14 +08:00
Dan Poltawski 2511b0742a Merge branch 'MDL-32028' of git://github.com/nebgor/moodle 2012-03-27 14:46:52 +08:00
Aparup Banerjee c2bc042330 Merge branch 'wip-mdl-31654' of git://github.com/rajeshtaneja/moodle 2012-03-27 13:22:01 +08:00
Dan Poltawski 4767d32611 Merge branch 'MDL-30235' of git://github.com/lazydaisy/moodle 2012-03-27 12:37:08 +08:00
Aparup Banerjee 5eee9f7ade Merge branch 'w13_MDL-32109_m23_fastpurify' of git://github.com/skodak/moodle 2012-03-27 10:15:18 +08:00
Aparup Banerjee f3810b2ee2 Merge branch 'wip-MDL-32106-master' of git://github.com/marinaglancy/moodle 2012-03-27 10:10:05 +08:00
Aparup Banerjee 1cc4412c89 Merge branch 'MDL-31869_message_search_roles' of git://github.com/andyjdavis/moodle 2012-03-27 09:58:44 +08:00
Sam Hemelryk a7cd1f5a53 Merge branch 'MDL-22510-master' of git://github.com/ankitagarwal/moodle 2012-03-27 11:03:19 +13:00
Sam Hemelryk 5dc1a544ea Merge branch 'MDL-11378-master-2' of git://git.luns.net.uk/moodle 2012-03-27 10:05:43 +13:00
Sam Hemelryk c194925278 Merge branch 'master_MDL-32147' of git://github.com/danmarsden/moodle 2012-03-27 09:51:40 +13:00
Eloy Lafuente (stronk7) a176999cc5 Merge branch 'MDL-32202' of git://github.com/stronk7/moodle 2012-03-26 21:36:08 +02:00
Eloy Lafuente (stronk7) 704f82e2bf MDL-32202 scorm: fix 2 invalid default="null" definitions
Note the whole file has been changed because its previous
(manual!) commit leaded to incorrect indentation, but really
only 2 definitions have been changed:

scorm->completionstatusrequired
scorm->completionscorerequired
2012-03-26 21:27:47 +02:00
Eloy Lafuente (stronk7) 9ee910e69c MDL-32112 mysql: change rename sql generator to pass validation 2012-03-26 19:57:58 +02:00
Eloy Lafuente (stronk7) 43616f61f1 Merge branch 'w13_MDL-32112_m23_dbman' of git://github.com/skodak/moodle 2012-03-26 19:40:58 +02:00
Petr Skoda e807c0be4f MDL-32095 fix event handler classes to be E_STRICT compatible 2012-03-26 16:04:47 +02:00
Petr Skoda 748e96512b MDL-32095 fix backup API to be E_STRICT compatible 2012-03-26 16:04:16 +02:00
Petr Skoda 5ec6c45fd4 MDL-32095 fix backup API to be E_STRICT 2012-03-26 15:30:04 +02:00
Petr Skoda 68a7c9a696 MDL-32095 some more E_STRICT fixes 2012-03-26 11:47:15 +02:00
Dan Poltawski 9e1a4be29d Merge branch 'MDL-31775' of git://github.com/rwijaya/moodle 2012-03-26 14:39:10 +08:00
Dan Poltawski 113022e559 Merge branch 'MDL-32172' of git://github.com/rwijaya/moodle 2012-03-26 12:23:15 +08:00
Dan Poltawski a05c669af0 Merge branch 'master_MDL-31856_choice_responses_inconsistently_displayed' of git://github.com/kanikagoyal/moodle 2012-03-26 12:09:32 +08:00
Dan Poltawski 91216d5095 Merge branch 'MDL-27710' of git://github.com/rwijaya/moodle 2012-03-26 11:28:21 +08:00
Dan Poltawski 2ce1efb8ac Merge branch 'master_MDL-32080' of git://github.com/danmarsden/moodle 2012-03-26 10:51:38 +08:00
Marina Glancy 400d228e51 MDL-32106: fixed JS bug - when html element did not exist the script stopped 2012-03-26 09:52:01 +08:00
Dan Poltawski 9efaab4949 Merge branch 'MDL-32176' of git://github.com/timhunt/moodle 2012-03-26 09:35:49 +08:00
Dan Poltawski fdecfdb3d3 Merge branch 'MDL-32177' of git://github.com/timhunt/moodle 2012-03-26 09:26:21 +08:00
Iurii Kucherov f38792ef05 MDL-31513 rename 'Edit service' to 'Save changes' 2012-03-26 12:11:53 +13:00
Sam Hemelryk 9491f60e44 Merge branch 'MDL-32142-master-1' of git://git.luns.net.uk/moodle 2012-03-26 12:01:29 +13:00
Sam Hemelryk 3e17de5ead Merge branch 'wip-mdl-29331' of git://github.com/rajeshtaneja/moodle 2012-03-26 11:57:39 +13:00
Rajesh Taneja 4d6f9478ed MDL-31903 course: Title on highlight and hide icon should be only added in ie 2012-03-26 11:44:50 +13:00
Rajesh Taneja 618c155a24 MDL-31903 course: Highlight icon will get iniatlised properly 2012-03-26 11:44:50 +13:00
Rajesh Taneja f753887155 MDL-31903 course: update patch to fix course highlight icon and title toggle 2012-03-26 11:44:50 +13:00
Juho Viitasalo 730477a878 MDL-31903 course: Fixed course highlight icon and title toggle 2012-03-26 11:44:16 +13:00
Dan Poltawski 17e2b27d31 MDL-29400 assignment: Require a file to be uploaded in form
Don't display 'File uploaded successfully' when no file uploaded for
both upload and uploadsingle
2012-03-26 11:19:57 +13:00
Sam Hemelryk 991b3a3a9b Merge branch 'MDL-32026-master-2' of git://git.luns.net.uk/moodle 2012-03-26 11:13:54 +13:00
Sam Hemelryk ef288bd4d3 Merge branch 'MDL-32027-master-1' of git://git.luns.net.uk/moodle 2012-03-26 11:06:34 +13:00
Sam Hemelryk 75e5bd51ea Merge branch 'w13_MDL-31685_m23_filelocking' of git://github.com/skodak/moodle 2012-03-26 10:35:48 +13:00
Sam Hemelryk 0a5bc5dd47 Merge branch 'w13_MDL-32029_m23_extdb' of git://github.com/skodak/moodle 2012-03-26 10:31:36 +13:00
Kanika Goyal 0c758f8200 MDL-31908 Glossary: entry list format- printable version does not show content 2012-03-26 00:00:24 +05:30
Mary Evans 32837a27ca MDL-30019 theme_fusion: fix for mod-assignment-submission page by reducing font-size and page wapper padding 2012-03-25 08:16:11 +01:00
Petr Skoda 436b961381 MDL-32112 use constants for field and table limits
For now using the same JS hardcoding trick Eloy did the last time...
2012-03-24 11:45:36 +01:00
Petr Skoda 7fd31fe86c MDL-32112 horrible hack that ignores invalid size for XMLDB_TYPE_NUMBER in numerical question type
The easies fix could be to use VARCHAR instead because this field is used only for reading and writing, no selects on this field it seems.
2012-03-24 11:40:15 +01:00
Petr Skoda d3232735ee MDL-32112 validate float definition in sql_generator 2012-03-24 11:40:15 +01:00
Petr Skoda 54e71a43ba MDL-32112 validate number definition in sql_generator 2012-03-24 11:40:15 +01:00
Petr Skoda 720d605e61 MDL-32112 validate integer definition in sql_generator 2012-03-24 11:40:15 +01:00
Petr Skoda f9090b195b MDL-32112 validate table name restrictions in sql_generator 2012-03-24 11:40:15 +01:00
Petr Skoda 6cfade8f5a MDL-32112 validate field name restrictions in sql_generator 2012-03-24 11:40:14 +01:00
Petr Skoda f0bf9ffeaa MDL-31685 new setting for prevention of file based locking
Please note that this setting can not be stored in database because some scripts use ABORT_AFTER_CONFIG.
2012-03-24 11:37:13 +01:00
Petr Skoda 62cd8cd9f5 MDL-32029 fix get_tables() when prefix empty in external database 2012-03-24 11:36:01 +01:00
Petr Skoda 3f0fe2b820 MDL-32109 migrate tests to PHPUnit 2012-03-24 11:33:59 +01:00
Petr Skoda 986f8ea285 MDL-32109 do not use HTMLPurifier for some safe and valid html fragments 2012-03-24 11:29:59 +01:00
Tim Hunt 1a2de1c7ce MDL-32177 questions: allow default questiontext in the editing form. 2012-03-23 15:36:17 +00:00
Tim Hunt 1851b00b07 MDL-32176 formslib: allow {no} in repeat_element default values. 2012-03-23 15:22:41 +00:00
Ruslan Kabalin de132c20f8 MDL-32137 Fix message preference settings.
When a messaging output is set to forced, users should not be able to change
that. Regression intoroduced in bb3546f3 made possible to change checkboxes
(but not avoid forced settings). This fix replace checkboxes for 'forced'
settings with the corresponding message, similar to how it worked for
disallowed before.
2012-03-23 11:55:30 +00:00
Andrew Robert Nicols a7026767bf MDL-32164 Add string for file encoding
AMOS BEGIN
  CPY [encoding,tool_uploaduser],[fileencoding,mod_data]
AMOS END
2012-03-23 09:38:25 +00:00
Rossiani Wijaya 0f6e2f02aa MDL-32172 Lesson Module: add variable initialization for 2012-03-23 15:36:39 +08:00
Ankit Agarwal af572078cf MDL-22510 libraries: Set wantsurl only when $setwantsurltome is set in
require_login
2012-03-23 14:40:35 +08:00
Rajesh Taneja 1366a7fab8 MDL-29331 Users: Participants list with user_details now show check box for bluk operation 2012-03-23 11:28:20 +08:00
Kanika Goyal d84e5f43d1 MDL-31856 Choice: if choice not open, responses inconsistently displayed 2012-03-23 08:56:13 +05:30
Rossiani Wijaya 639818fc94 MDL-27710 lesson module: add the following jump options: unseen branch page, random page and random branch 2012-03-23 10:20:52 +08:00
Rajesh Taneja 1b4d2d56d9 MDL-31654 users: Added check for custom profile fields, if wrong data is passed then user will not be able to proceed 2012-03-23 10:13:37 +08:00
Rajesh Taneja bd8dc9ba0a MDL-31654 users: removed hardcoding and added docblock on top of tim's patch 2012-03-23 10:13:37 +08:00
tim@netspot.com.au d6aea4cc34 MDL-31654 users: custom profile menu fields will convert values to keys, so it can be processed 2012-03-23 10:13:37 +08:00
Sam Hemelryk c856a1f60b weekly release 2.3dev 2012-03-23 12:19:47 +13:00
Sam Hemelryk 117bd705f3 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-03-23 12:11:57 +13:00
Dan Marsden dbdc735559 MDL-32147 - use correct 404 for server type 2012-03-23 10:01:04 +13:00
Ruslan Kabalin 70ad827c6c MDL-11378 Add SMTP security protocol setting to email configuration 2012-03-22 15:29:17 +00:00
Ruslan Kabalin 43798a4efa MDL-32026 messaging: Fix non-existing variable in the error output 2012-03-22 15:12:40 +00:00
Andrew Robert Nicols 8d1f386385 MDL-32142 Add missing langstring for section backups 2012-03-22 14:52:28 +00:00
Jason Fowler bcab2b21b3 MDL-30482 - Glossary - Fixing the capability controls for the recent activity block 2012-03-22 16:19:38 +08:00
Dan Marsden 6ceef54c6e MDL-32147 SCORM improve performance of 404s for files inside SCORM packages. 2012-03-22 20:05:59 +13:00
Aparup Banerjee a72996fe71 Revert "MDL-17327 - data - improved the sql query for very large advanced searches"
This reverts commit 72d4340a0e.

Testing cross db compatibility failed.
2012-03-22 09:21:25 +08:00
Sam Hemelryk 7aea08e1b0 MDL-31857 phpunit: PHPDoc and typo fixes during integration 2012-03-22 10:45:17 +13:00
Sam Hemelryk 3222f6eca1 Merge branch 'w12_MDL-31857_m23_phpunit' of git://github.com/skodak/moodle 2012-03-22 10:44:04 +13:00
Sam Hemelryk 7a3a0a301b MDL-31528 categories: Fixed up typo 2012-03-22 09:45:56 +13:00
Petr Skoda 5bd4040866 MDL-31857basic phpunit support
Thanks Eloy Lafuente, Tim Hunt and Sam Hemelryk for valuable feedback and ideas.
2012-03-21 10:31:37 +01:00
Dan Poltawski 727dac2f34 Merge branch 'wip-MDL-27236-master' of git://github.com/marinaglancy/moodle 2012-03-21 14:51:40 +08:00
Marina Glancy e2652f1a31 MDL-27236: Server files, improve tree view
- Removed 'Private files' from 'Server files' repository;
- Show only non-empty directories (taking into account filetype filter);
- If there is only one non-empty filearea within a module, do not show it and skip the extra subdirectory level;
- If the user is not admin (does not have 'moodle/course:update' capability in system context), do not show course categories, just list available courses;
- Also when retrieving the course files capability to managefiles is checked before retrieving the modules list for performance tuning on sites with a lot of courses
2012-03-21 13:55:22 +08:00
Dan Poltawski 0a4660484c Merge branch 'master_MDL-27469' of git://github.com/danmarsden/moodle
Conflicts:
	mod/scorm/version.php
    mod/scorm/db/upgrade.php
2012-03-21 11:38:09 +08:00
Aparup Banerjee 5599f2062c Merge branch git://github.com/phalacee/moodle.git wip-MDL-30482-master
- resolved conflicts
 - fixed up tab --> spaces
2012-03-21 10:50:51 +08:00
Jason Fowler c3963fbd9b MDL-30482 - Glossary - Adding capability to other areas using glossary 2012-03-21 10:22:53 +08:00
Aparup Banerjee d7de3f2682 Merge branch 'wip-MDL-17327-master-v2' of git://github.com/abgreeve/moodle 2012-03-21 10:02:18 +08:00
adrian@moodle.com 72d4340a0e MDL-17327 - data - improved the sql query for very large advanced searches 2012-03-21 09:41:48 +08:00
Dan Poltawski 19526d915a MDL-29515 lib/upgrade.txt: add a note about removed methods 2012-03-21 09:31:38 +08:00
Dan Poltawski d68c62fe12 Merge branch 'w12_MDL-29515_m23_deprdb' of git://github.com/skodak/moodle 2012-03-21 09:25:47 +08:00
Sam Hemelryk f520dcd9ba MDL-31640 course search: Coding style clean up 2012-03-21 09:49:38 +13:00
Aaron Barnes 94db27498d MDL-27469 scorm: Add extra activity completion conditions 2012-03-21 09:48:38 +13:00
Sam Hemelryk 1a381535e6 Merge branch 'wip-mdl-31640-new' of git://github.com/rajeshtaneja/moodle 2012-03-21 09:41:32 +13:00
Sam Hemelryk 333b9ac765 Merge branch 'MDL-28952-master' of git://github.com/ankitagarwal/moodle 2012-03-21 09:29:24 +13:00
Sam Hemelryk bc4340ca9c Merge branch 'MDL-32065-master-1' of git://git.luns.net.uk/moodle 2012-03-21 09:24:58 +13:00
Sam Hemelryk 23dfb50687 Merge branch 'w12_MDL-32094_integration_fix' of git://github.com/skodak/moodle 2012-03-21 09:20:29 +13:00
Rossiani Wijaya e053583fc7 MDL-31266 Lesson module: Improve feedback so that the responses are concatenated instead of overwritten 2012-03-20 21:56:18 +08:00
Rossiani Wijaya 49ef5d4c7f MDL-31775 Lesson Module: fixed start at last page seen bug 2012-03-20 17:32:58 +08:00
Dan Poltawski 149da7724b Merge branch 'w12_MDL-29894_m23_objectparams' of git://github.com/skodak/moodle 2012-03-20 16:40:28 +08:00
Petr Skoda c2daa41a2e MDL-32094 fix duration test 2012-03-20 09:22:29 +01:00
Aparup Banerjee 0e5c50e29a MDL-29848 glossary: fixed whitespace 2012-03-20 16:12:02 +08:00
Aparup Banerjee aa4edcf614 Merge branch 'MDL-29848-master' of https://github.com/mackensen/moodle 2012-03-20 16:06:40 +08:00
Aparup Banerjee 7d2b2e808f Merge branch 'MDL-31818_grader_paging' of git://github.com/andyjdavis/moodle 2012-03-20 13:20:03 +08:00
Sam Hemelryk ef844d0a15 Merge branch 'w12_MDL-32094_m23_phpstrict' of git://github.com/skodak/moodle 2012-03-20 16:47:17 +13:00
Sam Hemelryk 0ca579f2cd MDL-11047 mod_quiz: bumped version in upgrade after conflict resolution 2012-03-20 16:46:19 +13:00
Ankit Agarwal efd6defecb MDL-28592 blocks: changing the arguments to moodle_url::out() 2012-03-20 10:57:12 +08:00
Aparup Banerjee b36135b66a Merge branch 'wip-MDL-31528-m23' of git://github.com/samhemelryk/moodle 2012-03-20 10:09:43 +08:00
Sam Hemelryk 270bdf5265 Merge branch 'MDL-11047' of git://github.com/mackensen/moodle
Conflicts:
	mod/quiz/version.php
2012-03-20 14:04:04 +13:00
Sam Hemelryk 62cf6937f6 Merge branch 'wip-MDL-32037-master' of git://github.com/marinaglancy/moodle 2012-03-20 13:33:30 +13:00
Sam Hemelryk 9340d834f3 Merge branch 'w12_MDL-32050_m23_minify' of git://github.com/skodak/moodle 2012-03-20 12:50:21 +13:00
Sam Hemelryk e2edc82058 Merge branch 'w12_MDL-32043_m23_webserver' of git://github.com/skodak/moodle 2012-03-20 12:12:44 +13:00
Sam Hemelryk f40400b91e Merge branch 'w12_MDL-32045_m23_resetnorole' of git://github.com/skodak/moodle 2012-03-20 12:06:07 +13:00
Sam Hemelryk ef3b34ccc7 Merge branch 'w12_MDL-32052_m23_authtype' of git://github.com/skodak/moodle 2012-03-20 12:02:05 +13:00
Sam Hemelryk fab344f54b Merge branch 'w12_MDL-32071_m23_dbfamily' of git://github.com/skodak/moodle 2012-03-20 11:46:00 +13:00
Sam Hemelryk b896c12bca Merge branch 'w12_MDL-32079_m23_folderrev' of git://github.com/skodak/moodle 2012-03-20 11:34:21 +13:00
M Kassaei e6208ec604 MDL-32053 question: Question bank table displayed inconsistently 2012-03-20 11:00:16 +13:00
M Kassaei d1a80dd2b2 MDL-32048 mod_quiz: Question bank select/deselect all shows strange behaviour in IE 2012-03-20 10:55:01 +13:00
Sam Hemelryk f7dbc2814c Merge branch 'MDL-32064' of git://github.com/timhunt/moodle 2012-03-20 10:37:38 +13:00
Sam Hemelryk 6f3570ffec MDL-19125 upgrade: Fixed assignment typo 2012-03-20 10:34:30 +13:00
Mary Evans 4c67628cea MDL-30235 theme_anomaly: change anomaly theme to use san-serif fonts 2012-03-19 13:05:53 +00:00
Sam Hemelryk 2525cee573 Merge branch 'MDL-32084_master' of git://github.com/lazydaisy/moodle 2012-03-19 20:38:28 +13:00
Sam Hemelryk b31865ce2a Merge branch 'w12_MDL-32090_m23_groupui' of git://github.com/skodak/moodle 2012-03-19 20:33:48 +13:00
Sam Hemelryk ae89dd8de9 Merge branch 'w12_MDL-32046_m23_lastdbuser' of git://github.com/skodak/moodle 2012-03-19 20:29:39 +13:00
Petr Skoda 0f75e1e627 MDL-27553 admin: Fixed override bug 2012-03-19 20:21:33 +13:00
Sam Hemelryk 2cd97ff3c5 Merge branch 'w12_MDL-31703_m23_rootdirroot' of git://github.com/skodak/moodle 2012-03-19 20:16:34 +13:00
Rajesh Taneja fdfe706489 MDL-31640 course: removed extra error message, perpage is set properly, modulelink hidden field, and new context call is used. 2012-03-19 15:15:06 +08:00
Sam Hemelryk 47def74bb8 Merge branch 'wip-mdl-26674' of git://github.com/rajeshtaneja/moodle 2012-03-19 20:06:40 +13:00
Sam Hemelryk 96e7855298 MDL-31528 navigation: Fixed up missing break and optimised category.php 2012-03-19 19:32:15 +13:00
Sam Hemelryk 11c0eccee4 MDL-31984 Fixed whitespace during integration 2012-03-19 19:12:40 +13:00
Brian Jorgensen 6fc267a07d MDL-31984: add debugging message if theme renderer file is missnamed 2012-03-19 19:12:39 +13:00
Rajesh Taneja 506cbfd749 MDL-31640 course: Move to, edit and search functionality in search.php is fixed with proper permission check 2012-03-19 12:02:02 +08:00
Rajesh Taneja 476aea8d8b MDL-26674 wiki2.0: cleaned wiki event logging patch 2012-03-19 11:15:06 +08:00
Sam Hemelryk f359fd6fcc Merge branch 'wip-MDL-27064-master' of git://github.com/phalacee/moodle 2012-03-19 15:49:05 +13:00
Tim Lock 186fc53401 MDL-31869: Searching for users in messaging with multiple roles generates a warning 2012-03-19 09:31:46 +07:00
Diane Villemure b7921fc458 MDL-26674 wiki2.0: Fixed wiki activity log 2012-03-19 10:20:18 +08:00
Sam Hemelryk 1a8ea682ef Merge branch 'MDL-32004-master-2' of git://git.luns.net.uk/moodle 2012-03-19 14:37:49 +13:00
Sam Hemelryk 55652c87a8 Merge branch 'MDL-32008-master-2' of git://git.luns.net.uk/moodle 2012-03-19 14:28:06 +13:00
Sam Hemelryk 6972a9b7b7 Merge branch 'MDL-28187_messaging_nav' of git://github.com/andyjdavis/moodle 2012-03-19 14:14:28 +13:00
Sam Hemelryk 223d02a468 Merge branch 'MDL-31835_recent_conversations' of git://github.com/andyjdavis/moodle 2012-03-19 14:10:37 +13:00
Sam Hemelryk 4354486d30 MDL-19125 upgrade: Fixed typo 2012-03-19 11:01:50 +13:00
Sam Hemelryk fb1d0388ff Merge branch 'MDL-30890' of git://github.com/rwijaya/moodle 2012-03-19 10:28:14 +13:00
Sam Hemelryk 8149d6240a MDL-19125 lib: Fixed up inline comments during integration 2012-03-19 10:08:47 +13:00
Sam Hemelryk 264743baaf Merge branch 'MDL-19125_module_security' of git://github.com/timhunt/moodle 2012-03-19 10:07:57 +13:00
Petr Skoda e2bb3c9275 MDL-32094 some more E_STRICT fixes 2012-03-18 20:40:20 +01:00
Petr Skoda 990e4b0ee9 MDL-32094 do not show html markup in cron errors 2012-03-18 18:43:56 +01:00
Petr Skoda fabbf4398b MDL-32094 some nasty quickforms hacks that should help with E_STRICT
Note: we have stopped tracking our QuickForms hacks long ago.
2012-03-18 18:39:37 +01:00
Petr Skoda f4b8586a26 MDL-32094 our ageing SimpleTest integration is not going to be compatible with E_STRICT 2012-03-18 18:38:08 +01:00
Petr Skoda f20edd5208 MDL-32094 fix various E_STRICT compatibility problems 2012-03-18 18:37:24 +01:00
Petr Skoda 0ed6f71232 MDL-32094 fix E_STRICT issues in lesson API
It is not possible to change method signatures in PHP...
2012-03-18 18:36:04 +01:00
Petr Skoda 072db71c90 MDL-32094 fix question related E_STRICT problems 2012-03-18 18:33:54 +01:00
Petr Skoda e7755fc627 MDL-32094 fix E_STRICT issues in assignment 2012-03-18 18:32:17 +01:00
Petr Skoda 58eb9b9f2a MDL-32094 fix E_STRICT problems in repository API 2012-03-18 18:31:32 +01:00
Petr Skoda 3c548abf1b MDL-32094 fix E_STRICT warning caused by changing of init() parameters in css style classes 2012-03-18 18:29:46 +01:00
Petr Skoda 265b1434b0 MDL-31703 allow serving of JavaScript from unsupported '/' dirroot 2012-03-18 17:28:59 +01:00
Mary Evans e3e4ca6895 MDL-32084 theme_fusion: removed default tagline in frontpage.php and changed configtextarea to configtext 2012-03-17 21:33:59 +00:00
Petr Skoda 8ef42632d2 MDL-29515 finally drop 1.9 DML and DDL from deprecatedlib.php 2012-03-17 19:31:36 +01:00
Petr Skoda e763c273eb MDL-29515 drop 1.9 xmldb classes and methods (deprecated since 2.0) 2012-03-17 19:27:13 +01:00
Petr Skoda de640a2d3f MDL-29515 remove deprecated $DB->sql_ilike() and fix debug messages 2012-03-17 19:20:39 +01:00
Petr Skoda e618cdf3f6 MDL-29894 forbid objects in DML parameters
Objects with __toString we never fully supported as parameters in DML layer, this finally brings consistent behaviour.
2012-03-17 18:44:12 +01:00
Petr Skoda 88c48bbfda MDL-32052 use $this->authtype in auth config, this may help with sib classing of plugins 2012-03-17 10:58:43 +01:00
Petr Skoda 351d55b372 MDL-32052 simplify subclassing of auth_email 2012-03-17 10:52:09 +01:00
Andrew Davis ff038e4bae MDL-28187 message: fixed up $PAGE->set_url() in /message/index.php so the nav highlighted properly 2012-03-17 11:41:06 +07:00
Andrew Davis 4a29d2912c MDL-31818 grade: removed some broken code to do with overriding students per page, added a post variable so the page isnt lost when submitting grades 2012-03-17 09:51:21 +07:00
AMOS bot e97de27f3a Automatically generated installer lang files 2012-03-17 00:31:38 +00:00
Petr Skoda 0ac9d19a23 MDL-32090 fix invalid group members url
Credit goes to Jean-Philippe Gaudreau.
2012-03-16 20:11:23 +01:00
Petr Skoda 37d729777c MDL-32050 import Minify 2.1.5 2012-03-16 20:03:03 +01:00
Andrew Robert Nicols cac06a034d MDL-31914 Ensure that completion criteria are deleted when removing a course module 2012-03-16 16:07:05 +00:00
Tim Hunt ff3b7c85db MDL-32064 quiz navigation: JS form submit must fire submit event handlers. 2012-03-16 14:55:16 +00:00
Andrew Robert Nicols cab03a03b4 MDL-32008 Remove old group deletion code 2012-03-16 12:05:54 +00:00
AMOS bot 2064994d6b Automatically generated installer lang files 2012-03-16 12:05:53 +00:00
Petr Skoda a12f9825dd MDL-32046 show warning that unenrolment of all users is not allowed in non-verbose mode 2012-03-16 11:03:31 +01:00
Petr Skoda 2e15b12b81 MDL-32045 allow unenrolment of users without role via course reset 2012-03-16 10:55:30 +01:00
Petr Skoda a2a4344910 MDL-32071 fix fatal problems in experimental forum_usetextsearches 2012-03-16 10:29:19 +01:00
Petr Skoda 60791f18cf MDL-32079 folder revision must be incremented after any file change 2012-03-16 10:11:07 +01:00
Ankit Agarwal db4ac453c3 MDL-28952 blocks: Fixing the extra escaping issue with profile links 2012-03-16 14:27:05 +08:00
Andrew Davis 178ba8bc36 MDL-31835 message: added a view conversation type link after each conversation on the recent conversation screen 2012-03-16 13:19:50 +07:00
Marina Glancy a5159b864d MDL-32037: MDL-32037: After displaying error message filepicker could not send proper request to server
We need to make sure that code executed on error does not create more requests and
especially does not create the same request that resulted with error. So now by default
filepicker will clear the right side of the window if repository_ajax.php returned an
error.
Also fixed an 'invalidsesskey' error string.
2012-03-16 09:38:33 +08:00
Dan Marsden c1b81ff623 MDL-32080 SCORM - remove old css 2012-03-16 13:16:05 +13:00
Sam Hemelryk e141bc8109 MDL-31528 navigation: Replaced calls to deprecated context_instance_preload 2012-03-16 10:36:00 +13:00
Sam Hemelryk f73cea5418 MDL-31528 navigation: Tidied up page for viewing and managing categories 2012-03-16 10:36:00 +13:00
Sam Hemelryk 8486f20713 MDL-31528 navigation: Fixed up navbar generation when editing categories 2012-03-16 10:36:00 +13:00
Sam Hemelryk 6a16e1367a MDL-31528 navigation: Fixed up generation for category contexts 2012-03-16 10:36:00 +13:00
Tim Hunt 8cb7a6d512 MDL-31594 question manual grading: did not handle comma as decimal. 2012-03-15 18:46:43 +00:00
Tim Hunt 0f0c0228b0 MDL-19125 module restrictions: document change in mod/upgrade.txt 2012-03-15 17:13:54 +00:00
Tim Hunt 88eca3cd26 MDL-19125 module restrictions: addinstance capabilities for all mods 2012-03-15 17:13:43 +00:00
Tim Hunt 9665ecd275 MDL-19125 module restrictions: use a capability
1. This used to use a complex legacy system which was buggy.

2. It now relies on a new mod/...:addinstance capability for each module.

3. All the legacy code has been stripped out.

4. Old restriction data is upgraded by creating the necessary permission
overrides. Similarly, when old backups are restored, the old settings
are converted to be overrides.

5. The required addinstance capabilities will be added as a separate
commit.

6. There is a developer debug warning about modules that are missing the
addinstance capability, unless they are MOD_ARCHETYPE_SYSTEM mods.
2012-03-15 17:11:27 +00:00
Charles Fulton 33c8d37b6f MDL-11047 quiz: enable sequential navigation 2012-03-15 10:09:27 -07:00
Andrew Robert Nicols 536328fb0a MDL-32065 Allow feedback images to be themed 2012-03-15 11:48:21 +00:00
Petr Skoda d860f1ad28 MDL-32043 add support for built-in PHP Development Server 2012-03-15 12:26:10 +01:00
Eloy Lafuente (stronk7) a2b30aa852 weekly release 2.3dev 2012-03-15 11:44:35 +01:00
Eloy Lafuente (stronk7) ef5d54ffbf Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-03-15 11:41:55 +01:00
Rossiani Wijaya 89c7c7a999 MDL-30890 accessibility compliance: add summary to calendar table 2012-03-15 16:55:59 +08:00
Aparup Banerjee 78e05ba53e MDL-32028 Documentation : removed legacy 1.x documentation 2012-03-15 15:19:32 +08:00
Jason Fowler ec21eaba2e MDL-27064 - Blog - Changing the link text for different levels of blog entries 2012-03-15 08:46:38 +08:00
AMOS bot 11bccdfd51 Automatically generated installer lang files 2012-03-15 00:31:47 +00:00
Eloy Lafuente (stronk7) 3e59bbdbb7 Merge branch 'MDL-26243-master' of https://github.com/mackensen/moodle 2012-03-15 00:39:17 +01:00
Jenny Gray b33e6d8e8b MDL-31911 admin tools: moved loop after tools admin category created 2012-03-15 00:29:15 +01:00
Eloy Lafuente (stronk7) 7142a75563 MDL-30995 completion: switch one type & name for correctness 2012-03-14 18:14:36 +01:00
Eloy Lafuente (stronk7) f7acd639a5 MDL-28972 formslib: whitespace fixes 2012-03-14 18:10:24 +01:00
Eloy Lafuente (stronk7) 956d55e638 Merge branch 'MDL-30995' of git://github.com/ankitagarwal/moodle 2012-03-14 18:07:21 +01:00
Ankit Agarwal f55ff38a1b MDL-30995 completion: updating PHPdocs as suggested by little smurfs 2012-03-14 14:39:36 +08:00
Sam Hemelryk 4dd2af1270 MDL-28972 formslib: Fixed up variable naming 2012-03-14 14:40:12 +13:00
Sam Hemelryk 00efe93759 Merge branch 'wip-mdl-28972' of git://github.com/rajeshtaneja/moodle 2012-03-14 14:40:07 +13:00
Aparup Banerjee 12b8995749 Merge branch 'MDL-31853_admin_externalpage_setup' of git://github.com/davosmith/moodle 2012-03-14 09:16:27 +08:00
Sam Hemelryk 772685e983 MDl-30616 course: Fixed bug with module subtype links 2012-03-14 13:56:22 +13:00
Sam Hemelryk 652d49ab35 Merge branch 'MDL-29147_insertElementBefore_warning' of git://github.com/davosmith/moodle 2012-03-14 11:52:38 +13:00
Eloy Lafuente (stronk7) 9767526f88 Merge branch 'MDL-30616-master-7' of git://git.luns.net.uk/moodle 2012-03-13 23:40:39 +01:00
Sam Hemelryk dfcf582c43 Merge branch 'MDL-29440-master' of git://github.com/danpoltawski/moodle 2012-03-14 11:29:52 +13:00
Sam Hemelryk 29a225040c Merge branch 'MDL-31975_master' of git://github.com/kordan/moodle 2012-03-14 11:23:39 +13:00
Sam Hemelryk 1c1cb8cd9a Merge branch 'MDL-31169_master' of git://github.com/lazydaisy/moodle 2012-03-14 11:15:13 +13:00
Eloy Lafuente (stronk7) 8ebbe295ab MDL-31929 minor fixup (the file is plenty, but avoid introducing new ones) 2012-03-13 23:01:59 +01:00
Eloy Lafuente (stronk7) 4c31dfd14a Merge branch 'wip-MDL-31929-master' of git://github.com/marinaglancy/moodle 2012-03-13 23:01:11 +01:00
Ankit Agarwal c862e2f450 MDL-28998 libraries: Using default value of 0 for userid during login 2012-03-14 10:51:52 +13:00
Eloy Lafuente (stronk7) f02702760a Merge branch 'wip-MDL-27405-m23' of git://github.com/samhemelryk/moodle 2012-03-13 22:35:04 +01:00
Sam Hemelryk bc40124bfe MDL-27405 navigation: Fixed up buggy array_merge call 2012-03-14 10:16:34 +13:00
Eloy Lafuente (stronk7) b39877ef10 Merge branch 'w11_MDL-31790_m23_resetunenrol' of git://github.com/skodak/moodle 2012-03-13 18:13:52 +01:00
Eloy Lafuente (stronk7) 9b89dc4f7d Merge branch 'MDL-31981' of git://github.com/timhunt/moodle 2012-03-13 18:08:40 +01:00
Andrew Davis 48e03792ca MDL-31834 message: fixed up some not quite correct usage of moodle/site:readallmessages 2012-03-13 16:44:19 +01:00
Eloy Lafuente (stronk7) e4db653e3a Merge branch 'wip-MDL-31175-m23' of git://github.com/samhemelryk/moodle 2012-03-13 16:15:02 +01:00
Eloy Lafuente (stronk7) 65fc03100d Merge branch 'w11_MDL-31845_m23_dbenrolcat' of git://github.com/skodak/moodle 2012-03-13 13:36:48 +01:00
Eloy Lafuente (stronk7) 7ca5dd85dc MDL-31718 add a few more tests to check that lens and tags are properly handled 2012-03-13 13:13:31 +01:00
Eloy Lafuente (stronk7) 45c41bdc06 Merge branch 'w11_MDL-31718_m23_shortentext' of git://github.com/skodak/moodle 2012-03-13 12:51:41 +01:00
Petr Skoda 5b8a9d1329 MDL-31790 prevent removing of protected role assignments from subcontexts 2012-03-13 12:30:13 +01:00
Ruslan Kabalin 0ea0a175da MDL-32027 messaging: Remove remains of old installation method
Since MDL-17457 installation is done using db/install.php
2012-03-13 11:17:35 +00:00
Aparup Banerjee fed36d5077 Merge branch 'MDL-31709_message_get_participants' of git://github.com/andyjdavis/moodle 2012-03-13 16:54:08 +08:00
Aparup Banerjee 66da1ab0ce Merge branch 'wip-MDL-31838-master' of git://github.com/marinaglancy/moodle 2012-03-13 16:10:19 +08:00
Petr Skoda 35c89e5e87 MDL-31790 fix incorrect capability 2012-03-13 09:09:04 +01:00
Aparup Banerjee 42c8e4d66d Merge branch 'master_MDL-31942' of git://github.com/danmarsden/moodle 2012-03-13 15:51:53 +08:00
Aparup Banerjee 387fb66fd9 Merge branch 'wip-mdl-27862' of git://github.com/rajeshtaneja/moodle 2012-03-13 15:16:30 +08:00
Aparup Banerjee 1fdd48c37f MDL-31008 themes : fixed up incorrect css typo 2012-03-13 15:10:41 +08:00
Aparup Banerjee c20cb1bab1 Merge branch 'wip-mdl-30817' of git://github.com/rajeshtaneja/moodle 2012-03-13 11:45:28 +08:00
Sam Hemelryk c8c00cee80 MDL-29745 Fixed white space 2012-03-13 16:36:37 +13:00
Sam Hemelryk a28c6b40fe Merge branch 'scorm_graph_report' of git://github.com/ankitagarwal/moodle 2012-03-13 16:35:15 +13:00
Aparup Banerjee f3c5d3102d Merge branch 'MDL-30867' of git://github.com/rwijaya/moodle 2012-03-13 11:26:42 +08:00
Mary Evans 5e5ebb39cf MDL-31008 themes : (base theme) reversed MDL-26712 by making dimmed objects grey and added new rule for dimmed activity label text to give 50% transparancy instead 2012-03-13 10:57:16 +08:00
Aparup Banerjee 6a0d8209d1 MDL-31910 Quiz : fixed whitespace 2012-03-13 10:15:05 +08:00
M Kassaei 137d60b66f MDL-31910 Quiz : Error on Manual Grading report 2012-03-13 10:13:27 +08:00
Aparup Banerjee e281281b84 Merge branch 'MDL-31935_search_restore_link' of git://github.com/davosmith/moodle 2012-03-13 10:00:33 +08:00
Ankit Agarwal e2f6cb436a MDL-22895 scorm: Fixed up issues with graph report 2012-03-13 09:31:01 +08:00
Sam Hemelryk db6d54c337 Merge branch 'MDL-31808-master-1' of git://git.luns.net.uk/moodle 2012-03-13 14:10:00 +13:00
Sam Hemelryk fd9dbadb15 Merge branch 'MDL-31917-master-1' of git://git.luns.net.uk/moodle 2012-03-13 14:04:44 +13:00
Sam Hemelryk 595dc849dd Merge branch 'MDL-31919-master-2' of git://git.luns.net.uk/moodle 2012-03-13 14:00:41 +13:00
Eloy Lafuente (stronk7) b20bb8454a Merge branch 'w11_MDL-31985_m23_lobsizes' of git://github.com/skodak/moodle 2012-03-13 00:15:59 +01:00
Sam Hemelryk 820a80f903 Merge branch 'w11_MDL-27457_m23_enrolnorecover' of git://github.com/skodak/moodle 2012-03-13 12:00:08 +13:00
Sam Hemelryk 397ee19727 Merge branch 'MDL-30298_master' of git://github.com/lazydaisy/moodle 2012-03-13 11:55:54 +13:00
Eloy Lafuente (stronk7) 403ff1b8ff Merge branch 'w11_MDL-31899_m23_mysqlcolumns' of git://github.com/skodak/moodle 2012-03-12 23:16:27 +01:00
Sam Hemelryk 80fa598515 Merge branch 'MDL-31702' of git://github.com/timhunt/moodle 2012-03-13 10:34:03 +13:00
Sam Hemelryk 3108b6412c Merge branch 'MDL-31362_unused_constant' of git://github.com/andyjdavis/moodle 2012-03-13 10:10:36 +13:00
Eloy Lafuente (stronk7) e4ccd85f3a Merge branch 'w11_MDL-31956_m23_paypal' of git://github.com/skodak/moodle 2012-03-12 21:36:36 +01:00
Eloy Lafuente (stronk7) 649fd88d8f MDL-31805 html2text - change tests acordingly with the new version
With the new version in place, both <th> and <a> contents are
being handled by the conversion. Accomodate existing tests to
that change.
2012-03-12 21:17:22 +01:00
Eloy Lafuente (stronk7) 39115a4fee Merge branch 'MDL-31979-master' of git://github.com/micaherne/moodle 2012-03-12 20:18:09 +01:00
Eloy Lafuente (stronk7) 89a47fcc4e Merge branch 'w11_MDL-31805_m23_html2text' of git://github.com/skodak/moodle 2012-03-12 18:04:55 +01:00
Eloy Lafuente (stronk7) f0131f57d9 Merge branch 'w11_MDL-31595_m23_enrolme' of git://github.com/skodak/moodle 2012-03-12 18:00:23 +01:00
Ruslan Kabalin 0210ce1007 MDL-32009 messaging: Add message processor uninstall functionality 2012-03-12 16:39:51 +00:00
Ruslan Kabalin 6f4f0b5228 MDL-32009 messaging: Add is_enabled method to plugintype_message 2012-03-12 16:39:35 +00:00
Ruslan Kabalin 26d859e0ec MDL-32009 messaging: Refator get_settings_url plugintype method
No need to duplicate checks since we have them in one place.
2012-03-12 16:39:04 +00:00
Petr Skoda b226ef619f MDL-31805 migrate html2text tests from web lib to new location
Note: the handling of <p> seems to have changed, it does double newlines only between paragraphs now (this makes sense to me).
2012-03-12 17:18:55 +01:00
Petr Skoda 39ec18db5b MDL-31595 improve enrol link comments 2012-03-12 16:47:28 +01:00
Eloy Lafuente (stronk7) c9a16202d7 Merge branch 'w11_MDL-31815_m23_confirmemail' of git://github.com/skodak/moodle 2012-03-12 16:33:27 +01:00
Eloy Lafuente (stronk7) ccd7a793ee Merge branch 'w11_MDL-31534_m23_pageinitroot' of git://github.com/skodak/moodle 2012-03-12 15:49:04 +01:00
Andrew Robert Nicols 950a11e8df MDL-32004 Set the defaultrequestcategory correctly when deleting/creating the default category 2012-03-12 13:15:25 +00:00
Petr Skoda 98054db10b MDL-31534 init PAGE before require_login() 2012-03-12 13:58:01 +01:00
Eloy Lafuente (stronk7) bf0233fb7b Merge branch 'w11_MDL-31494_m23_adodblink' of git://github.com/skodak/moodle 2012-03-12 13:38:30 +01:00
Eloy Lafuente (stronk7) 05386929de Merge branch 'w11_MDL-29514_m23_enum' of git://github.com/skodak/moodle 2012-03-12 12:47:56 +01:00
Mary Evans 180bf7d494 MDL-30298 report_progress: adds outer wrapper with class no-overflow to report table so as to enable horizontal scroll bar 2012-03-12 10:37:35 +00:00
Michael Aherne d8a30af8be MDL-31979 Typo in config-dist.php 2012-03-12 09:43:31 +00:00
Ankit Agarwal 95dd54eea3 MDL-30995 Completion Fixedup some more PHP DOC issues 2012-03-12 16:13:35 +08:00
Sam Hemelryk 836375ec8a MDL-30995 completion: Fixed up PHPdocs for activity completion 2012-03-12 15:27:21 +08:00
Ankit Kumar Agarwal e61a71379c MDL-29745 SCORM Introducing new Graphs report for scorm module 2012-03-12 15:02:26 +08:00
Sam Hemelryk fe0979ea3d Merge branch 'master_MDL-31888' of git://github.com/danmarsden/moodle
Conflicts:
	mod/scorm/styles.css
2012-03-12 17:29:39 +13:00
Sam Hemelryk 52cbd9cbd2 MDL-27304 mod_wiki: Fixed up phpdocs for globals 2012-03-12 17:20:37 +13:00
Sam Hemelryk 2774a46792 Merge branch 'MDL-27304-master' of https://github.com/mackensen/moodle 2012-03-12 17:20:01 +13:00
Charles Fulton 2d20d5488a MDL-31664 fix invalid boolean to string comparison 2012-03-12 17:02:38 +13:00
Sam Hemelryk c257dfc5ff MDL-27212 Fixed up whitespace after integration 2012-03-12 16:36:29 +13:00
Marina Glancy 20ee508499 MDL-31929: Repositories wikimedia and youtube lack paging
repositories wikimedia and youtube:
- save last search in
- process parameter 'page'
- remove buttons 'Refresh', 'Search' and 'Logout' since they don't have meaning
filepicker:
- allow unknown number of pages (['pages'] = -1), show one 'Next' page after the current (both JS and non-JS modes)
repository wikimedia:
- add non-AJAX search form to make it work with JS disabled
2012-03-12 11:35:50 +08:00
Marina Glancy 7f9358fcc0 MDL-31838: Allow caching static responses from repositories in file picker 2012-03-12 11:35:35 +08:00
Sam Hemelryk f0fe35bbbd Merge branch 'MDL-27212-master' of git://github.com/ankitagarwal/moodle 2012-03-12 16:28:16 +13:00
Rajesh Taneja 7f850b23d7 MDL-28972 formslib: orignalvalue is considered and checkboxes are updated depending on orignalvalue of controller 2012-03-12 10:25:21 +08:00
Rajesh Taneja c14584f206 MDL-28972 formslib: Checkbox controller will use yui to select and unselect checkboxes 2012-03-12 10:25:21 +08:00
Sam Hemelryk 401f929515 Merge branch 'MDL-28998-master' of git://github.com/ankitagarwal/moodle 2012-03-12 15:19:20 +13:00
Rajesh Taneja c069c01755 MDL-27862 Themes: Device name first letter is capital and font is made similar to theme name font 2012-03-12 10:18:28 +08:00
Rajesh Taneja df46b9b40d MDL-27862 Themes: clear theme cache button will redirect to the page on which it was pressed 2012-03-12 10:18:28 +08:00
Rajesh Taneja 36ff8d05de MDL-27862 Themes: replaced disabled use theme button with unset theme button 2012-03-12 10:18:28 +08:00
Rajesh Taneja bff67f4904 MDL-27862 Themes: Added button to un-select theme for devices, except default device 2012-03-12 10:18:28 +08:00
Rajesh Taneja 604cb17920 MDL-27862 Themes: Strings updated on theme selection pages 2012-03-12 10:18:27 +08:00
Rajesh Taneja 9e4baaf96f MDL-30817 activity_completion: Fixed title and alt string (on checkbox) to have module name prefixed 2012-03-12 10:16:31 +08:00
Sam Hemelryk d9fc82157b Merge branch 'MDL-31811-master-2' of git://git.luns.net.uk/moodle 2012-03-12 15:15:23 +13:00
Sam Hemelryk 6bf6e113bb Merge branch 'MDL-31877-master-1' of git://git.luns.net.uk/moodle 2012-03-12 14:57:11 +13:00
Sam Hemelryk 100875efdb Merge branch 'MDL-31918-master-2' of git://git.luns.net.uk/moodle 2012-03-12 14:54:42 +13:00
Dan Poltawski 35b7dd7b6a MDL-29440 calendar: iCal export don't allow html in description export 2012-03-12 09:51:43 +08:00
Sam Hemelryk 8dd4ccfbb3 Merge branch 'MDL-31923-master-6' of git://git.luns.net.uk/moodle 2012-03-12 14:33:42 +13:00
Sam Hemelryk 44f24f1351 Merge branch 'MDL-31841_feedback_align' of git://github.com/andyjdavis/moodle 2012-03-12 14:22:20 +13:00
Sam Hemelryk 2b824233ad Merge branch 'wip-MDL-30906-master' of git://github.com/abgreeve/moodle 2012-03-12 14:20:02 +13:00
Sam Hemelryk 00f286ed7b MDL-31175 backup: Fixed undefined in register_dependency 2012-03-12 09:42:50 +13:00
Sam Hemelryk aad30b6a39 MDL-27405 navigation: Improved checking when fetching all parent categories 2012-03-12 09:42:41 +13:00
Sam Hemelryk b0712163e6 MDL-27405 navigation: My courses branch now shows categories if navshowcategories is enabled 2012-03-12 09:42:41 +13:00
Petr Skoda e235f2a36e MDL-31718 utf-8 support in shorten_text() 2012-03-11 21:31:33 +01:00
Petr Skoda bb88a54d06 MDL-31985 remove text sizes from all install.xml files 2012-03-11 15:55:37 +01:00
Petr Skoda 436650b075 MDL-31985 convert all existing LOBs 2012-03-11 15:51:49 +01:00
Mary Evans a5ba7c3654 MDL-30298 report_completion: adds outer wrapper with class no-overflow to report table so as to enable horizontal scroll bar 2012-03-11 14:09:37 +00:00
Petr Skoda f13489df50 MDL-31985 remove LOB sizes from code and UI 2012-03-11 13:42:37 +01:00
Mary Evans 87993dca90 MDL-30298 theme_binarius: adds horizontal scroll to report layout 2012-03-11 01:25:25 +00:00
Mary Evans aa030baca2 MDL-31169 theme_base: adds clearfix to page layouts so body height is not zero 2012-03-10 22:05:04 +00:00
Petr Skoda bc09aa158b MDL-31899 use information_schema for normal db tables in get_columns()
This change is based on patch by Charles Fulton.
2012-03-10 21:41:44 +01:00
Petr Skoda f886a2cf79 MDL-31899 add extra text size unit tests 2012-03-10 21:38:57 +01:00
Petr Skoda 05aae0a571 MDL-29514 drop support for enum data types 2012-03-10 21:36:48 +01:00
Petr Skoda dcc27dd143 MDL-31790 add more support for user unenrolments in course reset 2012-03-10 15:25:53 +01:00
Petr Skoda b6f7dbe3a2 MDL-31845 fix not-null constraint on idnumber 2012-03-10 14:25:28 +01:00
Petr Skoda e042c58df1 MDL-31845 add "Local category field" option in database enrol plugin
This patch uses code from the original patch by Michael Aherne, most of the credit goes to him.
2012-03-10 14:19:49 +01:00
Petr Skoda f619fcdae1 MDL-31956 fix enrol string components
Credit goes to Mark Nelson
2012-03-10 13:01:19 +01:00
Petr Skoda e60ba0c919 MDL-31805 test invalid html processing in html2text 2012-03-10 12:46:11 +01:00
Petr Skoda 3d6b5d37b2 MDL-31805 import html2text revision 5886 with our customisations
snapshot from https://github.com/moodle/custom-html2text/tree/MOODLE_5886_1
2012-03-10 12:40:04 +01:00
Petr Skoda 04673aee32 MDL-31805 add tests for our html2text tweaks 2012-03-10 12:38:52 +01:00
Petr Skoda 63900cc51e MDL-31494 fix link to adodb driver docs
target="_bank" is valid again in html5, it does help a lot here no matter what legacy accessibility guides say…
2012-03-10 11:04:51 +01:00
Petr Skoda 3d951178fc MDL-31815 encode dots in confirm url which helps email clients with url highlighting 2012-03-10 10:46:36 +01:00
Petr Skoda f2ab2436b5 MDL-27457 fix JS error on enrol when grade history disabled 2012-03-10 09:59:25 +01:00
Petr Skoda 6813cdf73a MDL-31595 do not show enrolee link to guest account 2012-03-10 09:40:42 +01:00
Tim Hunt 9eb62b33b9 MDL-31981 shortanswer qtype does not handle \* in correct response. 2012-03-09 18:54:20 +00:00
Kordan f49b78f0fa MDL-31975 theme_formal_white: minor css cleanup 2012-03-09 14:20:53 +01:00
Tim Hunt ba3fedfb49 MDL-31702 quiz: clarify error message that has been confusing people. 2012-03-09 11:28:20 +00:00
Eloy Lafuente (stronk7) 23778a4dfa Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-03-09 11:56:22 +01:00
AMOS bot 80a0272a1d Automatically generated installer lang files 2012-03-09 11:54:12 +01:00
Eloy Lafuente (stronk7) 3a016edc0b weekly release 2.3dev 2012-03-09 11:13:09 +01:00
Eloy Lafuente (stronk7) c5d5d911a0 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-03-09 11:03:53 +01:00
Rossiani Wijaya d3254cebfc MDL-30867 Lesson module: fix lesson essay question formtting to be consistent with user selection 2012-03-09 17:32:18 +08:00
Eloy Lafuente (stronk7) e45cad3e5e Merge branch 'wip-MDL-31248-master-v3' of git://github.com/abgreeve/moodle 2012-03-09 09:44:30 +01:00
Eloy Lafuente (stronk7) a0808e8eda Revert "MDL-31248 - lib - Alteration to the rc4encrypt function to allow for old password use."
This reverts commit 6aa13eb36b.
2012-03-09 09:37:06 +01:00
Ankit Agarwal 5c333af0c0 MDL-2712 tags: removing the anchor links when there are no results 2012-03-09 15:02:10 +08:00
Ankit Agarwal 9247265b81 MDL-28998 libraries: Adding validation to customisable profile fields during signup 2012-03-09 14:48:36 +08:00
Adrian Greeve 40fe364713 MDL-31248 - lib - Retaining the old password key and creating a new cookie prefix. 2012-03-09 13:38:51 +08:00
Eloy Lafuente (stronk7) d395ad7042 Revert "[MDL-31708] - wiki 2.0 non-group member can see edit option in navigation block."
This reverts commit ebadb9b9a6.
2012-03-09 01:58:09 +01:00
Eloy Lafuente (stronk7) 61b0512c44 Revert "MDL-31708 wiki groups: whitespace fix"
This reverts commit 6273fb8377.
2012-03-09 01:58:01 +01:00
Iñaki Arenaza ca769fa7f8 MDL-31540 Try to remove duplicates before storing LDAP search contexts
If the user specifies the same LDAP search context more than once,
when we sync users we retrieve the same set of users twice. When we
try to insert the "duplicated" user in the temp table again, the db
barfs and the db layer aborts the whole transaction.

So we try to detect and remove duplicates. This is a bit tricky (LDAP
is such a complex and wonderful protocol) as the contexts are
distinguished names and the matching/comparison rules are complex. But
assuming that we only use the attribute types used in 99.999% of the
distinguished names used for contexts out there (that is: dc, ou, cn,
o, l and c), and also assuming that the user is not using different
encodings/escapings for the same context, we can lower case the
contexts to compare them (and remove duplicates).

This is safe according to RFC-4517 (section 4.2.15. distinguishedNameMatch)
and RFC-4519 (where the EQUAILITY property is defined for the
different user application attribute types).

This shouldn't break any configuration that wasn't broken before :)

Signed-off-by: Iñaki Arenaza <iarenaza@mondragon.edu>
2012-03-08 21:57:59 +01:00
Charles Fulton eb5947bcca MDL-26243 calendar: display correct number of repeated events 2012-03-08 06:47:07 -08:00
Andrew Robert Nicols ce13ea6ceb MDL-31923 Correctly respect hiddenfields and capabilities 2012-03-08 10:05:14 +00:00
Andrew Davis 62a966ada0 MDL-31841 grade: prevented the feedback column on the user report from being centered 2012-03-08 15:19:17 +07:00
Dan Marsden eb3a62d293 MDL-31942 Choice - remove deprec func 2012-03-08 20:37:17 +13:00
Eloy Lafuente (stronk7) 2583b7d22f Merge branch 'wip-MDL-31248-master-v2' of git://github.com/abgreeve/moodle 2012-03-08 02:27:55 +01:00
AMOS bot d30b5d8f16 Automatically generated installer lang files 2012-03-08 00:31:35 +00:00
Adrian Greeve 6aa13eb36b MDL-31248 - lib - Alteration to the rc4encrypt function to allow for old password use. 2012-03-08 08:09:39 +08:00
Eloy Lafuente (stronk7) 427ad4d3c3 Merge branch 'wip-MDL-29086-master' of git://github.com/abgreeve/moodle 2012-03-08 00:48:04 +01:00
Eloy Lafuente (stronk7) e233175df1 Merge branch 'wip-MDL-30991-master' of git://github.com/phalacee/moodle 2012-03-07 21:41:36 +01:00
Andrew Robert Nicols ccb8d546e3 MDL-31918 Use cached module info for activity completion report 2012-03-07 15:25:38 +00:00
Eloy Lafuente (stronk7) f1662409a0 Merge branch 'MDL-31712_master' of git://github.com/kordan/moodle 2012-03-07 15:39:01 +01:00
Davo Smith 87bef8f6d5 MDL-31935 Fixed restore backup link in course search 2012-03-07 13:38:29 +00:00
Petr Skoda a681b6c0a9 MDL-31689 fix moodle_database:execute() description 2012-03-07 12:36:40 +01:00
Eloy Lafuente (stronk7) daf714ef12 MDL-31832 CLI upgrade will return 0 exit status if no upgrade is needed
Discussed with David, both points were valid but finally
we agreed about to consider the "no upgrade needed" exit
a normal/succesful one, mainly because it keeps previous
behavior the same (exit non-zero only for real errors).
2012-03-07 10:58:56 +01:00
David Mudrak 91c038f932 MDL-31832 CLI upgrade checks if the upgrade is actually needed 2012-03-07 10:58:07 +01:00
Eloy Lafuente (stronk7) a1ef8c6d3c MDL-28364 whitespace fixes 2012-03-07 04:00:39 +01:00
Eloy Lafuente (stronk7) 12c5685a50 Merge branch 'MDL-28364' of git://github.com/jonof/moodle 2012-03-07 03:55:53 +01:00
Eloy Lafuente (stronk7) 47ee3c5569 MDL-30976 whitespace fixes 2012-03-07 02:19:59 +01:00
Eloy Lafuente (stronk7) 4651c2d214 Merge branch 'MDL-30996-master' of git://github.com/ankitagarwal/moodle 2012-03-07 02:10:40 +01:00
Eloy Lafuente (stronk7) 0b56e99431 MDL-23787 data: Init 2 arrays (global scope) that may conflict with other global scope code 2012-03-07 01:47:31 +01:00
AMOS bot f0fc15edd3 Automatically generated installer lang files 2012-03-07 00:31:41 +00:00
Eloy Lafuente (stronk7) 8650e13f9b Merge branch 'wip-MDL-23787-master' of git://github.com/marinaglancy/moodle 2012-03-07 01:22:54 +01:00
Eloy Lafuente (stronk7) bb77ead0a4 Merge branch 'MDL-31255-master-3' of git://git.luns.net.uk/moodle 2012-03-07 00:18:27 +01:00
Sam Hemelryk c607258ae4 Merge branch 'MDL-28387-master' of git://github.com/ankitagarwal/moodle 2012-03-07 11:46:42 +13:00
Eloy Lafuente (stronk7) 7a4eb4ad3a Merge branch 'MDL-31876-question_has_capability_on-memory-bloat' of git://github.com/dhg-atarplpl/moodle 2012-03-06 21:30:25 +01:00
Eloy Lafuente (stronk7) f1fbdbea33 Merge branch 'MDL-31829' of git://github.com/timhunt/moodle 2012-03-06 21:18:04 +01:00
Eloy Lafuente (stronk7) 55957253d2 Merge branch 'w10_MDL-31079_m23_minifydebug' of git://github.com/skodak/moodle 2012-03-06 21:10:02 +01:00
Dan Marsden 85a2d566e2 MDL-31888 SCORM prevent scrollbars on yui div 2012-03-07 09:01:45 +13:00
Ruslan Kabalin 8ef93c7029 MDL-31919 Fix assignment overview output to respect gradebook grading.
Currenly, if assigment has been graded in gradebook only, in the assigment
overview it is listed as not graded.
2012-03-06 16:55:29 +00:00
Charles Fulton 537c237b18 MDL-27304 wiki: link to user's course profile 2012-03-06 08:33:12 -08:00
Ruslan Kabalin 7761e7b39a MDL-31917 Improve assigment submission usability
Say 'View' if assignment has been graded via gradebook and changing
grades via submissions interface is not possible.
2012-03-06 15:43:07 +00:00
Eloy Lafuente (stronk7) 21013a39fd MDL-31301 textlib: fix deprecated initial version 2012-03-06 16:18:58 +01:00
Eloy Lafuente (stronk7) 2ed7cc2730 Merge branch 'w10_MDL-31301_m23_textlibcleanup' of git://github.com/skodak/moodle 2012-03-06 16:06:53 +01:00
Eloy Lafuente (stronk7) 050bce5f0c Merge branch 'w10_MDL-31361_m23_dbunenrol' of git://github.com/skodak/moodle 2012-03-06 15:38:29 +01:00
Eloy Lafuente (stronk7) c5e3e165b1 Merge branch 'w10_MDL-30636_m23_tinymce' of git://github.com/skodak/moodle 2012-03-06 13:35:40 +01:00
Eloy Lafuente (stronk7) ea5740a821 Merge branch 'w10_MDL-31785_m23_htmlpurifier' of git://github.com/skodak/moodle 2012-03-06 13:01:39 +01:00
Petr Skoda 7385cc000e MDL-27982 add unsigned removal for mysql 2012-03-06 12:04:48 +01:00
Petr Skoda e9e4a4a672 MDL-27982 convert all signed to unsigned and prevent adding of new unsigned columns
Conflicts, amended to use .02 versions:

	lib/db/upgrade.php, version.php
2012-03-06 12:03:59 +01:00
Petr Skoda 7e522ccbc8 MDL-27982 remove unsigned support from all UIs and APIs, keep only public API for BC 2012-03-06 12:02:11 +01:00
Petr Skoda c3dd6b01fe MDL-27982 drop UNSIGNED attributes from all install.xml files 2012-03-06 12:01:10 +01:00
Petr Skoda 10c5c29c02 MDL-27982 keep testing UNSIGNED in ddl tests for now 2012-03-06 12:00:29 +01:00
Eloy Lafuente (stronk7) 6273fb8377 MDL-31708 wiki groups: whitespace fix 2012-03-06 11:45:34 +01:00
Andrew Robert Nicols e8027a40cd MDL-31811 Add/Correct checks on activity read-only periods 2012-03-06 09:30:32 +00:00
Adrian Greeve 551028dfd4 MDL-30906 - course - Changed the <hx> tags to follow a sequential order 2012-03-06 14:50:09 +08:00
Gilles-Philippe Leblanc ebadb9b9a6 [MDL-31708] - wiki 2.0 non-group member can see edit option in navigation block. 2012-03-06 10:20:42 +08:00
Sam Hemelryk cb0a069019 Merge branch 'MDL-27764' of git://github.com/stronk7/moodle 2012-03-06 10:19:28 +13:00
Sam Hemelryk 22e5ef529d Merge branch 'MDL-31328_master' of git://github.com/lazydaisy/moodle 2012-03-06 09:57:06 +13:00
Andrew Robert Nicols cdca666bbb MDL-31877 Correct get_users exception 2012-03-05 13:48:55 +00:00
Gootvilig David Hai fe0fbfae31 MDL-31876 questionlib: fix question_has_capability_on memory bloat 2012-03-05 14:40:28 +02:00
Sam Hemelryk 1392fd114a Merge branch 'MDL-31828' of git://github.com/timhunt/moodle 2012-03-05 17:03:34 +13:00
Sam Hemelryk 0d4f9805ef Merge branch 'w10_MDL-31807_m23_cohort' of git://github.com/skodak/moodle 2012-03-05 16:56:30 +13:00
Sam Hemelryk 0d077cef06 Merge branch 'MDL-31821_master' of git://github.com/lazydaisy/moodle 2012-03-05 16:45:31 +13:00
Sam Hemelryk 41b542d96d Merge branch 'MDL-29347' of git://github.com/mouneyrac/moodle 2012-03-05 16:12:38 +13:00
Sam Hemelryk 48c6ebebbf MDL-30724 mod_assignment: Minor fixes during integration 2012-03-05 16:09:55 +13:00
Sam Hemelryk 29747783e2 Merge branch 'm_MDL-30724_count_real_submissions_eloy_suggests' of git://github.com/gerrywastaken/moodle 2012-03-05 16:08:19 +13:00
Tony Levi a7c9609ba5 MDL-31819: admin: allow install to proceed when multiple admins exist already 2012-03-05 15:42:08 +13:00
Sam Hemelryk 48e529c932 MDL-31794 theme_formalwhite: Fixed up tabs 2012-03-05 15:29:15 +13:00
Sam Hemelryk 8576f705f7 Merge branch 'MDL-31707' of git://github.com/stronk7/moodle 2012-03-05 15:21:29 +13:00
Kordan c18b6f6c50 MDL-29367 theme_formalwhite: Lines between RSS and upcoming events 2012-03-05 15:14:14 +13:00
Kordan f1f04a5a06 MDL-31786 theme_formalwhite: bigger userid and password fields size in login page 2012-03-05 15:04:43 +13:00
kordan 7547184df1 MDL-31794 theme_formalwhite: let tab-bar give evidence of the current tab and page 2012-03-05 15:01:15 +13:00
Eloy Lafuente (stronk7) b904130b5b MDL-27764 restore - always restore as much info as possible (1.9 approach)
In 2.0 we had reduced the types of restore operations where we allow
to load the section names and section descriptions, only proceeding
when restoring to new course or to existing course, deleting.

With this patch, we change to the old 1.9 way, that was to restore
the section information always, no matter of the type of restore
operation (course restore, import, to new or to existing course,
deleting or adding). The only exception is that it's always checked that
the target section names and descriptions are empty.
2012-03-05 02:41:33 +01:00
Sam Hemelryk 9394d86367 Merge branch 'MDL-26037' of git://github.com/stronk7/moodle 2012-03-05 14:03:34 +13:00
Sam Hemelryk 37b6e7a03c Merge branch 'MDL-29248' of git://github.com/stronk7/moodle 2012-03-05 13:54:46 +13:00
Sam Hemelryk b04d5217bf Merge branch 'MDL-31710' of git://github.com/stronk7/moodle 2012-03-05 13:36:34 +13:00
Sam Hemelryk 36d1d23179 Merge branch 'MDL-31642_dndupload_filemanager_notification_text' of git://github.com/davosmith/moodle 2012-03-05 13:31:08 +13:00
Sam Hemelryk 9b0e5e9d0d Merge branch 'MDL-31643_dndupload_reject_all_files' of git://github.com/davosmith/moodle 2012-03-05 13:22:04 +13:00
Kordan 686e10ce43 MDL-29127 theme_formalwhite: highlight for unread forum post 2012-03-05 12:38:12 +13:00
Sam Hemelryk 272853aec9 Merge branch 'master_MDL-31749' of git://github.com/danmarsden/moodle 2012-03-05 12:30:36 +13:00
kordan 43b64c9763 MDL-31866 theme_formalwhite: increased the line heigth for courses in category page 2012-03-05 12:27:44 +13:00
Sam Hemelryk 26f76c9c6c Merge branch 'MDL-24235-master' of https://github.com/mackensen/moodle 2012-03-05 12:22:34 +13:00
Sam Hemelryk a45621394b Merge branch 'MDL-31806-master' of https://github.com/mackensen/moodle 2012-03-05 12:05:53 +13:00
Sam Hemelryk 0170ada63b Merge branch 'MDL-30893-master' of git://github.com/ankitagarwal/moodle 2012-03-05 11:52:59 +13:00
Sam Hemelryk 936deb7e68 Merge branch 'MDL-31466-master' of git://github.com/ankitagarwal/moodle 2012-03-05 11:35:18 +13:00
Sam Hemelryk 63ecec3c37 Merge branch 'MDL-31655-master-3' of git://git.luns.net.uk/moodle 2012-03-05 11:28:38 +13:00
Sam Hemelryk 8498e630af Merge branch 'MDL-31656-master-3' of git://git.luns.net.uk/moodle 2012-03-05 11:09:29 +13:00
Sam Hemelryk a5dd1f4fb7 MDL-31660 forms: Added checks for form change detection 2012-03-05 11:00:14 +13:00
Sam Hemelryk f788011045 Merge branch 'MDL-31660-master-3' of git://git.luns.net.uk/moodle 2012-03-05 10:59:22 +13:00
Sam Hemelryk 06422b0a22 Merge branch 'MDL-31353_grader_io' of git://github.com/andyjdavis/moodle 2012-03-05 10:46:07 +13:00
AMOS bot ac4f3f330e Automatically generated installer lang files 2012-03-04 00:31:44 +00:00
Petr Skoda d1f582d99c MDL-31079 detect js and css minimisation failures 2012-03-03 11:53:53 +01:00
Petr Skoda 3fed29a792 MDL-31301 move textlib_get_instance() to deprecatedlib 2012-03-03 11:46:33 +01:00
Petr Skoda 6f3451e540 MDL-31301 remove all uses of moodle_strtolower() and deprecated it 2012-03-03 11:46:26 +01:00
Petr Skoda f8311defeb MDL-31301 use static textlib methods 2012-03-03 11:46:13 +01:00
Petr Skoda 4a63589000 MDL-31361 allow unenrolling of suspended users in enrol/database 2012-03-03 11:37:51 +01:00
Petr Skoda 51a1c153d2 MDL-31785 fix and improve htmlpurifier tests 2012-03-03 11:23:36 +01:00
Petr Skoda e9df54952c MDL-31785 import HTMLPurifier 4.4.0+
Includes one extra fix for _blank 8c9d461a6259d7b8ac4ae5c9c9e95ab176cfcda3 compared to 4.4.0 release.
2012-03-03 11:11:48 +01:00
Petr Skoda 081003b685 MDL-31807 fix invalid nulls in cohort components
Credit goes to Stephen.
2012-03-03 10:56:31 +01:00
Petr Skoda 866e1112c5 MDL-30636 switch to new TinyMCE 3.4.9 2012-03-03 10:46:39 +01:00
Petr Skoda 6500eefec2 MDL-30636 add TinyMCE 3.4.9 2012-03-03 10:44:15 +01:00
Andrew Davis ca540697f1 MDL-31362 grade: removed GRADE_UPDATE_ITEM_DELETED as it is not genuinely being used anywhere 2012-03-03 10:00:01 +07:00
Mary Evans a897af2d2c MDL-31821_master theme_splash: added color white to h1 welcome text and a:link in userdetails 2012-03-03 00:39:45 +00:00
Davo Smith f4a46019ca MDL-31853 Fix pagelayout problem with admin_externalpage_setup 2012-03-02 16:12:45 +00:00
Charles Fulton be90ed23b5 MDL-24235 bennu: remove dependency on mbstring from library 2012-03-02 08:01:30 -08:00
Charles Fulton 464ee7577d MDL-29848 glossary: get proper context for comments on exported entry 2012-03-02 07:46:51 -08:00
Eloy Lafuente (stronk7) 4c000e8481 MDL-31710 webservice unit test: cleanup
This commit:

- fixes some missing (public|private) scope in methods.
- fixes whitespace
- fixes inline comments
- fixes other codechecker warnings/errors
2012-03-02 12:17:58 +01:00
Adrian Greeve 901d58dfd3 MDL-29086 - data - Fix for allowing the deletion of database activity presets.
Thank you to Matthias Hunstock for providing the patch for this.
2012-03-02 14:18:32 +08:00
Andrew Davis 8075c843ce MDL-31709 message: removed get_message_participants() as it is deprecated and should have been removed in 2.2 2012-03-02 12:49:38 +07:00
Ankit Agarwal cc4e04798e MDL-30893 Accessibility Submit button in forgot password page now have separate ids 2012-03-02 11:25:13 +08:00
Ankit Kumar Agarwal 9ccadad391 MDL-30976 Docs Documenting Conditional APIs 2012-03-02 10:22:46 +08:00
Jerome Mouneyrac a0a07014c2 MDL-30994 webservice API, check and update DocBlock 2012-03-02 09:49:41 +08:00
Jason Fowler 8c335cffc4 MDL-30990 - Docblock cleanup for Ratings API 2012-03-02 07:47:08 +08:00
Dan Marsden 1a27cb5da7 MDL-31749 - remove extra space from scorm pop-up - especially for afterburner theme 2012-03-02 09:13:07 +13:00
Tim Hunt 296e1e9782 MDL-31829 question engine SQL typo breaks some regrades.
Also, some MySQL-only code had not been updated.

This problem only affected a small minority of question attempts, like
this:
1. Suppose you have a shortanswer question with correct answer 'Toad'
and some hints.
2. Suppose a student attempts this using the interactive behaviour and
on the first try responds 'Frog', and on the second try responds 'Toad'.
3. Then suppose the teacher edits the question to make 'Frog' correct.
4. Then, when the quiz is regraded, the question_attempt_step for the
second try will need to be deleted. That is where the buggy code was.
2012-03-01 12:33:14 +00:00
Eloy Lafuente (stronk7) cb7fc350cb MDL-26037 restore: fixes for mssql, php 5.4 and small improvs 2012-03-01 13:18:45 +01:00
Tony Levi a4df8560cc MDL-26037: import: display search box even when no courses are currently displayed 2012-03-01 13:18:45 +01:00
Tony Levi d0c94a1e84 MDL-26037: restore/import: check through all courses instead of only first 250 2012-03-01 13:18:45 +01:00
Tim Hunt 7a26403fc9 MDL-31828 attachements to essay questions do not work on Oracle. 2012-03-01 12:10:39 +00:00
Eloy Lafuente (stronk7) ac6dc09c26 MDL-29248 backup: take rid of the setting and code handling the 'private' user filearea 2012-03-01 13:09:47 +01:00
Eloy Lafuente (stronk7) f88224624d MDL-29248 backup: delete user_files settings, lang strings and uses 2012-03-01 13:09:47 +01:00
Davo Smith adce023069 MDL-31642 added 'max attachments' to filemanager and 'drag and drop' message inside the box 2012-03-01 11:57:32 +00:00
Davo Smith 2561d6346c MDL-31643 dndupload - prevent file upload when total file count would exceed the specified limit 2012-03-01 11:56:53 +00:00
Eloy Lafuente (stronk7) db1475ddb0 MDL-31707 environment - add check for the hash extension 2012-03-01 12:51:51 +01:00
Eloy Lafuente (stronk7) 5bbf3cb72b weekly release 2.3dev 2012-03-01 11:29:59 +01:00
Eloy Lafuente (stronk7) 8b4485c386 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-03-01 11:25:29 +01:00
Aparup Banerjee 6131c668d9 MDL-27793 themes : anomaly theme rtl+ltr login box element widths fixed to be acceptable for IE and FF. 2012-03-01 09:19:59 +01:00
Sam Hemelryk 887fd0e4c7 Merge branch 'MDL-31831' of git://github.com/stronk7/moodle 2012-03-01 14:34:09 +13:00
Eloy Lafuente (stronk7) 5dbfbacc49 MDL-31831 whitespace clean - take2 2012-03-01 02:20:35 +01:00
Eloy Lafuente (stronk7) eaf7533fc1 Merge branch 'wip-MDL-30985-m23' of git://github.com/samhemelryk/moodle 2012-03-01 01:07:33 +01:00
Eloy Lafuente (stronk7) 4ab641eeaa MDL-30973 Files API: Whitespace fixes 2012-03-01 00:56:23 +01:00
Eloy Lafuente (stronk7) 5d7bbc22dc MDL-30973 Files API: fix packages for workshopform subplugin 2012-03-01 00:41:58 +01:00
Eloy Lafuente (stronk7) d8c9ff403b Merge branch 's17_MDL-30973_file_docblock_master' of git://github.com/dongsheng/moodle 2012-03-01 00:25:18 +01:00
Andrew Robert Nicols 9188a9a037 MDL-31655 Warn users of unblurred but modified fields 2012-02-29 15:04:31 +00:00
Andrew Robert Nicols 88939271a1 MDL-31660 Rename form change detection javascript file 2012-02-29 14:50:52 +00:00
Charles Fulton e56cd67d2f MDL-31806 tags: remove second occurrence of id in query string 2012-02-29 05:07:47 -08:00
Ruslan Kabalin 93d46f4802 MDL-31255 Fix move of highlighted section when JS is off 2012-02-29 09:08:58 +00:00
Aparup Banerjee 615abdda9f MDL-25027 web service: moved validation to before changes to DB transaction. 2012-02-29 09:56:08 +01:00
Ankit Agarwal bf9f1bbd5e MDL-28387 logs: Rearranging the log record for readability 2012-02-29 14:16:45 +08:00
Ankit Agarwal 20a2f7596c MDL-28387 logs: Log data when a user is deleted 2012-02-29 14:15:59 +08:00
Eloy Lafuente (stronk7) 38a9c86fcb MDL-30982 fix one incorrect defined() 2012-02-29 02:41:17 +01:00
Eloy Lafuente (stronk7) d5d9d96ab4 Merge branch 'wip-mdl-29274' of git://github.com/rajeshtaneja/moodle 2012-02-29 02:13:46 +01:00
Eloy Lafuente (stronk7) 70bdf17ea2 Merge branch 'MDL-31748_master' of git://github.com/lazydaisy/moodle 2012-02-29 02:09:43 +01:00
Eloy Lafuente (stronk7) c3592ba7fa Merge branch 'MDL-26496' of git://github.com/rwijaya/moodle 2012-02-29 02:04:59 +01:00
Eloy Lafuente (stronk7) 62c68ed0cf MDL-31351 splash theme: fixed some @package tags 2012-02-29 01:52:23 +01:00
Eloy Lafuente (stronk7) 86c4c9e8f8 Merge branch 'MDL-31351_master' of git://github.com/lazydaisy/moodle 2012-02-29 01:47:10 +01:00
AMOS bot c9486c4123 Automatically generated installer lang files 2012-02-29 00:31:13 +00:00
Eloy Lafuente (stronk7) 93123b170d MDL-30976 navigation: fix a bunch of incorrect inline @see phpdoc tags 2012-02-29 00:56:41 +01:00
Eloy Lafuente (stronk7) d0d5fd36e6 Merge branch 'wip-MDL-30976-master' of git://github.com/abgreeve/moodle 2012-02-29 00:52:51 +01:00
Eloy Lafuente (stronk7) 1f256ec5ca Merge branch 'MDL-30982-docblock-backup' of git://github.com/mudrd8mz/moodle 2012-02-29 00:47:10 +01:00
Eloy Lafuente (stronk7) 24ff971106 Merge branch 'wip-MDL-31738-master' of git://github.com/marinaglancy/moodle 2012-02-29 00:29:23 +01:00
Eloy Lafuente (stronk7) 309d7a0c1b Merge branch 'wip_m_MDL-29178_fix_block_naming_inconsistencies' of git://github.com/gerrywastaken/moodle 2012-02-28 21:14:20 +01:00
Eloy Lafuente (stronk7) 64f0293fe2 Merge branch 'MDL-25027_stable_consistency_fix' of git://github.com/nebgor/moodle 2012-02-28 17:33:56 +01:00
Sam Hemelryk 34223e03e6 MDL-30964 Fixed up phpdocs during integration review 2012-02-28 15:53:59 +01:00
Andrew Robert Nicols 59155a3fb3 MDL-30616 Move module metadata retrieval to new function 2012-02-28 13:44:42 +00:00
Eloy Lafuente (stronk7) dde82858b8 Merge branch 'w09_MDL-30964_m23_access' of git://github.com/skodak/moodle 2012-02-28 12:44:03 +01:00
Eloy Lafuente (stronk7) cee44e2d96 Merge branch 'MDL-31363_grade_constants' of git://github.com/andyjdavis/moodle
Conflicts:
	lib/grade/constants.php
2012-02-28 12:37:44 +01:00
Ruslan Kabalin 2ce6d12f58 MDL-31808 Upload assignment: fix user feedback display 2012-02-28 11:15:03 +00:00
Aparup Banerjee ecb4c3f0ed Merge branch 'MDL-14837_show-time-on-no-duration-events' of https://github.com/ncsu-delta/moodle 2012-02-28 16:40:44 +08:00
Aparup Banerjee e2afa730f6 Merge branch 'm_MDL-31419_fix_auth_typo' of git://github.com/gerrywastaken/moodle 2012-02-28 16:22:19 +08:00
Aparup Banerjee 092d444dfb Merge branch 'MDL-30878' of git://github.com/mouneyrac/moodle 2012-02-28 15:35:45 +08:00
Aparup Banerjee 56658249c6 Merge branch 'MDL-28386-master' of git://github.com/ankitagarwal/moodle 2012-02-28 14:41:48 +08:00
Dan Marsden 0ec75d9ffe MDL-31086 Calendar : fix sql to get distinct list of courses 2012-02-28 14:20:38 +08:00
Aparup Banerjee 20a903c34f Merge branch 'MDL-31335_mtrace_email' of git://github.com/andyjdavis/moodle 2012-02-28 14:15:28 +08:00
Aparup Banerjee dcfd468dff Merge branch 'MDL-31739_forum_docblock' of git://github.com/andyjdavis/moodle 2012-02-28 14:12:26 +08:00
Ankit Agarwal ba184c9f76 MDL-31466 Tags Adding a capability check to make sure hidden courses are not displayed in tag search results 2012-02-28 14:03:32 +08:00
Aparup Banerjee 2ac18d9261 Merge branch 'wip-mdl-22896' of git://github.com/rajeshtaneja/moodle 2012-02-28 13:48:34 +08:00
Aparup Banerjee 0f0eca4299 Merge branch 'MDL-31399' of git://github.com/rwijaya/moodle 2012-02-28 12:04:47 +08:00
Gerard (Gerry) Caulfield 2640cba30d MDL-31419 Fixing "Suspended acount" typo in auth.php 2012-02-28 11:27:05 +08:00
Eloy Lafuente (stronk7) 96eccb7517 Merge branch 'MDL-27793' of git://github.com/nebgor/moodle 2012-02-28 03:29:33 +01:00
Jonathon Fowler 7da7bfa17d MDL-28364 handle question formats that support multiple file types 2012-02-28 09:39:06 +10:00
Eloy Lafuente (stronk7) 9f733c98a1 MDL-29161 weblib: added one more test about un-keyed array params 2012-02-27 22:20:34 +01:00
Eloy Lafuente (stronk7) 6c941fc10f Merge branch 'MDL-29161' of git://github.com/timhunt/moodle 2012-02-27 22:10:47 +01:00
Eloy Lafuente (stronk7) bea0a6f5eb Merge branch 'MDL-31721' of git://github.com/timhunt/moodle 2012-02-27 22:05:56 +01:00
Davo Smith 9f9c794733 MDL-29147 Quickform fixed insertElementBefore to ignore duplicate unnamed elements 2012-02-27 20:05:39 +00:00
Eloy Lafuente (stronk7) 869f80e4f3 Merge branch 'MDL-31729' of git://github.com/timhunt/moodle 2012-02-27 19:01:34 +01:00
Eloy Lafuente (stronk7) 516b956a28 Merge branch 'MDL-29256-resource-format' of git://github.com/mudrd8mz/moodle 2012-02-27 18:53:03 +01:00
Eloy Lafuente (stronk7) 92f901158f Merge branch 'MDL-29199-master' of git://github.com/danpoltawski/moodle 2012-02-27 18:47:12 +01:00
Adam Olley 369f61c113 MDL-29229 message: Set contactlist pull-down width to not exceed parent columns width 2012-02-27 17:07:44 +01:00
Eloy Lafuente (stronk7) ec1956655a Merge branch 'MDL-29523-master' of git://github.com/danpoltawski/moodle 2012-02-27 16:51:44 +01:00
Dan Poltawski 5dad45912c MDL-29592 weblib: prevent warnings when $USER not set 2012-02-27 16:11:36 +01:00
Dan Poltawski b4355cfb22 MDL-31348 calendar: event links not using user timezone
thanks to Ben Thomas for the patch
2012-02-27 15:58:25 +01:00
Eloy Lafuente (stronk7) 4c5c7b1301 Merge branch 'MDL-31546-master' of git://github.com/danpoltawski/moodle 2012-02-27 15:44:11 +01:00
Dan Poltawski bba67fcb31 MDL-31651 course/info: Fix hardcoded string 2012-02-27 15:32:55 +01:00
David Mudrak c1d4413e20 MDL-30982 Fixing invalid @example tag usage 2012-02-27 12:06:24 +01:00
David Mudrak a75af402af MDL-30982 Activity module stepslib - API documentation 2012-02-27 11:59:43 +01:00
David Mudrak 85aad2ef97 MDL-30982 Documenting some parts of backup settings machinery 2012-02-27 11:59:43 +01:00
David Mudrak f9dab4bed2 MDL-30982 Restore moodle2 files - phpDocs categorization 2012-02-27 11:59:43 +01:00
David Mudrak 58b322cfd2 MDL-30982 Backup moodle2 files - phpDocs categorization 2012-02-27 11:59:42 +01:00
David Mudrak 63baccbc54 MDL-30982 Improving phpDocs for the classes that extend backup_activity_task 2012-02-27 11:59:42 +01:00
David Mudrak cfab878c5d MDL-30982 Improving phpDocs for the class backup_activity_task 2012-02-27 11:59:42 +01:00
Petr Skoda e67bc2a410 MDL-30964 fix phpdocs in access.php files in all plugins 2012-02-27 07:23:10 +01:00
Marina Glancy 00ecac7295 MDL-31738: added functions mod_xxx_get_file_info() to glossary and data modules 2012-02-27 14:20:00 +08:00
Petr Skoda f76249cc25 MDL30964 fix core_access API docs 2012-02-27 07:19:03 +01:00
Marina Glancy 292077063e MDL-23787 added possibility to embed images into textarea fields in database activity 2012-02-27 14:17:11 +08:00
Gerard (Gerry) Caulfield 8caba22968 MDL-30724 Limit assignment_count_real_submissions() to only select real
submissions

I've also refactored some code so that it is more structured and allows
for easier overriding of function associated with counting submissions
and updated associated doc blocks.
2012-02-27 12:24:48 +08:00
Dongsheng Cai 3ed74dd1d6 MDL-29347 core_enrol_get_enrolled_users web service should limit the number of participants - Jerome/Dongsheng 2012-02-27 11:39:01 +08:00
Sun Zhigang 1ab8cd2e1c MDL-29523 filemanager: Fix a hardcode string 2012-02-27 09:35:11 +08:00
Sam Hemelryk ef6cf871de MDl-30985 events: Fixed up phpdocs after review 2012-02-27 14:34:06 +13:00
Sam Hemelryk 1d1719f5dd MDL-30985 Fixed up event API phpdocs 2012-02-27 14:34:06 +13:00
AMOS bot 4da638d342 Automatically generated installer lang files 2012-02-27 00:31:14 +00:00
Adrian Greeve 31fde54fbc MDL-30976 - navigation - Updating the api block documentation. 2012-02-27 08:14:54 +08:00
Mary Evans 5e8984c106 MDL-31748_master theme_afterburner: added min-width to fix missing horizontal scroll bar when page is reduced in browser window 2012-02-25 17:56:24 +00:00
Mary Evans 5ae5b8e7ad MDL-31328_master theme_sky_high: fixed report layout and related files + updated css + added horizontal scroll 2012-02-25 02:44:53 +00:00
Mary Evans 3b2064e0bf MDL-31351_master theme_splash: add new menu-arrow.gif + deleted 33 obsolete images 2012-02-24 14:42:51 +00:00
Glenn Ansley 2af268a1f3 MDL-14837 Calendar: Display start time on calendar events with no duration 2012-02-24 08:58:31 -05:00
Gerard (Gerry) Caulfield bc9cc60191 MDL-29178 Fix block naming inconsistencies 2012-02-24 16:28:17 +08:00
Rajesh Taneja 44cbe13aea MDL-29274 blocks: people block will use course context for making url and not module context 2012-02-24 15:20:59 +08:00
Dan Poltawski 6ad22bb164 MDL-29199 dml: fix query logging on Oracle
thanks to Jonathon Fowler for the fix
2012-02-24 11:57:18 +08:00
Andrew Davis 8260050dbd MDL-31739 mod_forum: added phpdocs for forum_get_email_message_id() 2012-02-24 10:48:24 +07:00
Dan Poltawski 92b145dc81 MDL-31546 wiki: remove stray semicolon
causing errors on oracle

Thanks to Jonathon Fowler for the patch
2012-02-24 11:41:54 +08:00
Mary Evans 7ee84637bb MDL-31351_master theme_splash: added some new css files and embedded.php 2012-02-24 02:13:01 +00:00
Rajesh Taneja 59c81169ef MDL-22896 libraries: Updated regular expression in html2text, for replacing unknown/unhandled entities 2012-02-24 10:08:56 +08:00
Mary Evans 0170739a7d MDL-31351_master theme_splash: updated version 2012-02-24 01:53:46 +00:00
Aparup Banerjee 7842fba0d7 MDL-27793 Themes : review changes - removed .dir-rtl from .loginbox selector rule to be default css rule. made them same width too. 2012-02-24 09:52:21 +08:00
Aparup Banerjee c5f2853d82 MDL-27793 Themes : fixed "remember username" wrapping unnecessarily. 2012-02-24 09:52:21 +08:00
Aparup Banerjee 5c5a30fa79 MDL-27793 Themes : fixed base (and other themes) theme's loginbox
- fixed translated lengthy terms were being clipped
 - fixed clipping and positioning of loginbox in rtl and ltr languages both
2012-02-24 09:52:21 +08:00
Tim Hunt d44480f60f MDL-31729 questions: files for hints are not moved or deleted.
The files that belong to the question hints are neither moved when the
question is moved to another context, nor deleted when the question is
deleted.

Oops! How come no one noticed that until today.
2012-02-23 12:37:26 +00:00
Tim Hunt d5ffb7896b MDL-31721 question editing: improve working for Show num correct
AMOS BEGIN
 CPY [shownumpartscorrect,question],[shownumpartscorrectwhenfinished,question]
AMOS END
2012-02-23 12:37:02 +00:00
Tim Hunt ab82976f92 MDL-29161 weblib: moodle_ulr::out does not cope with array params. 2012-02-23 12:07:28 +00:00
Eloy Lafuente (stronk7) c4a12afaf9 weekly release 2.3dev 2012-02-23 11:38:14 +01:00
Eloy Lafuente (stronk7) 5e6e0a1123 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-02-23 11:34:35 +01:00
Rossiani Wijaya 7b4495b3b3 MDL-31399 Lesson Module: Fixed horizontal scroll bar issue when using rtl language format (eg: arabic) 2012-02-23 15:34:57 +08:00
Eduardo Pinto dd30ae41d0 MDL-26496 Lesson Module: removed warning when no answer is selected from single choice question 2012-02-23 14:10:18 +08:00
Andrew Davis 227e9023e2 MDL-31353 grade: added a missing YUI requires 2012-02-23 10:20:11 +07:00
Andrew Davis 0e7f31b42b MDL-31363 grade: removed 3 constants that are not being used anywhere 2012-02-23 08:51:19 +07:00
Sam Hemelryk 4a3ecbb25e MDL-30988 ajax: Fixed up phpdocs package in ajax scripts 2012-02-23 14:38:52 +13:00
AMOS bot 32556d5d12 Automatically generated installer lang files 2012-02-23 00:31:05 +00:00
Eloy Lafuente (stronk7) e757f51864 MDL-30997 - group - trailing whitespace + comment alignment fixes 2012-02-22 13:23:11 +01:00
Eloy Lafuente (stronk7) 202c72c997 Merge branch 'wip-MDL-30997-master' of git://github.com/abgreeve/moodle 2012-02-22 13:09:54 +01:00
AMOS bot 22993f3d12 Automatically generated installer lang files 2012-02-22 00:31:10 +00:00
Sam Hemelryk 75e4f98c0d MDL-30987 message: Minor phpdoc fix ups 2012-02-22 11:15:42 +13:00
Sam Hemelryk a513048a00 Merge branch 'MDL-30987_message_docs2' of git://github.com/andyjdavis/moodle 2012-02-22 10:58:06 +13:00
Sam Hemelryk 2caf3f9bee Merge branch 'MDL-30910' of git://github.com/rwijaya/moodle 2012-02-22 10:22:06 +13:00
Eloy Lafuente (stronk7) af7ee420f4 Merge branch 'wip-MDL-30830-m23' of git://github.com/samhemelryk/moodle 2012-02-21 21:11:15 +01:00
David Mudrak cb3ef22065 MDL-29256 Fixed incorrect calculation of contentformat
Legacy Resource modules of the type Web page force the HTML format for
their content. The format stored in the reference field is valid only
for legacy resources of the type Plain text page. See page_20_migrate()
function.
2012-02-21 11:19:57 +01:00
Eloy Lafuente (stronk7) 25f51decae Merge branch 'm_MDL-25996_making_language_editing_terms_user_friendly' of git://github.com/gerrywastaken/moodle 2012-02-21 10:47:37 +01:00
Aparup Banerjee 25eb90908e MDL-25027 Web Service: added email validation to create_users() - just like GUI 2012-02-21 15:23:57 +08:00
Aparup Banerjee 99b1e292fe MDL-25027 Web Service: removed user info(firstname,lastname) truncation for GUI-WS consistency.
Currently there is no validation on user info (firstname/lastname) in user/editadvanced_form.php
2012-02-21 15:08:15 +08:00
Kordan de78fa7922 accessibility colors for formal_white master 2012-02-21 06:15:58 +01:00
Rossiani Wijaya af4de0a2c2 MDL-30910: Lesson Module: fix lesson progress bar for screen readers
AMOS BEGIN
   CPY [progresscompleted, mod_lesson]
AMOS END
2012-02-21 12:31:35 +08:00
Andrew Davis 6fbd60ef57 MDL-30987 message: updated phpdocs for /lib/messagelib.php and /message 2012-02-21 10:57:55 +07:00
Adrian Greeve 4d8e241742 MDL-30997 - group - update of the api block documentation. 2012-02-21 11:17:27 +08:00
Sam Hemelryk 44e59a587c Merge branch 'MDL-30249' of git://github.com/mouneyrac/moodle 2012-02-21 14:55:56 +13:00
Sam Hemelryk aad1a1f7ce MDL-31158 enrol_manual: Fixed whitespace 2012-02-21 14:46:04 +13:00
Sam Hemelryk 4ddd465a2a Merge branch 'MDL-31158_grade_recovery' of git://github.com/andyjdavis/moodle 2012-02-21 14:44:50 +13:00
Eloy Lafuente (stronk7) 8c4988cd3b Merge branch 'MDL-31561' of git://github.com/kiklop74/moodle 2012-02-21 02:30:14 +01:00
Eloy Lafuente (stronk7) a96fb50192 Merge branch 'MDL-31562' of git://github.com/kiklop74/moodle 2012-02-21 02:28:14 +01:00
Andrew Davis de80da61e8 MDL-31158 grade: altered the help string for recovergradesdefault 2012-02-21 08:27:09 +07:00
Eloy Lafuente (stronk7) f4319f8531 Merge branch 'wip-mdl-25432' of git://github.com/rajeshtaneja/moodle 2012-02-21 02:10:10 +01:00
Eloy Lafuente (stronk7) c3ca963d81 Merge branch 'MDL-30698_multiple_emails' of git://github.com/andyjdavis/moodle 2012-02-21 01:43:53 +01:00
AMOS bot ae5ed89004 Automatically generated installer lang files 2012-02-21 00:31:12 +00:00
Sam Hemelryk 58b7d48f9a MDL-30974 forms: Last minute phpdoc fixes 2012-02-21 12:39:35 +13:00
Sam Hemelryk ceaad88222 Merge branch 'wip-mdl-30974' of git://github.com/rajeshtaneja/moodle 2012-02-21 12:07:30 +13:00
Sam Hemelryk 56588dfbee MDL-30988 Fixed phpdocs during integration review 2012-02-21 12:01:00 +13:00
Sam Hemelryk 26aca872ca Merge branch 'm_MDL-30988_adding_preference_api_phpdocs' of git://github.com/gerrywastaken/moodle 2012-02-21 11:59:48 +13:00
Sam Hemelryk e6e4fe4f43 Merge branch 'MDL-29402-master' of https://github.com/mackensen/moodle 2012-02-21 10:44:00 +13:00
Sam Hemelryk da3ec93275 Merged branch 'MDL-31014-master-4' of git://git.luns.net.uk/moodle.git with conflict resolution 2012-02-21 10:33:00 +13:00
Eloy Lafuente (stronk7) 6ff5994b49 Merge branch 'MDL-19421-master-3' of git://git.luns.net.uk/moodle 2012-02-20 17:11:22 +01:00
Andrew Robert Nicols ab48e73159 MDL-19421 Correct lesson dependency mapping on restore 2012-02-20 14:56:02 +00:00
Eloy Lafuente (stronk7) 9cd8e48ca6 Merge branch 'MDL-31345_master' of git://github.com/lazydaisy/moodle 2012-02-20 15:34:31 +01:00
Andrew Robert Nicols bca2b1c157 MDL-31014 Allow for selection of a different displayformat when approving glossary entries 2012-02-20 12:28:52 +00:00
Eloy Lafuente (stronk7) d03a130455 Merge branch 'wip-MDL-25299-m23' of git://github.com/samhemelryk/moodle 2012-02-20 12:58:54 +01:00
Eloy Lafuente (stronk7) 11ce79b05d MDL-30999 whitespace fix 2012-02-20 12:17:33 +01:00
Eloy Lafuente (stronk7) a4d7604977 MDL-30999 grade phpdocs - change some inline @see by correct @link 2012-02-20 12:09:50 +01:00
Eloy Lafuente (stronk7) 2a5fa9e64a Merge branch 'MDL-30999_grade_phpdocs' of git://github.com/andyjdavis/moodle 2012-02-20 12:02:18 +01:00
Andrew Robert Nicols f0a163ed6d MDL-31656 Open files in a new window when downloading with the filemanager
We need to open files in a new window rather than the existing window  to
prevent warning messages when files are uploaded and then downloaded
without the form being saved first.
2012-02-20 10:50:16 +00:00
Eloy Lafuente (stronk7) a0fbb0a270 Merge branch 'wip-MDL-30979-m23' of git://github.com/samhemelryk/moodle 2012-02-20 11:38:20 +01:00
Eloy Lafuente (stronk7) 47e5997851 MDL-30977 page phpdocs: 2 minor fixes in 2 functions 2012-02-20 11:28:08 +01:00
Eloy Lafuente (stronk7) 7dca125be4 Merge branch 'wip-MDL-30977-m23' of git://github.com/samhemelryk/moodle 2012-02-20 11:25:01 +01:00
Eloy Lafuente (stronk7) ad360e66ae Merge branch 'MDL-30972_final' of git://github.com/nebgor/moodle 2012-02-20 11:20:21 +01:00
Sam Hemelryk e76eba8111 Merge branch 'wip-mdl-29967' of git://github.com/rajeshtaneja/moodle 2012-02-20 18:20:37 +13:00
Sam Hemelryk 5f5ee19125 MDL-29254 Fixed whitespace 2012-02-20 18:08:33 +13:00
Sam Hemelryk fcd6bdd4fa Merged MDL-29254 with conflict resolution 2012-02-20 18:07:13 +13:00
Sam Hemelryk c2627cf429 Merge branch 'MDL-31483_master' of git://github.com/lazydaisy/moodle 2012-02-20 17:34:58 +13:00
Sam Hemelryk 5128ef6b45 Merge branch 'wip-MDL-30780-master' of git://github.com/marinaglancy/moodle 2012-02-20 17:29:47 +13:00
EVAN Irving-Pease 44ef537d8a MDL-28386 Authentication Fixing user id issue with logs when a new user is added 2012-02-20 09:56:31 +05:30
Sam Hemelryk 8e1b1b270b Merge branch 'wip-MDL-31627-master' of git://github.com/marinaglancy/moodle 2012-02-20 17:25:48 +13:00
Sam Hemelryk b91c364ef3 Merge branch 'm_MDL-31388_fix_enrol_LDAP_typo' of git://github.com/gerrywastaken/moodle 2012-02-20 17:13:36 +13:00
Sam Hemelryk 841fcd871b Merge branch 'MDL-31532' of git://github.com/stronk7/moodle 2012-02-20 17:10:52 +13:00
Sam Hemelryk 6007f8d8d8 Merge branch 'master_MDL-31381' of git://github.com/danmarsden/moodle 2012-02-20 17:04:45 +13:00
Sam Hemelryk a77fbf44da Merge branch 'MDL-31432_messaging_popup' of git://github.com/andyjdavis/moodle 2012-02-20 16:58:36 +13:00
Sam Hemelryk 52b2afa553 Merge branch 'm_MDL-30957_adding_assignment_completion_status_method_and_call' of git://github.com/gerrywastaken/moodle 2012-02-20 16:53:21 +13:00
Gerard (Gerry) Caulfield ad2d5eba0b MDL-30957 Adding a new method "is_complete" to assignment lib for
testing if a submission has actually been submitted and then adding a
call to it before displaying the the assignment submission date header

As recommended I've simplified the functions and split the logic out into appropriate upload classes.
2012-02-20 11:34:38 +08:00
Andrew Davis fc28177f4d MDL-31335 message: wrapped calls to mtrace() in email_to_user() within a check to make sure its a CLI script 2012-02-20 10:30:02 +07:00
Sam Hemelryk 22fbfa3b2f Merge branch 'master_MDL-31397' of git://github.com/danmarsden/moodle 2012-02-20 16:03:19 +13:00
Sam Hemelryk 26fad611da Merge branch 'master_MDL-31652' of git://github.com/danmarsden/moodle 2012-02-20 15:57:12 +13:00
Sam Hemelryk 9405721002 Merge branch 'master_MDL-31659' of git://github.com/danmarsden/moodle 2012-02-20 15:49:41 +13:00
Sam Hemelryk 3cb4c1e594 Merge branch 'MDL-30965-master' of git://github.com/ankitagarwal/moodle 2012-02-20 15:46:46 +13:00
Sam Hemelryk 398f16fe0f MDL-31014 Integrated 2012-02-20 15:39:11 +13:00
Sam Hemelryk 284814724b Merge branch 'MDL-31014-master-3' of git://git.luns.net.uk/moodle 2012-02-20 15:38:32 +13:00
Sam Hemelryk 8f9c818604 Merge branch 'MDL-31589-master-2' of git://git.luns.net.uk/moodle 2012-02-20 15:17:39 +13:00
Sam Hemelryk 1498035f37 Merge branch 'MDL-31590-master-1' of git://git.luns.net.uk/moodle 2012-02-20 15:01:19 +13:00
Rajesh Taneja aa803ceba2 MDL-29254 blog: added check in upgrade for summary and content to be null fields 2012-02-20 09:33:20 +08:00
Rajesh Taneja 5f1f726e68 MDL-25432 backup: Catching exception for orphan course modules and it's block (if any), and logging them, no exception will be thrown for this now. 2012-02-20 09:28:55 +08:00
Eloy Lafuente (stronk7) ee1dc83574 MDL-31532 restore: avoid null course->hiddensections problems. Credit goes to Petri Asikainen. Thanks! 2012-02-20 01:34:25 +01:00
AMOS bot 87e59a8f7d Automatically generated installer lang files 2012-02-20 00:31:15 +00:00
Sam Hemelryk 22bd2b93e5 Merge branch 'MDL-31556' of git://github.com/rwijaya/moodle 2012-02-20 12:39:12 +13:00
Sam Hemelryk 6dce4aa1ba Merge branch 'MDL-31647-master' of git://github.com/sammarshallou/moodle 2012-02-20 12:03:32 +13:00
Sam Hemelryk 06749fde07 Merge branch 'MDL-30495' of git://github.com/mouneyrac/moodle 2012-02-20 11:50:56 +13:00
Sam Hemelryk 9fdd4f7dc8 Merge branch 'wip-MDL-30971-master' of git://github.com/phalacee/moodle 2012-02-20 11:37:59 +13:00
Sam Hemelryk bc5fbbb3cd Merged branch wip-MDL-30521 with conflict resolutions 2012-02-20 10:32:08 +13:00
Mary Evans 55a573e5b0 MDL-31483_master theme_standard: Removed padding in custommenu item content and added line-height 2012-02-19 19:11:16 +00:00
AMOS bot 5db3b10bab Automatically generated installer lang files 2012-02-18 00:31:24 +00:00
sam marshall f5f19eb70e MDL-31647 Glossary: Links to glossary entries from glossary main page should not be popups 2012-02-17 10:36:18 +00:00
sam marshall d9498b3805 MDL-31514 Lib: Time format to remove unwanted zeros caused errors on Windows servers 2012-02-17 10:33:07 +00:00
Jerome Mouneyrac c78e11338a MDL-30249 Display warning when downloading/uploading a file 2012-02-17 17:02:40 +08:00
Gerard (Gerry) Caulfield 9e61bf63e1 MDL-25996 Updating languaged editing interface terms to make them user
friendly
2012-02-17 13:00:54 +08:00
Gerard (Gerry) Caulfield 7d169e53f4 MDL-31388 Fixing typo in enrol_ldap 2012-02-17 12:52:17 +08:00
Dan Marsden 1c6df63d5c SCORM MDL-31381 decrease max width of TOC to prevent SCORM content from being hidden, remove padding from pop-up and improve maxheight calculation 2012-02-17 17:14:12 +13:00
Sam Hemelryk 4460312d08 MDL-25299 mnet: Fixed validation when no public key is provided 2012-02-17 16:47:15 +13:00
Ankit Agarwal d6ae6816d0 MDL-30965 SCORM Removing unused variable ->head 2012-02-17 08:46:45 +05:30
Marina Glancy 001cdd04c2 MDL-31627: Arialist theme do not resize content when there are no blocks 2012-02-17 10:59:15 +08:00
Marina Glancy 4f9e66168a MDL-30780: fixing the disappearance of right part of the very wide rubric 2012-02-17 10:56:50 +08:00
Dan Marsden 6a3f2ad229 MDL-31659 SCORM remove old file and reference to it - it hasn't been used since the rework of SCORM player in MDL-22951 2012-02-17 15:29:36 +13:00
Charles Fulton dbe93bc7c7 MDL-31158 make grade recovery site-configurable 2012-02-17 09:25:24 +07:00
Andrew Davis 762677611a MDL-31432 message: prevent messaging popups while viewing messages 2012-02-17 09:23:48 +07:00
Dan Marsden 9e93f995dc SCORM MDL-31397 - add slashes to js string 2012-02-17 15:22:52 +13:00
Andrew Davis e54816bcf8 MDL-30698 message: changed message ID to be a hash 2012-02-17 09:21:02 +07:00
Andrew Davis 1376b0ddf8 MDL-30698 forum: made message ID genuinely unique to prevent mail servers dropping emails the look like duplicates 2012-02-17 09:21:02 +07:00
Sam Hemelryk f8129210d2 MDL-30979 output: Further changes are validation 2012-02-17 14:53:11 +13:00
Sam Hemelryk 3d3fae7259 MDL-30979 output: Changes after peer-review 2012-02-17 14:53:10 +13:00
Sam Hemelryk 76be40ccf9 MDL-30979 output: Adjustments to match recent changes in coding style doc 2012-02-17 14:53:10 +13:00
Sam Hemelryk 48d4fad10c MDL-30979 output: Fixed up phpdocs for page requirements code 2012-02-17 14:53:10 +13:00
Sam Hemelryk 7a3c215b7a MDL-30979 output: Fixed up phpdocs for renderers code 2012-02-17 14:53:10 +13:00
Sam Hemelryk 473dd81118 MDL-30979 output: Fixed up phpdocs for output code 2012-02-17 14:53:10 +13:00
Sam Hemelryk 35a191a1b3 MDL-30979 output: Fixed up phpdocs for output factories code 2012-02-17 14:53:10 +13:00
Sam Hemelryk 9678c7b845 MDL-30979 output: Fixed up phpdocs for output components code 2012-02-17 14:53:10 +13:00
Sam Hemelryk 4d176f4e64 MDL-30979 output: Fixed up phpdocs for output actions code 2012-02-17 14:53:10 +13:00
Sam Hemelryk 670b098b3d MDL-30977 moodle_page: Changes as required after further validation 2012-02-17 14:53:06 +13:00
Sam Hemelryk 5edb0fb8bf MDL-30977 moodle_page: Made changes noted in peer-review 2012-02-17 14:53:06 +13:00
Sam Hemelryk cd4ee5ea0c MDL-30977 moodle_page: Adjustments to match recent changes in coding style doc 2012-02-17 14:53:06 +13:00
Sam Hemelryk 0a0034f8ed MDL-30977 moodle_page: Tidied up and completed phpdocs 2012-02-17 14:53:05 +13:00
Sam Hemelryk de67c572e4 MDL-30830 dock: Added the title using accesshide for screen readers 2012-02-17 14:52:49 +13:00
Eloy Lafuente (stronk7) 0dde394db5 weekly release 2.3dev 2012-02-17 01:47:10 +01:00
Eloy Lafuente (stronk7) d764c275f2 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-02-17 01:43:19 +01:00
AMOS bot a97d4da684 Automatically generated installer lang files 2012-02-17 00:31:10 +00:00
Eloy Lafuente (stronk7) 3360b13bac MDL-31251 documentation : fix incorrect docs 2012-02-16 17:59:02 +01:00
Joseph Rezeau 608ba9fffb MDL-31556 Lesson Module: fixed missing 'lesson closes' event in calendar 2012-02-16 16:08:15 +08:00
Sam Hemelryk 889860576a Merge branch 'm_MDL-30935_lti_change_instructor_role_to_teacher' of git://github.com/gerrywastaken/moodle 2012-02-16 15:38:05 +13:00
Sam Hemelryk 1609f3cf7c Revert "MDL-30935_in_lti_change_role_from_instructor_to_teacher"
This reverts commit 0758f991b3.
2012-02-16 15:37:57 +13:00
Aparup Banerjee dafa20e85c MDL-30972 Documentation : improved @see as well as added appropriate uses of inline @link. 2012-02-16 10:29:45 +08:00
Gerard (Gerry) Caulfield 72ed614c74 MDL-30935_in_lti_change_role_from_instructor_to_teacher 2012-02-16 10:23:22 +08:00
Eloy Lafuente (stronk7) ec93cd94e8 Merge branch 's17_MDL-30984_comment_docblock_master' of git://github.com/dongsheng/moodle 2012-02-16 02:07:48 +01:00
Dan Marsden 8aba9cda72 MDL-31652 SCORM - hide updatefreq setting and remove it if not required. 2012-02-16 12:16:02 +13:00
Jason Fowler 13d1c9ed55 MDL-30991 - RSS - Doc-block clean up 2012-02-15 15:19:59 +08:00
Rajesh Taneja 6c1fd30484 MDL-30974 form: Checked and updated docblock for form library 2012-02-15 12:55:06 +08:00
Dongsheng Cai d2b7803e5a MDL-30973 Files API, check and update DocBlock 2012-02-15 12:48:57 +08:00
Jerome Mouneyrac dcd902a0f6 MDL-30495 HTML5 apps cannot call Webservices functions if a HTTP resource is retrieved from the Moodle installation 2012-02-15 11:33:11 +08:00
Aparup Banerjee 9906cf41ab Merge branch 'MDL-31114_dnd_ui_improvements' of https://github.com/davosmith/moodle 2012-02-15 11:32:32 +08:00
Sam Hemelryk be09c3f392 MDL-30888 course-search: Fixed typo 2012-02-15 16:28:44 +13:00
Sam Hemelryk 051806b2ee Merge branch 'wip-mdl-30388' of git://github.com/rajeshtaneja/moodle 2012-02-15 16:23:57 +13:00
Dongsheng Cai 35453657a2 MDL-30984 comment API, check and update DocBlock 2012-02-15 11:21:35 +08:00
Gerard (Gerry) Caulfield 4d6b40a020 Updating phpdoc comments to Rajesh's specifications. 2012-02-15 11:07:38 +08:00
Sam Hemelryk 18cdcdbf89 MDL-30989 portfolio: Fixed up phpdocs 2012-02-15 15:33:06 +13:00
Sam Hemelryk 9e7ff1476c Merge branch 'MDL-30989' of git://github.com/rwijaya/moodle 2012-02-15 15:32:16 +13:00
Eloy Lafuente (stronk7) 1991f37f55 Merge branch 'm_MDL-31552_change_add_to_log_exception_to_add_exception_information' of git://github.com/gerrywastaken/moodle 2012-02-15 03:19:44 +01:00
Eloy Lafuente (stronk7) 746aa0ba16 Merge branch 'MDL-31386-master-1' of git://git.luns.net.uk/moodle 2012-02-15 03:14:58 +01:00
Rajesh Taneja f53f582dc6 MDL-30388 Blocks: navigation block is visible on block search page 2012-02-15 10:14:50 +08:00
Rajesh Taneja cf5b731c9c MDL-30388 Blocks: Search view for block instances fixed, with proper page url and pagination 2012-02-15 10:14:49 +08:00
AMOS bot 8150fd9fa5 Automatically generated installer lang files 2012-02-15 00:31:12 +00:00
Sam Hemelryk 1ddb08084b MDL-31112 repository: Fixed phpdocs on new function 2012-02-15 12:44:32 +13:00
Sam Hemelryk f820701286 Merge branch 'MDL-31112_dndupload_folder_detection' of git://github.com/davosmith/moodle 2012-02-15 12:41:47 +13:00
Sam Hemelryk e4082c4bad MDL-30709 mod_assignment: Renamed callback to mod_assignment_get_file_info 2012-02-15 11:26:49 +13:00
Gerard (Gerry) Caulfield 709dfc0687 MDL-31552 Change add_to_log() so that it's exception handling throws a useful message when there is a problem. 2012-02-15 00:11:24 +08:00
Andrew Robert Nicols 1628fd3bb5 MDL-31590 Correct title of error dialogue on filepicker
Thanks to Gilles-Philippe Leblanc for this patch
2012-02-14 15:42:02 +00:00
Charles Fulton 1e966b8ae3 MDL-29402 QandA forum questions should be emailed 2012-02-14 06:01:05 -08:00
Eloy Lafuente (stronk7) 8ea8291f93 Merge branch 'MDL-30126' of git://github.com/mouneyrac/moodle 2012-02-14 13:12:07 +01:00
Eloy Lafuente (stronk7) 3210eeef50 Merge branch 'MDL-31527_xmldb_table_names' of git://github.com/davosmith/moodle 2012-02-14 12:11:49 +01:00
Davo Smith 7d44996c2a MDL-31114 Filemanager drag and drop upload - displays 'drop here' message when dragging over page / highlights when over element 2012-02-14 10:12:58 +00:00
Davo Smith 36dc50336e MDL-31114 Alert when max files reached 2012-02-14 09:49:49 +00:00
Jerome Mouneyrac adfb459c9e MDL-30878 core_user_update_users user password is reset if not specified 2012-02-14 16:49:36 +08:00
Davo Smith 87ed3a5c39 MDL-31112 Repository upload - check for completely null files (likely to be folders uploaded by mistake via drag and drop) 2012-02-14 08:25:04 +00:00
Iñaki Arenaza d5d181f5e9 MDL-29667 Plugins overview shows incorrect availability for auth & enrol plugins
We store the enabled plugins as array values but later look them up as array
keys. Just flip the array when we build it.
2012-02-14 15:47:39 +08:00
Aparup Banerjee aad69d8b1a Merge branch 'wip-mdl-28101' of git://github.com/rajeshtaneja/moodle 2012-02-14 15:38:43 +08:00
Andrew Davis a153c9f2fe MDL-30999 grade: updated Grade API phpdocs 2012-02-14 14:04:19 +07:00
Aparup Banerjee 21a7f3d27a Merge branch 'MDL-31321_dndupload_multiple_elements' of https://github.com/davosmith/moodle 2012-02-14 14:47:23 +08:00
Rajesh Taneja 669bdcabc9 MDL-30521 blog: Updated uniquehash field preceision to 255 in post table 2012-02-14 14:18:55 +08:00
Aparup Banerjee 9e31e848da Merge branch 'MDL-31541_multiple_repository_instances' of git://github.com/davosmith/moodle 2012-02-14 13:30:11 +08:00
Sam Hemelryk b7bf2c3a19 Merge branch 'MDL-30911' of git://github.com/rwijaya/moodle 2012-02-14 17:41:55 +13:00
Sam Hemelryk 49414a7746 MDL-30709 mod_assignment Fixed phpdocs for assignment_get_file_info 2012-02-14 17:15:17 +13:00
Sam Hemelryk d88f6dafdc Merge branch 'wip-MDL-30709-master' of git://github.com/marinaglancy/moodle 2012-02-14 17:14:05 +13:00
Fábio Souto 9e63c0ff71 Updated bugfix according to Jerome suggestions
password check is done at lib.php instead of externallib.php

Conflicts:

	user/lib.php
2012-02-14 12:04:15 +08:00
Jerome Mouneyrac db7c80d9e3 MDL-30126 rest client should be updated fo json support 2012-02-14 12:01:54 +08:00
Sam Hemelryk 1fa82cc153 Merge branch 'wip-MDL-30771-master' of git://github.com/marinaglancy/moodle 2012-02-14 17:00:41 +13:00
Aparup Banerjee 2114555ced Merge branch 'MDL-31495-master' of git://github.com/micaherne/moodle 2012-02-14 11:56:25 +08:00
Aparup Banerjee cfb35d826c Merge branch 'MDL-29471' of git://github.com/mouneyrac/moodle 2012-02-14 11:36:53 +08:00
Aparup Banerjee a49d83ba4e Merge branch 'm_MDL-30971_adding_tag_api_phpdocs_2' of git://github.com/gerrywastaken/moodle 2012-02-14 11:28:37 +08:00
Sam Hemelryk ba611bc025 Merge branch 'MDL-30688' of git://github.com/mouneyrac/moodle 2012-02-14 15:54:00 +13:00
Sam Hemelryk ec22386a40 Merge branch 'MDL-31604-attempt3' of git://github.com/mouneyrac/moodle 2012-02-14 15:48:51 +13:00
Sam Hemelryk 37ee40dc16 Merge branch 'm_MDL-26807_remove_withselectedusers_strings_and_references' of git://github.com/gerrywastaken/moodle 2012-02-14 15:32:12 +13:00
Sam Hemelryk 928c3d54e6 Merge branch 'm_MDL-27285_fixing_grammar_on_wiki_links_page' of git://github.com/gerrywastaken/moodle 2012-02-14 15:29:17 +13:00
Sam Hemelryk 2c4f43e1e7 Merge branch 'm_MDL-27654_add_space_to_somefieldrequired_string' of git://github.com/gerrywastaken/moodle 2012-02-14 15:21:20 +13:00
Sam Hemelryk 9fd088b792 Merge branch 'm_MDL-30935_lti_change_instructor_role_to_teacher' of git://github.com/gerrywastaken/moodle 2012-02-14 15:12:09 +13:00
Sam Hemelryk 24768e4658 Merge branch 'm_MDL-31107_fixing_below_typos' of git://github.com/gerrywastaken/moodle 2012-02-14 15:07:57 +13:00
Mary Evans dacbb36011 MDL-31345_master theme_afterburner: adds horizontal scroll bar to pagelayout-report 2012-02-14 01:41:29 +00:00
Sam Hemelryk f2e8a66d86 Merge branch 'MDL-28283-master' of git://github.com/ankitagarwal/moodle 2012-02-14 13:57:30 +13:00
Sam Hemelryk 0b07d7d4b8 Merge branch 'MDL-30815-master' of git://github.com/ankitagarwal/moodle 2012-02-14 13:45:04 +13:00
Sam Hemelryk a7986c15ce Merge branch 'MDL-31315-master-6' of git://git.luns.net.uk/moodle 2012-02-14 13:12:01 +13:00
Eloy Lafuente (stronk7) 70a4e462ab MDL-30975 Docs - whitespace fixes 2012-02-14 01:10:40 +01:00
Eloy Lafuente (stronk7) 277c811f08 MDL-30975 Docs - add phpdocs @param to report_log_print_graph() 2012-02-14 00:59:02 +01:00
Eloy Lafuente (stronk7) 35d8759a05 Merge branch 'MDL-30975' of git://github.com/ankitagarwal/moodle 2012-02-14 00:53:09 +01:00
Eloy Lafuente (stronk7) 29b6a3e8c3 MDL-31251 documentation : whitespace fixes 2012-02-14 00:36:12 +01:00
Eloy Lafuente (stronk7) 88e959afe5 Merge branch 'MDL-31251' of git://github.com/nebgor/moodle 2012-02-13 23:37:34 +01:00
Sam Hemelryk caec8e44c0 Merge branch 'MDL-31515-master-1' of git://git.luns.net.uk/moodle 2012-02-14 10:56:27 +13:00
Sam Hemelryk 66f5d0ea13 Merge branch 'MDL-29080_export_hidden2' of git://github.com/andyjdavis/moodle 2012-02-14 10:47:12 +13:00
Andrew Robert Nicols b9e7d8925e MDL-31589 Sort order of lesson answers before restoring them 2012-02-13 10:12:08 +00:00
Gerard (Gerry) Caulfield bcdcee903c MDL-30992 Updating Tag API DocBlocks 2012-02-13 16:42:59 +08:00
Jerome Mouneyrac 069fe36008 MDL-30688 REST simpleserver does not accept the moodlewsrestformat parameter 2012-02-13 16:39:50 +08:00
Ankit Kumar Agarwal 04252d3a13 MDL-30975 Docs Adding correct pacakge information 2012-02-13 11:06:47 +05:30
Ankit Kumar Agarwal a5fa03eebc MDL-30975 Docs Documenting report/livelogs 2012-02-13 11:06:44 +05:30
Ankit Kumar Agarwal f82de750bf MDL-30975 Docs Documenting report/logs 2012-02-13 11:06:43 +05:30
Ankit Kumar Agarwal fcf64900e6 MDL-30975 Docs Documenting Logs API 2012-02-13 11:06:42 +05:30
Sam Hemelryk 2ac8cf7a20 Merge branch 'm_MDL-29153_fix_typo_in_resource' of git://github.com/gerrywastaken/moodle 2012-02-13 18:04:18 +13:00
Sam Hemelryk 76ef8d80f6 Merge branch 'm_MDL-30723_fixing_several_english_typos' of git://github.com/gerrywastaken/moodle 2012-02-13 18:00:35 +13:00
Sam Hemelryk bcce1ec140 Merge branch 'master_MDL-31085' of git://github.com/danmarsden/moodle 2012-02-13 17:52:48 +13:00
Sam Hemelryk c282f2aebd Merge branch 'MDL-31502-master-2' of git://git.luns.net.uk/moodle 2012-02-13 17:48:12 +13:00
Sam Hemelryk ac87f25829 Merge branch 'wip-MDL-25185-master' of git://github.com/abgreeve/moodle 2012-02-13 17:34:50 +13:00
Sam Hemelryk f9fea1dbc4 Merge branch 'wip-MDL-31396-master' of git://github.com/abgreeve/moodle 2012-02-13 17:15:56 +13:00
Sam Hemelryk 114824a6b9 Merge branch 'wip-MDL-31463-master' of git://github.com/abgreeve/moodle 2012-02-13 17:02:45 +13:00
Anita Viglinoe a1b9872209 MDL-28283-master Completion Future dates can now be set as completion criteria 2012-02-13 09:05:10 +05:30
Rossiani Wijaya e481859f6b MDL-30911: mod_lesson: fix sub-heading level to be lower than lesson title. This issue is an improvement of accessibility compliance 2012-02-13 11:26:27 +08:00
Ankit Agarwal 546a3f8130 MDL-30815 Choice Labels are now explicitly tied with input elements 2012-02-13 08:26:45 +05:30
Eloy Lafuente 6b7f1717e9 MDL-31604 Fix capabilities displayed without spaces causing text going out of the screen 2012-02-13 10:43:30 +08:00
Sam Hemelryk f53b63481f Merge branch 'wip-mdl-31576' of git://github.com/rajeshtaneja/moodle 2012-02-13 15:29:43 +13:00
Sam Hemelryk 6cf1f978b2 Merge branch 'wip-mdl-31529' of git://github.com/rajeshtaneja/moodle 2012-02-13 15:28:26 +13:00
Rajesh Taneja b7c3ab01c4 MDL-28101 wiki2.0: escape bold and italics for NWIKI formatting 2012-02-13 10:28:07 +08:00
Sam Hemelryk ea5ce02579 Merge branch 'MDL-31554' of git://github.com/timhunt/moodle 2012-02-13 15:26:06 +13:00
Rajesh Taneja 7e08c95fd8 MDL-31529 csslib: third param passed to css_store_css fixed 2012-02-13 10:23:51 +08:00
Rajesh Taneja 147db691cf MDL-31576 core: Duplicate message definition removed from get_core_subsystem 2012-02-13 10:22:05 +08:00
Sam Hemelryk 645573cab3 Merge branch 'MDL-25883-master' of https://github.com/mackensen/moodle 2012-02-13 14:35:19 +13:00
Eloy Lafuente (stronk7) 5fc420e2ed weekly release 2.3dev 2012-02-13 01:17:41 +01:00
Eloy Lafuente (stronk7) 01f3b0aaf1 Revert "MDL-31345 theme_afterburner fixes pagelayout-report overflow"
This reverts commit 5d24254a9d.
2012-02-12 23:19:20 +01:00
Michael Aherne 2af7d0d8d0 MDL-31495 Performance improvement in question engine upgrade SQL 2012-02-10 15:24:43 +00:00
Gerard (Gerry) Caulfield ce8df92df1 MDL-31107 Fixing instaces of below where it is written as bellow (two L's) 2012-02-10 15:40:04 +08:00
Marina Glancy 577c89644f MDL-30771: Enable students to view rubric definition prior to submission
Also allow advanced grading plugin to extend course module navigation, it is not necessary only definition previewing
Added option to rubric whether to show it to the students before submission and option to view description
2012-02-10 13:03:55 +08:00
Aparup Banerjee 83a4ee1ea0 MDL-31251 documentation : improved core ddl API phpdocs. (used moodlecheck plugin) 2012-02-10 12:42:46 +08:00
Gerard (Gerry) Caulfield 0758f991b3 MDL-30935_in_lti_change_role_from_instructor_to_teacher 2012-02-10 10:23:42 +08:00
Gerard (Gerry) Caulfield c80a486866 MDL-27285 Updating string grammar on the wiki module's links page 2012-02-10 07:55:29 +08:00
Gerard (Gerry) Caulfield 592aa64ac5 MDL-26807 Updating the withselectedusers_help string 2012-02-10 02:16:38 +08:00
Gerard (Gerry) Caulfield ee02742473 MDL-30723 Fixing English typo(s) 2012-02-10 01:47:21 +08:00
Gerard (Gerry) Caulfield b31cf5d973 MDL-27654 Insert a space into the somefieldrequired string 2012-02-10 01:24:16 +08:00
Gerard (Gerry) Caulfield 725a2fed22 MDL-29153 Fixing typo, "Bellow" should be "Below" 2012-02-10 00:40:07 +08:00
Andrew Robert Nicols 00e8d08dba MDL-31315 Ask before moving away from a modified form 2012-02-09 14:55:18 +00:00
Marina Glancy 7d3ebf4c19 MDL-30709: Fixed bug with inserting files from Recent files repository
Two parts of changes: in assignment module function assignment_get_file_info was missing
and when populating the list of recent files the function get_file_info was not called, which caused populating the list of recent files with the files that could not later be inserted
2012-02-09 13:55:41 +08:00
Aparup Banerjee 096880eb7c MDL-30972 More phpdocs changes after Jenkins review. 2012-02-09 10:07:48 +08:00
Aparup Banerjee a0eb2e97f9 MDL-30972 Documentation : Renamed DB engine drivers to "@package core" but moodle_*.php are "@subpackage dml_driver", all other dml/*.php are "@subpackage dml". 2012-02-09 10:01:42 +08:00
Aparup Banerjee ae1e17c25b MDL-30972 Documentation : fixed up phpdocs for dmllib.php 2012-02-09 10:01:42 +08:00
Aparup Banerjee 6df260107c MDL-30972 Documentation : clarified phpdocs for main public APIs in DML layer and touched up on some drivers 2012-02-09 10:01:42 +08:00
Adrian Greeve 76565fa102 MDL-31463 - navigation - added a context check in the navigation for fullname permission. 2012-02-09 09:46:37 +08:00
Aparup Banerjee d749f1dd50 Merge branch 'wip-MDL-31417-master' of git://github.com/marinaglancy/moodle 2012-02-09 09:43:54 +08:00
Adrian Greeve 834686037c MDL-25185 - data - Allowing data from the database to be exported according to group roles. 2012-02-09 09:26:08 +08:00
Darko Miletic 5b6d8a05f4 MDL-31562: Implemented support for exporting labels, minor additional
cleanups
2012-02-08 16:11:59 -03:00
Darko Miletic 5758596b95 MDL-31561: Implemented fix for honoring correct number of course
sections
2012-02-08 16:01:55 -03:00
Eloy Lafuente (stronk7) f3fb0e775e Merge branch 'MDL-30983' of git://github.com/rwijaya/moodle 2012-02-08 17:04:53 +01:00
Tim Hunt 5837df9267 MDL-31554 quiz view.php notices when guest / no enroled. 2012-02-08 15:39:26 +00:00
Eloy Lafuente (stronk7) 722b55dd16 Merge branch 'wip-mdl-30980' of git://github.com/rajeshtaneja/moodle 2012-02-08 13:18:49 +01:00
Eloy Lafuente (stronk7) 9e751fdbe3 MDL-27891 tag logs: minibump version 2012-02-08 11:43:40 +01:00
Eloy Lafuente (stronk7) fd1981aea7 Merge branch 'MDL-27891-master' of git://github.com/ankitagarwal/moodle 2012-02-08 11:36:21 +01:00
Eloy Lafuente (stronk7) 4b192ea039 Merge branch 'MDL-31345_master' of git://github.com/lazydaisy/moodle 2012-02-08 11:13:53 +01:00
Eloy Lafuente (stronk7) 82b07ee7d3 Merge branch 'MDL-31316-master-4' of git://git.luns.net.uk/moodle 2012-02-08 11:07:55 +01:00
Ruslan Kabalin 29b9b464d8 MDL-31316 Fix block controls when default home is My Moodle 2012-02-08 09:46:36 +00:00
Davo Smith fdb0322d72 MDL-31541 Repositories - make sure all repository instances have unique 'sortorder' values when retrieved 2012-02-08 09:35:39 +00:00
Davo Smith 1cdadf5140 MDL-31527 XMLDB Editor - make sure default tables are created with correct plugin prefix 2012-02-08 08:24:18 +00:00
Andrew Davis 8887fd9a77 MDL-29080 grade: simplified bug fix to prevent users without the required capabilities from being able to export hidden grade items 2012-02-08 13:45:43 +07:00
Mary Evans 5d24254a9d MDL-31345 theme_afterburner fixes pagelayout-report overflow 2012-02-08 03:52:15 +00:00
Aparup Banerjee 90c34a1b3c Merge branch 'MDL-31407' of git://github.com/timhunt/moodle 2012-02-08 11:25:44 +08:00
Eloy Lafuente (stronk7) 24775c922c Merge branch 'MDL-29892_overview_hidden' of git://github.com/andyjdavis/moodle 2012-02-08 03:38:36 +01:00
Ankit Agarwal e11b8b160c MDL-27891 Tags Flagging tags is now logged 2012-02-08 07:50:47 +05:30
Aparup Banerjee 50ea492bc5 Merge branch 'master_MDL-31461' of git://github.com/danmarsden/moodle 2012-02-08 10:12:20 +08:00
Aparup Banerjee 1dd9848042 Merge branch 'MDL-31482-master' of git://github.com/sammarshallou/moodle 2012-02-08 09:57:55 +08:00
Eloy Lafuente (stronk7) f380b7a80b Merge branch 'MDL-30722_forum_unsubscribe' of git://github.com/andyjdavis/moodle 2012-02-08 02:37:11 +01:00
Eloy Lafuente (stronk7) ae8c201905 Merge branch 'wip-MDL-30540-master' of git://github.com/phalacee/moodle 2012-02-08 01:17:51 +01:00
Eloy Lafuente (stronk7) e80898b525 Merge branch 'MDL-26384-master' of git://github.com/ankitagarwal/moodle 2012-02-08 00:48:32 +01:00
Eloy Lafuente (stronk7) 1208c6bb72 Merge branch 'MDL-27360' of git://github.com/mouneyrac/moodle 2012-02-07 23:49:01 +01:00
sam marshall edcf82d5a3 MDL-31482 Lib: IE8/IE7 (even with stupid user agent) should not be 'legacy' device type 2012-02-07 17:41:13 +00:00
Andrew Robert Nicols 3754f4f3ee MDL-31502 Check whether a category has subcategories or courses within it before using those variables 2012-02-07 09:30:04 +00:00
Davo Smith 6d9121d3a8 MDL-31321 Drag and drop upload - can now cope with multiple filemanager/filepickers on a page 2012-02-07 07:45:41 +00:00
Aparup Banerjee d2fea85219 Merge branch 'MDL-31469' of git://github.com/timhunt/moodle 2012-02-07 15:11:43 +08:00
Aparup Banerjee 74bad523ff Merge branch 'MDL-31445' of git://github.com/timhunt/moodle 2012-02-07 15:02:32 +08:00
Rajesh Taneja 55d1f2727c MDL-30980 core: Php document updated for string api 2012-02-07 14:35:47 +08:00
Aparup Banerjee 74126453c5 Merge branch 'MDL-31491_master' of git://github.com/kordan/moodle 2012-02-07 14:10:26 +08:00
Dan Marsden 896405146d MDL-31985 - fix quotes in filter 2012-02-07 09:52:31 +13:00
Andrew Robert Nicols f0f41c5e57 MDL-31515 Allow for subsequent files to overwrite old files in database activity records 2012-02-06 15:19:11 +00:00
Marina Glancy ef5c6a5784 MDL-31417: updated list of world currencies
Some countries do not exist any more, some currencies do not exist. Some countries (and currencies) started to exist recently. Some currency codes are changed (mistype or result of denomination).

Also I tried to keep the moodle formation of the name of the currencies. The first word is not the country name but the 'belonging-to-country', i.e. not 'Sweden Krona' but 'Swedish Krona'. For some countries it was not so easy to find the correct spelling.

And finally there were some mistakes in the list, like 'Schilling' instead of 'Shilling', 'Riyal' instead of 'Rial', etc. I used currencies spelling from ISO.
2012-02-06 09:57:26 +08:00
Adrian Greeve c6c15daf81 wip-MDL-31396 - data - Exporting a preset as a zip code changed to remove errors. 2012-02-06 09:46:20 +08:00
Kordan 214381bfc1 added mandatory lines to formal_white report layout 2012-02-03 08:24:29 +01:00
Ankit Agarwal 7525825648 MDL-26384 Tags Fixed redirect issue when editing is toggled 2012-02-03 09:39:13 +05:30
Jason Fowler ae6313d4a7 MDL-30540 - BLOG - Fixing context problems for single blog entries - Thanks Aparup and Sam for the help 2012-02-03 10:49:52 +08:00
Andrew Davis 31eae0eb17 MDL-29892 grade: added a check to prevent hidden courses appearing on student overview reports 2012-02-03 08:46:54 +07:00
Dan Marsden 266540eb23 MDL-31461 Plagiarism - adjust api functions to allow better support for renderers 2012-02-03 11:37:51 +13:00
Tim Hunt 3bbac90b2a MDL-31469 formslib: fix invalid for="" attributes on optional dates 2012-02-02 18:38:01 +00:00
Anthony Forth 0f3f6fed69 MDL-31445 formslib: add a nice id and class to the wrapper div for CSS 2012-02-02 18:37:34 +00:00
Tim Hunt cef18275b3 MDL-31407 quiz: review all uses of global $USER 2012-02-02 18:37:08 +00:00
Kyle Temkin 704f062b87 MDL-31407 quiz: finish_attempt method should not rely on $USER 2012-02-02 18:37:05 +00:00
Eloy Lafuente (stronk7) baa5cd8240 weekly release 2.3dev 2012-02-02 12:12:25 +01:00
Jerome Mouneyrac 2214c4a2e8 MDL-27360 Web service tokens are displayed for deleted users 2012-02-02 15:34:05 +08:00
Aparup Banerjee b0ce209054 Merge branch 'master_MDL-31360' of git://github.com/danmarsden/moodle 2012-02-02 11:22:58 +08:00
Eloy Lafuente (stronk7) 26ed4e73eb Merge branch 'MDL-29615_control_override_email2' of git://github.com/andyjdavis/moodle 2012-02-01 13:17:08 +01:00
Dan Marsden 2be99ddee8 MDL-31360 use extra param in get_in_or_equal - one less line of code... 2012-02-01 23:11:03 +13:00
Dan Marsden 03a6727b6c MDL-28522 Choice : View reports now correctly shows unanswered column - thanks to Marcus Boon for the patch 2012-02-01 11:24:54 +08:00
Andrew Davis 8900213b92 MDL-29615 message: reversed the default for messagingallowemailoverride and added upgrade code so upgraded sites maintain consistent behaviour 2012-02-01 09:26:53 +07:00
Eloy Lafuente (stronk7) e691a270a9 Merge branch 'MDL-31267' of git://github.com/epsd/moodle 2012-02-01 01:03:21 +01:00
Eloy Lafuente (stronk7) 6ad5968d68 Merge branch 'wip-MDL-31160-m23' of git://github.com/samhemelryk/moodle 2012-02-01 00:53:16 +01:00
Eloy Lafuente (stronk7) 9a7e63128a Merge branch 'wip-MDL-31197-m23' of git://github.com/samhemelryk/moodle 2012-02-01 00:48:47 +01:00
Eloy Lafuente (stronk7) 94a0c97464 Merge branch 'master_MDL-31039' of git://github.com/danmarsden/moodle 2012-02-01 00:41:25 +01:00
Eloy Lafuente (stronk7) 8aac56c6be Merge branch 'MDL-31000-master-3' of git://git.luns.net.uk/moodle 2012-02-01 00:25:05 +01:00
Eloy Lafuente (stronk7) a14e3f274e Merge branch 'MDL-31448_incorrect-comment' of https://github.com/ncsu-delta/moodle 2012-01-31 23:57:32 +01:00
Eloy Lafuente (stronk7) f31e83015d MDL-30714 theme_afterburner: better, output the information, LOL 2012-01-31 23:37:19 +01:00
Mary Evans 250633ebe3 MDL-30714 theme_afterburner: logo link to home page 2012-01-31 23:19:21 +01:00
Glenn Ansley 7493a4bb3b MDL-31448 Replaced incorrect PHP comment 2012-01-31 14:39:23 -05:00
Eloy Lafuente (stronk7) 008bf7f0ac Merge branch 'MDL-31015-master' of git://github.com/sammarshallou/moodle 2012-01-31 19:44:21 +01:00
Eloy Lafuente (stronk7) ba353742ce Merge branch 'MDL-30854' of git://github.com/timhunt/moodle 2012-01-31 19:30:58 +01:00
Eloy Lafuente (stronk7) 7ce92ac1ad Merge branch 'MDL-30484' of git://github.com/timhunt/moodle 2012-01-31 17:16:04 +01:00
Eloy Lafuente (stronk7) ade31f5f4f Merge branch 'MDL-31314' of git://github.com/timhunt/moodle 2012-01-31 17:06:01 +01:00
Aparup Banerjee d7da31228e Merge branch 'MDL-30828_feedback_sort' of git://github.com/andyjdavis/moodle 2012-01-31 16:48:59 +08:00
Aparup Banerjee 42edf34d43 Merge branch 'MDL-30707_forum_log' of git://github.com/andyjdavis/moodle 2012-01-31 16:43:28 +08:00
Aparup Banerjee df71b4d72f Merge branch 'MDL-29097_mod_update_create' of git://github.com/andyjdavis/moodle 2012-01-31 14:21:14 +08:00
Aparup Banerjee 640d4d9563 Merge branch 'MDL-31426' of git://github.com/stronk7/moodle 2012-01-31 11:51:14 +08:00
Aparup Banerjee 6342696140 Merge branch 'MDL-31428' of git://github.com/stronk7/moodle 2012-01-31 11:15:26 +08:00
Andrew Davis 02c34fe143 MDL-30707 mod_forum: fixed a add_to_log() call that was causing invalid URLs to be added to the log 2012-01-31 09:06:01 +07:00
Andrew Davis a5448b3f6b MDL-30828 mod_feedback: fixed sorting when viewing responses 2012-01-31 09:05:09 +07:00
Andrew Davis 088cc24ccd MDL-30722 mod_forum: prevented users being auto-logged in as guest when they access /mod/forum/unsubscribeall.php 2012-01-31 09:03:40 +07:00
Andrew Davis 84f533b3c3 MDL-29615 message: added the ability for admins to restrict users ability to set where their email message notifications go 2012-01-31 09:02:20 +07:00
Andrew Davis c85cf7df5c MDL-29097 course: refactored to avoid having two seperate calls to events_trigger() 2012-01-31 09:00:53 +07:00
Eloy Lafuente (stronk7) ecabd5b039 MDL-31428 forum: prevent some warnings with debug enabled 2012-01-31 00:22:32 +01:00
Eloy Lafuente (stronk7) b688c44907 MDL-31426 forum: don't show/allow any subscription to not enrolled users 2012-01-30 23:20:03 +01:00
Tim Hunt 94815ccfa0 MDL-30484 question engine: don't lose response files when regrading.
The problem was mostly that, in the past, we did not worry if
question_attempt_step.id changed during regrade (because we deleted the
old step row and inserted a new one). However, now that steps can have
associated files, we can't be that slack, becuase the step id is used as
the file itemid.

So, now, we have to update the existing rows during a regrade. We do
this by having the question engine tell the question_engine_unit_of_work
that the step has first been deleted, and then added back. Then we make
the unit-of-work spot that delete + add = update.

This also means that during regrading, we have to pass around some extra
ids so that new steps know the id of the step they are replacing.

Naturally, this requires some quite trickly logic, so I finally got
around to writing unit tests for question_engine_unit_of_work, which is
a good thing.

Along the way I also got around to renaming
question_attempt->set_number_in_usage, which got missed out when
everthing else was renamed to slot ages ago.

Finally, while working on this code, I noticed and fixed some PHPdoc
comments.
2012-01-30 16:57:23 +00:00
Tim Hunt 72553162ba MDL-30854 quiz/question editing: fix create calc question & add on page.
This was one of those innocent seeming issues where, once you start
digging, you find a mess. In this case, the code that is now in
question_wizard_form::add_hidden_fields used to exist in four different
places, in four inconsistent versions. This is now all nicely
re-factored, and that solves the problem.

Along the way, I found and fixed some wrong string references in
qtype_random, and stripped out some unnecessary &s in function
declarations.
2012-01-30 12:32:12 +00:00
Tim Hunt a60835c721 MDL-31314 gradebook restore: fix category.depth on restore.
Without this, restoring backups made with the OU's custom 'restore from
1.9' feature, and possibly other people's custom converstion code, does
not work properly.

Also, fix poor recordset code.
2012-01-30 12:31:43 +00:00
Aparup Banerjee 1fac035503 Merge branch 'MDL-26260' of git://github.com/timhunt/moodle 2012-01-30 16:23:54 +08:00
Aparup Banerjee 627618e140 Merge branch 'MDL-31311-Fix_iframe_titles' of git://github.com/ncsu-delta/moodle 2012-01-30 15:52:50 +08:00
Rossiani Wijaya 08b4a4e16f MDL-30983 calendar: updated phpdocs for calendar/lib.php 2012-01-30 15:38:25 +08:00
Rossiani Wijaya 93dd2725e8 MDL-30989 portfolio: updated portfolio phpdocs. 2012-01-30 15:37:46 +08:00
Aparup Banerjee 44983c3f3d Merge branch 'MDL-31319' of git://github.com/mackensen/moodle 2012-01-30 15:01:53 +08:00
Aparup Banerjee fd174542e3 Merge branch 'MDL-31392' of git://github.com/timhunt/moodle 2012-01-30 14:24:31 +08:00
sam marshall 68828cc431 MDL-31015 File/URL resource 'Open' and 'Force download' options should work consistently 2012-01-27 16:01:19 +00:00
Glenn Ansley 4d7e89d72c MDL-31311 Enhance unhelpful iframe title attributes 2012-01-27 10:22:59 -05:00
Jerome Mouneyrac e1cf6b4be2 MDL-29471 php warning when adding function to a new web service 2012-01-27 16:10:05 +08:00
David Mudrak 10d7dac528 MDL-31317 original_site_identifier_hash falls back to null during the backup conversion
Even if the site identifier is not defined in the source 1.9 backup then the
converted 2.0 version should still contain the element to prevent PHP
notices on direct assignment.
2012-01-27 08:48:37 +01:00
Kordan 372a0cf82e Merge branch 'master' of git://github.com/moodle/moodle 2012-01-27 08:25:02 +01:00
Dan Marsden 047b4e83ab SCORM AICC MDL-31039 update external AICC url correctly - thanks to Albert Rhemrev for report/fix 2012-01-27 19:41:59 +13:00
Dan Marsden d14c00e239 MDL-31360 Don't use get_in_or_equal if array is empty, tidy up structure of $extracaps array 2012-01-27 19:35:38 +13:00
Eloy Lafuente (stronk7) 216f6d8e9d weekly release 2.3dev (blame stronk7 for 0202 mistake)
On 20120102 version was incorrectly bumped to 2012-02-02. So,
until then (< 1mo) we are going to be incrementing decimal digits
only and not date ones (first 8).
2012-01-27 02:27:25 +01:00
Eloy Lafuente (stronk7) 6f20a79104 fix permissions 2012-01-27 02:19:54 +01:00
Eloy Lafuente (stronk7) cba018a30b Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-01-27 02:19:05 +01:00
AMOS bot 9c82a7cd39 Automatically generated installer lang files 2012-01-27 00:31:13 +00:00
Tim Hunt 6401b3c5bb MDL-31392 qeupgradehelper partial upgrade support broken since 2.2 2012-01-26 16:31:44 +00:00
Andrew Robert Nicols a731d18ce5 [MDL-31386] Correctly order answers in a lesson backup 2012-01-26 12:41:54 +00:00
Sam Hemelryk dff66010be Merge branch 'wip-mdl-30993' of git://github.com/rajeshtaneja/moodle 2012-01-25 13:53:56 +08:00
Rajesh Taneja 9df12115a7 MDL-30993 time api: Php document updated for time api 2012-01-25 11:15:27 +08:00
Eloy Lafuente (stronk7) f8b8abcc55 Merge branch 'MDL-31122-master' of git://github.com/sammarshallou/moodle 2012-01-25 01:52:25 +01:00
Eloy Lafuente (stronk7) 8300d8894c Merge branch 'MDL-31121-master' of git://github.com/sammarshallou/moodle 2012-01-25 01:40:20 +01:00
Eloy Lafuente (stronk7) 00a4543c5b Merge branch 'MDL-29896-master' of git://github.com/sammarshallou/moodle 2012-01-25 01:16:49 +01:00
Eloy Lafuente (stronk7) 478ba353b0 Merge branch 'MDL-31113_multiple_files_file_manager' of https://github.com/davosmith/moodle 2012-01-25 01:06:00 +01:00
Eloy Lafuente (stronk7) 897e14e263 Merge branch 'MDL-31110_loading_animation' of git://github.com/davosmith/moodle 2012-01-25 01:02:30 +01:00
Eloy Lafuente (stronk7) 28f7043f61 Merge branch 'MDL-31153-master' of git://github.com/sammarshallou/moodle 2012-01-25 00:57:25 +01:00
Eloy Lafuente (stronk7) 2def471913 Merge branch 'MDL-30120' of git://github.com/timhunt/moodle 2012-01-25 00:47:10 +01:00
Eloy Lafuente (stronk7) 9a50502acc Merge branch 'w04_MDL-31238_m23_php54' of git://github.com/skodak/moodle 2012-01-24 23:54:44 +01:00
Eloy Lafuente (stronk7) 5f67e1f395 Merge branch 'MDL-31245-master-1' of git://git.luns.net.uk/moodle 2012-01-24 18:45:29 +01:00
Aparup Banerjee f37b3defb1 Merge branch 'wip-MDL-31224-m23' of git://github.com/samhemelryk/moodle 2012-01-24 22:57:24 +08:00
Aparup Banerjee 3dd00d7030 Merge branch 'wip-MDL-29941-master' of git://github.com/samhemelryk/moodle 2012-01-24 20:23:05 +08:00
Eloy Lafuente (stronk7) df31835a44 MDL-31189 whitespace fixes 2012-01-24 13:12:25 +01:00
Eloy Lafuente (stronk7) 42906f4657 MDL-29614 whitespace fixes 2012-01-24 12:55:23 +01:00
Eloy Lafuente (stronk7) a464253f15 Merge branch 'w04_MDL-31183_m23_gloscounts' of git://github.com/skodak/moodle 2012-01-24 12:24:46 +01:00
M Kassaei da22c0127b MDL-31306 question preview: disable 'Fill correct' for qtypes that can't 2012-01-24 13:26:44 +08:00
Kordan 1bc47427f0 MDL-29614 theme_formal_white: Change the way Formal White theme shrinks pages 2012-01-24 13:11:38 +08:00
Sam Hemelryk 8d624631c5 Merge branch 'MDL-31205' of git://github.com/timhunt/moodle 2012-01-24 11:29:08 +08:00
Sam Hemelryk 9e63f744c1 Merge branch 'MDL-31189' of git://github.com/lazydaisy/moodle 2012-01-24 11:07:22 +08:00
Sam Hemelryk a04385870b Merge branch 'MDL-31231' of git://github.com/lazydaisy/moodle 2012-01-24 11:03:22 +08:00
Eloy Lafuente (stronk7) 72efa49721 Merge branch 'w04_MDL-31176_m23_groupcontext' of git://github.com/skodak/moodle 2012-01-24 01:28:56 +01:00
Aparup Banerjee 9c690979c2 Merge branch 'wip-MDL-28352-master' of git://github.com/marinaglancy/moodle 2012-01-24 07:15:15 +08:00
Eloy Lafuente (stronk7) 9bceddfa2b Merge branch 'MDL-30033' of git://github.com/timhunt/moodle 2012-01-24 00:09:12 +01:00
Eloy Lafuente (stronk7) 697cd1963b Merge branch 'MDL-31065' of git://github.com/timhunt/moodle 2012-01-24 00:07:18 +01:00
Aparup Banerjee 5b80391fde Merge branch 'w04_MDL-31184_m23_glosreset' of git://github.com/skodak/moodle 2012-01-24 06:57:57 +08:00
Eloy Lafuente (stronk7) dee8d39f4d Merge branch 'w04_MDL-31081_m23_forumindex' of git://github.com/skodak/moodle 2012-01-23 21:17:54 +01:00
stabijoh d4f1e1f326 MDL-31267 update mymobile login page 2012-01-23 10:10:59 -05:00
Charles Fulton 7ea638e48a MDL-31319 quiz attempts: include currentpage in backup 2012-01-23 05:12:44 -08:00
Sam Hemelryk 235fcb6632 Merge branch 'w04_MDL-31172_m23_fullpath' of git://github.com/skodak/moodle 2012-01-23 16:09:41 +08:00
Sam Hemelryk d6c2f4639f Merge branch 'w04_MDL-31173_m23_restore' of git://github.com/skodak/moodle 2012-01-23 16:06:47 +08:00
Sam Hemelryk d66223ea8d Merge branch 'w04_MDL-31177_m23_odsexport' of git://github.com/skodak/moodle 2012-01-23 15:38:06 +08:00
Sam Hemelryk a56272cfc7 Merge branch 'w04_MDL-31178_m23_enrolledws' of git://github.com/skodak/moodle 2012-01-23 15:27:43 +08:00
Sam Hemelryk 86e73f8981 Merge branch 'w04_MDL-31182_m23_messprefs' of git://github.com/skodak/moodle 2012-01-23 14:46:05 +08:00
Sam Hemelryk 458e91d8ca Merge branch 'w04_MDL-31186_m23_extprofiles' of git://github.com/skodak/moodle 2012-01-23 14:35:26 +08:00
Sam Hemelryk e24baafefc Merge branch 'w04_MDL-31202_m23_emailvalidation' of git://github.com/skodak/moodle 2012-01-23 14:23:25 +08:00
Mary Evans 59784b75fa MDL-31269 theme_magazine: fixes login pagelayout in theme_magazine 2012-01-23 13:26:51 +08:00
Sam Hemelryk 8ce9718239 Merge branch 'MDL-31324' of git://github.com/lazydaisy/moodle 2012-01-23 13:13:10 +08:00
Sam Hemelryk 1a20b3494b Merge branch 'MDL-31077' of git://github.com/mouneyrac/moodle 2012-01-23 11:48:59 +08:00
Sam Hemelryk be9974120e Merge branch 'MDL-31329' of git://github.com/stronk7/moodle 2012-01-23 11:28:17 +08:00
Sam Hemelryk 2bea3cd8d1 Merge branch 'MDL-31333' of git://github.com/stronk7/moodle 2012-01-23 11:22:08 +08:00
Sam Hemelryk d4de3f22c1 Merge branch 'MDL-31013-master-1' of git://git.luns.net.uk/moodle 2012-01-23 11:08:22 +08:00
Eloy Lafuente (stronk7) 7ef4949d9f MDL-31333 backup: reintroduce missing function lost by MDL-30610 2012-01-23 01:56:43 +01:00
Mary Evans 739efc85f8 MDL-31189 fixes performance info in theme_sky_high footer 2012-01-23 00:55:59 +00:00
Eloy Lafuente (stronk7) b10d13e016 Merge branch 'wip-MDL-31179-master' of github.com:marinaglancy/moodle 2012-01-23 01:19:18 +01:00
Eloy Lafuente (stronk7) 14926a50c7 Merge branch 'w04_MDL-31180_m23_closedproperty' of git://github.com/skodak/moodle 2012-01-23 01:10:38 +01:00
Eloy Lafuente (stronk7) 02cb385844 Merge branch 'w04_MDL-31181_m23_fitlertestcfg' of git://github.com/skodak/moodle 2012-01-23 01:04:00 +01:00
Eloy Lafuente (stronk7) ebf552ca89 Merge branch 'MDL-31058' of git://github.com/timhunt/moodle 2012-01-23 00:56:08 +01:00
Eloy Lafuente (stronk7) e0f6a239fc Merge branch 'w04_MDL-31185_m23_postscfg' of git://github.com/skodak/moodle 2012-01-23 00:28:08 +01:00
Eloy Lafuente (stronk7) 14f349cb78 MDL-31329 timezones: updated to 2011n 2012-01-22 21:30:06 +01:00
Petr Skoda 73eaccf60a MDL-31081 limit query to one course in forum_get_subscribed_forums()
This improves performance on the forum index page. Credit goes to Mark Nielsen.
2012-01-22 14:54:43 +01:00
Mary Evans 8f45b69692 MDL-31324 fixes custom css settings in theme_afterburner 2012-01-22 01:43:24 +00:00
Mary Evans 8e31a9b984 MDL-31231 fixes docked navigation menu in theme_afterburner 2012-01-22 00:44:38 +00:00
Petr Skoda 64cec5b2b0 MDL-31172 fix variable name typo in backup file logger 2012-01-21 20:19:34 +01:00
Petr Skoda 46f0e774f3 MDL-31173 fix variable name typo when throwing invalid $rule param exception in restore decode processor 2012-01-21 20:14:58 +01:00
Petr Skoda 025d82e0ed MDL-31176 add missing global $DB when looking for group related context in calendar 2012-01-21 19:57:01 +01:00
Petr Skoda dc76704067 MDL-31177 fix notices when exporting logs to ods 2012-01-21 19:51:28 +01:00
Petr Skoda d5b68e28b3 MDL-31178 fix broken core_enrol_external::get_enrolled_users() 2012-01-21 17:58:47 +01:00
Petr Skoda 4ae40aa577 MDL-31180 fix coding error in fake_recordset iterator 2012-01-21 17:13:39 +01:00
Petr Skoda aeacb7b128 MDL-31181 fix missing global $CFG that was breaking unit test teardown 2012-01-21 17:07:59 +01:00
Petr Skoda 681570b429 MDL-31182 fix fatal error when problem detected in finding messaging defaults 2012-01-21 16:59:16 +01:00
Petr Skoda 2e099772d9 MDL-31183 fix non-functional glossary_count_unrated_entries() 2012-01-21 16:47:03 +01:00
Petr Skoda b310a86e49 MDL-31184 fix multiple problems when reseting individual glossary types 2012-01-21 16:31:04 +01:00
Petr Skoda b1693caebc MDL-31185 fix missing CFG in forum_get_posts_by_user() 2012-01-21 16:17:06 +01:00
Petr Skoda ecfc06d88a MDL-31186 fix wrong context preloading sql 2012-01-21 16:08:25 +01:00
Petr Skoda 1c199e29b1 MDL-31202 do not try sending emails to invalid addresses
The use of mtrace() in email_to_user() is most probably incorrect, I am going to use it only in CLI scripts (which includes cron). This should not be considered a security issue because we should be already validating emails when accepting them from untrusted users.
2012-01-21 15:21:08 +01:00
Petr Skoda daac3835dc MDL-31208 fix obsolete get_record_sql() parameter
Credit goes to Rajesh Taneja.
2012-01-21 11:36:10 +01:00
Petr Skoda 820a8188ec MDL-31238 remove now unnecessary null to stdClass conversion for plugin settings 2012-01-21 11:15:30 +01:00
Petr Skoda 268b6709ec MDL-31238 always return object for plugin settings from get_config()
This prevents multiple creations of objects from NULL which is note a warnings in php54
2012-01-21 11:14:37 +01:00
Tim Hunt 0b94d6bff3 MDL-30120 questions: remove support for legacy qtype string names. 2012-01-20 19:42:42 +00:00
Tim Hunt 24400682a0 MDL-31065 question stats: fix analysis of responses not matching a given answer
When shortanswer, numerical, calculated and calculatedsimple questions
did not have a '*' match-anything answer, then any student response that
did not match any of the teacher-given answers were classified as
'[No response]', which was not right.

This patch fixes that. Such responses are now classified as
[Did not match any answer].

While I was doing this, I noticed that the display of tolerance
intervals for numerical questions in the response analysis was horrible,
so I improved it.
2012-01-20 17:44:22 +00:00
Tim Hunt ee664a16f2 MDL-31205 quiz 'secure' window: scrollbars missing.
Embarrassing type in the arguments to openpopup
2012-01-20 17:28:26 +00:00
Tim Hunt 3159bf92e0 MDL-31065 qtype shortanswer: refactor the unit tests to use a proper helper. 2012-01-20 17:27:55 +00:00
Tim Hunt c9b8a56f58 MDL-31058 qtype match 1.9 restore: fix restore of dodgy questions. 2012-01-20 17:27:23 +00:00
Tim Hunt b7ab57f3af MDL-30033 quiz overall feedback not show for attempts with a -ve grade
This can happen, for example, if a student does really badly on a CBM quiz.
2012-01-20 17:12:43 +00:00
Tim Hunt 71ece27e49 MDL-26260 quiz 'secure' window: close loophole in some themes.
Some themes put padding on body, which meant there were a few pixels
where you could get at the context menu. Oh noes!
2012-01-20 17:12:15 +00:00
sam marshall 5ad40d0e19 MDL-29896 Navigation: Make links, files clickable in nav block 2012-01-20 10:36:53 +00:00
Kordan c00207c0bb Merge branch 'master' of github.com:kordan/moodle 2012-01-20 11:19:38 +01:00
Marina Glancy 0387e003ad MDL-28352: Fixed bug in html_writer::select_time causing not autoselecting month 2012-01-20 16:04:59 +08:00
Sam Hemelryk a0a39b0dcb MDL-31197 navigation: Fixed issue withing require_login for courses that are hidden or unavailable 2012-01-20 12:51:24 +08:00
Sam Hemelryk 13915f89d4 MDL-31224 block_navigation: Fixed display of icons for node with an action_link action 2012-01-20 11:19:25 +08:00
David Penner a0cc337bdb MDL-31160 block_navigation: Fixed incorrect thrid arg to substr. 2012-01-20 11:14:38 +08:00
Sam Hemelryk ff8e5d47f8 MDL-29941 csslib: Improved PHPdocs and fixed up 4 and 5 char colour handling plus unittests 2012-01-20 11:05:38 +08:00
Sam Hemelryk f37f608e75 MDL-29941 csslib: Peer-review documentation changes 2012-01-20 11:02:06 +08:00
Sam Hemelryk 6bbd4858b7 MDL-29941 csslib: Last minute cleanup before integration review
* Fixed reversed border styles.
* Added support for out of order background styles.
* Added more CSS tests again.
* Added better validation of CSS widths
2012-01-20 11:02:06 +08:00
Sam Hemelryk 0abd4846a0 MDL-29941 csslib: Improved PHPdocs 2012-01-20 11:02:06 +08:00
Sam Hemelryk 50836f26ca MDL-29941 csslib: Improved unit tests and fixed bugs with background and border partial style optimisation 2012-01-20 11:02:06 +08:00
Sam Hemelryk 1d1d807ea6 MDL-29941 csslib: Made optimisation an experimental option 2012-01-20 11:02:05 +08:00
Sam Hemelryk 8589a4a52e MDL-29941 csslib: Improved the stats generation and output 2012-01-20 11:02:05 +08:00
Sam Hemelryk 0e641c7437 MDL-29941 csslib: A CSS optimiser has been added to process our mountain of CSS 2012-01-20 11:02:05 +08:00
Marina Glancy 776d75b9a6 MDL-31179: added missing global 2012-01-20 10:33:27 +08:00
AMOS bot f4d80b1a05 Automatically generated installer lang files 2012-01-20 00:31:19 +00:00
Davo Smith 910e1ecdaa MDL-31113 filemanager element - refresh file list from server on load and prevent revertion to browser drag and drop behaviour when max files reached 2012-01-19 19:28:16 +00:00
Davo Smith 4069ae323d MDL-31110 Filemanager drag and drop upload - always hide spinner, even when errors occur 2012-01-19 19:21:27 +00:00
Eloy Lafuente (stronk7) 564b858220 weekly release 2.3dev (blame stronk7 for 0202 mistake)
On 20120102 version was incorrectly bumped to 2012-02-02. So,
until then (< 1mo) we are going to be incrementing decimal digits
only and not date ones (first 8).
2012-01-19 18:35:40 +01:00
Andrew Robert Nicols 73c932022f MDL-31242 Prevent redefinition of MOODLE_INTERNAL when loading multiple YUI modules from Moodle 2012-01-19 18:35:39 +01:00
Eloy Lafuente (stronk7) fe0bc2e0be MDL-31006 revert partially @ get_config()
The change from null to stdClass() in get_config() was leading to:

1) unit tests not passing.
2) non-equivalent evaluation in conditions (null evals false,
   stdClassi() evals true)
2012-01-19 18:35:39 +01:00
AMOS bot 63abec4487 Automatically generated installer lang files 2012-01-19 18:35:39 +01:00
Petr Skoda 53a18ea433 MDL-31006 some more PHP54 notices
PHP54 compatibility - PhpStorm IDE is the best tool for this kind of work!!
2012-01-19 18:35:39 +01:00
Petr Skoda d76b718d84 MDL-31006 fix various notices in PHP54
PHP54 compatibility
2012-01-19 18:35:39 +01:00
Petr Skoda a289d672b6 MDL-31213 fix incorrect modifications of quickforms attributes 2012-01-19 18:35:38 +01:00
AMOS bot 983342b0df Automatically generated installer lang files 2012-01-19 18:35:38 +01:00
Eloy Lafuente (stronk7) 2293fcb099 MDL-31196 quiz stats - fix version out of sync introduced recently
Pointing to current master version as requirement (2012020200)
2012-01-19 18:35:38 +01:00
Aparup Banerjee f389db4bc8 MDL-3054 quiz : correcting currentpage to unsigned 2012-01-19 18:35:38 +01:00
Aparup Banerjee 605d75a07d MDL-30929 fixed spelling mistake in string. 2012-01-19 18:35:38 +01:00
Petr Skoda 25af2aa663 MDL-31142 fix textlib::substr() performance, invalid length in iconv_substr; use mbstring by default 2012-01-19 18:35:38 +01:00
Petr Skoda c12210514b MDL-30929 detect incorrect major version upgrades 2012-01-19 18:35:38 +01:00
Sam Hemelryk 17f15e2053 MDL-31011 course: Fixed typo in comment 2012-01-19 18:35:38 +01:00
Mary Evans fb5bbc1d42 MDL-29724-update login page layout for all themes 2012-01-19 18:35:38 +01:00
Aparup Banerjee b645d61910 MDL-3054 quiz : cleaned whitespaces. 2012-01-19 18:35:38 +01:00
Mayank Gupa 66fa04fca2 MDL-30578, Updating CMILongIdentifer read comments at tracker 2012-01-19 18:35:37 +01:00
Mayank Gupa 4bc60a5b80 MDL-30578, Updating CMILongIdentifer to check for valid URI (RFC 3986 [6]) and URN syntax as per RFC 2141 [3] 2012-01-19 18:35:37 +01:00
Petr Skoda d8488e27ac MDL-29102 fix notice when auto-creating groups in existing grouping 2012-01-19 18:35:37 +01:00
Petr Skoda 90876da7fa MDL-31171 fix blog attachment serving in BLOG_USER_LEVEL 2012-01-19 18:35:37 +01:00
Petr Skoda 6dd4f20261 MDL-31011 fix report links in logs 2012-01-19 18:35:37 +01:00
Petr Skoda 11323017d5 MDL-31035 fix showuseridentity notice before settings upgrade 2012-01-19 18:35:37 +01:00
Petr Skoda 8aaa2370bc MDL-21992 fix custom scripts on https pages and CLI 2012-01-19 18:35:37 +01:00
Petr Skoda 716cd6b507 MDL-31161 fix notice when checking plugin requirements
Credit goes to Joseph Rézeau, thanks.
2012-01-19 18:35:36 +01:00
Petr Skoda 27630d8b5b MDL-30958 do not use Yahoo CDN on https sites
Browsers do not like mixing of ssl and non-use content on one page. Unfortunately YAHOO does not provide the files over SSL yet - see http://yuilibrary.com/yui/docs/tutorials/faq/#does-yahoos-cdn-support-ssl
2012-01-19 18:35:36 +01:00
Petr Skoda 9627c1cd1b MDL-31170 fix automatic blog blocks hiding/unhiding after blog level change 2012-01-19 18:35:36 +01:00
Petr Skoda 36650bdb43 MDL-31092 send localised new account emails 2012-01-19 18:35:36 +01:00
Petr Skoda 401dc2429f MDL-31166 do not try to cleanup data root paths in CLI install script
PARAM_TYPE can not be used for full OS paths. Admins have to enter correct data there, if not they get directory creation error.
2012-01-19 18:35:36 +01:00
Petr Skoda 11f06bd7f6 MDL-31165 fix InnoDB conversion query to use ENGINE parameter instead of legacy TYPE 2012-01-19 18:35:36 +01:00
AMOS bot fab02dd630 Automatically generated installer lang files 2012-01-19 18:35:36 +01:00
Mary Evans cd2e6b2050 MDL-31164-Fixes Sky High theme truncates report-Part2 2012-01-19 18:35:36 +01:00
Petr Skoda 19df6d4fae MDL-31109 fix maintenance link value in get_string() 2012-01-19 18:35:36 +01:00
Petr Skoda 3a652da73a MDL-31117 delete obsolete TODO
This TODO was added when we were still using moodledata folder for group images, it is not relevant any more because group images are in new file API which supports DB transaction rollbacks.
2012-01-19 18:35:36 +01:00
Petr Skoda bbb2879217 MDL-31127 init USER->access when switching roles
Only admins were affected by this problem because has_capability() does not init USER->access for them.
2012-01-19 18:35:35 +01:00
Petr Skoda fded199e57 MDL-27165 fix broken confirmed user filtering 2012-01-19 18:35:35 +01:00
Petr Skoda 929fbc701b MDL-30891 fix invalid hardcoded capability check when disable legacy files repo 2012-01-19 18:35:35 +01:00
Petr Skoda 5c2abc463f MDL-31053 fix invalid context preloading in get_user_capability_course() 2012-01-19 18:35:35 +01:00
Petr Skoda a75386fba6 MDL-31124 reinstroduce accidentally removed restore code for 1.9 backups 2012-01-19 18:35:35 +01:00
Mary Evans 7a00d6cbc6 MDL-31144-fixes hidden Navigation block menu items when docked 2012-01-19 18:35:35 +01:00
Dan Poltawski 8e41bae41e MDL-29091 quiz - switch to use moodle_url::out_as_local_url 2012-01-19 18:35:35 +01:00
Dan Poltawski 34c0d46e94 MDL-29091 weblib - Introduce out_as_local_url() method to moodle_url
This can be used for passing around PARAM_LOCALURL's where necessary
stripping the wwwroot
2012-01-19 18:35:34 +01:00
Marina Glancy a519d915bf MDL-31072: Added indexes to table role_assignments to speed up work in many-users-many-contexts environments 2012-01-19 18:35:34 +01:00
Marina Glancy 037ef684a3 MDL-31072: Fixed bug causing memory overflow for many-user systems:
when function find_users was supposed to be used for user validation but no userids were passed to it, it retrieved all users in the system.
This caused memory overflow on systems with too many users (like moodle.org).
Now we make sure that find_users is not called for validation if there is nobody to validate.

Also improved query inside find_users to make it work faster
2012-01-19 18:35:34 +01:00
Marina Glancy 41fb628f93 MDL-31060: removed unnecessary fields from query which also caused problems in MSSQL 2012-01-19 18:35:34 +01:00
Sam Hemelryk 702cb900c3 MDL-31025 navigation: When calling load_section_activities you must provide an array of activities not course_modinfo 2012-01-19 18:35:34 +01:00
sam marshall 90021290ee MDL-30408 Allow modules the choice to not appear on 'Add a...' lists
This is useful for modules which are created by the system and are not supposed to be created by users. There are various reasons for doing this in third-party modules.
2012-01-19 18:35:34 +01:00
Charles Fulton 4e2f2faf9f MDL-3054 record the current page of a quiz attempt 2012-01-19 18:35:34 +01:00
Tim Hunt abd738223c MDL-31143 quiz reports: average grade of null causes php error. 2012-01-19 18:35:34 +01:00
Tim Hunt f572ec93af MDL-31135 question instances report: 'All' option broken 2012-01-19 18:35:33 +01:00
Jonathon Fowler 00f265c4d9 MDL-31130 question bank: toggling show all / 20 per page broken. 2012-01-19 18:35:33 +01:00
Tim Hunt 425342ced4 MDL-31102 question preview: fix HTML validation errors. 2012-01-19 18:35:33 +01:00
Tim Hunt 92a5f438a7 MDL-31100 unit tests: don't mangle UTF-8 in failure messages. 2012-01-19 18:35:33 +01:00
Tim Hunt 45a81b1b10 MDL-31095 quiz editing: only set quiz->grade to 0 if really necessary.
It is only necessary when there are (non-preview) attempts. However,
after making this change we have to ensure users cannot start attempts
when ->grade > 0 and ->sumgrades = 0.

Display ->grade on the order and paging tab of edit.php, so it is clear
what is going on when you are using that tab.

Finally, improve the error message a student gets if they try to start a
quiz with no questions.
2012-01-19 18:35:33 +01:00
Tim Hunt d20b34c726 MDL-31095 quiz: fix bug in quiz::has_questions. 2012-01-19 18:35:33 +01:00
Tim Hunt 31c5521442 MDL-31080 quiz editing, must be able to see and delete missing questions 2012-01-19 18:35:33 +01:00
Andrew Robert Nicols 8cbccb71da MDL-31040 Correct LTR language issue and inconsistency in display 2012-01-19 18:35:32 +01:00
Andrew Robert Nicols a1dfe33a6e MDL-31018 Improve consistency of horizontal alignment across grade reports 2012-01-19 18:35:32 +01:00
sam marshall ea47046689 MDL-31153 File manager drag and drop English text improvement 2012-01-19 14:49:21 +00:00
sam marshall d67e4821ab MDL-31122 Navigation: Do not show week in navigation if it contains only labels 2012-01-19 14:46:03 +00:00
sam marshall a2c5766674 MDL-31121 File resource: add options to display file type and size 2012-01-19 12:52:38 +00:00
Eloy Lafuente (stronk7) f6b4ec2b4a weekly release 2.3dev (blame stronk7 for 0202 mistake)
On 20120102 version was incorrectly bumped to 2012-02-02. So,
until then (< 1mo) we are going to be incrementing decimal digits
only and not date ones (first 8).
2012-01-19 13:34:40 +01:00
Eloy Lafuente (stronk7) aae1ebe999 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-01-19 13:28:00 +01:00
Andrew Robert Nicols c042fc819d MDL-31014 Allow for selection of a different displayformat when approving glossary entries 2012-01-19 09:39:46 +00:00
Andrew Robert Nicols 2f76f1019e MDL-31242 Prevent redefinition of MOODLE_INTERNAL when loading multiple YUI modules from Moodle 2012-01-18 15:38:55 +01:00
Andrew Robert Nicols 7aefaa91c9 MDL-31245 Add missing 'icon' class to highlight button in topics format 2012-01-18 14:12:09 +00:00
Eloy Lafuente (stronk7) 7fb7e9835a MDL-31006 revert partially @ get_config()
The change from null to stdClass() in get_config() was leading to:

1) unit tests not passing.
2) non-equivalent evaluation in conditions (null evals false,
   stdClassi() evals true)
2012-01-18 02:09:46 +01:00
AMOS bot 3e2c9a037f Automatically generated installer lang files 2012-01-18 00:31:32 +00:00
Petr Skoda 927010240f MDL-31006 some more PHP54 notices
PHP54 compatibility - PhpStorm IDE is the best tool for this kind of work!!
2012-01-18 01:17:25 +01:00
Petr Skoda b85b25ebb8 MDL-31006 fix various notices in PHP54
PHP54 compatibility
2012-01-18 01:03:20 +01:00
Eloy Lafuente (stronk7) ae924874d7 Merge branch 'w03_MDL-31213_m23_attributesmess' of git://github.com/skodak/moodle 2012-01-17 12:32:47 +01:00
Petr Skoda 48cbe43ded MDL-31213 fix incorrect modifications of quickforms attributes 2012-01-17 11:18:56 +01:00
Jerome Mouneyrac 2ada59b759 MDL-31077 REST server should return null if nothing fail and if the description function return null. 2012-01-17 15:37:27 +08:00
Eloy Lafuente (stronk7) dc978ceb99 Merge branch 'w03_MDL-31053_m23_contextpreloading' of git://github.com/skodak/moodle 2012-01-17 02:18:46 +01:00
Eloy Lafuente (stronk7) 5f39437ae0 Merge branch 'w03_MDL-31127_m23_switchaccessinit' of git://github.com/skodak/moodle 2012-01-17 02:10:41 +01:00
Eloy Lafuente (stronk7) 679f37e5fe Merge branch 'w03_MDL-31161_m23_reqpluginnotice' of git://github.com/skodak/moodle 2012-01-17 02:05:53 +01:00
Eloy Lafuente (stronk7) 2176ed55e9 Merge branch 'MDL-31080' of git://github.com/timhunt/moodle 2012-01-17 01:58:51 +01:00
Eloy Lafuente (stronk7) ec43e2267c Merge branch 'MDL-30408-master' of git://github.com/sammarshallou/moodle 2012-01-17 01:43:19 +01:00
Eloy Lafuente (stronk7) 4374d03158 Merge branch 'w03_MDL-31142_m23_slowiconv' of git://github.com/skodak/moodle 2012-01-17 01:36:03 +01:00
Eloy Lafuente (stronk7) f58e09cbce Merge branch 'w03_MDL-31171_m23_blogattachment' of git://github.com/skodak/moodle 2012-01-17 01:31:59 +01:00
AMOS bot c09ca45e96 Automatically generated installer lang files 2012-01-17 00:31:09 +00:00
Eloy Lafuente (stronk7) 479932c132 Merge branch 'w03_MDL-31170_m23_blogblocks' of git://github.com/skodak/moodle 2012-01-17 00:55:31 +01:00
Eloy Lafuente (stronk7) 325f3addf2 Merge branch 'MDL-3054' of git://github.com/nebgor/moodle 2012-01-16 12:24:35 +01:00
Eloy Lafuente (stronk7) b3bc81893e Merge branch 'MDL-31196' of git://github.com/stronk7/moodle 2012-01-16 12:16:42 +01:00
Eloy Lafuente (stronk7) 273a432956 MDL-31196 quiz stats - fix version out of sync introduced recently
Pointing to current master version as requirement (2012020200)
2012-01-16 11:16:59 +01:00
Aparup Banerjee b3f8559ebc MDL-3054 quiz : correcting currentpage to unsigned 2012-01-16 17:35:57 +08:00
Sam Hemelryk d36b5d1177 Merge branch 'MDL-31095' of git://github.com/timhunt/moodle 2012-01-16 16:58:32 +08:00
Sam Hemelryk 99eec460d7 Merge branch 'MDL-31135' of https://github.com/timhunt/moodle 2012-01-16 16:40:33 +08:00
Sam Hemelryk b1baa8a2f2 Merge branch 'MDL-31102' of git://github.com/timhunt/moodle 2012-01-16 16:30:48 +08:00
Aparup Banerjee 12fd545a01 MDL-30929 fixed spelling mistake in string. 2012-01-16 16:24:22 +08:00
Sam Hemelryk 3c7aef3492 Merge remote-tracking branch 'skodak/w03_MDL-27165_m23_confirmed' 2012-01-16 16:17:28 +08:00
Petr Skoda ca281c51bb MDL-31142 fix textlib::substr() performance, invalid length in iconv_substr; use mbstring by default 2012-01-16 09:16:14 +01:00
Aparup Banerjee c8be518100 Merge branch 'w03_MDL-30929_m23_stalefiles' of https://github.com/skodak/moodle 2012-01-16 16:15:04 +08:00
Petr Skoda 9008ec1654 MDL-30929 detect incorrect major version upgrades 2012-01-16 09:08:36 +01:00
Aparup Banerjee 025ce406e7 Merge branch 'MDL-31143' of https://github.com/timhunt/moodle 2012-01-16 15:29:05 +08:00
Sam Hemelryk e9d2492833 Merge remote-tracking branch 'skodak/w03_MDL-29102_m23_autogrouping' 2012-01-16 15:12:02 +08:00
Sam Hemelryk 69136724f6 Merge remote-tracking branch 'skodak/w03_MDL-30891_m23_repository' 2012-01-16 15:01:36 +08:00
Sam Hemelryk 0cfedcbba7 Merge remote-tracking branch 'skodak/w03_MDL-30958_m23_yuissl' 2012-01-16 14:55:52 +08:00
Aparup Banerjee 9208714315 Merge branch 'w03_MDL-31166_m23_clipath' of https://github.com/skodak/moodle 2012-01-16 14:52:23 +08:00
Sam Hemelryk 3ce3bb8861 MDL-31011 course: Fixed typo in comment 2012-01-16 14:49:56 +08:00
Sam Hemelryk 371fa34ecc Merge remote-tracking branch 'skodak/w03_MDL-31011_m23_loglinks' 2012-01-16 14:49:55 +08:00
Aparup Banerjee cd70d3c4a8 Merge branch 'w03_MDL-21992_m23_customscripts' of https://github.com/skodak/moodle 2012-01-16 14:46:39 +08:00
Aparup Banerjee 9e32834827 Merge branch 'wip-MDL-31025-m23' of https://github.com/samhemelryk/moodle 2012-01-16 14:40:46 +08:00
Sam Hemelryk 6a57cb0cb0 Merge remote-tracking branch 'skodak/w03_MDL-31035_m23_identitynotice' 2012-01-16 14:38:47 +08:00
Sam Hemelryk 1b81892765 Merge remote-tracking branch 'skodak/w03_MDL-31117_m23_grouptodo' 2012-01-16 14:35:30 +08:00
Sam Hemelryk a2734ca8d1 Merge remote-tracking branch 'skodak/w03_MDL-31109_m23_maintenance' 2012-01-16 14:33:40 +08:00
Sam Hemelryk 7255250c2c Merge remote-tracking branch 'skodak/w03_MDL-31092_m23_emailpass' 2012-01-16 14:30:43 +08:00
Mary Evans e52c36ddf8 MDL-29724-update login page layout for all themes 2012-01-16 14:02:25 +08:00
Aparup Banerjee c5fd16826a MDL-3054 quiz : cleaned whitespaces. 2012-01-16 13:41:12 +08:00
Aparup Banerjee 8e9e623e79 Merge branch 'MDL-3054' of git://github.com/mackensen/moodle 2012-01-16 13:38:49 +08:00
Sam Hemelryk 8a4c5170a5 Merge branch 'MDL-31144' of git://github.com/lazydaisy/moodle 2012-01-16 13:16:44 +08:00
Sam Hemelryk fbdc155360 Merge branch 'MDL-31164' of git://github.com/lazydaisy/moodle 2012-01-16 13:08:39 +08:00
Sam Hemelryk 55cf5f8e75 Merge branch 'wip-MDL-31060-master' of git://github.com/marinaglancy/moodle 2012-01-16 11:58:16 +08:00
Sam Hemelryk 864777cb73 Merge branch 'MDL-31130' of git://github.com/timhunt/moodle 2012-01-16 11:49:33 +08:00
Aparup Banerjee 7ed8dc999f Merge branch 'wip-MDL-31072-master' of github.com:marinaglancy/moodle 2012-01-16 11:39:05 +08:00
Sam Hemelryk d37d6e2a8e Merge branch 'moodleurl_out_as_local_url' of git://git.luns.net.uk/moodle 2012-01-16 11:31:24 +08:00
Sam Hemelryk 5ba0697050 Merge branch 'MDL-31018-master-1' of git://git.luns.net.uk/moodle 2012-01-16 11:11:17 +08:00
Sam Hemelryk 66fe8d59c8 Merge branch 'MDL-31040-master-2' of git://git.luns.net.uk/moodle 2012-01-16 10:54:08 +08:00
Aparup Banerjee 89aac2b3cd Merge branch 'master_MDL-30578' of git://github.com/mayankgupta/moodle 2012-01-16 10:14:23 +08:00
Eloy Lafuente (stronk7) 41c3a6f004 Merge branch 'w03_MDL-31165_m23_innodbconv' of git://github.com/skodak/moodle 2012-01-16 02:06:27 +01:00
Eloy Lafuente (stronk7) fd684bda5a Merge branch 'MDL-31100' of git://github.com/timhunt/moodle 2012-01-16 01:02:29 +01:00
Mayank Gupa d6296b71cc MDL-30578, Updating CMILongIdentifer read comments at tracker 2012-01-16 00:10:22 +05:30
Mayank Gupa c9e7d6eb81 MDL-30578, Updating CMILongIdentifer to check for valid URI (RFC 3986 [6]) and URN syntax as per RFC 2141 [3] 2012-01-16 00:10:20 +05:30
Charles Fulton abf639be01 MDL-25883 correct element name for wiki comments editor 2012-01-15 10:35:58 -08:00
Petr Skoda ca50186f73 MDL-29102 fix notice when auto-creating groups in existing grouping 2012-01-15 19:26:43 +01:00
Petr Skoda 58a435f6cf MDL-31171 fix blog attachment serving in BLOG_USER_LEVEL 2012-01-15 19:11:16 +01:00
Petr Skoda d48f6068e0 MDL-31011 fix report links in logs 2012-01-15 19:02:08 +01:00
Petr Skoda 33e5ac269e MDL-31035 fix showuseridentity notice before settings upgrade 2012-01-15 17:12:35 +01:00
Petr Skoda 7858b5212c MDL-21992 fix custom scripts on https pages and CLI 2012-01-15 15:59:06 +01:00
Petr Skoda 499ff0a95e MDL-31161 fix notice when checking plugin requirements
Credit goes to Joseph Rézeau, thanks.
2012-01-15 15:34:56 +01:00
Petr Skoda 47932f4967 MDL-30958 do not use Yahoo CDN on https sites
Browsers do not like mixing of ssl and non-use content on one page. Unfortunately YAHOO does not provide the files over SSL yet - see http://yuilibrary.com/yui/docs/tutorials/faq/#does-yahoos-cdn-support-ssl
2012-01-15 15:24:34 +01:00
Petr Skoda 00b9c582d8 MDL-31170 fix automatic blog blocks hiding/unhiding after blog level change 2012-01-15 13:40:12 +01:00
Petr Skoda 5e1e0d7fe5 MDL-31092 send localised new account emails 2012-01-15 11:45:50 +01:00
Petr Skoda ad72df401f MDL-31166 do not try to cleanup data root paths in CLI install script
PARAM_TYPE can not be used for full OS paths. Admins have to enter correct data there, if not they get directory creation error.
2012-01-15 11:05:00 +01:00
Petr Skoda 5f0456ef27 MDL-31165 fix InnoDB conversion query to use ENGINE parameter instead of legacy TYPE 2012-01-15 10:32:08 +01:00
AMOS bot 1b677b8647 Automatically generated installer lang files 2012-01-15 00:31:08 +00:00
Mary Evans 3922c906b9 MDL-31164-Fixes Sky High theme truncates report-Part2 2012-01-15 00:09:20 +00:00
Petr Skoda ecc2897c85 MDL-31109 fix maintenance link value in get_string() 2012-01-15 00:56:01 +01:00
Petr Skoda c5eeccbec9 MDL-31117 delete obsolete TODO
This TODO was added when we were still using moodledata folder for group images, it is not relevant any more because group images are in new file API which supports DB transaction rollbacks.
2012-01-15 00:43:28 +01:00
Petr Skoda 843ca76111 MDL-31127 init USER->access when switching roles
Only admins were affected by this problem because has_capability() does not init USER->access for them.
2012-01-15 00:14:44 +01:00
Petr Skoda a019ffcd23 MDL-27165 fix broken confirmed user filtering 2012-01-14 22:14:26 +01:00
Petr Skoda 1fbbf89349 MDL-30891 fix invalid hardcoded capability check when disable legacy files repo 2012-01-14 21:57:47 +01:00
Petr Skoda 8ab5c8ec0a MDL-31053 fix invalid context preloading in get_user_capability_course() 2012-01-14 21:36:02 +01:00
Petr Skoda ad8c5aee72 MDL-31124 reinstroduce accidentally removed restore code for 1.9 backups 2012-01-14 21:24:15 +01:00
Mary Evans 08be319445 MDL-31144-fixes hidden Navigation block menu items when docked 2012-01-14 01:16:29 +00:00
Andrew Robert Nicols 36ef66430e MDL-31000 Respect sortorder of repositories when displaying the filepicker 2012-01-13 15:52:04 +00:00
Dan Poltawski a530d4a93b MDL-29091 quiz - switch to use moodle_url::out_as_local_url 2012-01-13 10:16:52 +00:00
Dan Poltawski 48ddc9bfd6 MDL-29091 weblib - Introduce out_as_local_url() method to moodle_url
This can be used for passing around PARAM_LOCALURL's where necessary
stripping the wwwroot
2012-01-13 10:16:52 +00:00
Marina Glancy 91331b6b96 MDL-31072: Added indexes to table role_assignments to speed up work in many-users-many-contexts environments 2012-01-13 10:12:17 +08:00
Marina Glancy 3c2ed2d7ce MDL-31072: Fixed bug causing memory overflow for many-user systems:
when function find_users was supposed to be used for user validation but no userids were passed to it, it retrieved all users in the system.
This caused memory overflow on systems with too many users (like moodle.org).
Now we make sure that find_users is not called for validation if there is nobody to validate.

Also improved query inside find_users to make it work faster
2012-01-13 10:12:17 +08:00
Marina Glancy 96ef951d5f MDL-31060: removed unnecessary fields from query which also caused problems in MSSQL 2012-01-13 10:12:10 +08:00
Sam Hemelryk 1580cfdbf7 MDL-31025 navigation: When calling load_section_activities you must provide an array of activities not course_modinfo 2012-01-13 13:00:54 +13:00
sam marshall 5813c7f7dc MDL-30408 Allow modules the choice to not appear on 'Add a...' lists
This is useful for modules which are created by the system and are not supposed to be created by users. There are various reasons for doing this in third-party modules.
2012-01-12 17:29:54 +00:00
Charles Fulton 5db8294940 MDL-3054 record the current page of a quiz attempt 2012-01-12 09:15:37 -08:00
Tim Hunt 1be875b877 MDL-31143 quiz reports: average grade of null causes php error. 2012-01-12 16:42:19 +00:00
Tim Hunt 574a5e53f5 MDL-31135 question instances report: 'All' option broken 2012-01-12 12:43:22 +00:00
Jonathon Fowler 2902edb4ec MDL-31130 question bank: toggling show all / 20 per page broken. 2012-01-12 12:41:25 +00:00
Tim Hunt 079caafc16 MDL-31102 question preview: fix HTML validation errors. 2012-01-12 12:10:54 +00:00
Tim Hunt aad1b6ee64 MDL-31100 unit tests: don't mangle UTF-8 in failure messages. 2012-01-12 12:10:33 +00:00
Tim Hunt 18dff75754 MDL-31095 quiz editing: only set quiz->grade to 0 if really necessary.
It is only necessary when there are (non-preview) attempts. However,
after making this change we have to ensure users cannot start attempts
when ->grade > 0 and ->sumgrades = 0.

Display ->grade on the order and paging tab of edit.php, so it is clear
what is going on when you are using that tab.

Finally, improve the error message a student gets if they try to start a
quiz with no questions.
2012-01-12 12:10:08 +00:00
Tim Hunt 389cb58948 MDL-31095 quiz: fix bug in quiz::has_questions. 2012-01-12 12:10:06 +00:00
Tim Hunt 068384ce65 MDL-31080 quiz editing, must be able to see and delete missing questions 2012-01-12 12:09:45 +00:00
Eloy Lafuente (stronk7) 60e99097e4 weekly release 2.3dev (blame stronk7 for 0202 mistake)
On 20120102 version was incorrectly bumped to 2012-02-02. So,
until then (< 1mo) we are going to be incrementing decimal digits
only and not date ones (first 8).
2012-01-12 11:34:20 +01:00
Eloy Lafuente (stronk7) 96f32207b6 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-01-12 11:24:39 +01:00
Eloy Lafuente (stronk7) bdbe8f278e Merge branch 'w02_MDL-29684_m23_metaenrol' of git://github.com/skodak/moodle 2012-01-11 23:48:06 +01:00
Tim Hunt ff05bb3166 MDL-26469 upgrade: cope with modules that do not set $module->cron. 2012-01-11 15:42:23 +00:00
Tim Hunt 3412cb4386 MDL-26469 upgrade: module cron setting not updated. 2012-01-11 14:04:09 +00:00
Tim Hunt 26756d9c6f MDL-30635 quiz cron: fixup - enable in version.php & fn name quiz_statistics_cron 2012-01-11 14:02:57 +00:00
Andrew Robert Nicols 6dc5908ef7 MDL-31040 Correct LTR language issue and inconsistency in display 2012-01-11 10:58:23 +00:00
AMOS bot d7a6956444 Automatically generated installer lang files 2012-01-11 00:31:15 +00:00
Eloy Lafuente (stronk7) 4cd2b394ac Merge branch 'MDL-31101' of git://github.com/timhunt/moodle 2012-01-10 23:34:56 +01:00
Tim Hunt d07f7be890 MDL-31101 format_string: Don't mangle < and > in strings like x < 1. 2012-01-10 14:52:19 +00:00
Rajesh Taneja 246c2cb8e5 MDL-30452 Repositories: Changed default capability on repos - Thanks Michael 2012-01-10 11:10:43 +01:00
Sam Hemelryk 7dd813b948 Merge branch 'MDL-24394' of git://github.com/timhunt/moodle 2012-01-10 14:30:32 +13:00
Sam Hemelryk 44577c96d0 Merge branch 'MDL-31019' of git://github.com/timhunt/moodle 2012-01-10 14:26:08 +13:00
Sam Hemelryk 6b37c2b093 MDL-31000 Added comment about the importance of repository array keys and hardened new dnd repository lookup 2012-01-10 12:21:24 +13:00
Sam Hemelryk b098581488 Revert "MDL-31000 Respect sortorder of repositories when displaying the filepicker"
This change was reverted because the array keys need to be the id, existing code relies on this.
This reverts commit ef72c7942e.
2012-01-10 12:18:34 +13:00
Sam Hemelryk 7d1655a580 Merge branch 'dragdrop-for-master' of git://git.luns.net.uk/moodle 2012-01-10 11:52:09 +13:00
Eloy Lafuente (stronk7) 0a87f07a9b Merge branch 'wip-mdl-30608' of git://github.com/rajeshtaneja/moodle 2012-01-09 22:18:50 +01:00
Eloy Lafuente (stronk7) 528dbf2f7d Merge branch 'MDL-6102-master' of git://github.com/sammarshallou/moodle 2012-01-09 22:02:10 +01:00
Eloy Lafuente (stronk7) fb051bf072 Merge branch 'MDL-30783_t2' of git://github.com/kiklop74/moodle 2012-01-09 21:47:16 +01:00
Tim Hunt e73af46d4c MDL-24394 qtype_match: should be able to use multilang for the choices. 2012-01-09 18:05:06 +00:00
Davo Smith f08fac7c89 MDL-29766 Add drag and drop upload to filemanager / filepicker elements 2012-01-09 17:27:32 +00:00
Tim Hunt d89eb938fd MDL-31019 quiz secure mode. Fix typo that breaks submit. 2012-01-09 17:09:11 +00:00
sam marshall 487de67c48 MDL-6102 Default time format incorrectly has leading zeros on 12-hour times (e.g. 03:57 PM) 2012-01-09 11:38:59 +00:00
Aparup Banerjee 0970ac7dfa MDL-30583 Navigation : fixed string. 2012-01-09 14:35:38 +08:00
Aparup Banerjee bb9546d0c7 Merge branch 'wip-MDL-30583-master' of git://github.com/samhemelryk/moodle 2012-01-09 13:44:36 +08:00
Aparup Banerjee fcad996aab Merge branch 'w02_MDL-30718_m23_usertimedb' of git://github.com/skodak/moodle 2012-01-09 12:18:36 +08:00
Sam Hemelryk 2e40a94cff Merge branch 'w02_MDL-31005_m23_contextlevelname' of git://github.com/skodak/moodle 2012-01-09 16:12:24 +13:00
Sam Hemelryk 3506dfa22f MDL-30608 Blocks: Fixed block disappering from search page 2012-01-09 11:04:10 +08:00
Sam Hemelryk 7adf214012 Merge branch 'w02_MDL-30944_m23_cohortenrol' of git://github.com/skodak/moodle 2012-01-09 14:58:57 +13:00
Eloy Lafuente (stronk7) 7a9a12aa05 Merge branch 'w02_MDL-29046_m23_clidistrolib' of git://github.com/skodak/moodle 2012-01-09 02:31:02 +01:00
Eloy Lafuente (stronk7) 30c99be2f0 Merge branch 'MDL-30031' of git://github.com/bostelm/moodle 2012-01-09 02:14:20 +01:00
Sam Hemelryk 0e743da2b4 Merge branch 'w02_MDL-30717_m23_usercreated' of git://github.com/skodak/moodle 2012-01-09 14:03:10 +13:00
Sam Hemelryk b07646fcf7 MDL-30928 lib: Fixed whitespace 2012-01-09 13:57:06 +13:00
Sam Hemelryk 1bec282c06 Merge branch 'w02_MDL-30928_m23_deletetimes' of git://github.com/skodak/moodle 2012-01-09 13:52:37 +13:00
Sam Hemelryk 9b1ab84743 Merge branch 'w02_MDL-30969_m23_suspendedcsv' of git://github.com/skodak/moodle 2012-01-09 13:02:31 +13:00
Eloy Lafuente (stronk7) 3c4500f5c7 Merge branch 'MDL-30778_t2' of git://github.com/kiklop74/moodle 2012-01-09 00:41:55 +01:00
Eloy Lafuente (stronk7) 4b89edd948 Merge branch 'MDL-30966-print-object' of git://github.com/mudrd8mz/moodle 2012-01-09 00:33:02 +01:00
Sam Hemelryk df121fb287 Merge branch 'master_MDL-31043' of git://github.com/danmarsden/moodle 2012-01-09 12:23:11 +13:00
Eloy Lafuente (stronk7) 94d59c9b23 Merge branch 'MDL-30635' of git://github.com/timhunt/moodle 2012-01-09 00:15:21 +01:00
Sam Hemelryk 9b69f4a9c9 Merge branch 'MDL-30652-master' of git://github.com/ankitagarwal/moodle 2012-01-09 12:02:41 +13:00
Sam Hemelryk 94a2296a8e Merge branch 'MDL-31000-master-1' of git://git.luns.net.uk/moodle 2012-01-09 11:52:29 +13:00
Sam Hemelryk 4037098eba MDL-30583 navigation: Added setting to control display of front page activities on the navigation 2012-01-09 09:49:34 +13:00
Petr Skoda 9fcbc4640d MDL-31005 fix strict coding style warning in context_helper
PHP54 compatibility
2012-01-08 15:39:03 +01:00
Aleksey Avdeev b1d533652b MDL-29046 use of install/distrolib.php in the CLI installer
Signed-off-by: Aleksey Avdeev <solo@altlinux.ru>
2012-01-08 15:14:15 +01:00
Petr Skoda ad68ed7402 MDL-29684 improve enrol_meta plugin
List of changes:
* configurable unenrol action
* new setting for synchronisation of all enrolled users or users with at least one role
* cron period increased to 1 hour in order to lower server load, courses should not get out of sync often
* CLI sync script for debugging or manual sync
* phpdocs fixes
* when plugin is disabled all roles are removed, enrollments are kept
* uninstall script
* other bugfixing
2012-01-08 15:07:49 +01:00
Petr Skoda 1fb6f5ab67 MDL-30717 update user->timemodified in update_user_record() 2012-01-08 15:03:53 +01:00
Petr Skoda 549a8b74b3 MDL-30717 add missing time created info in create_user_record()
Credit goes to Luis Gustavo Mueller de Alcantara.
2012-01-08 15:03:52 +01:00
Petr Skoda a4d25731df MDL-30718 add missing timecraeted and timeupdated, fix user undeleting 2012-01-08 14:51:00 +01:00
Petr Skoda e7157a0054 MDL-30928 include course and user deletion time in event
Credit goes to Luis Gustavo Mueller de Alcantara.
2012-01-08 14:29:18 +01:00
Petr Skoda 7cfe640499 MDL-30944 improve enrol_cohort plugin
List of changes:
* configurable unenrol action
* cron period increased to 1 hour in order to lower server load, courses should not get out of sync often
* CLI sync script for debugging or manual sync after configuration change
* phpdocs fixes
* when plugin is disabled all roles are removed, enrollments are kept
* uninstall script
* other bugfixing and performance improvements
2012-01-08 14:06:05 +01:00
Petr Skoda 08157bfe76 MDL-30969 add support for suspending in uploaduser admin tool 2012-01-08 14:01:10 +01:00
AMOS bot feff40c220 Automatically generated installer lang files 2012-01-07 00:31:13 +00:00
David Mudrak 68e550e6b2 MDL-30966 print_object() output made CLI-friendly 2012-01-06 22:48:12 +01:00
Tim Hunt f8a3a3fb9a MDL-30757 questions: kill legacy global $QUESTION_EDITTABCAPS 2012-01-06 18:43:03 +00:00
Tim Hunt c2f5e2ab81 MDL-30635 enable standard cron for all question and quiz plugin types.
* Support for old non-standard cron for quiz reports dropped. (Standard
cron support was added in 2.2

* Cron support added for qbehaviour, qformat and quizacces plugins.

* qtypes were already supported in the standard way.
2012-01-06 18:42:35 +00:00
Dan Marsden 0f6d934941 MDL-31043 allow themes to set custommenu instead of using global settings 2012-01-06 12:48:01 +13:00
Eloy Lafuente (stronk7) 0e84b1664d weekly release 2.3dev (blame stronk7 for 0202 mistake)
On 20120102 version was incorrectly bumped to 2012-02-02. So,
until then (< 1mo) we are going to be incrementing decimal digits
only and not date ones (first 8).
2012-01-05 15:02:23 +01:00
Sam Hemelryk cf6d069afd Merge branch 'MDL-31017' of git://github.com/stronk7/moodle 2012-01-05 11:17:31 +13:00
Andrew Robert Nicols feaae39dfb MDL-31018 Improve consistency of horizontal alignment across grade reports 2012-01-04 16:19:16 +00:00
Eloy Lafuente (stronk7) fb95ef9ecd MDL-31017 whitespace clean - take1 2012-01-04 16:27:32 +01:00
Andrew Robert Nicols 696c748da7 MDL-31013 Add iconsmall class to 'Export to portfolio' icon 2012-01-04 10:27:08 +00:00
Eloy Lafuente (stronk7) 45ad2d871c Merge branch 'wip-MDL-26869-m23-after-MDL-26155' of git://github.com/samhemelryk/moodle 2012-01-04 03:08:24 +01:00
David Mudrak a1373126eb MDL-30865 Workshop method aggregate_grading_grades_process() accepts explicit aggregation timestamp 2012-01-04 02:20:06 +01:00
Eloy Lafuente (stronk7) 5d25ef18c5 Merge branch 'MDL-30879-master' of git://github.com/sammarshallou/moodle 2012-01-04 02:14:18 +01:00
Eloy Lafuente (stronk7) a46eb101b3 Merge branch 'w52_MDL-30945_m23_unenrol' of git://github.com/skodak/moodle 2012-01-04 01:51:10 +01:00
Eloy Lafuente (stronk7) 96f888506c Merge branch 'w52_MDL-30948_m23_messagesuspended' of git://github.com/skodak/moodle 2012-01-04 00:47:48 +01:00
Eloy Lafuente (stronk7) 792182713a Merge branch 'w52_MDL-30951_m23_catsync' of git://github.com/skodak/moodle 2012-01-04 00:39:51 +01:00
Sam Hemelryk 3b53b85b47 Merge branch 'w52_MDL-29917_m23_autocomplete' of git://github.com/skodak/moodle 2012-01-04 10:58:03 +13:00
Sam Hemelryk 44d5c138a2 Merged branch 'w52_MDL-30548_m23_suspenduser' of git://github.com/skodak/moodle.git with conflict resolution 2012-01-04 10:50:20 +13:00
Eloy Lafuente (stronk7) 831e48be01 Merge branch 'w52_MDL-30950_m23_adminblock' of git://github.com/skodak/moodle 2012-01-03 22:33:11 +01:00
Eloy Lafuente (stronk7) bb2308a33a Merge branch 'wip-MDL-26155-m23' of git://github.com/samhemelryk/moodle
Conflicts:
	admin/settings/security.php
2012-01-03 17:26:31 +01:00
Andrew Robert Nicols ef72c7942e MDL-31000 Respect sortorder of repositories when displaying the filepicker 2012-01-03 15:58:58 +00:00
Petr Skoda daa8b1ac06 MDL-30948 do not generate new passwords for suspended accounts because they would not get any emails 2012-01-03 16:48:15 +01:00
Petr Skoda 4ad72c284d MDL-30548 support user suspended flag in admin UI
This patch includes:
* user management suspend UI tweaks and other coding style improvements
* suspended info in user profiles
* suspend option in advanced edit form
* suspended user filtering
* hidden user fields option for suspended field

Thanks Sam Hemelryk for valuable feedback.
2012-01-03 16:35:21 +01:00
sam marshall ce2a7a9186 MDL-30879 Course page: missing space after class for new 'description on course page' feature 2012-01-03 12:40:09 +00:00
Aparup Banerjee 2482570b9f Merge branch 'MDL-30600b' of git://github.com/rwijaya/moodle 2012-01-03 17:54:14 +08:00
Ankit Kumar Agarwal 85e976e514 MDL-30652 SCORM Fixing report prefrences display for interactions report 2012-01-03 10:38:41 +05:30
Ankit Kumar Agarwal 2af0e47259 MDL-30652 SCORM Fixing report prefrences display issue for basic report 2012-01-03 10:38:37 +05:30
Ankit Kumar Agarwal e12459baa2 MDL-30652 Scorm adding proper comments 2012-01-03 10:38:07 +05:30
Rossiani Wijaya 0c97dc1a72 MDL-30600 Fix mymobile theme choice renderer 2012-01-03 13:05:55 +08:00
Aparup Banerjee d7ca9b68ca Merge branch 'wip-mdl-29844' of git://github.com/rajeshtaneja/moodle.git - resolved conflict 2012-01-03 12:29:12 +08:00
Eloy Lafuente 90911c4ff9 MDL-29844 Administration: Added new config for users to login for viewing profile image 2012-01-03 11:53:49 +08:00
Sam Hemelryk 44141b1881 Merge branch 'w52_MDL-30786_m23_todelete' of git://github.com/skodak/moodle 2012-01-03 16:35:36 +13:00
Sam Hemelryk a187c1394e Merge branch 'w52_MDL-30673_m23_loginautocomplete' of git://github.com/skodak/moodle 2012-01-03 14:08:50 +13:00
Sam Hemelryk b19f834ada Merge branch 'w52_MDL-30809_m23_guestinstance' of git://github.com/skodak/moodle 2012-01-03 13:05:22 +13:00
Sam Hemelryk eacb470338 Merge branch 'w52_MDL-30924_m23_pspell' of git://github.com/skodak/moodle 2012-01-03 12:49:06 +13:00
Sam Hemelryk 03edfee475 Merge branch 'w52_MDL-30926_m23_blogassoc' of git://github.com/skodak/moodle 2012-01-03 12:38:51 +13:00
Sam Hemelryk 466973a143 Merge branch 'w52_MDL-30934_m23_modules' of git://github.com/skodak/moodle 2012-01-03 12:26:14 +13:00
Sam Hemelryk 19c6ff514e Merge branch 'w52_MDL-30943_m23_adminreport' of git://github.com/skodak/moodle 2012-01-03 12:22:44 +13:00
Sam Hemelryk d0a8d04551 Merge branch 'MDL-30802' of git://github.com/timhunt/moodle 2012-01-03 11:26:02 +13:00
Sam Hemelryk 929ea9ed6b Merge branch 'MDL-30766' of git://github.com/timhunt/moodle 2012-01-03 11:23:13 +13:00
Sam Hemelryk 221dd28b65 Merge branch 'MDL-30168_tim2' of git://github.com/timhunt/moodle 2012-01-03 11:15:04 +13:00
Sam Hemelryk a46fe43ba2 Merge branch 'MDL-27200' of git://github.com/timhunt/moodle 2012-01-03 11:12:14 +13:00
Sam Hemelryk f6b2946a06 Merge branch 'MDL-29266' of git://github.com/bostelm/moodle 2012-01-03 11:09:19 +13:00
Sam Hemelryk 62ff78e6de Merge branch 'w52_MDL-13572_m23_messaging' of git://github.com/skodak/moodle 2012-01-03 11:00:42 +13:00
Petr Skoda 1f6d1ebf0a MDL-13572 fix incorrect value printing 2012-01-02 22:52:04 +01:00
Petr Skoda 36a5396417 MDL-13572 fix incorrect value printing 2012-01-02 22:51:38 +01:00
Sam Hemelryk fe4abbe180 Merge branch 'MDL-30868' of git://github.com/lazydaisy/moodle 2012-01-03 10:38:04 +13:00
Petr Skoda 9a3e8a1fa7 MDL-13572 do not send emails to invalid addresses 2012-01-02 22:36:37 +01:00
Sam Hemelryk e525c992ca Merge branch 'MDL-30601' of git://github.com/rwijaya/moodle 2012-01-03 10:30:41 +13:00
Sam Hemelryk 03273b5357 Merge branch 'MDL-29821' of git://github.com/bostelm/moodle 2012-01-03 10:11:58 +13:00
Sam Hemelryk ed569481a3 Merge branch 'MDL-30706' of git://git.luns.net.uk/moodle 2012-01-03 10:09:11 +13:00
Sam Hemelryk 01dcafd8d5 Merge branch 'MDL-30804-master-1' of git://git.luns.net.uk/moodle 2012-01-03 10:06:20 +13:00
Sam Hemelryk 2fa7c29c06 Merge branch 'MDL-30805-master-1' of git://git.luns.net.uk/moodle 2012-01-03 10:02:18 +13:00
Sam Hemelryk 4b8ae84cd0 Merge branch 'MDL-13572_validate_email' of git://github.com/andyjdavis/moodle 2012-01-03 09:57:00 +13:00
Sam Hemelryk 83f78f8dac MDL-26869 admin: Added page to view admin categories and included in navigation with a new setting 2012-01-03 09:39:10 +13:00
Sam Hemelryk 2ad2ad0915 MDL-26155 admin: Rebased, fixed conflicts, and fixed final admin string 2012-01-03 09:12:33 +13:00
Sam Hemelryk d79883ab7f MDL-26155 string: Improved validation when constructing lang_strings if debugging is enabled 2012-01-03 09:09:40 +13:00
Sam Hemelryk e106013f34 MDL-26155 admin: Converted admin settings to use new lang_string 2012-01-03 09:09:40 +13:00
Sam Hemelryk e6d40f8ac2 MDL-26155 string: Implemented moodle_string class 2012-01-03 09:04:58 +13:00
Eloy Lafuente (stronk7) c31d7ca2e0 Merge branch 'MDL-30851_master_wip' of git://github.com/grabs/moodle 2012-01-02 20:23:11 +01:00
Eloy Lafuente (stronk7) 6f68eabb7e Merge branch 'w52_MDL-30953_m23_pspell' of git://github.com/skodak/moodle 2012-01-02 20:19:43 +01:00
Eloy Lafuente (stronk7) 2a297e537d Merge branch 'MDL-30873' of git://github.com/timhunt/moodle 2012-01-02 20:16:02 +01:00
Eloy Lafuente (stronk7) ae95489d68 MDL-30610 add missing savepoint to get the upgrade checks passing.
Note the savepoint is 100% unreachable, because of the exit() call.
But it's needed to have all the upgrade checks (CI) balanced and
passing.
2012-01-02 19:48:33 +01:00
Eloy Lafuente (stronk7) 5f7d519ecf MDL-30610 Version bump. Time to diverge!
Once all the pre 2.2 upgrade code has been deleted, we bump
main version.php to start diverging in master after the
initial 3-4 weeks of on-sync with 22_STABLE.
2012-01-02 19:31:49 +01:00
Petr Skoda 8b19cf4fc7 MDL-30953 fix utf-8 support in PSpell class
Credit for discover and proposed fix goes to David Hai Gootvilig, this patch is part of https://github.com/moodle/custom-tinymce_spellchecker_php/tree/MOODLE_22_2.0.6b which will be used in the next tinymce import. It was reported upstream as https://github.com/tinymce/tinymce_spellchecker_php/pull/5
2012-01-02 12:49:09 +01:00
Petr Skoda c2d6b4f9ce MDL-30951 prevent fatal error when category sync enrolment not configured 2012-01-01 13:41:32 +01:00
Darko Miletic afd2700f26 MDL-30783: Implemented fix 2011-12-30 12:33:57 -03:00
Darko Miletic 7db3d6216d MDL-30778: Implemented intendeduserrole support 2011-12-30 12:16:59 -03:00
Petr Skoda 4eaee2c85c MDL-30673 fix login autocompletion protection 2011-12-30 16:04:56 +01:00
Petr Skoda 6e9989dbd3 MDL-29917 prevent form autocompletion in most Moodle forms
The password autocompletion in case of Moodle makes sense only on the login page, the form autocompletion in general is most probably useful only on the user signup page.

This patch is compatible with html 5, unfortunately we have to ignore strict warnings in legacy xhtml 1.0 standard.
2011-12-30 14:38:52 +01:00
Petr Skoda 9574c2ef0d MDL-30950 remove references to removed admin block
Credit goes to Ralf Hilgenstock.
2011-12-30 12:04:41 +01:00
Petr Skoda ca8fe0b00a MDL-30948 stop messaging suspended and deleted users 2011-12-29 17:01:10 +01:00
Petr Skoda ff53a58b65 MDL-30926 fix course and module blog associations 2011-12-28 20:18:10 +01:00
Petr Skoda daca599ff1 MDL-30943 fix forgotten admin/report/ references 2011-12-28 19:36:23 +01:00
Henning Bostelmann 096c30165b MDL-30031 Adaptive question behaviour: ignore invalid answers without penalty 2011-12-28 17:17:52 +00:00
Petr Skoda 282b5cc7e3 MDL-30945 add support for unenrolling of individual users + code cleanup 2011-12-28 16:56:46 +01:00
Petr Skoda 089fdbedf3 MDL-30809 do not add guest info to add course form if default instance prevented 2011-12-27 19:15:05 +01:00
Petr Skoda a0fee9c07e MDL-30934 fix module delete cleanup
Credit goes to Rajiv Navada.
2011-12-27 14:59:45 +01:00
Petr Skoda 72f2318b83 MDL-30924 merge upstream pspell fix
See https://github.com/moodle/custom-tinymce_spellchecker_php/tree/MOODLE_22_2.0.6a
2011-12-27 14:01:05 +01:00
Mary Evans 9bb15cf956 MDL-30868 Fix for assignment view in theme_boxxie 2011-12-24 00:54:25 +00:00
Andreas Grabs 0f61fb72d8 MDL-30851 - Syntax error in analysis_course.php 2011-12-23 17:40:07 +01:00
Tim Hunt ce70117bba MDL-30873 quiz: display an overall grade for preview users.
Also, don't display an overall grade unless there is at least one finished attempt.
2011-12-23 12:54:50 +00:00
Tim Hunt 35c37afc12 MDL-30802 question nav: fix questions link in front page course. 2011-12-23 12:54:29 +00:00
Tim Hunt 0c5abe6c3e MDL-30766 mod_quiz: fix edge cases of repaginate function. 2011-12-23 12:54:08 +00:00
Tim Hunt 820b41e34f MDL-30168 formslib: untangle automatic id generation.
Previously, we had overridden the _generateId method in almost all
subclasses; and then we mostly, but not always; ignored the value that
was generated there, and instead generated new (nicer) values in
MoodleQuickForm_Renderer::renderElement. Of course, that is not really a
logical place to (re)generate ids.

I have fixed the code so that the _generateId method now uses the 'nice
id' algorithm from renderElement. This should make the whole code flow
more logical.

This make all our overriding of _generateId unnecessary.

We do need a special _generateId for radio buttons, because you often
have different radio buttons with the same name but different values.

This change should only change the ids on radio, checkbox and
advcheckbox elements. Previously, those were essentially random, so I
don't think anyone could have been relying on the particular values.

This commit also has new unit tests, first to test the basic _generateId
algorithm, and then to create and render an example form (including some
tricky things like repeat_elements) and chech the acutal ids in the
generated HTML.
2011-12-23 11:51:45 +00:00
Tim Hunt 658ad69fa0 MDL-27200 missing {} in various lang strings. 2011-12-23 11:51:24 +00:00
Petr Skoda 5c79b8ed91 MDL-30610 prevent upgrades from pre2.2.0 2011-12-23 10:42:25 +01:00
Petr Skoda 527c8239a2 MDL-30610 remove outdated question upgrade code 2011-12-23 10:39:34 +01:00
Petr Skoda 4034485eb7 MDL-30610 remove outdated quiz upgrade code 2011-12-23 10:38:13 +01:00
Petr Skoda a2f5eaca6a MDL-30610 remove outdated theme upgrade code 2011-12-23 10:38:13 +01:00
Petr Skoda 2e210163ee MDL-30610 remove outdated main upgrade code 2011-12-23 10:38:13 +01:00
Petr Skoda 17510ff0fe MDL-30610 remove outdated workshop upgrade code 2011-12-23 10:38:12 +01:00
Petr Skoda 7c58c19fa3 MDL-30610 remove outdated admin tool upgrade code 2011-12-23 10:38:12 +01:00
Petr Skoda ce5e39e6c7 MDL-30610 remove outdated report upgrade code 2011-12-23 10:38:12 +01:00
Petr Skoda 40e4cd435b MDL-30610 remove outdated mod upgrade code 2011-12-23 10:38:11 +01:00
Petr Skoda 8ef9da055a MDL-30610 standardise empty upgrade script content 2011-12-23 10:38:11 +01:00
Petr Skoda c5fb8b27b8 MDL-30610 remove outdated filter upgrade code 2011-12-23 10:38:11 +01:00
Petr Skoda 3751e28f1c MDL-30610 remove outdated enrol upgrade code 2011-12-23 10:38:11 +01:00
Petr Skoda 612d65d037 MDL-30610 remove outdated block upgrade code 2011-12-23 10:38:10 +01:00
Petr Skoda 5ea41be1b3 MDL-30610 remove outdated auth upgrade code 2011-12-23 10:38:10 +01:00
Petr Skoda 34c7280375 MDL-30786 no need for 1.9-2.2 upgrade info in 2.3 2011-12-23 10:35:32 +01:00
Petr Skoda ec8935f576 MDL-30786 fix overview status of standard plugins to be deleted 2011-12-23 10:35:32 +01:00
Eloy Lafuente (stronk7) 2117dcb591 weekly release 2.3dev (on-sync version 22_STABLE) 2011-12-23 03:01:27 +01:00
Eloy Lafuente (stronk7) 4e25a9dbf1 Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-12-23 02:52:54 +01:00
AMOS bot b756f24c22 Automatically generated installer lang files 2011-12-23 00:31:16 +00:00
Eloy Lafuente (stronk7) 63637e9dd8 MDL-30760 question engine: reduce summary max size
MySQL only accepts 65536 (aprox) bytes in default TEXT
columns. So we define the max allowed as 32000 to allow
99.9% of utf-8 contents to fit. If some day MDL-19603 is
implemented and all current TEXTs are moved (MySQL) to
the BIG counterparts, this restriction can be out (MDL-19603).
2011-12-23 01:16:25 +01:00
Eloy Lafuente (stronk7) 91c10ddfa0 Merge branch 'MDL-29400_misleading_file_upload_status' of git://github.com/gerrywastaken/moodle 2011-12-22 09:48:23 +01:00
Gerard (Gerry) Caulfield 229278a71b MDL-29400 Fixing unset object bug encountered by Rajesh during testing 2011-12-22 14:00:44 +08:00
Sam Hemelryk 01856bf75e Merge branch 'wip-MDL-18128-master-version3' of git://github.com/abgreeve/moodle 2011-12-22 11:44:11 +13:00
Sam Hemelryk 21cd532f68 MDL-30639 mod_lesson: Used a consistent format for users display of answer 2011-12-22 11:22:59 +13:00
Sam Hemelryk 365b567f71 Merge branch 'MDL-30639' of git://github.com/rwijaya/moodle 2011-12-22 11:21:22 +13:00
Tim Hunt 9f0f486935 MDL-30704 quiz_overview: fixup, add missing rescaling.
Thanks Micheal de Raadt for catching this in testing.
2011-12-21 18:33:18 +01:00
Eloy Lafuente (stronk7) cb21d040f4 MDL-20245 grade: added tests for set_user_preference() and the 1333 limit
Added to tests to check that both the "limit" case of using 1333
chars is allowed and 1334 causes coding exception to happen
2011-12-21 16:28:22 +01:00
Eloy Lafuente (stronk7) 52a2306386 MDL-20245 grade: fix version numbers
This commit puts the 22_STABLE and master main
versions back to "on-sync" mode (very first
weeks after major release).
2011-12-21 12:17:22 +01:00
Andrew Davis 8e54ce9717 MDL-20245 grade: increased the length of the user_preferences::value column and added an exception to set_user_preference() is this new length is exceeded
Conflicts:

	lib/db/upgrade.php
	version.php
2011-12-21 12:13:33 +01:00
adrian@moodle.com 2edcf21abf MDL-18128 - forum - Addition of group editing for forums. 2011-12-21 15:25:44 +08:00
Aparup Banerjee c42346aa63 Merge branch 'wip-MDL-30541-master' of git://github.com/phalacee/moodle 2011-12-21 14:15:54 +08:00
Sam Hemelryk bbcde38b33 Merged MDL-28126 with cleanup 2011-12-21 17:03:25 +13:00
Aparup Banerjee 3f14cf7f4e MDL-28126 webservice : resolved integration conflicts 2011-12-21 11:20:50 +08:00
Sam Hemelryk cc688de44f Merge branch 'MDL-29239' of git://github.com/rwijaya/moodle 2011-12-21 14:59:54 +13:00
Jason Fowler 43c4f4d103 MDL-30541 - Blog - Fixing the context for RSS Feed headers on the single blog entry pages 2011-12-21 09:30:26 +08:00
Sam Hemelryk aaee11b85d Merge branch 'MDL-30704' of git://github.com/timhunt/moodle 2011-12-21 14:30:15 +13:00
Eloy Lafuente (stronk7) 765d97c8a1 MDL-30777: whitespace fix 2011-12-21 00:40:25 +01:00
Eloy Lafuente (stronk7) 90022d184e Merge branch 'MDL-30777_t2' of git://github.com/kiklop74/moodle 2011-12-21 00:38:48 +01:00
Eloy Lafuente (stronk7) bccb64f172 Merge branch 'MDL-30170-mnet-undelete' of git://github.com/mudrd8mz/moodle 2011-12-20 23:23:37 +01:00
Eloy Lafuente (stronk7) 1af989f758 Merge branch 'MDL-29400_misleading_file_upload_status' of git://github.com/gerrywastaken/moodle 2011-12-20 22:53:12 +01:00
Eloy Lafuente (stronk7) e968c5f910 MDL-30761 make it work under Oracle. To revisit after MDL-29765 is done. 2011-12-20 22:36:31 +01:00
Eloy Lafuente (stronk7) 311b953168 Merge branch 'w51_MDL-30761_m23_slowmysql' of git://github.com/skodak/moodle 2011-12-20 22:17:21 +01:00
Eloy Lafuente (stronk7) bda8c9c92f Merge branch 'MDL-30631' of git://github.com/kiklop74/moodle 2011-12-20 22:02:11 +01:00
Eloy Lafuente (stronk7) 6920a61669 Merge branch 'MDL-30603_m23' of https://github.com/nebgor/moodle 2011-12-20 19:49:19 +01:00
Eloy Lafuente (stronk7) e2ec1ebdf6 Merge branch 'MDL-29048-master' of git://github.com/ankitagarwal/moodle 2011-12-20 18:55:31 +01:00
Eloy Lafuente (stronk7) 2cf28daa90 Merge branch 'wip-MDL-30733-master' of github.com:marinaglancy/moodle 2011-12-20 18:51:09 +01:00
Darko Miletic 75c95c8b02 MDL-30777: Properly implemented error message 2011-12-20 11:06:50 -03:00
Dan Poltawski b35bf95853 MDL-30706 mymobile: don't send login pages through ajax
By doing 'real requests' we can allow external authentication to happen
(e.g. apache module which does a redirect to external SSO system)
2011-12-20 09:37:23 +00:00
Aparup Banerjee e59a1dd670 MDL-25561 Gradebook : fixed whitespaces 2011-12-20 16:02:55 +08:00
Aparup Banerjee 8f43b3990d Merge branch 'MDL-25561_user_report_name_clickable' of git://github.com/andyjdavis/moodle 2011-12-20 15:52:38 +08:00
Rossiani Wijaya e09c5a59a9 MDL-30601: mymobile theme: remove trailing whitespaces 2011-12-20 15:13:47 +08:00
Aparup Banerjee 50c59551c6 Merge branch 'MDL-30627-master-1' of git://git.luns.net.uk/moodle 2011-12-20 13:38:21 +08:00
Aparup Banerjee 21be45b46d Merge branch 'MDL-30641-master-1' of git://git.luns.net.uk/moodle 2011-12-20 11:54:23 +08:00
Rossiani Wijaya d85c839928 MDL-30636 Lesson Module: fixed essay answer display format 2011-12-20 11:53:55 +08:00
Aparup Banerjee 74f0b72254 Merge branch 'MDL-30569-master' of git://github.com/ankitagarwal/moodle 2011-12-20 11:08:42 +08:00
Eloy Lafuente (stronk7) b37a5a000f Merge branch 'wip-mdl-29067' of git://github.com/rajeshtaneja/moodle 2011-12-20 03:07:43 +01:00
Eloy Lafuente (stronk7) c557dbdbfe Merge branch 'wip-MDL-30770-m23' of git://github.com/samhemelryk/moodle 2011-12-20 02:26:03 +01:00
Eloy Lafuente (stronk7) 2dee0aaf2e Merge branch 'MDL-30739' of git://github.com/stronk7/moodle 2011-12-20 02:23:09 +01:00
Eloy Lafuente (stronk7) 80472947dc Merge branch 'MDL-30739' of git://github.com/timhunt/moodle 2011-12-20 02:21:00 +01:00
Sam Hemelryk 54a4d23d43 Merge branch 'MDL-30764-master' of git://github.com/sammarshallou/moodle 2011-12-20 14:15:47 +13:00
Eloy Lafuente (stronk7) 3ed2e334d8 Merge branch 'MDL-30738' of git://github.com/kiklop74/moodle 2011-12-20 01:59:46 +01:00
Sam Hemelryk f67911b6ac Merge branch 'MDL-30760' of git://github.com/timhunt/moodle 2011-12-20 13:39:54 +13:00
AMOS bot bbacecda15 Automatically generated installer lang files 2011-12-20 00:31:14 +00:00
Sam Hemelryk eae0b9a9e3 Merge branch 'MDL-30646' of git://github.com/timhunt/moodle 2011-12-20 13:23:45 +13:00
Sam Hemelryk 22c3690b9d Merge branch 'MDL-29846' of git://github.com/timhunt/moodle 2011-12-20 13:16:03 +13:00
Sam Hemelryk f8882018f2 Merge branch 'w51_MDL-30787_m23_coursemodedit' of git://github.com/skodak/moodle 2011-12-20 12:08:23 +13:00
Eloy Lafuente (stronk7) 961e8f9457 Merge branch 'MDL-30741_master' of git://github.com/jfilip/moodle 2011-12-19 23:59:33 +01:00
Sam Hemelryk fc0d8f77f2 Merge branch 'wip-MDL-28948-master' of git://github.com/abgreeve/moodle 2011-12-20 10:44:41 +13:00
Sam Hemelryk 5e928f2e7e Merge branch 'w51_MDL-30779_m23_dbtransfer' of git://github.com/skodak/moodle 2011-12-20 10:24:16 +13:00
Sam Hemelryk 1a73fc9a24 Merge branch 'w51_MDL-30765_m23_context' of git://github.com/skodak/moodle 2011-12-20 10:21:35 +13:00
Sam Hemelryk 136d4c09f3 Merge branch 'w51_MDL-30697_m23_roleslink' of git://github.com/skodak/moodle 2011-12-20 10:04:33 +13:00
Tim Hunt 7ddfd168ac MDL-30704 Quiz grades report shows inconsistent averages.
Previously, for the overall grade, we averaged the final marks for each
student; while for the individual question grades, we averaged all
grades.

The report now works consistently on the principle that the averages
should include exactly what is currenlty being shown in the report. This
is more logical, and so should be easier for users to understand.

If you want to see the averages that are currently shown (e.g. just the
average of each student's highers grade) then the report options let you
do that.
2011-12-19 14:59:36 +00:00
Tim Hunt 8c52a5ce72 MDL-29846 qbehaviours admin: correct $needed logic.
Also, fix a notice.
2011-12-19 14:31:11 +00:00
Andrew Robert Nicols 2ee40a7018 MDL-30805 Require HTML content for the HTML block configuration 2011-12-19 12:00:54 +00:00
Andrew Robert Nicols 986bd83585 MDL-30804 Rename the 'onthispage' fieldset for block configuration 2011-12-19 11:46:23 +00:00
Rossiani Wijaya de2e165a3a MDL-30636 Lesson Module: fixed essay answer display format 2011-12-19 15:08:15 +08:00
Aparup Banerjee 26b85f89bc Merge branch 'w51_MDL-30735_m23_cron' of git://github.com/skodak/moodle 2011-12-19 11:52:33 +08:00
Sam Hemelryk 042efe1aa7 Merge branch 'w51_MDL-30789_m23_enrolupdatestatus' of git://github.com/skodak/moodle 2011-12-19 16:22:42 +13:00
Sam Hemelryk 7554371cd9 Merge branch 'MDL-30500' of git://github.com/lazydaisy/moodle 2011-12-19 15:21:56 +13:00
Sam Hemelryk c3f90a5722 Merge branch 'MDL-37049' of git://github.com/jamiepratt/moodle 2011-12-19 15:06:01 +13:00
Sam Hemelryk 92e72b0a86 Merge branch 'MDL-30683' of git://github.com/timhunt/moodle 2011-12-19 14:17:20 +13:00
Mary Evans e580c65962 MDL-30500 Fix for Sky High report & print layout 2011-12-19 00:06:10 +00:00
Sam Hemelryk d0fe873623 Merge branch 'MDL-29176' of git://github.com/timhunt/moodle 2011-12-19 12:28:52 +13:00
Sam Hemelryk 90179a5093 Merge branch 'MDL-30734' of git://github.com/timhunt/moodle 2011-12-19 11:52:49 +13:00
Sam Hemelryk 6ccf06637f Merge branch 'MDL-30742' of git://github.com/timhunt/moodle 2011-12-19 11:37:10 +13:00
Sam Hemelryk 09608abe56 Merge branch 'MDL-30744' of git://github.com/timhunt/moodle 2011-12-19 10:21:11 +13:00
Sam Hemelryk b53bea8167 Merge branch 'MDL-30758' of git://github.com/timhunt/moodle 2011-12-19 09:27:48 +13:00
Petr Skoda af7177dbcb MDL-30789 add new update_status() method to enrol plugins and improve enrol cache invalidation 2011-12-18 17:30:17 +01:00
Petr Skoda af18993548 MDL-30787 fix use of module and section edit capabilities 2011-12-18 13:54:38 +01:00
AMOS bot 2fd64b7b11 Automatically generated installer lang files 2011-12-18 00:31:14 +00:00
Petr Skoda 21db6da150 MDL-30697 fix incorrect capability for role assign button
Credit goes to Alexander Bias.
2011-12-17 14:46:47 +01:00
Petr Skoda e3258164c6 MDL-30735 fix cron maintenancerun detection
Credit goes to Rodrigo Belluomini Cardilli.
2011-12-17 14:17:19 +01:00
Petr Skoda 58a9e8f3de MDL-30765 fix invalid context variable 2011-12-16 23:02:50 +01:00
Tim Hunt c83ed025ef MDL-30760 question engine: question summary can be longer than 64k!
1. So we will truncate the question summary to 65000 chars if necessary.

2. Also, fix one minor error in mutlianswer save_question_options.

question_bank::MAX_SUMMARY_LENGTH is not the most logical class to add
the constant to, but it needs to be accessible during upgrade, so I was
lazy and put it there.
2011-12-16 15:56:23 +00:00
Petr Skoda e7f2c2cc9f MDL-30761 improve get_user_access_sitewide() performance 2011-12-16 16:27:01 +01:00
Petr Skoda 8a238aee75 MDL-30761 fix simpletest regression caused by rubrics 2011-12-16 14:22:20 +01:00
Petr Skoda 47651a4d8c MDL-30779 add port and socket to dbtansfer tool 2011-12-16 14:18:51 +01:00
Sam Hemelryk 6be4afb1ad MDL-30770 admin: Fixed notice about missing variable 2011-12-16 17:16:47 +13:00
Aparup Banerjee 441088d647 Merge branch 'master_MDL-28728' of git://github.com/danmarsden/moodle 2011-12-16 11:36:47 +08:00
Rajesh Taneja e45b444e63 MDL-29067 Admin: Added spam checking on comments, messages and forum posts 2011-12-16 11:19:21 +08:00
adrian@moodle.com 98456628a2 MDL-28948 - lib - removed the hard coded key for the rc4encryt function. 2011-12-16 09:17:24 +08:00
AMOS bot 475fcd7566 Automatically generated installer lang files 2011-12-16 00:31:14 +00:00
Dan Marsden 1a50148e8b MDL-28728 SCORM Add missing string 2011-12-16 11:22:39 +13:00
David Mudrak 1322a56df3 MDL-30170 MNet peers administration - various usability improvements
While fixing MDL-30170, the following tiny usability details were
improved along the way:

* the maximum length of the peer site title and the hostname is now
  validated (this was actually a real bug as the default value is pre-loaded
  from the peer) so the admin gets a nice validation error instead of
  the database write exception when trying to register a host with a
  longer site title.
* hard-coded English string 'All Hosts' is now localized
* the hostname link in the list of MNet peers leads to the peer itself
2011-12-15 21:51:33 +01:00
David Mudrak 8a6f2291f2 MDL-30170 MNet peers administration - highlight the undelete widget
The patch highlights the undelete radio selector at the host edit form.
It moves it to the end of the form (near the submit button) and displays
an explanation above the radio selector.

Also, the list of deleted hosts is now displayed below the table of
active peers at the Manage peers page.

The data returned by mnet_get_hosts() function now contain the deleted
status, too. It is possible to obtain deleted hosts from that function
now.
2011-12-15 21:51:31 +01:00
Darko Miletic 986dc51a72 MDL-30631: Fixed the default grade import for the question for both CC
1.0 and 1.1
2011-12-15 17:14:10 -03:00
Tim Hunt 800944b015 MDL-29176 quiz editing: can't move questions onto a new page. 2011-12-15 19:32:37 +00:00
Tim Hunt 29ded2d68a MDL-30646 default qbank sort should only use visible columns. 2011-12-15 18:39:21 +00:00
Henning Bostelmann 3367f14b0a MDL-29266 Assignment grading: save state of "send notifications" box 2011-12-15 17:17:37 +00:00
sam marshall 6d02b26578 MDL-30764 Activity settings: do not disable grouping dropdown if it is already set 2011-12-15 16:43:12 +00:00
Justin Filip 9d6fd25a05 MDL-30741 Adding a new test to check for incorrect parsing of complicate HTML with a PRE tag. 2011-12-15 11:11:35 -05:00
Justin Filip 11ec8c0412 MDL-30741 Fix the handling of PRE tags with the latest code from upstream: http://trac.roundcube.net/browser/trunk/roundcubemail/program/lib/html2text.php?rev=5497 2011-12-15 11:11:31 -05:00
Tim Hunt 41d5cbc1cd MDL-30758 quiz_statistics report fails if all 1st attempts require grading 2011-12-15 12:51:20 +00:00
Tim Hunt 732793f1a5 MDL-30739 qtype numerical: upgrade script uses SQL that is not cross-DB. 2011-12-15 12:22:00 +00:00
Eloy Lafuente (stronk7) 5cff28cfa1 MDL-30739 add one test to confirm the solution is cross-db 2011-12-15 13:14:26 +01:00
Tim Hunt 6f4c71f5fe MDL-30744 question editing permissions. Update to new accessslib.php code.
I don't believe this will actually fix the reported problem, which I
cannot reproduce, but it should give us much better error messages, at
which point we can fix it.
2011-12-15 11:54:58 +00:00
Tim Hunt 490668bbe1 MDL-30592 / MDL-27183 quiz statistics: fix merge problem.
These two fixes changes the same file in different ways, causing breakage.
2011-12-15 11:21:56 +00:00
Aparup Banerjee 47c3dfd5a4 MDL-28126 webservice : string fixed. 2011-12-15 18:06:04 +08:00
Marina Glancy d021e5b40c MDL-30733: synchronizing view_feedback with parent function to work with advanced grading
assignment_upload::view_feedback was overriden. It is altered the same way as parent function was to work with advanced grading and so it is displayed correctly in user complete report
2011-12-15 16:44:14 +08:00
Jamie Pratt a24e35701f MDL-30749 fixing typo referring to question instead of answer object 2011-12-15 15:06:45 +07:00
Aparup Banerjee 73c0d46416 Revert "MDL-30482 create new capability for viewing glossary entries"
This reverts commit b92ac8c079.
2011-12-15 15:49:55 +08:00
Aparup Banerjee 22154a3187 Revert "MDL-30482 - Glossary - Adding capability to other areas using glossary" (test failed)
This reverts commit aa423bd0e6.
2011-12-15 15:47:46 +08:00
Ankit Kumar Agarwal ad96cc524b MDL-30569 Administration Fixing the redirect after editting is toggeled on the front page 2011-12-15 08:23:15 +05:30
Eloy Lafuente (stronk7) 5c5ea474c4 MDL-30592 moodlelib: minor phpdocs/debug tweaks 2011-12-14 22:37:40 +01:00
Eloy Lafuente (stronk7) 12727710d4 Merge branch 'MDL-30592' of git://github.com/timhunt/moodle 2011-12-14 22:03:26 +01:00
Tim Lock 10be5e22f3 MDL-30419: IMS package content missing when using Blackboard packages 2011-12-14 21:36:20 +01:00
Darko Miletic ae8e1645b6 MDL-30738: There was an incorrect parameter in $PAGE->set_url
after swithing courseid to id everything started working as it should.
2011-12-14 14:38:02 -03:00
Tim Hunt b5f65ba14c MDL-30742 restoring 1.9 backups with missing question data should be robust 2011-12-14 17:17:07 +00:00
Jerome Mouneyrac 94b9dad79d MDL-28126 webservices : should not able to create token if user is deleted,unconfirmed,suspended or guest. 2011-12-15 00:46:21 +08:00
Tim Hunt ad73a2cb4e MDL-30734 question engine: sum_usage_marks_subquery edge-case.
When all qas in a useage are 'gaveup' state, it gives NULL, not 0.0, for the total.
2011-12-14 14:29:00 +00:00
Jason Fowler aa423bd0e6 MDL-30482 - Glossary - Adding capability to other areas using glossary 2011-12-14 15:00:30 +08:00
Aparup Banerjee d4f2755206 Revert "MDL-30482 - Glossary - Adding capability to other areas using glossary"
This reverts commit d79de196c9.
2011-12-14 14:59:16 +08:00
Aparup Banerjee 2faa009fa1 Merge branch 'master_MDL-28728' of git://github.com/danmarsden/moodle 2011-12-14 13:35:38 +08:00
Aparup Banerjee d2861a7b47 MDL-29325 fixed typo - camelcasing. 2011-12-14 13:12:57 +08:00
Sam Hemelryk 0142e3eec1 Merge branch 'master_MDL-30576' of git://github.com/mayankgupta/moodle 2011-12-14 17:22:26 +13:00
Sam Hemelryk cd3061294a Merge branch 'MDL-27183' of git://github.com/timhunt/moodle 2011-12-14 17:17:10 +13:00
Eloy Lafuente (stronk7) f477e8c1ce Merge branch 'wip-MDL-27767-master' of git://github.com/samhemelryk/moodle 2011-12-14 03:16:20 +01:00
Eloy Lafuente (stronk7) 5019c8ebb5 Merge branch 'w51_MDL-30605_m23_env23' of git://github.com/skodak/moodle 2011-12-14 02:37:04 +01:00
Sam Hemelryk 5c1c0900a5 Merge branch 'MDL-30463' of git://github.com/rwijaya/moodle 2011-12-14 14:26:42 +13:00
Sam Hemelryk cd6ad1c1d3 Merge branch 'MDL-30140' of git://github.com/mouneyrac/moodle 2011-12-14 14:08:37 +13:00
Gerard (Gerry) Caulfield d6d8c49432 MDL-29400 Update the upload and uploadsingle assignment classes to so
that they only display the assignment submitted status when it has
actually been submitted.
2011-12-14 05:54:10 +08:00
Henning Bostelmann 41eae0d9f3 MDL-29821 Navigation tree: fix link to course notes page 2011-12-13 21:32:55 +00:00
Tim Hunt 6d54b0f77f MDL-30683 don't show overall feedback in the quiz grades report.
The grades are small, while the feedback can be big, which breaks the table layout.
2011-12-13 16:50:19 +00:00
Aparup Banerjee 0ef92d976c Merge branch 'MDL-29772' of git://github.com/bostelm/moodle 2011-12-13 16:51:23 +08:00
Aparup Banerjee 952a77d1a8 MDL-29325 Enrol : reduced isset calls and improved readability 2011-12-13 16:37:00 +08:00
Andrew Davis dbd634ff2e MDL-13572 message: added validation of the email address in the messaging preferences 2011-12-13 15:53:15 +08:00
Aparup Banerjee d919bd00b3 Merge branch 'master_MDL-29325' of git://github.com/danmarsden/moodle 2011-12-13 14:59:22 +08:00
Aparup Banerjee 981661f745 Merge branch 'master_MDL-30577' of git://github.com/mayankgupta/moodle 2011-12-13 14:45:35 +08:00
Aparup Banerjee c35d38161e Merge branch 'MDL-30472-master' of git://github.com/ankitagarwal/moodle 2011-12-13 14:34:42 +08:00
Aparup Banerjee 036e9c7cbf Merge branch 'MDL-30362-master-1' of git://git.luns.net.uk/moodle 2011-12-13 14:29:25 +08:00
Aparup Banerjee 1ff57577da Merge branch 'MDL-30562' of git://github.com/timhunt/moodle 2011-12-13 13:48:43 +08:00
Aparup Banerjee c4378f125b Merge branch 'MDL-30655-master' of git://github.com/sammarshallou/moodle 2011-12-13 13:20:21 +08:00
Alexnader Bias 1b80a50418 MDL-30472 Course Making user lists sortable when lastacess field is hidden 2011-12-13 10:47:43 +05:30
Aparup Banerjee 9b91efe5bc Merge branch 'MDL-30559' of git://github.com/timhunt/moodle 2011-12-13 12:02:05 +08:00
Aparup Banerjee 099f23b7d7 Merge branch 'wip-MDL-30482-master' of git://github.com/phalacee/moodle 2011-12-13 11:11:47 +08:00
Petr Skoda 62988bf0bb MDL-30575 more mail header cleanup 2011-12-13 10:23:41 +08:00
Mayank Gupa a16abd537d MDL-30645, Fixing evaluation of default value of CMI elements. 2011-12-13 10:12:27 +08:00
Sam Hemelryk 302991ba37 Merge branch 'MDL-30653-master-2' of git://git.luns.net.uk/moodle 2011-12-13 12:08:12 +13:00
Sam Hemelryk 746e7c4a5e Merge branch 'MDL-30677' of git://github.com/timhunt/moodle 2011-12-13 11:20:22 +13:00
Sam Hemelryk 6508fbc37d Merge branch 'MDL-30532' of git://github.com/timhunt/moodle 2011-12-13 11:15:27 +13:00
Sam Hemelryk de3e5df24f Merge branch 'MDL-30498a' of git://github.com/timhunt/moodle 2011-12-13 11:11:33 +13:00
Sam Hemelryk 0ebb6ff5b8 Merge branch 'MDL-27143' of git://github.com/timhunt/moodle 2011-12-13 10:25:29 +13:00
Sam Hemelryk 2b9131991f Merge branch 'w51_MDL-30621_m23_protectdir' of git://github.com/skodak/moodle 2011-12-13 10:17:45 +13:00
Petr Skoda 7a7edd21f2 MDL-30621 more dataroot protection 2011-12-12 15:06:47 +01:00
Andrew Robert Nicols 6b3a341a95 MDL-30653 Remove duplicate Participants link from navbar 2011-12-12 10:42:42 +00:00
Rossiani Wijaya 7349495160 MDL-30463 lesson module: add space between yes and no options on start last attempt page 2011-12-12 17:14:45 +08:00
Andrew Davis 5625d33d17 MDL-25561 grade: made the student names clickable on the user report 2011-12-12 15:57:04 +08:00
Rossiani Wijaya 8367651ee4 MDL-29239 fixed edit course setting for moodle/course:changesummary permission is set to prevent. 2011-12-12 15:52:13 +08:00
Mayank Gupa 3cf721bf23 Merge branch 'master' of git://github.com/moodle/moodle into master_MDL-30577 2011-12-12 13:20:44 +05:30
Mark Nielsen 8fbb55ac8b MDL-29048 Glossary Force glossary type to secondary while trying to duplicate a mail glossary 2011-12-12 12:33:56 +05:30
Aparup Banerjee c45c1e1f20 Merge branch 'w51_MDL-30613_m23_FULLME' of git://github.com/skodak/moodle 2011-12-12 14:36:59 +08:00
Aparup Banerjee 9f26a481ae MDL-30603 synced and renamed incorrect ZF 1.10.6 file and name 2011-12-12 14:21:52 +08:00
Mayank Gupa 7ec0b1a936 Merge branch 'master' of git://github.com/moodle/moodle into master_MDL-30576 2011-12-12 10:53:23 +05:30
Sam Hemelryk 9997c057a2 Merge branch 'w51_MDL-29117_m23_enrolnewcourse' of git://github.com/skodak/moodle 2011-12-12 17:57:00 +13:00
Sam Hemelryk 82da6c5c5f Merge branch 'w51_MDL-30292_m23_health' of git://github.com/skodak/moodle 2011-12-12 17:40:47 +13:00
Sam Hemelryk 94db939f7c Merge branch 'w51_MDL-30364_m23_report' of git://github.com/skodak/moodle 2011-12-12 17:37:27 +13:00
Sam Hemelryk 0e3e2c82dd Merge branch 'w51_MDL-30415_m23_yui2rollups' of git://github.com/skodak/moodle 2011-12-12 17:29:11 +13:00
Sam Hemelryk bbf9358c49 Merge branch 'w51_MDL-30502_m23_ldapenrol' of git://github.com/skodak/moodle 2011-12-12 17:24:14 +13:00
Sam Hemelryk 07ae3349fc Merge branch 'w51_MDL-30588_m23_switchrole' of git://github.com/skodak/moodle 2011-12-12 17:10:58 +13:00
Sam Hemelryk 16fdb8d070 Merge branch 'w51_MDL-30659_m23_yuidebug' of git://github.com/skodak/moodle 2011-12-12 16:36:51 +13:00
Sam Hemelryk 3a6e1e2b78 Merge branch 'w51_MDL-30687_m23_ldapnewcourse' of git://github.com/skodak/moodle 2011-12-12 16:10:05 +13:00
Jason Fowler d79de196c9 MDL-30482 - Glossary - Adding capability to other areas using glossary 2011-12-12 10:46:10 +08:00
Sam Hemelryk 0669a9e9ae Merge branch 'MDL-29942' of git://github.com/mouneyrac/moodle 2011-12-12 15:12:42 +13:00
Charles Fulton b92ac8c079 MDL-30482 create new capability for viewing glossary entries 2011-12-12 09:59:41 +08:00
Sam Hemelryk 273e24ffa4 Merge branch 'MDL-28180' of git://github.com/stronk7/moodle 2011-12-12 14:54:35 +13:00
Sam Hemelryk d35fc666d6 Merge branch 'MDL-30198-master' of git://github.com/ankitagarwal/moodle 2011-12-12 13:54:48 +13:00
Sam Hemelryk ffdbcf3998 Merge branch 'MDL-29195-master-1' of git://git.luns.net.uk/moodle 2011-12-12 13:50:42 +13:00
Eloy Lafuente (stronk7) 4d856332e4 MDL-28180 backup - on restore always prevent completion_aggr_methd dupes
This covers the last case where dupes could be happening in the
completion_aggr_methd table: Restoring one complete course into
an existing one, adding information. Now we always check if the
aggr_method exists before inserting it.
2011-12-12 00:31:44 +01:00
Eloy Lafuente (stronk7) 43cf3165f1 MDL-28180 backup - take rid of dupes in course_completion_aggr_methd
Conflicts:

	version.php
2011-12-12 00:31:29 +01:00
Eloy Lafuente (stronk7) 184acafab6 MDL-28180 backup - set excluded activities for any non-course operation 2011-12-12 00:30:58 +01:00
Petr Skoda 433150f6cf MDL-30687 use course defaults when template not set in ldap enrol 2011-12-11 11:06:29 +01:00
Petr Skoda 9f38ba6860 MDL-29117 use default course settings when template not set in db enrol 2011-12-11 10:57:44 +01:00
Dan Marsden a12b1d751d MDL-28728 SCORM - only show delete button if data exists for this user in this scorm 2011-12-11 19:10:28 +13:00
Dan Marsden d32e353e35 MDL-28728 SCORM - add capability to allow users to delete own attempts - given to no-one by default. 2011-12-11 19:10:28 +13:00
Dan Marsden b47316cded MDL-29325 imsenterprise enrolment - allow more flexible naming of courses - thanks to Adam Barbary for patch 2011-12-11 19:07:23 +13:00
Petr Skoda 14074ef7c6 MDL-30292 rework trailing whitespace test
Now compatible with zlib compression.
2011-12-10 20:33:51 +01:00
Petr Skoda a0b15989e7 MDL-30364 fix user report regressions 2011-12-10 20:18:44 +01:00
Petr Skoda a1dd2a54e3 MDL-30415 prevent yui2 rollups in debug mode 2011-12-10 19:11:58 +01:00
Petr Skoda 0c79e389f8 MDL-30502 remove bogus role name param
Credit goes to Michael J Litzkow.
2011-12-10 18:34:08 +01:00
Petr Skoda adf0fc0e42 MDL-30621 prevent warnings when creating temp and cache dirs 2011-12-10 17:35:22 +01:00
Petr Skoda cb664c3a0d MDL-30659 fix use of yui filters 2011-12-10 13:46:15 +01:00
Petr Skoda 7edf3f7e82 MDL-30659 fix phpdocs problems 2011-12-10 13:16:18 +01:00
Petr Skoda dbd7282ca3 DML-30588 do not require enrollment after switching of roles 2011-12-10 12:44:32 +01:00
AMOS bot fc458b4cda Automatically generated installer lang files 2011-12-10 00:31:20 +00:00
Petr Skoda 0126413171 MDL-30610 dev versions should not satisfy version requirements 2011-12-09 21:50:58 +01:00
Petr Skoda 9676c7399b MDL-30610 new environment requirements for 2.3 2011-12-09 21:50:58 +01:00
Petr Skoda 33dca15616 MDL-30613 use standard https checks 2011-12-09 21:28:04 +01:00
Tim Hunt 0019a9b7aa MDL-30592 question_bank: make files in qtext work in the question list. 2011-12-09 19:23:53 +00:00
Tim Hunt fdb5bc03f5 MDL-30592 quiz statistics, ensure images in the question text appear. 2011-12-09 19:23:46 +00:00
Tim Hunt 8c03be8c71 MDL-30592 moodlelib: new helper component_callback
I chose to be slighly inconsistent with plugin_callback in order to make a nicer API.
2011-12-09 19:23:36 +00:00
Tim Hunt 3f11d7f923 MDL-30677 quiz: fix attempt counts when a student is in several groups. 2011-12-09 18:46:47 +00:00
Valeriy Streltsov 56565037dd MDL-30562 qtypes: extra_answer_fields & questionid_column_name public
Will let us make more of qtype backup and restore work automatically.
2011-12-09 18:38:38 +00:00
Tim Hunt af4e440888 MDL-30559 conditional availability: missing validation of grade rules. 2011-12-09 18:38:02 +00:00
Tim Hunt 8a058b758c MDL-30532 qeupgradehelper has broken links to quizzes. 2011-12-09 18:37:27 +00:00
Tim Hunt bea2086c95 MDL-30498 user name can overlap user report icon. 2011-12-09 18:36:56 +00:00
Tim Hunt e4977ba5c6 MDL-27183 quiz reports: don't show data to users not in any group
if the quiz is set to separate groups, and the user does not have access all groups.
2011-12-09 18:04:22 +00:00
Tim Hunt 9d0ac0ffbb MDL-27143 question bank: questions not saved when deleting a category.
Based on a fix by Nikhil Gupta.
2011-12-09 18:03:52 +00:00
sam marshall 7728860ae5 MDL-30655 Blocks: Moving block to top of list can cause (harmless) PHP warnings 2011-12-09 17:45:23 +00:00
Eloy Lafuente (stronk7) f89a83b87b weekly release 2.3dev (on-sync version 22_STABLE) 2011-12-09 16:25:08 +01:00
Eloy Lafuente (stronk7) fef739423a Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-12-09 16:09:10 +01:00
Tim Hunt 511b4cf82c MDL-30660 javascript-static: another yui3/ticket/2531561 work-around. 2011-12-09 12:40:57 +01:00
Eloy Lafuente (stronk7) d6b380a364 Merge branch 'w50_MDL-30625_m23_adminorder' of git://github.com/skodak/moodle 2011-12-09 10:57:18 +01:00
Aparup Banerjee 675e402a55 MDL-30542 simple string improvement. 2011-12-09 17:14:30 +08:00
Petr Skoda b8d13becf9 MDL-30625 fail gracefully when admins not defined 2011-12-09 09:04:43 +01:00
Mitsuhiro ac4e8c3387 MDL-30198 Glossary Changing string during imports 2011-12-09 10:01:33 +05:30
Jerome Mouneyrac f1f31c1d06 MDL-30140 alternative way to select user when adding a token. When more than 500 users we display a text box instead of a select box 2011-12-09 11:57:28 +08:00
Aparup Banerjee 70a7b8e1cd Merge branch 'w50_MDL-27364_m23_recaptchahttps' of git://github.com/skodak/moodle 2011-12-09 11:07:20 +08:00
Aparup Banerjee 29459d8e15 Merge branch 'MDL-30558' of git://github.com/timhunt/moodle 2011-12-09 10:46:23 +08:00
Aparup Banerjee 4000fce1a3 Merge branch 'master_MDL-26974' of git://github.com/danmarsden/moodle 2011-12-09 10:19:22 +08:00
Aparup Banerjee ce78f1d6f5 Merge branch 'master_MDL-30579' of git://github.com/mayankgupta/moodle 2011-12-09 10:13:22 +08:00
Tim Hunt 554de0d73a MDL-27314 quiz reports: fix JS confirmation before deleting attempts. 2011-12-09 02:33:47 +01:00
Eloy Lafuente (stronk7) 08416e72e3 MDL-30604 Added 2 missing messages andd deleting an incorrect one 2011-12-09 02:01:02 +01:00
Aparup Banerjee 46f2a9366a MDL-30604 Added upgrade lines to upgrade.php(s) 2011-12-09 01:28:59 +01:00
Eloy Lafuente (stronk7) 20405d1b44 Merge branch 'w50_MDL-30625_m23_adminorder' of git://github.com/skodak/moodle 2011-12-09 00:11:01 +01:00
Sam Hemelryk f8b2e5458d Merge branch 'MDL-30660' of git://github.com/timhunt/moodle 2011-12-09 11:46:09 +13:00
Eloy Lafuente (stronk7) bc4869a828 Merge branch 'MDL-29579' of git://github.com/timhunt/moodle 2011-12-08 23:36:49 +01:00
Tim Hunt e16c0b9da6 MDL-30660 javascript-static: M.util.show_confirm_dialog fixes 2011-12-08 17:50:11 +00:00
Andrew Robert Nicols 93e1d182e5 MDL-29195 Remove duplicate Participants -> Notes from navbar 2011-12-08 12:07:50 +00:00
Aparup Banerjee 1f8c6a9012 Merge branch 'master_MDL-30028' of git://github.com/danmarsden/moodle 2011-12-08 17:00:37 +08:00
Aparup Banerjee 80923958d1 Merge branch 'wip-MDL-30336-master' of git://github.com/abgreeve/moodle 2011-12-08 16:04:30 +08:00
Aparup Banerjee 5ac06899c7 Merge branch 'wip-mdl-30560' of git://github.com/rajeshtaneja/moodle 2011-12-08 15:51:27 +08:00
Jerome Mouneyrac b6dcb7d984 MDL-29942 trigger user events in web service calls 2011-12-08 14:40:57 +08:00
Aparup Banerjee cd8805448d Merge branch 'MDL-30350-master-1' of git://git.luns.net.uk/moodle 2011-12-08 14:19:46 +08:00
Aparup Banerjee 357317fb6e Merge branch 'MDL-27432_gd_error' of git://github.com/andyjdavis/moodle 2011-12-08 13:56:51 +08:00
Aparup Banerjee 983fb3f4aa Merge branch 'MDL-28710_rating_classes' of git://github.com/andyjdavis/moodle 2011-12-08 13:43:55 +08:00
Aparup Banerjee a92365080d Merge branch 'MDL-30607_override_email' of git://github.com/andyjdavis/moodle 2011-12-08 13:38:54 +08:00
Sam Hemelryk 9c6b40c614 Merge branch 'MDL-30518' of git://github.com/mackensen/moodle 2011-12-08 16:05:26 +13:00
Sam Hemelryk 4bd1fc7ef7 Merge branch 'w50_MDL-30528_m23_enrolroleid' of git://github.com/skodak/moodle 2011-12-08 15:50:42 +13:00
Sam Hemelryk 8e0169ebc2 Merge branch 'w50_MDL-30623_m23_guest' of git://github.com/skodak/moodle 2011-12-08 13:49:39 +13:00
Eloy Lafuente (stronk7) 08f2d600c1 Merge branch 'wip-MDL-30582-master' of git://github.com/samhemelryk/moodle 2011-12-08 01:36:44 +01:00
AMOS bot 36101938ff Automatically generated installer lang files 2011-12-08 00:31:13 +00:00
Eloy Lafuente (stronk7) a8c3a5673f Merge branch 'MDL-26522_user_report_menu' of git://github.com/andyjdavis/moodle 2011-12-08 00:58:42 +01:00
Eloy Lafuente (stronk7) 01783c46d4 Merge branch 'MDL-27314' of git://github.com/timhunt/moodle 2011-12-08 00:45:15 +01:00
Sam Hemelryk 073b19a281 Merge branch 'MDL-29712' of git://github.com/mouneyrac/moodle 2011-12-08 12:41:21 +13:00
Eloy Lafuente (stronk7) 98cd882603 Merge branch 'wip-MDL-30222-m23' of git://github.com/samhemelryk/moodle 2011-12-08 00:39:25 +01:00
Sam Hemelryk 871c2e15c7 Merge branch 'master_MDL-30211' of git://github.com/danmarsden/moodle 2011-12-08 10:44:47 +13:00
Sam Hemelryk b6965b11fc Merge branch 'master_MDL-30536' of git://github.com/danmarsden/moodle 2011-12-08 10:39:02 +13:00
Sam Hemelryk 74482042ac Merge branch 'MDL-28282-master' of git://github.com/ankitagarwal/moodle 2011-12-08 10:22:34 +13:00
Sam Hemelryk c629cfae58 Merge branch 'MDL28588' of git://github.com/ankitagarwal/moodle 2011-12-08 10:19:53 +13:00
Andrew Robert Nicols 37461af103 MDL-30641 Stop italicising and underlining folder names in the filepicker 2011-12-07 17:14:25 +00:00
Andrew Robert Nicols 75cd9d2ab6 MDL-30362 Change icon class for editsection icons in course formats 2011-12-07 14:58:10 +00:00
Andrew Robert Nicols bc6b1799d7 MDL-30627 Ensure that the dialogue is always shown in the current view window 2011-12-07 11:48:39 +00:00
Petr Skoda bb6ccfa53d MDL-30625 full support for main admin 2011-12-07 11:18:10 +01:00
Petr Skoda 66fe9746ba MDL-30623 fix null guest passwords in existing 2.2 sites 2011-12-07 09:13:34 +01:00
Petr Skoda df05b844f6 MDL-30623 make sure guest password field is not null 2011-12-07 08:58:18 +01:00
Rajesh Taneja 51070abc78 MDL-30560 Forms Lib: 'type' key for repeat_elements is restored 2011-12-07 11:56:34 +08:00
Sam Hemelryk 5199434619 Merge branch 'wip-MDL-19147-master' of git://github.com/abgreeve/moodle 2011-12-07 14:20:48 +13:00
AMOS bot 8d582fd101 Automatically generated installer lang files 2011-12-07 00:31:14 +00:00
stabijoh fa5ddf6685 MDL-30601, update MyMobile theme to use latest release of Jquery Mobile 2011-12-06 08:04:48 -05:00
Petr Skoda b608b227ba MDL-27364 use https for recaptcha when site runs via https
Based on solution by Rajesh Taneja.
2011-12-06 12:00:32 +01:00
Henning Bostelmann 4c0b36283a MDL-29772 Adaptive question behaviour: improve penalty information
also fixes MDL-29780: suppress penalty information if question penalty is 0
2011-12-06 10:46:50 +00:00
adrian@moodle.com aa30d3e8ce MDL-30336 - login - Added a setting in security that allows auto complete to be set to off in password fields. 2011-12-06 15:50:26 +08:00
Petr Skoda 629303c1c8 MDL-30528 stop recreating role_assignments on every login attempt for each user
Credit goes to Luis Gustavo Mueller de Alcantara.
2011-12-06 08:48:38 +01:00
Ankit Kumar Agarwal f17d78cac1 MDL-28588 Removing IN from SQL statments 2011-12-06 10:59:02 +05:30
Andrew Davis 492b00b7ba MDL-30607 message: removed an if condition that prevented you from clearing an overrident email address 2011-12-06 11:09:14 +08:00
Ankit Kumar Agarwal 6073fcbe16 MDL-28282 Scorm Restorting Groups support in Scomr reports 2011-12-06 07:20:51 +05:30
Sam Hemelryk e52a5d3ab2 MDL-30582 navigation: Fixed regression in generation of front page modules 2011-12-06 13:32:59 +13:00
Sam Hemelryk 3912cdd1de MDL-27767 install: Shows notifications rather than throwing exceptions when installation encounters unexpected id for guest or admin 2011-12-06 12:21:57 +13:00
Sam Hemelryk ecb731cb03 MDL-30222 Fixed home page redirection madness. Thank you Julien Boulen for providing the solution 2011-12-06 12:09:01 +13:00
AMOS bot 2096f007e3 Automatically generated installer lang files 2011-12-05 18:36:36 +01:00
AMOS bot a539bd0a8e Automatically generated installer lang files 2011-12-05 18:19:29 +01:00
Tim Hunt edfa0d800f MDL-29579 quiz statistics, include qtext in full XHTML export. 2011-12-05 15:44:01 +00:00
Eloy Lafuente (stronk7) 42f6b3f1d7 weekly release 2.3dev 2011-12-05 12:17:37 +01:00
Eloy Lafuente (stronk7) 01f7f6f9aa Moodle release 2.2 2011-12-05 12:09:08 +01:00
Eloy Lafuente (stronk7) 3fdc4d0414 Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-12-05 11:55:06 +01:00
Eloy Lafuente (stronk7) da78edea18 Merge branch 'MDL-30340-sticky-blocks_simplify_frontpage_ui' of git://github.com/stronk7/moodle 2011-12-05 10:57:53 +01:00
Eloy Lafuente (stronk7) 0e92570cca Merge branch 'MDL-30340.sticky_category_blocks' of git://github.com/stronk7/moodle 2011-12-05 10:55:06 +01:00
Martin Dougiamas 192a3380f1 MDL-30340 blocks - fix/restrict frontpage dark magic application
It seems that there are some overlapping constants in the blocks
subsystem that were causing some code, initially planned only
to frontpage, to be executed in other contexts. This commit moves
the bui_editingatfrontpage condition as root condition.
2011-12-05 10:28:54 +01:00
Dan Marsden 62169a677d MDL-26974 - add extra logging information all the time - not just when debugging is on. 2011-12-05 21:38:27 +13:00
Andrew Davis 6278ce451f MDL-28710 rating: added some more classes to the html for entering ratings 2011-12-05 14:57:36 +08:00
AMOS bot 140fd1e23c Automatically generated installer lang files 2011-12-05 00:30:55 +00:00
Eloy Lafuente (stronk7) 49ae1fdcea MDL-30340 blocks - incorrect option in user profile template and missing lang string in my template 2011-12-05 01:14:19 +01:00
Eloy Lafuente (stronk7) d4e71a4eed MDL-30340 blocks - hide some redundant pagetypepattern options at front page
The dual front-page/system-wide form to edit blocks can
be reduced asuming that, always:

A) system sets the context to system,
   recursively and with page-type set to "*"
B) frontpage only sets the context to site-course,
   non-recursively and with page-type set to "site-index"
C) frontpage all added sets the context to site-course,
   recursively and with paget-type set to "*"

And that is the change that this patch provides, by:

1) detecting properly if we are editing blocks @ protpage
2) passing that information to the form data processor
3) setting parentcontextid, showinsubcontexts and
   pagetypepattern following the A, B, C immutables above.

Finally, and affecting some other system-wide pages, there
are cases (my, user templates...) having only one possible
pagetypepattern, and it looks badly if the page has subpages, so
for those system-wide cases we are showing exceptionaly the
pagetypepattern statically. This will be revisited once MDL-30574
is decided and implemented, although perhaps it's ok to leave it
as default to places with only one pagetypepattern available.
2011-12-05 01:09:02 +01:00
Mayank Gupa 75638e0ab0 MDL-30579, fixing Data Model Elements are being initialized with an empty string 2011-12-05 05:17:40 +05:30
Mayank Gupa ab94be6bd1 MDL-30577, fixing cmi.credit, cmi.mode are not evaluated correctly 2011-12-05 04:44:28 +05:30
Mayank Gupa b5a26fe11a MDL-30576, Fixing cmi.completion_threshold and default value of minProgressMeasure to be saved correctly in the database. 2011-12-05 04:06:10 +05:30
David Mudrak 9d2c424d83 MDL-30340 Block stickiness computation improvements
This is an attempt to clean up and fix the computation of the block
stickiness. At first, the page pattern can't be ignored because the user
may want to currently try to limit the page pattern. Second, the
site-index pattern can be forced only if the user selected 'Front page
only' as the page context.
2011-12-03 16:57:21 +01:00
David Mudrak e3cdf40ff5 MDL-30340 Always generate pagetype patterns in the block settings form
This is an alternative solution to MDL-27812. If the current block
instance has page type set to site-index, we need to provide a way how
that page type pattern can be reset back to other value.
2011-12-03 16:57:21 +01:00
David Mudrak 7c600d46aa MDL-30340 Trivial change in PHP doc block - the function does not accept any params 2011-12-03 16:57:21 +01:00
Eloy Lafuente (stronk7) 458fdc5280 MDL-30340 blocks - add back 'any page' support to course cats
Added the * option that is not affected by the 'varying-pagetype'
problem that has been detected and issued @ MDL-30564. So now, it's
(back) possible to define coursecat blocks to be spread over children
coursecats/courses/modules (contexts).
2011-12-03 15:52:24 +01:00
Eloy Lafuente (stronk7) bf69e333fe Merge branch 'w49_MDL-30538_m22_versions' of git://github.com/skodak/moodle 2011-12-03 12:30:49 +01:00
Eloy Lafuente (stronk7) b2221ee59c MDL-30340 blocks - avoid lockin'blocks in subcontexts.
Everytime that one block instance is edited @ any subcontext,
guarantee that the 'bring back' pattern (* = all pages) is
available, so the block can be reseted to its original context
2011-12-03 11:21:48 +01:00
Petr Skoda cd2f3c17f9 MDL-30538 add missing course format versions and fix email filter file name typo 2011-12-03 08:40:53 +01:00
Tim Hunt 0030db53d8 MDL-30558 question bank, missing string with obscure permissions.
AMOS BEGIN
 MOV [selectcategoryabove,mod_quiz],[selectcategoryabove,question]
AMOS END
2011-12-02 14:52:01 +00:00
Dan Marsden c72c635689 MDL-30211 imsenterprise enrolment - set up default enrolment methods in new courses 2011-12-02 22:41:51 +13:00
Dan Marsden aff3a5d60c MDL-30536 Choice - remove setType so that validation works when JS is disabled 2011-12-02 21:16:21 +13:00
Dan Marsden b27917eea4 MDL-30028 - use page pref correctly when pagination or re-ordering 2011-12-02 21:07:59 +13:00
Jerome Mouneyrac d2f127e65c MDL-29712 REST-XML server was translating too many HTML characters. use htmlspecialchars instead of htmlentities. Translated characters by htmlspecialchars are compatible with XML validation, and so XML parsers for javascript, java... 2011-12-02 11:26:48 +08:00
Andrew Davis 97451e029b MDL-26522 grade: made the user selection drop down on the user report behave more sensibly 2011-12-02 09:48:36 +08:00
AMOS bot 53581c7689 Automatically generated installer lang files 2011-12-02 00:30:48 +00:00
Sam Hemelryk 50d15ca47f MDL-30543 navigation: Added missing course variable for user context 2011-12-02 12:31:12 +13:00
Igor Sazonov 21beddafa8 MDL-27314 quiz attempts cannot be deleted in separate groups mode. 2011-12-01 16:22:43 +00:00
Eloy Lafuente (stronk7) d0e016f53f Moodle release 2.2rc1 2011-12-01 12:12:21 +01:00
Eloy Lafuente (stronk7) 6451a6b15c Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-12-01 12:04:08 +01:00
Eloy Lafuente (stronk7) 773d1ec56b Merge branch 'MDL-30544_disable_notifications' of git://github.com/andyjdavis/moodle 2011-12-01 10:38:40 +01:00
Andrew Davis f6ce2eb25a MDL-30544 message: prevented the temporarily disable notifications checkbox from erasing your messaging preferences 2011-12-01 16:54:48 +08:00
Jerome Mouneyrac 3b40f3b1a7 MDL-30496 fix upload max size issue when server limit is set + return some kind of json error object for filenameexists and oversizedfile errors 2011-12-01 15:13:52 +08:00
Sam Hemelryk 6416c6c25b Merge branch 'MDL-30007' of git://github.com/stronk7/moodle 2011-12-01 17:14:52 +13:00
Aparup Banerjee 0f4c6067e5 MDL-30386 blog : saved a function call 2011-12-01 12:03:31 +08:00
Aparup Banerjee 9be14d29e4 Merge branch 'wip-MDL-30386-master' of git://github.com/phalacee/moodle 2011-12-01 11:54:25 +08:00
Aparup Banerjee 0fa557d5fd Merge branch 'MDL-30260_disable_messages' of git://github.com/andyjdavis/moodle 2011-12-01 11:24:47 +08:00
Jerome Mouneyrac 264764e222 MDL-30459 when one filename already exist we bypass the execution and continue. We just return the error into the json string 2011-12-01 15:56:15 +13:00
Sam Hemelryk 7bebeb2a29 Merge branch 'wip-mdl-30421' of git://github.com/rajeshtaneja/moodle 2011-12-01 15:48:20 +13:00
Sam Hemelryk bba1338a60 Merged branch 'MDL-30459' of git://github.com/mouneyrac/moodle.git with whitespace fixes 2011-12-01 14:43:39 +13:00
Sam Hemelryk eb7ee15659 MDL-30376 mod_glossary: Integration tidy up 2011-12-01 14:17:10 +13:00
Sam Hemelryk 63a0768888 Merge branch 'wip-MDL-30376-master' of git://github.com/phalacee/moodle 2011-12-01 14:16:19 +13:00
Jason Fowler c000545dee MDL-30386 - Blog - Adding RSS Feed link to the User blogs 2011-12-01 09:07:21 +08:00
Charles Fulton 5fad08b4a4 MDL-19147 - forum - Removed single discussions from the pull down menu for moving posts to different forums. 2011-12-01 08:54:46 +08:00
Sam Hemelryk c3f185949f Merge branch 'MDL-30526' of git://git.luns.net.uk/moodle 2011-12-01 12:44:09 +13:00
Eloy Lafuente (stronk7) 59e6df2883 MDL-30007 standardise assignment subplugin lang files 2011-12-01 00:42:25 +01:00
Sam Hemelryk e8c3f32f83 Merge branch 'MDL-29730' of git://github.com/rwijaya/moodle 2011-12-01 12:29:19 +13:00
Sam Hemelryk c9c7b8fb0b Merge branch 'MDL-30453-exassessment-link' of git://github.com/mudrd8mz/moodle 2011-12-01 12:15:29 +13:00
Eloy Lafuente (stronk7) 9ecbb6e494 MDL-30007 standardise mnet service version files 2011-12-01 00:14:42 +01:00
Sam Hemelryk fa6765cf9c Merge branch 'MDL-30271-switch-role-workshop' of git://github.com/mudrd8mz/moodle 2011-12-01 11:48:55 +13:00
Ruslan Kabalin 65c7713115 MDL-30526 Choice: add form validation rule for numeric field 2011-11-30 17:17:12 +00:00
Charles Fulton 59c1a98c05 MDL-30518 get_context_instance takes one parameter at the SYSTEM level 2011-11-30 05:47:50 -08:00
Aparup Banerjee 15cca3e470 Merge branch 'MDL-30494_tokenize_test' of git://github.com/andyjdavis/moodle 2011-11-30 17:47:18 +08:00
Aparup Banerjee e95a0cefda Merge branch 'w49_MDL-30517_m22_blockdelete' of git://github.com/skodak/moodle 2011-11-30 17:39:23 +08:00
Petr Skoda 8620bfee90 MDL-30517 use alternative block delete to prevent upgrade problems 2011-11-30 08:50:28 +01:00
Aparup Banerjee e8012802db MDL-30202 forum : whitespace cleanup 2011-11-30 15:44:16 +08:00
Aparup Banerjee 20ab954b3c Merge branch 'MDL-30202' of git://github.com/rwijaya/moodle 2011-11-30 15:36:14 +08:00
Aparup Banerjee 4202a9173f MDL-27334 : summarised comment about problem.
we have git for history.
2011-11-30 15:16:08 +08:00
Jerome Mouneyrac f25aee3251 MDL-30459 better error message when file already exist 2011-11-30 15:15:59 +08:00
Aparup Banerjee d423462e1c Merge branch 'wip-MDL-27334-master' of git://github.com/abgreeve/moodle 2011-11-30 15:01:25 +08:00
Jason Fowler 1a9528e010 MDL-30376 - Glossary - Fixing ability to see the RSS feed for a glossary 2011-11-30 14:43:08 +08:00
Aparup Banerjee b50ac85799 MDL-29469 Enrolments : fixed whitespaces 2011-11-30 14:42:04 +08:00
Rajesh Taneja 35b81f27ca MDL-30421 forum: resolved error in single discussion forum, if more then one record is present 2011-11-30 14:38:23 +08:00
Aparup Banerjee 96b3002aae Merge branch 'wip-MDL-29469-master' of git://github.com/phalacee/moodle 2011-11-30 14:37:59 +08:00
Aparup Banerjee 2069c52e20 Merge branch 'MDL-30395' of git://github.com/mouneyrac/moodle 2011-11-30 14:04:14 +08:00
Rossiani Wijaya 52eebcc8df MDL-30202 forum rss: move check to the end of if statement to prevent unnecessary db process if rss is disable 2011-11-30 14:00:33 +08:00
Andrew Davis 39ee0ced4a MDL-30494 grade: provided a failure string to gives people experiencing UTF character test failures a starting point for fixing the problem 2011-11-30 11:49:39 +08:00
Andrew Davis 58800b7c36 MDL-30494 grade: improved unit tests for tokenize() 2011-11-30 11:39:25 +08:00
Rossiani Wijaya 1bb422319f MDL-29730 Lesson mod: fixed check_answer() for shortanswser with regular expression option enable 2011-11-30 11:30:09 +08:00
Eloy Lafuente (stronk7) f2fecd0d7c MDL-30007 standardise data preset subplugin version and lang files 2011-11-30 03:46:17 +01:00
Eloy Lafuente (stronk7) f8b02913ad MDL-30007 standardise data field subplugin lang files 2011-11-30 03:46:08 +01:00
Jerome Mouneyrac 4d693fc44c MDL-30395 display the folder name if the block/module of a backup file is not installed in the site 2011-11-30 10:33:21 +08:00
Andrew Davis d8aa5ec7a0 MDL-30260 message: added /message/upgrade.txt, checked calls to message_send() are supplying user.emailstop and improved message_send() to handle message requests that don't 2011-11-30 10:02:45 +08:00
Eloy Lafuente (stronk7) 9b7e2cbb2e MDL-30007 standardise data field subplugin version files 2011-11-30 02:59:39 +01:00
Eloy Lafuente (stronk7) 7927af450c MDL-30007 standardise user profile field version files 2011-11-30 02:45:21 +01:00
AMOS bot 67124a020f Automatically generated installer lang files 2011-11-30 00:31:01 +00:00
Sam Hemelryk 0a9b7c2b6d Merge branch 'MDL-30440-master' of git://github.com/ankitagarwal/moodle 2011-11-30 13:04:37 +13:00
Sam Hemelryk 4117b4fcd8 Merge branch 'MDL-30322' of git://github.com/timhunt/moodle 2011-11-30 13:02:15 +13:00
Sam Hemelryk b64a3e1ac1 MDL-30485 whitespace fix 2011-11-30 11:55:55 +13:00
Sam Hemelryk 0c0d501144 Merge commit 'FETCH_HEAd' 2011-11-30 11:49:40 +13:00
Sam Hemelryk 3ddbd75acc Merged branch 'MDL-30505' of git://github.com/lazydaisy/moodle.git with conflict resolution 2011-11-30 11:05:46 +13:00
Petr Skoda 4041478751 MDL-30007 standardise workshop subplugin version files 2011-11-29 22:29:14 +01:00
Petr Skoda fd20817aa9 MDL-30007 standardise text editor version files 2011-11-29 22:21:34 +01:00
Petr Skoda 11106669a1 MDL-30007 standardise quiz report version files 2011-11-29 22:19:05 +01:00
Petr Skoda 37c48acb45 MDL-30007 standardise assignment plugin version files 2011-11-29 22:15:28 +01:00
Petr Skoda b5c04aa153 MDL-30007 standardise webservice version files 2011-11-29 22:12:15 +01:00
Petr Skoda 0790df351f MDL-30007 standardise repository version files 2011-11-29 22:06:27 +01:00
Petr Skoda 466bc44fb5 MDL-30007 standardise portfolio version files 2011-11-29 21:54:11 +01:00
Petr Skoda 633d5a07af MDL-30007 standardise module version files 2011-11-29 21:38:14 +01:00
Petr Skoda 5563272125 MDL-30007 standardise messaging plugin version files 2011-11-29 21:23:18 +01:00
Petr Skoda 25a333877c MDL-30007 standardise gradebook plugins version files 2011-11-29 21:20:13 +01:00
Petr Skoda 9c89c04af5 MDL-30007 standardise filter version files 2011-11-29 21:15:42 +01:00
Petr Skoda 9dbf768ede MDL-30007 standardise enrol plugins version info 2011-11-29 21:09:42 +01:00
Petr Skoda 7f6e07a3eb MDL-30007 standardise admin tool version info 2011-11-29 21:02:13 +01:00
Petr Skoda d68b3dbe72 MDL-30007 standard version file for all blocks 2011-11-29 20:57:30 +01:00
Petr Skoda be974aa7f9 MDL-30007 add/fix version files for all auth plugins 2011-11-29 20:41:21 +01:00
Eloy Lafuente (stronk7) a5b5881d46 on-demand release 2.2beta+ 2011-11-29 20:09:37 +01:00
Eloy Lafuente (stronk7) 5ac8e50b89 Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-11-29 20:07:36 +01:00
Eloy Lafuente (stronk7) 5b14551371 MDL-30466 Backup: delete empty method 2011-11-29 19:47:25 +01:00
Eloy Lafuente (stronk7) 457e9ab606 Merge branch 'wip-mdl-30466' of git://github.com/rajeshtaneja/moodle 2011-11-29 19:45:39 +01:00
Eloy Lafuente (stronk7) 2321e0d661 Merge branch 'MDL-30444' of git://github.com/kiklop74/moodle 2011-11-29 16:39:22 +01:00
Mary Evans 231d40d543 MDL-30505 Fix for nested mixed ordered/unordered lists 2011-11-29 15:21:09 +00:00
Eloy Lafuente (stronk7) 8192d3cf43 Merge branch 'MDL-30435' of git://github.com/kiklop74/moodle 2011-11-29 15:54:28 +01:00
Chris Scribner cc6a4b0ecd MDL-30400 lti: Fixing warning in OAuthBodyPost
This would have only shown up if the tool provider didn't set the
content-type header, which I don't think is valid to begin with.

(amended by integrator to follow coding style rules)
2011-11-29 15:42:43 +01:00
Aparup Banerjee ab83fa53fd MDL-28646 webservices : version bump 2011-11-29 18:35:25 +08:00
Aparup Banerjee 1b39425dae Merge branch 'wip-MDL-28646' of git://github.com/mouneyrac/moodle 2011-11-29 16:38:02 +08:00
Sam Hemelryk fb056a811e Merge branch 'MDL-30302-master-2' of git://git.luns.net.uk/moodle 2011-11-29 16:56:29 +13:00
Sam Hemelryk f091da528e MDL-26240 theme_anomaly: Fixed small regression with dock 2011-11-29 16:54:00 +13:00
Sam Hemelryk 9ac82391a2 Merge branch 'MDL-26240' of git://github.com/lazydaisy/moodle 2011-11-29 16:52:50 +13:00
Sam Hemelryk 223b3ce3a0 MDL-30273 whitespace cleanup 2011-11-29 16:47:21 +13:00
Sam Hemelryk 925ae95824 Merge branch 'wip-MDL-30273-master' of git://github.com/abgreeve/moodle 2011-11-29 16:46:47 +13:00
Sam Hemelryk e343ff6a5d Merge branch 'MDL-30471' of git://github.com/lazydaisy/moodle 2011-11-29 16:28:24 +13:00
Aparup Banerjee 67411c8399 Merge branch 'MDL-30368' of git://github.com/rwijaya/moodle 2011-11-29 11:27:53 +08:00
Jerome Mouneyrac 07cc3d11e2 MDL-28646 add missing authentication web service checks. Merge download/upload script checks in the same lib functions. Make the download scrit return json error message. Add missing webservice lang. Minor unit test doc improvement. 2011-11-29 11:18:36 +08:00
Eloy Lafuente (stronk7) 82fb6d1a08 Merge branch 'wip-MDL-30378-m22' of git://github.com/samhemelryk/moodle 2011-11-29 03:18:02 +01:00
Sam Hemelryk e68fa2500a Merge branch 'MDL-30347' of git://github.com/stronk7/moodle 2011-11-29 15:16:27 +13:00
Eloy Lafuente (stronk7) 055a278ad9 MDL-30347 lti: disabling outated/incorrect unit tests 2011-11-29 03:05:19 +01:00
Sam Hemelryk bada16d35c Merged branch 'wip-MDL-30361-master-rtlpatches' of git://github.com/nadavkav/moodle.git with changes 2011-11-29 13:51:25 +13:00
AMOS bot 8cfa492c45 Automatically generated installer lang files 2011-11-29 00:30:40 +00:00
Sam Hemelryk 56c062a45f MDL-30378 navigation: Front page activities are now added to the navigation on every page 2011-11-29 11:13:50 +13:00
Eloy Lafuente (stronk7) 3654f38623 Merge branch 'w48_MDL-30487_m22_filtertest' of git://github.com/skodak/moodle 2011-11-28 20:18:43 +01:00
Petr Skoda e7b90ca0fa MDL-30487 remove obsolete test
Since MDL-30303 media filter accepts any ? parameters.
2011-11-28 20:11:59 +01:00
Tim Hunt 3385a144b8 MDL-30485 XML import from 1.9 does not handle files in subfolders. 2011-11-28 17:26:17 +00:00
Andrew Robert Nicols 68ec4a273c MDL-30302 Adjust options for calendar day settings 2011-11-28 17:02:31 +00:00
Tim Hunt 7d087744cb MDL-30322 qtypes calc* and mulitanswer -> optional_param_array. 2011-11-28 16:57:00 +00:00
Rossiani Wijaya dbf4433d75 MDL-30202 forum module: fixed code regression for displaying rss feed icon (link) 2011-11-28 17:49:14 +08:00
Aparup Banerjee 66b97716c5 Merge branch 'wip-MDL-30214-master' of github.com:marinaglancy/moodle 2011-11-28 17:02:26 +08:00
Dongsheng Cai ec0d6ea2a9 MDL-28646 Web service: core_course_get_contents()
1. Implement core_course_get_contents web service
2. Implement callbacks in folder, resource, page and url modules
3. Implement download script for web service
2011-11-28 16:22:38 +08:00
Aparup Banerjee 3625e9049f Merge branch 'MDL-30379' of git://github.com/rwijaya/moodle 2011-11-28 15:21:34 +08:00
Aparup Banerjee 900d5fd61c MDL-30243 theme - whitespace fixes to afterburner 2011-11-28 14:47:15 +08:00
Aparup Banerjee 00347b3c3c Merge branch 'MDL-30243' of git://github.com/lazydaisy/moodle 2011-11-28 14:33:57 +08:00
Ankit Kumar Agarwal bbe5bad575 MDL-30440 SCORM Fixing Sql errors in interraction reporting 2011-11-28 11:51:37 +05:30
Rajesh Taneja 3c33d77817 MDL-30466 Backup: Fixed duplicate completion record check error 2011-11-28 14:12:41 +08:00
Sam Hemelryk ac386aa925 Merge branch 'w48_MDL-30448_m22_urlpar' of git://github.com/skodak/moodle 2011-11-28 18:54:49 +13:00
Sam Hemelryk beb684ba11 Merge branch 'w48_MDL-30457_m22_deluserspictures' of git://github.com/skodak/moodle 2011-11-28 18:21:39 +13:00
Sam Hemelryk 5c0b8ea3f1 Merge branch 'w48_MDL-30467_m22_delusers' of git://github.com/skodak/moodle 2011-11-28 18:13:27 +13:00
Andrew Davis 6b2f218473 MDL-27432 mod_data: improved handling of the absence of the GD php extension 2011-11-28 12:58:44 +08:00
Marina Glancy beb180689b MDL-30214: Added function forum_get_file_info() to fix the bug with choosing recent forum files in filepicker 2011-11-28 11:52:57 +08:00
Aparup Banerjee 86b3dd264e Merge branch 'MDL-30460-master' of git://github.com/ankitagarwal/moodle 2011-11-28 11:43:03 +08:00
Rossiani Wijaya 24b6984613 MDL-30368 box.net plugins: add richhtml format as part of box.net supported formats 2011-11-28 10:57:03 +08:00
Rossiani Wijaya ea4721f047 MDL-30379 survey module: change clean_param() to clean_param_array() 2011-11-28 10:12:13 +08:00
Mary Evans 486a9ad89f MDL-30471 Fix for nesting unordered list inside ordered list 2011-11-27 23:53:15 +00:00
Eloy Lafuente (stronk7) 1ff31a54a2 Merge branch 'dropbox-api-bump-for-master' of git://git.luns.net.uk/moodle 2011-11-28 00:08:31 +01:00
Mary Evans d11d1e5bc0 MDL-26240 Fixes for Anomaly theme inconsistency 2011-11-27 00:46:24 +00:00
Petr Skoda ee2592346f MDL-30448 fix url param problems 2011-11-26 13:39:22 +01:00
Petr Skoda 8e470797e3 MDL-30467 notify devs deleted users do not have context 2011-11-26 09:17:02 +01:00
Petr Skoda 5bca744cad MDL-30467 skip deleted users during pix upgrade 2011-11-26 09:17:02 +01:00
Petr Skoda 368f5b7b4c MDL-30467 do profiles in tags for deleted users 2011-11-26 09:16:51 +01:00
Petr Skoda d05e39b0d9 MDL-30467 no system profile for deleted users 2011-11-26 09:16:27 +01:00
Petr Skoda 589071ba34 MDL-30467 no course profile for deleted users 2011-11-26 09:16:08 +01:00
Petr Skoda 03636668d4 MDL-30457 do not show pictures of deleted users
Since 2.2 deleted users do not have contexts.
2011-11-26 08:42:36 +01:00
AMOS bot d8d11e9dde Automatically generated installer lang files 2011-11-26 00:31:01 +00:00
David Mudrak cdc8577762 MDL-30453 Use correct renderable classes to represent assessments of example submission 2011-11-25 18:41:07 +01:00
David Mudrak e30f6ff338 MDL-30453 New renderable classes for assessments of example submissions
The patch introduces two new classes for rendering assessments of
example submission - both the training one and the reference one.
Together with the cooking functions for obtaining instances of these
classes.
2011-11-25 18:41:07 +01:00
David Mudrak 2dce240984 MDL-30271 Inform the user about the example assessment conflict, instead of throwing the exception 2011-11-25 16:01:48 +01:00
David Mudrak 660bc937f0 MDL-30271 Move the page initialization so that we can produce output in param processing sections eventually 2011-11-25 16:01:48 +01:00
Dan Poltawski 4b05a49bcb MDL-29960 repository/dropbox - Fix obvious incorrect url 2011-11-25 10:13:29 +00:00
Eloy Lafuente (stronk7) 1de9151c6f on-demand release 2.2beta+ 2011-11-25 11:11:33 +01:00
Eloy Lafuente (stronk7) a22e233cbb Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-11-25 11:05:27 +01:00
Dan Poltawski 6381177b9f MDL-29960 repository/dropbox - remove unsused code
This function calls an API request which may be changed from the
version 0 of the API
2011-11-25 09:59:01 +00:00
Dan Poltawski c745d1e80e MDL-29960 repository/dropbox - update to use 1.0 API version 2011-11-25 09:59:01 +00:00
Ankit Kumar Agarwal 4021f5f986 MDL-30460 Wiki making file extension case-insensitive 2011-11-25 14:40:09 +05:30
Aparup Banerjee 98377ed578 Merge branch 'MDL-30428-master-1' of git://git.luns.net.uk/moodle 2011-11-25 11:59:10 +08:00
Eloy Lafuente (stronk7) 66d8f36b9e Merge branch 'MDL-30456' of git://github.com/stronk7/moodle 2011-11-25 03:22:09 +01:00
Eloy Lafuente (stronk7) ef77af3852 MDL-30456 backup - avoid missing deleted users on backup 2011-11-25 03:16:53 +01:00
AMOS bot 64432a901c Automatically generated installer lang files 2011-11-25 00:30:42 +00:00
Sam Hemelryk 77da06ceb4 Merge branch 'MDL-30422-master' of git://github.com/ankitagarwal/moodle 2011-11-25 13:13:06 +13:00
Eloy Lafuente (stronk7) ede7105fd9 MDL-27233 move the restorer enrol/ra creation to the very beginning of the restore process
Some early steps in restore are using capability checks to decide how to
restore some information. But at that stage, if the course contents have
been removed and the user had perms at course level only (usually teacher)
the process can fail because some content is not restoreable due to the
lack of permissions.

Moving the restorer step to the beginning really helps is those situations
and it does not hurt at all.

Also, fixed one notice detected when testing this.
2011-11-25 01:07:27 +01:00
Eloy Lafuente (stronk7) 2afaf485cf Merge branch 'master' of git.moodle.org:/git/integration 2011-11-25 00:59:59 +01:00
Sam Hemelryk d905b69e95 Merge branch 'MDL-29115' of git://github.com/rwijaya/moodle 2011-11-25 11:53:24 +13:00
Eloy Lafuente (stronk7) 0620787a17 Merge branch 'w47_MDL-27233_m22_restoreenrol' of git://github.com/skodak/moodle 2011-11-24 23:44:24 +01:00
Sam Hemelryk 7355a8e4b7 Merge branch 'wip-mdl-30391' of git://github.com/rajeshtaneja/moodle 2011-11-25 11:29:33 +13:00
Mary Evans c42f1288ea MDL-28625 - removed ul/ol styles from canvas/text.css 2011-11-25 11:04:49 +13:00
Darko Miletic adf8f7a172 MDL-30435: updated xpath query for CC 1.0 and improved url validity
detection
2011-11-24 17:42:16 -03:00
Darko Miletic 4f26504015 MDL-3044: Fixed validation issue related to the incorrect definition of
xs:language type. All xs:language instances are replaced with xs:token
type. It relaxes validation enough for all the complex or dummy language
strings to be accepted.
2011-11-24 15:40:35 -03:00
Petr Skoda 1f238ad4df MDL-27233 fix variable names
Thanks Eloy!
2011-11-24 10:40:38 +01:00
Mary Evans 4d33fbef43 MDL-30243 - corrected admin tree to add custom css settings 2011-11-24 09:31:32 +00:00
Aparup Banerjee c47b8c7d0c Merge branch 'MDL-30288_override_checkbox' of git://github.com/andyjdavis/moodle 2011-11-24 16:14:37 +08:00
Ankit Kumar Agarwal 6348043461 MDL-30422 SCORM Fixing old variable use in interraction report 2011-11-24 12:53:37 +05:30
Aparup Banerjee 3ca3098f31 Merge branch 'MDL-29226' of git://github.com/lazydaisy/moodle 2011-11-24 14:39:53 +08:00
Andrew Davis 185db1c962 MDL-30288 gradebook: prevented grade grade feedback being wrapped in a text to html div tag which was causing it to look like feedback had been edited when it hadn't 2011-11-24 11:27:13 +08:00
AMOS bot 6c72ee14cd Automatically generated installer lang files 2011-11-24 00:31:00 +00:00
Eloy Lafuente (stronk7) c08a5622b8 Merge branch 'w47_MDL-29450_m22_removecoursecontent' of git://github.com/skodak/moodle 2011-11-23 23:01:27 +01:00
Petr Skoda 73d000f389 MDL-27233 allow adding of default role to restorers 2011-11-23 18:38:27 +01:00
Petr Skoda d53e3298c0 MDL-27233 add new options to keep enrols and groups purging existing course in restore 2011-11-23 18:38:27 +01:00
Petr Skoda 16ef46e7b6 MDL-29450 improve and cleanup course content removal
New keep roles/enrolments and groups/groupings options, notification CSS fixed, standardised notification texts, added missing delete of module blocks, fixed file deleting and some other minor issues.
2011-11-23 18:37:36 +01:00
Andrew Robert Nicols 9e23487a10 MDL-30428 Add br tag when showing the 'Export to Portfolio' text 2011-11-23 14:07:52 +00:00
Eloy Lafuente (stronk7) 43fb30d652 Merge branch 'wip-mdl-30394' of git://github.com/rajeshtaneja/moodle 2011-11-23 13:37:37 +01:00
Eloy Lafuente (stronk7) 8ccbf8d1e5 Merge branch 'MDL-30409-master' of git://github.com/sammarshallou/moodle 2011-11-23 13:33:39 +01:00
Eloy Lafuente (stronk7) 07a27990a0 Merge branch 'wip-mdl-30375' of git://github.com/rajeshtaneja/moodle 2011-11-23 13:28:24 +01:00
Eloy Lafuente (stronk7) c897e4639c Merge branch 'MDL-30398-master' of git://github.com/ankitagarwal/moodle 2011-11-23 13:19:21 +01:00
Eloy Lafuente (stronk7) 9002363b35 Merge branch 'MDL-30390-grading-restore' of git://github.com/mudrd8mz/moodle 2011-11-23 13:16:04 +01:00
Eloy Lafuente (stronk7) ab9dde2f97 Merge branch 'MDL-29095' of git://github.com/timhunt/moodle 2011-11-23 12:05:36 +01:00
Eloy Lafuente (stronk7) 48e74d2c10 Merge branch 'MDL-29060' of git://github.com/timhunt/moodle 2011-11-23 11:47:51 +01:00
Eloy Lafuente (stronk7) 1bb98bd7a4 Merge branch 'wip-mdl-28947' of git://github.com/rajeshtaneja/moodle 2011-11-23 11:37:34 +01:00
Eloy Lafuente (stronk7) 5535390c55 Merge branch 'MDL-30165-master-1' of git://git.luns.net.uk/moodle 2011-11-23 11:22:50 +01:00
Eloy Lafuente (stronk7) 3a02133f3f Merge branch 'master_MDL-25757' of git://github.com/danmarsden/moodle 2011-11-23 11:07:50 +01:00
Aparup Banerjee c32e3a0a0a Merge branch 'MDL-30026_sqlsrv' of git://github.com/stronk7/moodle 2011-11-23 14:34:34 +08:00
Aparup Banerjee 9d06eb139c MDL-29995 Filters - added MDL issue number to Todo. 2011-11-23 13:51:11 +08:00
Aparup Banerjee d7de1c8a62 Merge branch 'MDL-29995' of git://github.com/stronk7/moodle 2011-11-23 13:47:52 +08:00
Aparup Banerjee 4cff8cb550 Merge branch 'MDL-28562_wip' of https://github.com/jamiepratt/moodle 2011-11-23 12:36:35 +08:00
Aparup Banerjee a9c56ad2df Merge branch 'master_MDL-29290' of git://github.com/danmarsden/moodle 2011-11-23 12:06:58 +08:00
Sam Hemelryk b674092416 Merge branch 'dev_MDL-29476_ws_participants_master' of git://github.com/dongsheng/moodle 2011-11-23 16:52:08 +13:00
Aparup Banerjee 03848c4568 MDL-30335 formslib : phpdoc improvement 2011-11-23 11:47:06 +08:00
Aparup Banerjee 5cde86faa9 Merge branch 'MDL-30335' of git://github.com/timhunt/moodle 2011-11-23 11:41:58 +08:00
Jason Fowler 2c5857186b MDL-29469 Enrolments - fixing the role assignment access elevation issue 2011-11-23 11:23:05 +08:00
Aparup Banerjee d2b5a2caf5 Merge branch 'wip-MDL-20627-master' of git://github.com/abgreeve/moodle 2011-11-23 11:12:03 +08:00
Mary Evans 4ea621f75b MDL-29778 Fix to make user selector arrow visible 2011-11-23 15:54:59 +13:00
Kordan b9b9614356 MDL-29830 theme_base: Fix overflow problems with navigation items 2011-11-23 15:48:03 +13:00
Rossiani Wijaya 4fd95658bb MDL-29115 lesson mod: fixed the display of 'try again' button so it relates to lesson setting 2011-11-23 10:34:49 +08:00
Rajesh Taneja 2d8732d199 MDL-30375 Blocks: Comments block will show blank textbox rather then hiding and 'add a comment' will be visible if it's empty 2011-11-23 10:32:14 +08:00
Eloy Lafuente (stronk7) a0d26f45f7 Merge branch 'MDL-30042-master-1' of git://git.luns.net.uk/moodle 2011-11-23 03:06:18 +01:00
Eloy Lafuente (stronk7) 7722bb5df8 Merge branch 'MDL-27045' of git://github.com/timhunt/moodle 2011-11-23 03:01:50 +01:00
adrian@moodle.com b489d37d56 MDL-27334 - forum - Fixed the issue of error session keys being displayed when trying to browse to a site without logging in. 2011-11-23 09:43:39 +08:00
Sam Hemelryk b8a2a92773 Merge branch 'MDL-30192' of git://github.com/stronk7/moodle 2011-11-23 14:11:23 +13:00
Eloy Lafuente (stronk7) 689461f4d8 Merge branch 'MDL-30259-master' of git://github.com/sammarshallou/moodle 2011-11-23 02:00:53 +01:00
Sam Hemelryk ba54648b45 Merge branch 'MDL-29904-master' of git://github.com/lazydaisy/moodle 2011-11-23 13:54:26 +13:00
Eloy Lafuente (stronk7) 0f6cc7a7cc Merge branch 'MDL-30203-master' of git://github.com/sammarshallou/moodle 2011-11-23 01:44:49 +01:00
AMOS bot 20adbd65cd Automatically generated installer lang files 2011-11-23 00:30:58 +00:00
Eloy Lafuente (stronk7) ea46fcbced Merge branch 'master_MDL-30223' of git://github.com/danmarsden/moodle 2011-11-23 01:20:39 +01:00
Eloy Lafuente (stronk7) 1316fc8af9 Merge branch 'MDL-30306b' of git://github.com/timhunt/moodle 2011-11-23 01:18:00 +01:00
Eloy Lafuente (stronk7) 8ea233e7ad Merge branch 'MDL-30381-dataroot-install' of git://github.com/mudrd8mz/moodle 2011-11-23 01:11:01 +01:00
Eloy Lafuente (stronk7) 7242b051ac Merge branch 'MDL-30402-install-string' of git://github.com/mudrd8mz/moodle 2011-11-23 01:07:44 +01:00
Eloy Lafuente (stronk7) c8a82fdbfe Merge branch 'MDL-30404-stringcaches' of git://github.com/mudrd8mz/moodle 2011-11-23 01:04:29 +01:00
Mary Evans b04ae8ad2b MDL-30164 FIX for missing gap between icon and text in reports 2011-11-23 12:59:04 +13:00
Mary Evans 6207bf8f05 MDL-30196 changed reference from Serenity to Sky High in theme_sky_high.php 2011-11-23 12:50:08 +13:00
Sam Hemelryk f2d11739a8 Merge branch 'MDL-30393_2' of git://git.catalyst.net.nz/moodle-r2 2011-11-23 12:41:24 +13:00
Nadav Kavalerchik bc86c87261 MDL-30361 - mod/assignment, fix right margin of felement on Grading page that is linked from the user's submissions page (In RTL mode) Not sure what the previous fix was doing, (i made it on a previous commit) hope it does not break some other UI element when in RTL mode. 2011-11-23 01:31:54 +02:00
Nadav Kavalerchik 10625d2efe MDL-30361 - mod/glossary/editcategories.php - fix spelling ($rightalignment) 2011-11-23 01:31:54 +02:00
Nadav Kavalerchik a1f9bc038e MDL-29226 - right align User's fullprofile link, in user's profile page (when in RTL mode)(cherry picked from commit 6437269) 2011-11-23 01:31:54 +02:00
Nadav Kavalerchik efbbe2f047 MDL-29226 - right align table's cells, in Glossary edit categories page (when in RTL mode)(cherry picked from commit 9ace475) 2011-11-23 01:31:53 +02:00
Nadav Kavalerchik f40a7feb2a MDL-29226 - center align Scale table, in course grades menu (when in RTL mode)(cherry picked from commit 40b83ae) 2011-11-23 01:31:53 +02:00
Nadav Kavalerchik f34f2891b8 MDL-29226 - right align grade category title, in course grade report (when in RTL mode)(cherry picked from commit 2f364ff) 2011-11-23 01:31:53 +02:00
Nadav Kavalerchik 61f85d9ecd MDL-29226 - fix right margin fitem in all Forms (when in RTL mode)(cherry picked from commit 7a82ba6) 2011-11-23 01:31:52 +02:00
Nadav Kavalerchik 85cba684b8 MDL-29226 - right align "Autocomplete" box, beside the activity's name (when in RTL mode)(cherry picked from commit 2e7c5a1) 2011-11-23 01:31:52 +02:00
Sam Hemelryk b2d3e5cc49 Merge branch 'w46_MDL-30303_m22_mimeinfo' of git://github.com/skodak/moodle 2011-11-23 12:17:14 +13:00
Sam Hemelryk 15415bf8e8 Merge branch 'w46_MDL-30403_m22_upgradedocs' of git://github.com/skodak/moodle 2011-11-23 10:57:38 +13:00
sam marshall 3d8138bbd2 MDL-30409 moodlelib syntax errors 'throw coding_exception' 2011-11-22 16:33:23 +00:00
David Mudrak 086ed2a6c0 MDL-30390 Advanced grading - fixed the database table field name in the restore
This is a regression of the recent fields renaming.
2011-11-22 15:50:17 +01:00
David Mudrak 561d547173 MDL-30404 All Moodle caches can be now purged from CLI 2011-11-22 11:50:54 +01:00
David Mudrak 6dc2df50f9 MDL-30404 Ability to manually purge string caches from the language packs import utility 2011-11-22 11:37:36 +01:00
Petr Skoda d898238081 MDL-30403 add upgrade docs for admin tools 2011-11-22 11:02:30 +01:00
Petr Skoda c2dbe006d0 MDL-30403 improve upgrade docs for general reports 2011-11-22 11:02:13 +01:00
Aparup Banerjee e0e2db92a3 Merge branch 'MDL-30397' of git://github.com/timhunt/moodle 2011-11-22 17:16:27 +08:00
David Mudrak 6e17567624 MDL-30402 Removing hard-coded English string from the CLI installer 2011-11-22 10:02:42 +01:00
Ankit Kumar Agarwal 7b5abb50ce MDL-30398 Validations added for password field 2011-11-22 14:23:05 +05:30
Aparup Banerjee 65fbaea13d Merge branch 'MDL-30185' of git://github.com/colchambers/moodle 2011-11-22 16:26:29 +08:00
Aparup Banerjee 525e45795a Merge branch 'wip-mdl-29396' of git://github.com/rajeshtaneja/moodle 2011-11-22 16:08:57 +08:00
Rajesh Taneja ade30ad3c4 MDL-29396 core: ip blocking will be bypassed for cli scripts - Thanks Petr 2011-11-22 16:02:02 +08:00
Aparup Banerjee 46fc365c77 Merge branch 'MDL-27735' of git://github.com/rwijaya/moodle 2011-11-22 15:28:17 +08:00
Rossiani Wijaya db8312d23c MDL-27735 Q&A forum: add new caps to add question. By default, teacher, editing teacher and manager role has the capability to add new question 2011-11-22 15:26:44 +08:00
Tim Hunt 2ecbad416e MDL-30397 qformat_xml::format() should be public. 2011-11-22 07:21:04 +00:00
Aparup Banerjee 6aabd59e69 Merge branch 'MDL-27703_user_report_sql' of git://github.com/andyjdavis/moodle 2011-11-22 13:48:24 +08:00
Sam Hemelryk b28de4b412 Merge branch 'MDL-28629' of git://github.com/mouneyrac/moodle 2011-11-22 18:26:35 +13:00
Jonathan Harker 95641b4529 MDL-30393 lib/bennu minor fixes for RFC-2445 and PHP 5.x support. 2011-11-22 17:26:49 +13:00
Rajesh Taneja d6e23c1466 MDL-30394 Backup: Removed popup, inserted by 27790 during restore in new course 2011-11-22 12:03:26 +08:00
Rajesh Taneja ecdd2d183c MDL-30391 Backup: Exception in restore should be thrown as it is to be handled by calling function 2011-11-22 11:39:18 +08:00
Aparup Banerjee 3a9e6be55a Merge branch 'w46_MDL-30349_m22_filestatcaching' of git://github.com/skodak/moodle 2011-11-22 11:33:55 +08:00
Rajesh Taneja 187672608e MDL-28947 lib: print_object cleans html special chars before printing 2011-11-22 09:28:54 +08:00
Eloy Lafuente (stronk7) 79b0fece1f on-demand release 2.2beta+ 2011-11-22 01:51:50 +01:00
Eloy Lafuente (stronk7) df17785210 fix permissions 2011-11-22 01:51:06 +01:00
Eloy Lafuente (stronk7) b8ba54a408 Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-11-22 01:50:20 +01:00
AMOS bot 3370582b86 Automatically generated installer lang files 2011-11-22 00:30:48 +00:00
Sam Hemelryk f5d0ac1077 Merge branch 'MDL-30392' of git://github.com/stronk7/moodle 2011-11-22 12:59:19 +13:00
Eloy Lafuente (stronk7) 08fa81d6c5 MDL-30392 DML - Fix old-style delete_records() call 2011-11-22 00:41:05 +01:00
David Mudrak fbe33209ce MDL-30381 install_init_dataroot() now creates temp and cache
This prevents PHP warnings displayed due to recent modifications in
make_temp_dir() and make_cache_dir(). These functions now expect that
the root temp/cache dir already exists. So they must be available before
the lang_installer installs the lang pack during install.
2011-11-21 23:56:05 +01:00
Sam Hemelryk 009b14c065 MDL-30270 rubric Cleaned up minor points after review before integration 2011-11-22 10:40:15 +13:00
Sam Hemelryk 495bcb06d1 Merge branch 'wip-MDL-30270-master' of git://github.com/marinaglancy/moodle 2011-11-22 10:39:02 +13:00
Eloy Lafuente (stronk7) 2b72f6dc62 Merge branch 'mdl-23006-xmldb-missing-strings' of git://github.com/sbourget/moodle 2011-11-21 19:42:20 +01:00
Andrew Robert Nicols 70eddb71cf MDL-30174 Assignment : Only increment submission offset if the current assignment was not saved 2011-11-22 02:20:16 +08:00
Andrew Robert Nicols 89a4471b97 MDL-30173 Assignment : Convert to use moodle_url and add missing filter param 2011-11-22 02:02:26 +08:00
Aparup Banerjee 85227804b4 Merge branch 'MDL-29814_blank_emails2' of git://github.com/andyjdavis/moodle 2011-11-22 01:15:26 +08:00
Eloy Lafuente (stronk7) 7715c88d36 MDL-30344 lti - whitespace & comments cleanup 2011-11-21 16:59:58 +01:00
Chris Scribner 59fc5c5404 MDL-30344 lti - Hiding roster permission from the UI as it's not implemented in LTI 1.1. 2011-11-21 16:42:28 +01:00
Chris Scribner 038d8e30c3 MDL-30344 lti - Fix issue with privacy settings not working for a course level tool if no Launch URL is specified. 2011-11-21 16:42:12 +01:00
Chris Scribner 4c598b133f MDL-20534 lti: Updating privacy settings dynamically based on matched Launch URL. 2011-11-21 16:42:12 +01:00
David Mudrak b907d3f58c MDL-30381 Fixed the tempdir and cachedir value calculation
Instead of using the default dataroot location, the tempdir and cachedir
are now set under the real dataroot location specified via the argument
and/or the interactive session.

The patch also adds a PARAM_PATH check for the dataroot specified.
2011-11-21 16:01:18 +01:00
David Mudrak 12812ad5da MDL-30381 Fixed path to the cache directory in installers
This fixes the patch f848c0f6e6 introduced
in MDL-29351.
2011-11-21 15:48:31 +01:00
Aparup Banerjee 3a59d04c65 MDL-30268 Web service : resolved version number conflict 2011-11-21 14:47:23 +08:00
Aparup Banerjee 9dc97097b1 Merge branch 'wip-MDL-30289-master' of git://github.com/abgreeve/moodle 2011-11-21 13:57:34 +08:00
Aparup Banerjee 338b9cab83 Merge branch 'w46_MDL-21617_m22_xhack' of git://github.com/skodak/moodle 2011-11-21 11:28:27 +08:00
Eloy Lafuente (stronk7) 6b532f5d4d Merge branch 'w46_MDL-30147_m22_tablenotexists' of git://github.com/skodak/moodle 2011-11-21 02:30:19 +01:00
Eloy Lafuente (stronk7) feeb52949f MDL-30328 some whitespace changes 2011-11-21 02:23:51 +01:00
Eloy Lafuente (stronk7) 27e5ce8b9f Merge branch 'MDL-30328' of git://github.com/scriby/moodle 2011-11-21 02:22:40 +01:00
Eloy Lafuente (stronk7) e5235e6eef Merge branch 'MDL-30326' of git://github.com/scriby/moodle 2011-11-21 02:03:51 +01:00
Charles Fulton 6737aae6bb MDL-30289 forum - set page context when pruning a discussion 2011-11-21 08:58:26 +08:00
Eloy Lafuente (stronk7) 5f72d1025b MDL-30354 lti - whitespace fixes 2011-11-21 01:57:24 +01:00
Eloy Lafuente (stronk7) d167cc3397 Merge branch 'MDL-30354' of git://github.com/scriby/moodle 2011-11-21 01:48:52 +01:00
Eloy Lafuente (stronk7) eba4bcb441 Merge branch 'master' of git.moodle.org:/git/integration 2011-11-21 01:45:37 +01:00
Sam Hemelryk 919423fc6c Merge branch 'w46_MDL-30228_m22_pdftestcopyright' of git://github.com/skodak/moodle 2011-11-21 13:32:55 +13:00
Mary Evans c6185e2eac MDL-30243 Added configtitle to theme_afternburner 2011-11-21 00:31:39 +00:00
Eloy Lafuente (stronk7) 77a7978f11 MDL-20534 lti: B9 - mini bump 2011-11-21 01:27:34 +01:00
Mary Evans 6ee5f11511 MDL-30236 removed outlawed javasript from theme_anomaly 2011-11-21 13:27:22 +13:00
Eloy Lafuente (stronk7) 695f327a70 Merge branch 'MDL-30343' of git://github.com/scriby/moodle 2011-11-21 01:17:06 +01:00
Eloy Lafuente (stronk7) 0fca3dbbce Merge branch 'MDL-30341' of git://github.com/scriby/moodle 2011-11-21 01:11:54 +01:00
Eloy Lafuente (stronk7) 253f5575c9 MDL-30339 lti lang - whitespace fixes 2011-11-21 01:03:22 +01:00
Eloy Lafuente (stronk7) 8efcee5f8c Merge branch 'MDL-30295' of git://github.com/scriby/moodle
Conflicts:
	mod/lti/lang/en/lti.php
2011-11-21 00:58:12 +01:00
Eloy Lafuente (stronk7) 34087d7be2 Merge branch 'MDL-30339' of git://github.com/scriby/moodle 2011-11-21 00:50:32 +01:00
Sam Hemelryk 28e6598dff Merge branch 'w46_MDL-30294_m22_errorsinthemefiles' of git://github.com/skodak/moodle 2011-11-21 12:48:06 +13:00
Sam Hemelryk 67c768dbe8 Merge branch 'w46_MDL-30308_m22_reqstrict' of git://github.com/skodak/moodle 2011-11-21 12:39:42 +13:00
Sam Hemelryk 4f0596f874 Merge branch 'plagiarismbranch' of git://github.com/peterbulmer/moodle 2011-11-21 12:23:32 +13:00
Sam Hemelryk 291029dfd5 Merge branch 'MDL-30309' of git://github.com/lazydaisy/moodle 2011-11-21 12:01:45 +13:00
Sam Hemelryk 34e05996c1 Merge branch 'MDL-30319' of git://github.com/lazydaisy/moodle 2011-11-21 11:53:45 +13:00
Sam Hemelryk b8c117e126 Merge branch 'w46_MDL-30327_m22_blockconfig' of git://github.com/skodak/moodle 2011-11-21 11:48:47 +13:00
Sam Hemelryk eb3217dc40 MDL-30359 theme_base Fixed regression with course completion icons 2011-11-21 11:30:17 +13:00
Sam Hemelryk 7cdf3904a7 Merge branch 'MDL-30359' of git://github.com/lazydaisy/moodle 2011-11-21 10:28:32 +13:00
Mary Evans 98dd8e72e9 MDL-29904-master FIX to add pagelayout=>report 2011-11-20 18:58:49 +00:00
Tim Hunt 7e7fdf59c6 MDL-29060 q export: writefiles should be public write_files & belongs to XML format. 2011-11-20 11:49:41 +00:00
Petr Skoda 685dc4438f MDL-30228 fix incorrect author info
Sorry David!
2011-11-19 19:03:10 +01:00
Petr Skoda 32322d8680 MDL-30308 outputrequirementslib.php breaks xhtml validation
Credit goes to Matthew Davidson.
2011-11-19 18:43:55 +01:00
Petr Skoda 7f86bee330 MDL-30303 fix media playback from URLs with ? query parts
Credit for the rawurlencode() fix goes to Eloy.
2011-11-19 18:17:37 +01:00
Petr Skoda 544832790d MDL-30327 standardise block deletion process 2011-11-19 16:56:11 +01:00
Petr Skoda 4e8d084bc9 MDL-21617 remove problematic attempt to remove script events from random text
This "feature" was used to partially eliminate XSS attacks on vulnerable code. Developers MUST use clean_text() on HTML text fragments only, it can not be used on random html tag attributes.

This change may simplify a bit exploiting of vulnerable code, but every XSS cheat sheet contains information how to work around this outdated anti-XSS measure.

Please note this change fixes many problems with valid uses of language= or onXXXXX= such as in urls, tex, code samples, etc.
2011-11-19 13:22:33 +01:00
Petr Skoda e164a0dfea MDL-30349 clear file stat cache when adding new theme cache files
Hopefully this will resolve some cache reset problems.
2011-11-19 12:14:26 +01:00
Petr Skoda c198390a49 MDL-30294 prevent notices and errors in theme files content
Theme images, css and JS are broken by PHP error messages which creates major problems for production sites with enabled displaying of errors because the files are cached indefinitely. It is better to send the errors and notices to logs only, in any case all developers must learn to use error logs.
2011-11-19 11:23:28 +01:00
Petr Skoda 0b9f2a02ab MDL-30349 make sure file stat cache is reset properly after each remove_dir()
Typo3 does this, maybe it works around some PHP bugs…
2011-11-19 10:36:37 +01:00
Petr Skoda fed02be153 MDL-30147 do not expect text comparison exceptions when not in debug mode
Unfortunately the column type fetching is too expensive, we do extra verification in debug mode only.
2011-11-19 09:44:33 +01:00
Petr Skoda a453ec079f MDL-30147 optional verification if dml exception when table missing 2011-11-19 09:39:07 +01:00
Eloy Lafuente (stronk7) 870896eca1 MDL-30147 dml - mysql and no params now behaving "standard" 2011-11-19 09:27:10 +01:00
Eloy Lafuente (stronk7) a8097d6dda MDL-30147 dml - one more test behavior without params 2011-11-19 09:27:09 +01:00
Eloy Lafuente (stronk7) 8f201c9ded MDL-30147 dml - added some tests demoing bad get_columns() behavior 2011-11-19 09:27:09 +01:00
Petr Skoda 69ac5d478f MDL-30147 do not rely on dml exception type outside of dml layer
The trouble is that dml driver methods (insert, update, select) are not guaranteed to return the same exception class for various db problems and coding style issues. The recommended practice is to catch dml_exception only.
2011-11-19 09:25:11 +01:00
Petr Skoda c04e80e328 MDL-30147 detect missing table when processing query conditions 2011-11-19 09:16:51 +01:00
Andrew Davis 22e23da6f4 MDL-29814 message: made html personal messages store a plain text version as a fallback 2011-11-19 15:35:23 +08:00
Mary Evans 24050190e3 MDL-29226 RTL fixes - additions and amendments 2011-11-19 00:53:14 +00:00
AMOS bot 967bc47c80 Merge branch 'master' into install_master 2011-11-19 00:30:59 +00:00
Mary Evans 2062be1a01 MDL-30359 Fixes for dir-rtl in theme_base CSS 2011-11-19 00:04:41 +00:00
Chris Scribner 036e84c389 MDL-30354 lti - B27 - locallib changes 2011-11-18 12:38:41 -05:00
Eloy Lafuente (stronk7) f218cdab34 Merge branch 'MDL-29591-master-2' of git://git.luns.net.uk/moodle 2011-11-18 17:28:53 +01:00
Eloy Lafuente (stronk7) 668933bcaa MDL-20534 lti: B14 - tiny bit, but savepoint tests require that 2011-11-18 17:19:59 +01:00
Chris Scribner 532ae9aa34 MDL-30295 lti - Adding lti:manage localization string. 2011-11-18 11:19:07 -05:00
Chris Scribner efba8960e1 MDL-20534 lti: B11 - Making language file changes (re-order, markdown, remove newlines in strings) 2011-11-18 11:18:36 -05:00
Tim Hunt fc2dafcff5 MDL-30306 get_string developer warning. Help lazy developers. 2011-11-18 16:00:33 +00:00
Eloy Lafuente (stronk7) 194f2c60ef MDL-20534 lti: B14 - whitespace and comment fixes 2011-11-18 16:05:22 +01:00
Andrew Robert Nicols 7d7d82de03 MDL-29591 Check for permission before overwriting course idnumber when restoring 2011-11-18 14:54:00 +00:00
Andrew Robert Nicols d50645ebca MDL-30350 Highlight late submissions in the submission overview page 2011-11-18 14:10:33 +00:00
Eloy Lafuente (stronk7) 3a2927081c Merge branch 'MDL-30290' of git://github.com/scriby/moodle 2011-11-18 13:40:16 +01:00
Eloy Lafuente (stronk7) 1acad8eed7 MDL-30192 restore - prevent any extra info to be created for deleted users 2011-11-18 13:03:08 +01:00
Eloy Lafuente (stronk7) f8cd596aae MDL-30026 dml - fix sqlsrv support for session locks 2011-11-18 13:02:24 +01:00
Eloy Lafuente (stronk7) dd3fafbda5 MDL-29995 filters - consider leacy filters and locations deprecated in 2.2
Support for them will be dropped in 2.3 thanks to MDL-29996
2011-11-18 13:00:57 +01:00
Marina Glancy a19d1057ca MDL-30270, MDL-30269: rubric interface/usability improvements:
- In rubric editor the line 'Current rubric status' is hidden if there is no status yet
- If present the style of the status is the same as on manage.php page
- For newly created rubric 'Add criterion' button is pre-pressed automatically
- Changed JavaScript to work for Mac browsers default settings and for IPad
- MDL-30269: added explanation message about score to grade mapping
- fixed bug with non-javascript 'Add criterion' behaviour
2011-11-18 15:35:24 +08:00
Aparup Banerjee 8adce198e4 Merge branch 'MDL-30279-master' of git://github.com/ankitagarwal/moodle 2011-11-18 15:34:18 +08:00
Charles Fulton 5a1038bb47 MDL-30273 prevent the creation of discussions in simple single forums 2011-11-18 14:11:49 +08:00
adrian@moodle.com e94113a859 MDL-20627 user - Fixed viewing permission of email when sending group messages. 2011-11-18 11:41:11 +08:00
AMOS bot 00db87ad38 Automatically generated installer lang files 2011-11-18 00:30:45 +00:00
Eloy Lafuente (stronk7) fe41ba7489 on-demand release 2.2beta 2011-11-18 01:20:35 +01:00
Eloy Lafuente (stronk7) d9f2975413 Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-11-18 01:17:52 +01:00
Chris Scribner 38936053a3 MDL-20534 lti: B9 - Adding db/log.php 2011-11-17 16:41:45 -05:00
Chris Scribner aeae316274 MDL-20534 lti: B28 - Accidentally included Copyright header in wrong file. 2011-11-17 16:30:20 -05:00
Chris Scribner 8f45215d1c MDL-20534 lti: B28 - Update attribution headers. 2011-11-17 16:29:50 -05:00
Chris Scribner 76519c52f0 MDL-20534 lti: B11 - Making language file changes (re-order, markdown, remove newlines in strings) 2011-11-17 15:50:14 -05:00
Eloy Lafuente (stronk7) 8a9426bc17 MDL-29350 Prevent memory/time problems if there are zillions of combinations 2011-11-17 20:10:02 +01:00
Tim Hunt 8f6384a9ec MDL-27045 formslib: fix disabledif for advcheckbox
This is based on earlier work by Henning Bostelmann and Tom Potts.
2011-11-17 17:57:27 +00:00
Tim Hunt fa2fa5c698 MDL-30335 formslib: fix repeat_elements for groups that don't appendName 2011-11-17 16:42:13 +00:00
Eloy Lafuente (stronk7) 408ea3b547 Merge branch 'MDL-29350-master-2' of git://git.luns.net.uk/moodle 2011-11-17 17:15:00 +01:00
Charles Severance 6edcab7a1a MDL-20534
Undo change that Chris already did.
2011-11-17 10:35:07 -05:00
Charles Severance 461bde28d8 MDL-20534
Add the tool_consumer_info fields and fix parsing of custom parameters.
2011-11-17 10:34:58 -05:00
Chris Scribner 34eb05018f MDL-20534 lti: Some cleanup of locallib.php 2011-11-17 10:34:45 -05:00
Charles Severance ddcfda87d6 MDL-20534
I ran the software through the certification and caught a few nits:

The error return is 'failure' not 'error'
The spec says that it needs to return 'failure' for out of range or non-numeric grades
The result score needs a language tag, hard-coded as 'en'
Setting a grade multiplied by 100 but reading the grade did not divide by 100
All those are now fixed with this patch as well as this bit of cruft:

I removed the "extension service url" as it is not implemented in service.php

Feel free to review and adjust - probably the one place you might want to refactor
is that I put code to catch out-of-range-and non-numeric in
lti_parse_grade_replace_message and threw an exception on error and then caught
it in service.php and sent back the 'failure' message. Feel free to refactor a
bit if you see this done in a cleaner manner.
2011-11-17 10:34:23 -05:00
Chris Scribner 0297a3d4b7 MDL-20534 lti: Updating the tool consumer information strings to match newest spec version. 2011-11-17 10:34:07 -05:00
Chris Scribner 776e5cfa0f MDL-20534 lti: B8 - Switching from $ME to $FULLME to properly detect SSL requests. 2011-11-17 09:35:56 -05:00
Chris Scribner b07878ec7d MDL-20534 lti: B14 - Implementing "show description on course page" 2011-11-17 09:28:40 -05:00
Mary Evans e3b977ac83 MDL-30319 changed lang $string Light to Light/Blue in theme_mymobile 2011-11-17 13:51:30 +00:00
Eloy Lafuente (stronk7) f71e41691a Merge branch 'MDL-30182' of git://github.com/timhunt/moodle 2011-11-17 10:53:56 +01:00
Tim Hunt 0850e6301a MDL-30182 fix missing include. Sorry. 2011-11-17 08:02:20 +00:00
Charles Fulton 9f2dc66f72 MDL-30279 show full date and time for all wiki revisions 2011-11-17 08:54:50 +05:30
Sam Hemelryk b750c6b388 Merge branch 'MDL-24577-master-1' of git://git.luns.net.uk/moodle 2011-11-17 14:53:38 +13:00
Peter Bulmer bfad2f2fff MDL-30313 plagiarism support for unformated rsults
support for obtaining plagiarism detection results without
html formatting
2011-11-17 14:12:03 +13:00
AMOS bot 7d82204fab Automatically generated installer lang files 2011-11-17 00:55:25 +00:00
Eloy Lafuente (stronk7) 1f40b7e252 Merge branch 'MDL-29743' of git://github.com/timhunt/moodle 2011-11-17 01:22:22 +01:00
Sam Hemelryk 28ab9dbe98 Merge branch 'MDL-29893-master' of git://github.com/ankitagarwal/moodle 2011-11-17 13:11:46 +13:00
Eloy Lafuente (stronk7) d647c2d608 Merge branch 'MDL-30069' of git://github.com/timhunt/moodle 2011-11-17 00:45:00 +01:00
Eloy Lafuente (stronk7) e929eb0353 Merge branch 'MDL-30122' of git://github.com/timhunt/moodle 2011-11-17 00:33:54 +01:00
Eloy Lafuente (stronk7) b22dc5374c Merge branch 'MDL-30167' of git://github.com/timhunt/moodle 2011-11-17 00:29:18 +01:00
Eloy Lafuente (stronk7) e5bac3491a Merge branch 'MDL-30182' of git://github.com/timhunt/moodle 2011-11-17 00:18:25 +01:00
Eloy Lafuente (stronk7) 2c9073ab2a Merge branch 'MDL-30186' of git://github.com/timhunt/moodle 2011-11-17 00:11:29 +01:00
Eloy Lafuente (stronk7) 0918488dec Merge branch 'MDL-30199' of git://github.com/timhunt/moodle 2011-11-17 00:08:18 +01:00
Eloy Lafuente (stronk7) 85e013ef79 Merge branch 'MDL-30266-master' of git://github.com/sammarshallou/moodle 2011-11-17 00:05:45 +01:00
Eloy Lafuente (stronk7) 7f8dc336aa Merge branch 'MDL-30209' of git://github.com/timhunt/moodle 2011-11-17 00:02:02 +01:00
Eloy Lafuente (stronk7) 69f9e7f3e4 Merge branch 'MDL-30300' of git://github.com/timhunt/moodle 2011-11-17 00:00:12 +01:00
Nadav Kavalerchik 7a25d39873 MDL-27516 Several CSS fixes for right to left languages 2011-11-17 11:42:12 +13:00
Eloy Lafuente (stronk7) cfaa2bd744 Merge branch 'MDL-30274-master-1' of git://git.luns.net.uk/moodle 2011-11-16 22:51:51 +01:00
Mary Evans 7d058f73e2 MDL-30309 FIX typo in CSS in theme_anomaly 2011-11-16 21:15:24 +00:00
Eloy Lafuente (stronk7) 2fee72e19b Merge branch 'MDL-30275-master' of git://github.com/sammarshallou/moodle 2011-11-16 21:29:25 +01:00
Tim Hunt 3d17cd3f1c MDL-30300 qbehaviours: convert to the new is_compatible_question API. 2011-11-16 11:11:10 +00:00
Tim Hunt 15d660a8fd MDL-30300 question behaviours: improve q compatibility API. 2011-11-16 10:52:19 +00:00
Ankit Kumar Agarwal e079e82c08 MDL-29893 Fixing issues with password generation function 2011-11-16 12:01:57 +05:30
Ankit Kumar Agarwal 63a1625d78 MDL-30279 SCORM Fixing sql errors during cron 2011-11-16 09:47:00 +05:30
Dongsheng Cai ad7612f597 MDL-29476 web service improvements
1. moodle_enrol_get_users_courses should return number of participants,
2. moodle_user_get_users_by_courseid should limit the fields to be returned
2011-11-16 12:02:24 +08:00
Jerome Mouneyrac af03513f93 MDL-30268 add 'Can download files' field to service 2011-11-16 11:51:03 +08:00
andrew d3e303470d MDL-27703 gradebook: altered an sql query in the user report. join with no on clause causes an error in some DBs 2011-11-16 09:56:46 +08:00
AMOS bot 7e82d9c61d Automatically generated installer lang files 2011-11-16 00:55:51 +00:00
Mary Evans 799cc1cfcb Merge branch 'MDL-30243' of github.com:lazydaisy/moodle into MDL-30243 2011-11-15 22:21:05 +00:00
Mary Evans 0e91846730 MDL-30243 Add custom settings to theme_afterburner 2011-11-15 22:20:26 +00:00
Dan Marsden 23b3e448b2 SCORM MDL-25757 fix for saving of duplicate CMI values - thanks to Evan Irving-Pease for the patch 2011-11-16 10:50:55 +13:00
Dan Marsden 801fdcfd3f MDL-29290 - few more coding guideline fixes with function 2011-11-16 08:51:58 +13:00
Dan Marsden 20d694ac59 MDL-29290 fix spacing 2011-11-16 08:51:57 +13:00
Dan Marsden cffd976ee3 MDL-29290 Enrol IMSEnterprise - use correct course defaults - thanks to Adam Barbary for the fix 2011-11-16 08:51:57 +13:00
Dan Marsden d3bf0a950f SCORM AICC MDL-30223 invalid call to update_record - very hard to test/reproduce. 2011-11-16 08:48:50 +13:00
sam marshall 24ad1d1feb MDL-30275 Assignment activity description not displayed on course page 2011-11-15 15:24:08 +00:00
Andrew Robert Nicols 4a645a6821 MDL-30274 Correct typo of loginpage variable 2011-11-15 15:16:47 +00:00
sam marshall 770b7f6c9f MDL-30203 RSS: Remove broken 'podcasting' support that thinks mailto links are attachments 2011-11-15 14:06:15 +00:00
sam marshall 0c9cb1bc19 MDL-30266 completionlib fix unit test breakage (regression) 2011-11-15 14:05:20 +00:00
Tim Hunt 08502b574d MDL-30182 quiz grade.php should support userid param. 2011-11-15 11:36:10 +00:00
Tim Hunt 7238cd2ef0 MDL-30209 quiz refers to wrong rendere method in two places.
Thanks to Dan Marsden for working out the fix.
2011-11-15 11:23:03 +00:00
Tim Hunt 0f7477c07f MDL-30199 qtype numerical etc. Don't require tolerance for answer *. 2011-11-15 11:22:00 +00:00
Tim Hunt f7094147b1 MDL-30186 qtype editing forms should use advcheckbox. 2011-11-15 11:21:27 +00:00
Tim Hunt 6c314a3681 MDL-30167 qtype_numerical: notice when required unit is not in the answer. 2011-11-15 11:19:46 +00:00
Tim Hunt 94c0ec2159 MDL-30185 question engine reporting: add redundant where to query for perf.
Without this, MySQL fails to cope.
2011-11-15 11:19:15 +00:00
Tim Hunt 5cc021a00b MDL-30069 Question type icons missing in lots of places. 2011-11-15 11:17:18 +00:00
Henning Bostelmann 6336bd914a MDL-29350 Prevent duplication of groupings when copying activities
This patch also includes a database upgrade to correct data produced as a
result of this bug.
2011-11-15 11:12:40 +00:00
Tim Hunt cb1564b1ce MDL-29743 quiz: Finish attempt link didn't save responses in some brosers.
Thanks to Brandon Browning for identifying the problem. It is quite subtle why this typo would have this effect. You need to look at the implementation of the preventDefault method in lib/yui/3.4.1/build/event-base/event-base.js.
2011-11-15 11:10:51 +00:00
Oleg Sychev 1067775131 MDL-29095: initialise_question_instance should use extra_question_fields
Shortanswer question type converted to use extra question fields.

Signed-off-by: Oleg Sychev <oasychev@gmail.com>
2011-11-15 11:10:14 +00:00
Eloy Lafuente (stronk7) 6be90ce05f Moodle release 2.2beta 2011-11-15 11:04:15 +01:00
Eloy Lafuente (stronk7) 1dda2cf54f Fix permissions 2011-11-15 10:58:09 +01:00
Eloy Lafuente (stronk7) b51c46fc1a Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-11-15 10:54:40 +01:00
AMOS bot 037dd8156d Automatically generated installer lang files 2011-11-15 00:55:17 +00:00
Eloy Lafuente (stronk7) 9bddc37f97 MDL-29956 ims-cc - whitespace cleanup 2011-11-14 23:35:12 +01:00
Eloy Lafuente (stronk7) acb8164304 MDL-29956 ims-cc - disabling export and cleaning some unused code
This commits cleans some code (settings and dependencies)
and one file included previous by error.

Also it disables all the IMS-CC export feature by default, being
possible to enable it under demand by setting (@ config.php):

$CFG->enablebackupconverters = true;
2011-11-14 21:32:05 +01:00
Darko Miletic 584f92962d Updated text conversion to read and store safe xml strings. 2011-11-14 21:25:08 +01:00
Mark Nielsen 726a770949 MDL-29956: Common Cartridge should handle HTML content more natively (r17188, r17210:17265)
Also implemented support for LTI icon during import.
2011-11-14 21:25:08 +01:00
Mark Nielsen 91e6ca6e71 MDL-29956: Implement export of Quiz activity (r16977, r17032) 2011-11-14 21:25:08 +01:00
Mark Nielsen 42dffc6feb MDL-29956: Implement common cartridge export (r16882) 2011-11-14 21:25:08 +01:00
David Mudrak 3319af85a9 MDL-29793 Advanced grading - do not execute the restore step if the grading.xml is missing 2011-11-14 21:11:41 +01:00
David Mudrak c309e4f05e MDL-29793 Advanced grading backup - fixed the recently renamed DB field 2011-11-14 21:11:00 +01:00
Rod Norfor ad6fbb6074 MDL-30259 TinyMCE: Add spellchecker language options 2011-11-14 16:26:31 +00:00
Eloy Lafuente (stronk7) 98ca9e8480 MDL-27622 theme_mymobile: add it to core themes 2011-11-14 12:45:48 +01:00
Eloy Lafuente (stronk7) 8d78644bcc Merge branch 'lti' of git://github.com/scriby/moodle 2011-11-14 12:37:43 +01:00
Eloy Lafuente (stronk7) 6a7998f9a1 MDL-20534 lti: bump version and requires to current before integration, yay! 2011-11-14 12:35:52 +01:00
Sam Hemelryk 1ae9aa2b8f Merged MDL-29108 Advanced grading 2011-11-14 22:01:05 +13:00
David Mudrak 053d290c0d Merge pull request #25 from marinaglancy/wip-nov14-rubric 2011-11-14 00:20:16 -08:00
Dan Marsden 9a68ff24d2 MDL-27036 AICC HACP handling - add missing check for correct user with has_capability. 2011-11-14 21:20:14 +13:00
Marina Glancy 3c2b3cb3ee MDL-29108: added comments, declared functions visibility, renamed variables; also fixed MDL-30240 2011-11-14 14:53:14 +08:00
Marina Glancy b1add93e47 MDL-30241: fixing Javascript to work in IE as well 2011-11-14 14:48:28 +08:00
Sam Hemelryk 364fe13b11 Merge branch 'MDL-28670' of git://github.com/nebgor/moodle 2011-11-14 17:49:47 +13:00
Aparup Banerjee 8887601196 MDL-28670 webservice : (review) changes improving performance 2011-11-14 11:25:36 +08:00
Mary Evans f1c0d7bdce MDL-30243 Add custom settings to theme_afterburner 2011-11-14 01:29:21 +00:00
Sam Hemelryk 6335838604 Merge branch 'wip-MDL-30010' of git://github.com/lazydaisy/moodle 2011-11-14 12:10:17 +13:00
Eloy Lafuente (stronk7) da2e3c12db Merge branch 'MDL-30026' of git://github.com/stronk7/moodle 2011-11-13 19:35:13 +01:00
Eloy Lafuente (stronk7) da3a1f3ae7 MDL-30026 improve session lock - stronger detection for oracle 2011-11-13 19:23:53 +01:00
Eloy Lafuente (stronk7) d16b0197de MDL-30026 improve session lock - mssql workaround for bug with scalar returned values 2011-11-13 19:06:44 +01:00
Eloy Lafuente (stronk7) 12dfd6df01 MDL-30026 improve session lock - unit tests & minor comment fixup 2011-11-13 19:05:57 +01:00
AMOS bot 326d05832e Automatically generated installer lang files 2011-11-13 15:14:31 +01:00
David Mudrak 6f07a6a2ea MDL-29108 Advanced grading - renaming DB field forminstanceid to instanceid
As a response to Sam's review (7.4)
2011-11-13 14:07:33 +01:00
David Mudrak 71ab436aa9 MDL-29108 Advanced grading - renaming DB fields formid to definitionid
As a response to Sam's review (7.1 and 7.3)
2011-11-13 14:03:38 +01:00
David Mudrak 9e32368b29 MDL-29108 Remove all associated grading areas when the context is being deleted 2011-11-13 13:50:00 +01:00
AMOS bot b3e5e774e3 Automatically generated installer lang files 2011-11-13 00:55:17 +00:00
Eloy Lafuente (stronk7) cf2de1cf10 MDL-27622 theme_mymobile: whitespace fixes 2011-11-11 20:22:41 +01:00
Chris Scribner 42a2c7f16e MDL-20534 lti: A8. Removing locallib.php require from lib.php 2011-11-11 13:54:54 -05:00
Chris Scribner 2575332b86 MDL-20534 lti: Updating call to lti_add_instance with 2nd argument. 2011-11-11 13:47:53 -05:00
Chris Scribner d00d058d55 MDL-20534 lti: Fixing some language in lti's index.php 2011-11-11 13:40:59 -05:00
Chris Scribner 78d52bf87c MDL-20534 lti: Getting rid of references to "Basic" LTI in language file 2011-11-11 13:34:24 -05:00
Chris Scribner 89b7bbe9ee MDL-20534 lti: A9. Fixing issues with the course tool popup not disappearing. 2011-11-11 13:31:09 -05:00
Eloy Lafuente (stronk7) dddfaa73cb Merge branch 'MDL-30057' of git://github.com/stronk7/moodle 2011-11-11 15:47:33 +01:00
Darko Miletic 4febc0a013 Added Moodle 1.9 -> Moodle 2 converter 2011-11-11 08:31:34 -05:00
David Mudrak c15b933c69 MDL-29108 Orphaned areas are excluded from search results
If for any reason the referenced context does not exist any more, the
forms defined in relevant areas are considered removed (even if their
records still exist in the database).
2011-11-11 14:16:17 +01:00
David Mudrak a3b37e4b6e MDL-29483 The capability to manage grading forms can be overridden at the Assignment module level 2011-11-11 13:59:04 +01:00
David Mudrak 1dea75b8d1 MDL-29108 Do not display grading method selector for non-privileged users
The patch checks the required capability before it displays the grading
method selectors in the modform.
2011-11-11 13:58:45 +01:00
Eloy Lafuente (stronk7) 0852418307 Merge branch 'MDL-29945' of git://github.com/timhunt/moodle 2011-11-11 12:54:11 +01:00
Tim Hunt 1dd21f4058 MDL-29945 incorrect logic when testing if a qtype can be uninstalled.
Thanks to Andrew Davis for catching this during testing.
2011-11-11 11:40:07 +00:00
David Mudrak 217116d414 MDL-29108 Improving get_grading_method() documentation
As a response to Sam's review (10)
2011-11-11 12:18:02 +01:00
David Mudrak 794cea253c MDL-29108 Fixing a typo
Spotted by Sam during the review (23)
2011-11-11 12:17:01 +01:00
David Mudrak 6f19a2a98b MDL-29108 Removing global variables where they are not needed
Spotted by Sam during the review (17.1 and 17.3)
2011-11-11 12:10:02 +01:00
Jerome Mouneyrac 07a90ec313 MDL-28629 more checks during web service authentication 2011-11-11 15:07:18 +08:00
Sam Hemelryk e2b38d06cf MDL-27622 theme_mymobile: quick regression fix of var 2011-11-11 18:36:10 +13:00
Sam Hemelryk 025d304ad3 Merge branch 'wip-MDL-27622-master' of git://github.com/samhemelryk/moodle 2011-11-11 18:35:13 +13:00
Aparup Banerjee 6cf8f401ba MDL-27037 wiki : fixed whitespace. 2011-11-11 13:28:46 +08:00
Mayank Gupta dc0cabb488 MDL-27037, wiki does not support visiblegroups functionality 2011-11-11 13:28:41 +08:00
Aparup Banerjee d48dae7507 Merge branch 'wip-MDL-26712-master' of git://github.com/phalacee/moodle 2011-11-11 11:26:22 +08:00
Eloy Lafuente (stronk7) 8ac9d33f49 Merge branch 'MDL-26647-master' of git://github.com/sammarshallou/moodle
Conflicts:
	lib/db/upgrade.php
	report/completion/index.php
	report/progress/index.php
	version.php
2011-11-11 03:37:55 +01:00
Eloy Lafuente (stronk7) 032bfca82a Merge branch 'MDL-29035-master' of git://github.com/ankitagarwal/moodle 2011-11-11 02:42:40 +01:00
Eloy Lafuente (stronk7) 509361cfde Merge branch 'MDL-22351' of git://github.com/lazydaisy/moodle
Conflicts:
	theme/anomaly/style/general.css

Merged with some changes done with the introduction of
the new report plugins (MDL-29030)
2011-11-11 02:31:21 +01:00
Stephen Bourget 8c93ab4e0f MDL-29529 Assignment: Fix regression caused by MDL-27638 2011-11-11 01:23:47 +01:00
Eloy Lafuente (stronk7) 06b3d9c8c0 Merge branch 'wip-MDL-25511' of git://github.com/lazydaisy/moodle
Conflicts:
	theme/canvas/style/course.css
2011-11-11 00:20:13 +01:00
Eloy Lafuente (stronk7) d59df6582b Merge branch 'MDL-29808' of git://github.com/timhunt/moodle
Conflicts:
	question/type/upgrade.txt

There were already one just added upgrade.txt file so this ended
conflicting. Reviewed the contents, I've deleted the less detailed
note about pluginname, leaving the longer description added by Tim.

Ciao :-)
2011-11-10 21:54:36 +01:00
Eloy Lafuente (stronk7) 47c6991a8e Merge branch 'MDL-29945' of git://github.com/timhunt/moodle 2011-11-10 21:47:22 +01:00
Tim Hunt 226b312472 MDL-29808 qtypes: use standard pluginname strings and update version.php
AMOS BEGIN
 MOV [calculated,qtype_calculated],[pluginname,qtype_calculated]
 MOV [calculated_help,qtype_calculated],[pluginname_help,qtype_calculated]
 MOV [calculated_link,qtype_calculated],[pluginname_link,qtype_calculated]
 MOV [addingcalculated,qtype_calculated],[pluginnameadding,qtype_calculated]
 MOV [editingcalculated,qtype_calculated],[pluginnameediting,qtype_calculated]
 MOV [calculatedsummary,qtype_calculated],[pluginnamesummary,qtype_calculated]

 MOV [calculatedmulti,qtype_calculatedmulti],[pluginname,qtype_calculatedmulti]
 MOV [calculatedmulti_help,qtype_calculatedmulti],[pluginname_help,qtype_calculatedmulti]
 MOV [calculatedmulti_link,qtype_calculatedmulti],[pluginname_link,qtype_calculatedmulti]
 MOV [addingcalculatedmulti,qtype_calculatedmulti],[pluginnameadding,qtype_calculatedmulti]
 MOV [editingcalculatedmulti,qtype_calculatedmulti],[pluginnameediting,qtype_calculatedmulti]
 MOV [calculatedmultisummary,qtype_calculatedmulti],[pluginnamesummary,qtype_calculatedmulti]

 MOV [calculatedsimple,qtype_calculatedsimple],[pluginname,qtype_calculatedsimple]
 MOV [calculatedsimple_help,qtype_calculatedsimple],[pluginname_help,qtype_calculatedsimple]
 MOV [calculatedsimple_link,qtype_calculatedsimple],[pluginname_link,qtype_calculatedsimple]
 MOV [addingcalculatedsimple,qtype_calculatedsimple],[pluginnameadding,qtype_calculatedsimple]
 MOV [editingcalculatedsimple,qtype_calculatedsimple],[pluginnameediting,qtype_calculatedsimple]
 MOV [calculatedsimplesummary,qtype_calculatedsimple],[pluginnamesummary,qtype_calculatedsimple]

 MOV [description,qtype_description],[pluginname,qtype_description]
 MOV [description_help,qtype_description],[pluginname_help,qtype_description]
 MOV [addingdescription,qtype_description],[pluginnameadding,qtype_description]
 MOV [editingdescription,qtype_description],[pluginnameediting,qtype_description]
 MOV [descriptionsummary,qtype_description],[pluginnamesummary,qtype_description]

 MOV [essay,qtype_essay],[pluginname,qtype_essay]
 MOV [essay_help,qtype_essay],[pluginname_help,qtype_essay]
 MOV [essay_link,qtype_essay],[pluginname_link,qtype_essay]
 MOV [addingessay,qtype_essay],[pluginnameadding,qtype_essay]
 MOV [editingessay,qtype_essay],[pluginnameediting,qtype_essay]
 MOV [essaysummary,qtype_essay],[pluginnamesummary,qtype_essay]

 MOV [match,qtype_match],[pluginname,qtype_match]
 MOV [match_help,qtype_match],[pluginname_help,qtype_match]
 MOV [match_link,qtype_match],[pluginname_link,qtype_match]
 MOV [addingmatch,qtype_match],[pluginnameadding,qtype_match]
 MOV [editingmatch,qtype_match],[pluginnameediting,qtype_match]
 MOV [matchsummary,qtype_match],[pluginnamesummary,qtype_match]

 MOV [missingtype,qtype_missingtype],[pluginname,qtype_missingtype]
 MOV [addingmissingtype,qtype_missingtype],[pluginnameadding,qtype_missingtype]
 MOV [editingmissingtype,qtype_missingtype],[pluginnameediting,qtype_missingtype]

 MOV [multianswer,qtype_multianswer],[pluginname,qtype_multianswer]
 MOV [multianswer_help,qtype_multianswer],[pluginname_help,qtype_multianswer]
 MOV [multianswer_link,qtype_multianswer],[pluginname_link,qtype_multianswer]
 MOV [addingmultianswer,qtype_multianswer],[pluginnameadding,qtype_multianswer]
 MOV [editingmultianswer,qtype_multianswer],[pluginnameediting,qtype_multianswer]
 MOV [multianswersummary,qtype_multianswer],[pluginnamesummary,qtype_multianswer]

 MOV [multichoice,qtype_multichoice],[pluginname,qtype_multichoice]
 MOV [multichoice_help,qtype_multichoice],[pluginname_help,qtype_multichoice]
 MOV [multichoice_link,qtype_multichoice],[pluginname_link,qtype_multichoice]
 MOV [addingmultichoice,qtype_multichoice],[pluginnameadding,qtype_multichoice]
 MOV [editingmultichoice,qtype_multichoice],[pluginnameediting,qtype_multichoice]
 MOV [multichoicesummary,qtype_multichoice],[pluginnamesummary,qtype_multichoice]

 MOV [numerical,qtype_numerical],[pluginname,qtype_numerical]
 MOV [numerical_help,qtype_numerical],[pluginname_help,qtype_numerical]
 MOV [numerical_link,qtype_numerical],[pluginname_link,qtype_numerical]
 MOV [addingnumerical,qtype_numerical],[pluginnameadding,qtype_numerical]
 MOV [editingnumerical,qtype_numerical],[pluginnameediting,qtype_numerical]
 MOV [numericalsummary,qtype_numerical],[pluginnamesummary,qtype_numerical]

 MOV [random,qtype_random],[pluginname,qtype_random]
 MOV [random_help,qtype_random],[pluginname_help,qtype_random]
 MOV [editingrandom,qtype_random],[pluginnameediting,qtype_random]

 MOV [shortanswer,qtype_shortanswer],[pluginname,qtype_shortanswer]
 MOV [shortanswer_help,qtype_shortanswer],[pluginname_help,qtype_shortanswer]
 MOV [shortanswer_link,qtype_shortanswer],[pluginname_link,qtype_shortanswer]
 MOV [addingshortanswer,qtype_shortanswer],[pluginnameadding,qtype_shortanswer]
 MOV [editingshortanswer,qtype_shortanswer],[pluginnameediting,qtype_shortanswer]
 MOV [shortanswersummary,qtype_shortanswer],[pluginnamesummary,qtype_shortanswer]

 MOV [truefalse,qtype_truefalse],[pluginname,qtype_truefalse]
 MOV [truefalse_help,qtype_truefalse],[pluginname_help,qtype_truefalse]
 MOV [truefalse_link,qtype_truefalse],[pluginname_link,qtype_truefalse]
 MOV [addingtruefalse,qtype_truefalse],[pluginnameadding,qtype_truefalse]
 MOV [editingtruefalse,qtype_truefalse],[pluginnameediting,qtype_truefalse]
 MOV [truefalsesummary,qtype_truefalse],[pluginnamesummary,qtype_truefalse]
AMOS END
2011-11-10 19:12:30 +00:00
Tim Hunt 646791794d MDL-29808 qformats: use standard pluginname string and add version.php
AMOS BEGIN
 MOV [aiken,qformat_aiken],[pluginname,qformat_aiken]
 MOV [aiken_help,qformat_aiken],[pluginname_help,qformat_aiken]
 MOV [aiken_link,qformat_aiken],[pluginname_link,qformat_aiken]
 MOV [blackboard,qformat_blackboard],[pluginname,qformat_blackboard]
 MOV [blackboard_help,qformat_blackboard],[pluginname_help,qformat_blackboard]
 MOV [blackboard_six,qformat_blackboard_six],[pluginname,qformat_blackboard_six]
 MOV [blackboard_six_help,qformat_blackboard_six],[pluginname_help,qformat_blackboard_six]
 MOV [examview,qformat_examview],[pluginname,qformat_examview]
 MOV [examview_help,qformat_examview],[pluginname_help,qformat_examview]
 MOV [gift_help,qformat_gift],[pluginname_help,qformat_gift]
 MOV [gift_link,qformat_gift],[pluginname_link,qformat_gift]
 MOV [learnwise,qformat_learnwise],[pluginname,qformat_learnwise]
 MOV [learnwise_help,qformat_learnwise],[pluginname_help,qformat_learnwise]
 MOV [missingword,qformat_missingword],[pluginname,qformat_missingword]
 MOV [missingword_help,qformat_missingword],[pluginname_help,qformat_missingword]
 MOV [missingword_link,qformat_missingword],[pluginname_link,qformat_missingword]
 MOV [multianswer,qformat_multianswer],[pluginname,qformat_multianswer]
 MOV [multianswer_help,qformat_multianswer],[pluginname_help,qformat_multianswer]
 MOV [multianswer_link,qformat_multianswer],[pluginname_link,qformat_multianswer]
 MOV [webct_help,qformat_webct],[pluginname_help,qformat_webct]
 MOV [webct_link,qformat_webct],[pluginname_link,qformat_webct]
 MOV [xhtml,qformat_xhtml],[pluginname,qformat_xhtml]
 MOV [xhtml_help,qformat_xhtml],[pluginname_help,qformat_xhtml]
 MOV [xhtml_link,qformat_xhtml],[pluginname_link,qformat_xhtml]
 MOV [xml_help,qformat_xml],[pluginname_help,qformat_xml]
 MOV [xml_link,qformat_xml],[pluginname_link,qformat_xml]
AMOS END
2011-11-10 19:12:28 +00:00
Tim Hunt 75a31c9039 MDL-29808 qbehaviours: update to use ->dependencies in version.php 2011-11-10 19:12:25 +00:00
Tim Hunt 828788f03b MDL-29945 plugin management: don't show Uninstall links for required plugins. 2011-11-10 19:11:24 +00:00
Eloy Lafuente (stronk7) 8f1a0d21cb MDL-28277 scorm report - set interaction as standard + version component 2011-11-10 16:55:54 +01:00
Eloy Lafuente (stronk7) cff6d78a7b Merge branch 'MDL-30027' of git://github.com/mouneyrac/moodle 2011-11-10 01:58:57 +01:00
Eloy Lafuente (stronk7) b01095d1e0 Merge branch 'MDL-30043' of git://github.com/mouneyrac/moodle 2011-11-10 01:49:56 +01:00
Eloy Lafuente (stronk7) af85aa7bb6 Merge branch 'MDL-29931' of git://github.com/mouneyrac/moodle 2011-11-10 01:43:07 +01:00
Eloy Lafuente (stronk7) 9fc402e47d Merge branch 'MDL-28426' of git://github.com/timhunt/moodle 2011-11-10 01:32:01 +01:00
Eloy Lafuente (stronk7) f3bf5eba51 Merge branch 'MDL-30145' of git://github.com/timhunt/moodle 2011-11-10 00:25:45 +01:00
Eloy Lafuente (stronk7) 3c37f0adbc Merge branch 'MDL-30158-master' of git://github.com/ankitagarwal/moodle 2011-11-10 00:22:13 +01:00
Eloy Lafuente (stronk7) 7ca578dea9 Merge branch 'w44_MDL-30148_m22_guestpass' of git://github.com/skodak/moodle 2011-11-09 23:59:02 +01:00
Eloy Lafuente (stronk7) d64cb2fb73 Merge branch 'w44_MDL-30131_m22_enrolcaching' of https://github.com/skodak/moodle 2011-11-09 23:47:01 +01:00
Sam Hemelryk e3dfd1a1d9 Merged branch 'w44_MDL-29030_m22_reports' of git://github.com/skodak/moodle.git with conflict resolution 2011-11-10 10:15:50 +13:00
David Mudrak 241d9463de MDL-29798 Final clean-up before submitting for the integration review 2011-11-09 22:08:09 +01:00
Sam Hemelryk 7d99144e83 Merge branch 'w44_MDL-30150_m22_pagetypefrankenstyle' of git://github.com/skodak/moodle 2011-11-10 09:41:38 +13:00
Eloy Lafuente (stronk7) ff64599f25 Merge branch 'w44_MDL-29897_m22_upgradetxt' of git://github.com/skodak/moodle 2011-11-09 16:35:57 +01:00
Eloy Lafuente (stronk7) b5b99e0b7a NOBUG: Whitespace fixes 2011-11-09 16:32:30 +01:00
Eloy Lafuente (stronk7) 3fa5cb0bea Merge branch 'MDL-27542b' of git://github.com/rwijaya/moodle 2011-11-09 15:55:07 +01:00
Aparup Banerjee b965ee236c Merge branch 'MDL-29620-workshop-sequence' of git://github.com/mudrd8mz/moodle 2011-11-09 17:55:04 +08:00
Eloy Lafuente (stronk7) c4bdf6b2d4 Merge branch 'w44_MDL-30151_m22_initialforumsubscribe' of git://github.com/skodak/moodle 2011-11-09 10:05:40 +01:00
Sun Zhigang 29a9ba9130 MDL-29656 Fix bad string reference 2011-11-09 16:47:16 +08:00
Eloy Lafuente (stronk7) 7654b7bbc1 Merge branch 'MDL-28277-master' of git://github.com/ankitagarwal/moodle 2011-11-09 09:43:18 +01:00
Ankit Kumar Agarwal f9ab70a908 MDL-28277 Changing optional_param to optional_param_array 2011-11-09 13:29:26 +05:30
Dan Poltawski 39b7715099 MDL-29696 mod/data - fixed page continuing after footer. 2011-11-09 15:42:07 +08:00
Sun Zhigang 81bb0556d9 MDL-29722 - No default guest enrol instance for requested courses 2011-11-09 15:20:00 +08:00
Aparup Banerjee 024f0f7374 Merge branch 'MDL-29977-mnet-masquerade' of git://github.com/mudrd8mz/moodle 2011-11-09 13:40:24 +08:00
Sam Hemelryk 3c0c2bf080 MDL-27622 theme_mymobile: Pre-integration clean up 2011-11-09 18:18:41 +13:00
Aparup Banerjee 92f6c2eb7f Merge branch 'MDL-30021' of git://github.com/timhunt/moodle 2011-11-09 12:19:20 +08:00
Aparup Banerjee 097ba12ba0 Merge branch 'MDL-29058' of git://github.com/timhunt/moodle 2011-11-09 11:29:45 +08:00
Dan Poltawski 2d7ad201ac MDL-29812 partcipiant report - breaks when filtering by user 2011-11-09 11:17:17 +08:00
Aparup Banerjee 5b653c75dd Merge branch 'wip-MDL-24200-master' of git://github.com/phalacee/moodle 2011-11-09 11:05:32 +08:00
Mary Evans 4db41cbdcf MDL-25511-theme_canvas tidy up CORE css files 2011-11-09 02:22:36 +00:00
Eloy Lafuente (stronk7) b7830daba1 Merge branch 'master_MDL-29159' of git://github.com/danmarsden/moodle 2011-11-09 02:20:26 +01:00
Eloy Lafuente (stronk7) 0a9ed36c9e Merge branch 'master_MDL-30146' of git://github.com/danmarsden/moodle 2011-11-09 02:13:38 +01:00
Eloy Lafuente (stronk7) ec25a72c4d Merge branch 'master_MDL-27036' of git://github.com/danmarsden/moodle 2011-11-09 02:03:25 +01:00
Eloy Lafuente (stronk7) df087b865b Merge branch 'master_MDL-30041' of git://github.com/danmarsden/moodle 2011-11-09 01:34:08 +01:00
Eloy Lafuente (stronk7) e7ec46fc59 MDL-28277 SCORM some whitespace and MOODLE_INTERNAL fixes 2011-11-09 01:30:51 +01:00
Eloy Lafuente (stronk7) 253b3231b9 Merge branch 'MDL-28277-master' of git://github.com/ankitagarwal/moodle 2011-11-09 01:20:06 +01:00
Dan Poltawski c1733742c6 MDL-29803 report/logs - don't retrieve all users uncessarily
Also remove uncessary retrieval of idnumber

Helps display the main logs page on large sites without running out of
memory
2011-11-09 00:49:36 +01:00
David Mudrak 9faf837fc0 Moved CSS into the base theme to make the UI friendly in all themes by default 2011-11-08 23:58:10 +01:00
David Mudrak 37065c2e06 MDL-29793 Advanced grading forms attached to activity modules can be restored now 2011-11-08 23:33:40 +01:00
Colin Chambers e3ab75de2b MDL-30185 reduce height of true/false question type fields 2011-11-08 16:18:07 +00:00
David Mudrak 9b553d472e MDL-29793 Advanced grading forms attached to activity modules are included in the backup now 2011-11-08 16:25:58 +01:00
Aparup Banerjee 98901d3ea9 Merge branch 'MDL-29739' of git://github.com/timhunt/moodle 2011-11-08 20:34:41 +08:00
Eloy Lafuente (stronk7) 8f76418516 MDL-20534 lti: added missing MOODLE_INTERNAL checks 2011-11-08 12:09:49 +01:00
Aparup Banerjee 3c905de59d Merge branch 'MDL-29970' of git://github.com/timhunt/moodle 2011-11-08 16:48:59 +08:00
David Mudrak 3e5e7004c5 Merge pull request #24 from marinaglancy/wip-nov08-rubric 2011-11-08 00:23:45 -08:00
Aparup Banerjee 3730e077fc Merge branch 'wip-mdl-27521-master' of git://github.com/phalacee/moodle 2011-11-08 15:18:22 +08:00
Aparup Banerjee 3a21e47829 Merge branch 'wip-mdl-27790-modified' of git://github.com/rajeshtaneja/moodle 2011-11-08 14:50:16 +08:00
Marina Glancy c97933ffa3 MDL-30161: link from gradebook (grading analysis) only appears now in Grader report but for all items; in User report the link under activity name contains userid 2011-11-08 14:09:50 +08:00
Aparup Banerjee 7e63edc42f Merge branch 'MDL-30135' of git://github.com/timhunt/moodle 2011-11-08 11:43:49 +08:00
Aparup Banerjee d4bdd01bd2 Merge branch 'MDL-30137' of git://github.com/timhunt/moodle 2011-11-08 11:37:59 +08:00
Rajesh Taneja 687f512d88 MDL-27790 Backup: Added warning message to let user know that temporary course will be created for restoration process 2011-11-08 11:37:48 +08:00
Rajesh Taneja 416128379f MDL-27790 Backup: temperory course will be deleted in case of exception and cancellation of restore process 2011-11-08 11:37:43 +08:00
Aparup Banerjee 5d788e38ff MDL-30154 Repositories : fixed whitespace. 2011-11-08 11:29:31 +08:00
Aparup Banerjee 7a3a8fd0c5 Merge branch 'MDL-30154_master_wip' of git://github.com/grabs/moodle 2011-11-08 11:15:01 +08:00
Eloy Lafuente (stronk7) 419c4f54c5 MDL-20534 lti: comments cleanup 2011-11-08 03:36:26 +01:00
Marina Glancy 8545f86cc9 Fixed small bug in displaying locked outcomes in assignment grade form 2011-11-08 10:34:23 +08:00
Eloy Lafuente (stronk7) 64ce589b39 MDL-20534 lti: various fixes 2011-11-08 03:31:44 +01:00
Marina Glancy 71380f2f14 MDL-30061: advanced grading evaluation freezes now if grade is locked or overriden 2011-11-08 10:06:33 +08:00
Eloy Lafuente (stronk7) b9fbe554ef MDL-20534 lti: fix settings page, needs more work (B12) 2011-11-08 02:29:24 +01:00
Marina Glancy 050125d47e fixed bug that appeared when teacher grades student with a rubric for the first time 2011-11-08 09:15:42 +08:00
Eloy Lafuente (stronk7) 5f1362550f MDL-20534 lti: reformat queries and fix some errors 2011-11-08 02:12:39 +01:00
Eloy Lafuente (stronk7) c69bd1af4f MDL-20534 lti: various fixes to add/update_instance() 2011-11-08 02:11:53 +01:00
David Mudrak bb50c37651 MDL-30162 The grading method can be selected when creating new instance of the activity module 2011-11-08 01:54:36 +01:00
Sam Hemelryk ee16b8af34 Merge branch 'MDL-25823' of git://github.com/rwijaya/moodle 2011-11-08 13:10:00 +13:00
David Mudrak b2c16c6e51 Files embedded into the form description are now served by the core itself
The grading form description is in the core scope so it should be served
by the core, not by the plugin.
2011-11-08 01:06:47 +01:00
Sam Hemelryk 195ad02f4a Merge branch 'wip-MDL-30059-master' of git://github.com/phalacee/moodle 2011-11-08 13:00:00 +13:00
Eloy Lafuente (stronk7) 7fdee5b643 MDL-20534 lti: add component and set lti module as core one 2011-11-08 00:55:59 +01:00
Eloy Lafuente (stronk7) 3bc4f6336b MDL-20534 lti: fix last whitespace issues + borked lang file 2011-11-08 00:36:00 +01:00
Eloy Lafuente (stronk7) b5d68e50a6 MDL-20534 lti: A7, delete some unused/empty files 2011-11-08 00:01:01 +01:00
Sam Hemelryk 3e4fb0cf81 Merge branch 'MDL-30044-master' of git://github.com/ankitagarwal/moodle 2011-11-08 11:58:10 +13:00
Eloy Lafuente (stronk7) b1e9a121c9 MDL-20534 lti: fix some errors introduced by myself in the cleanup 2011-11-07 23:41:05 +01:00
Eloy Lafuente (stronk7) 6c64e8ac17 MDL-20534 lti: B3, A6, apply new external icons support to lti (MDL-30175) 2011-11-07 23:40:52 +01:00
Eloy Lafuente (stronk7) 5e1f727df7 MDL-20534 lti: B3, revert old outputlib hack for external icons 2011-11-07 23:35:58 +01:00
David Mudrak b02b7c5add MDL-30111 Rubric - reordered English strings by stringid 2011-11-07 23:23:38 +01:00
Martin Dougiamas de2eb195fe MDL-30111 Rubric - some English strings rewording 2011-11-07 23:19:51 +01:00
Sam Hemelryk daa1ed26cf Merge branch 'MDL-30175' of git://github.com/stronk7/moodle 2011-11-08 10:57:54 +13:00
Eloy Lafuente (stronk7) c443a1cdb6 MDL-30175 cm_info - add support to external url icon images 2011-11-07 22:14:13 +01:00
Andrew Robert Nicols 2a420f5cd4 MDL-30042: Sanitize httpwwwroot in mnet jump 2011-11-07 14:35:46 +00:00
Tony Levi bce6b3c70a MDL-24577: Fix mark all posts in this discussion read doesn't work completely correct 2011-11-07 12:59:26 +00:00
David Mudrak 903198de7b Merge pull request #23 from marinaglancy/wip-nov07-rubric 2011-11-07 04:47:29 -08:00
Tim Hunt 4a84c94bec MDL-30135 question formats: trans_format/get_format should be public.
They need to be used by third-party qtype developers.
2011-11-07 11:31:27 +00:00
Andrew Robert Nicols 7633f4b55b MDL-30165: Make repository file extension check case insensitive 2011-11-07 11:14:19 +00:00
Rossiani Wijaya d52777b486 MDL-27542 calendar export: fixed the following:
1. changing auth token to use user id instead of username
2. add fall back checking for old url
3. remove yui functionality to generate calendar url
4. add missing variable
5. fixed usercontext instance
2011-11-07 17:07:00 +08:00
Petr Skoda 274a7d3701 MDL-29030 add block page type upgrade 2011-11-07 09:13:51 +01:00
Marina Glancy 188e840b99 MDL-29481: when student is being regraded we try to pick up the latest saved but not submitted version of grading
There are no visible changes yet because at the moment rubric is only saved when it is submitted but this is a base for AJAX saving
2011-11-07 15:55:08 +08:00
Jason Fowler 483239087c MDL24200 - Admin Users - Changing the submit button to just a button to prevent it from taking focus when entering text. (Patch provided by Hubert Chathi) 2011-11-07 15:29:11 +08:00
Marina Glancy 13926e735d MDL-30159: fixed bug: When evaluating by advanced grading extra entries are inserted in grading_instances 2011-11-07 14:37:58 +08:00
Aparup Banerjee e88c193fb0 MDL-28670 webservice : added dimming of service name in security keys page if webservice is disabled or not on authorised list to access webservice. 2011-11-07 14:21:40 +08:00
Chris Scribner 5de15b83cc MDL-20534 lti: Replacing <<< strings with normal multi-line strings. 2011-11-07 01:05:42 -05:00
Ankit Kumar Agarwal 9e07e9a782 MDL-30158 Questions Cleaning up blackboard/format.php 2011-11-07 11:11:04 +05:30
Mark Nielsen 92d0dd9fb8 MDL-30059: Assignment Submission Notification Should Use Teacher's Timezone Rather Than Server Time 2011-11-07 13:32:49 +08:00
Marina Glancy ffbf4370a2 MDL-30023: rubric editor usability - automatically set scores for added levels 2011-11-07 13:07:43 +08:00
Marina Glancy 2d41a9115b Fixed small bug resulting in a warning message when creating new rubric 2011-11-07 13:07:30 +08:00
Eloy Lafuente (stronk7) a55c361955 MDL-20534 lti: various fixes 2011-11-06 22:05:35 -05:00
Eloy Lafuente (stronk7) fabd4fcf53 MDL-20534 lti: A4, add some todos towards unified Oauth 2011-11-06 22:05:11 -05:00
Eloy Lafuente (stronk7) fccacaa785 MDL-20534 lti: A2, cleanup upgrade and moodle1 conversion 2011-11-06 22:03:55 -05:00
Eloy Lafuente (stronk7) ea04a9f989 MDL-20534 lti: A3, coding style + some scope, constructors 2011-11-06 22:02:26 -05:00
Chris Scribner e27cb316aa MDL-20534 lti: A3, whitespace fixes (Changes by stronk7) 2011-11-06 22:00:40 -05:00
Chris Scribner 61eb12d4df MDL-20534 lti: A3, copyright and DOS lf fixed 2011-11-06 21:51:06 -05:00
Chris Scribner a0ba4ec675 Add unsupported service support. 2011-11-06 20:42:03 -05:00
Chris Scribner d8d0412168 Updating SSL settings & configuration for the LTI plugin. 2011-11-06 20:42:03 -05:00
Chris Scribner 55e89adf4d Adding securetoolurl and secureicon fields 2011-11-06 20:42:02 -05:00
Chris Scribner 1d4f052e46 Update role checking to check course role if module is not available 2011-11-06 20:42:02 -05:00
Chris Scribner 16cac56633 Fixing the method used to get LTI roles 2011-11-06 20:42:02 -05:00
Chris Scribner 6d462df856 Adding the ability to edit the LTI icon URL 2011-11-06 20:42:01 -05:00
Chris Scribner feb30fd891 Only consider configured tools when receiving LTI web service calls 2011-11-06 20:42:01 -05:00
Chris Scribner 558be8fcef Adding a comment about the ext_submit button 2011-11-06 20:42:00 -05:00
Chris Scribner 58e3a4f371 Preventing column names from wrapping on the instructor add tool page. 2011-11-06 20:42:00 -05:00
Chris Scribner c4d80efeb6 More work on the tool return page to help the user get the tool configured. 2011-11-06 20:42:00 -05:00
Chris Scribner 9d57ad1737 Fix a bug introduced recently that broke launches (adding the return url after signing). Trim the launch URL to prevent signature errors. 2011-11-06 20:41:59 -05:00
Chris Scribner 3dd9ca2430 Some bug fixing & mostly done with help message when an unsigned request doesn't work. 2011-11-06 20:41:59 -05:00
Chris Scribner 020eea1be8 Updating web service verification method to work for LTI messages that don't send a source id.
Adding extension so other plugins can handle LTI web service calls.
2011-11-06 20:41:59 -05:00
Chris Scribner d66865d95b Fixing a coding error. 2011-11-06 20:41:58 -05:00
Chris Scribner a390d4537c Leaving a little more room beneath embedded object so it doesn't get cut off on some themes. 2011-11-06 20:41:58 -05:00
Chris Scribner c07aec164f Implementing custom LTI icon support 2011-11-06 20:41:57 -05:00
Chris Scribner 57836e2403 Adding storage for overriding the instance specific icon. 2011-11-06 20:41:57 -05:00
Chris Scribner 57d1dffd38 Implementing the return URL.
Still needs some help text when an error occurs.
2011-11-06 20:41:57 -05:00
Chris Scribner 60bd82f61d Tested grade reading and deleting. Fixed bugs. 2011-11-06 20:41:56 -05:00
Chris Scribner 3ff01b2fb7 Adding the lis_outcome_service_url to the launch 2011-11-06 20:41:56 -05:00
Chris Scribner 5e078d62c6 Refactoring some code to use constants and deleting old services 2011-11-06 20:41:56 -05:00
Chris Scribner f17f49595c If no launch URL is specified, launch to the base URL of the tool. 2011-11-06 20:41:55 -05:00
Chris Scribner 67ddf8472b Removing some unused code. 2011-11-06 20:41:55 -05:00
Chris Scribner 32c079dc1a Updating LTI backup / restore 2011-11-06 20:41:54 -05:00
Chris Scribner cca9d3f769 Updating launch container for mobile devices 2011-11-06 20:41:54 -05:00
Chris Scribner f4f711d79b Updating LTI submission viewer 2011-11-06 20:41:54 -05:00
Chris Scribner a35626f9bc Adding warning icon 2011-11-06 20:41:53 -05:00
Chris Scribner b26dc53cca Adding help icons 2011-11-06 20:41:53 -05:00
Chris Scribner 795dff011f Updates to get the plugin to work side-by-side with the basicLTI plugin 2011-11-06 20:41:53 -05:00
Chris Scribner 7023b65ef5 Favor course tools over global tools 2011-11-06 20:41:52 -05:00
Chris Scribner 16e8f13084 Improving the experience of instructor managed tool types 2011-11-06 20:41:52 -05:00
Chris Scribner 606ab1a13e A couple bugfixes related to instructor defined tools 2011-11-06 20:41:51 -05:00
Chris Scribner 6831c7cd4b LTI plugin updates. Finishing support of course level plugins. 2011-11-06 20:41:51 -05:00
Chris Scribner b69dc42951 Fixing a couple issues with grade receipt 2011-11-06 20:41:51 -05:00
Chris Scribner 996b0fd961 Updates to lti plugin & progress on instructor management of course tools. 2011-11-06 20:41:50 -05:00
Chris Scribner dbb0fec9fd Renaming global functions to include lti prefix 2011-11-06 20:41:50 -05:00
Chris Scribner b9b2e7bbf8 Adding oauth body code (from Chuck), implemented outcome services (only replaceResult tested) 2011-11-06 20:41:49 -05:00
Chris Scribner aa6eca66df Setting some default parameters when adding an lti instance 2011-11-06 20:41:49 -05:00
Chris Scribner 844afad045 Tool base URLs don't need to start with http(s) 2011-11-06 20:41:49 -05:00
Chris Scribner 879e97bd3b Extracting add/edit type functions for reuse 2011-11-06 20:41:48 -05:00
Chris Scribner 560ed50ca5 Adding a newline 2011-11-06 20:41:48 -05:00
Chris Scribner 57e8c4752a Allowing tools be added even if none exist 2011-11-06 20:41:48 -05:00
Chris Scribner a0eeacf9c7 Fixing issues with launching a tool which is not configured in the admin side, and improving utility methods for determing if a tool should be registered 2011-11-06 20:41:47 -05:00
Chris Scribner f5134df434 Fixing localization string 2011-11-06 20:41:47 -05:00
Chris Scribner a4a07996f0 Implemented admin tool management 2011-11-06 20:41:46 -05:00
Chris Scribner 73300339b0 Renaming plugin to lti from blti 2011-11-06 20:41:46 -05:00
Chris Scribner 0d8afb44ee Removing course id field admin setting, making cmidnumber advanced in instructor interface, wiring up setting to show tool in creation screen 2011-11-06 20:41:46 -05:00
Chris Scribner d97d72aab9 Implemented launch options & fixed issues with frame sizing 2011-11-06 20:41:45 -05:00
Chris Scribner 5f24742f86 Test launch works 2011-11-06 20:41:45 -05:00
Chris Scribner 285f825046 Adjusting layout of editor pages & starting changes of blti properties 2011-11-06 20:41:44 -05:00
Chris Scribner a64b29cf9d Renamed plugin from basiclti to blti 2011-11-06 20:41:44 -05:00
Chris Scribner b7e436b037 Adding basiclti plugin 2011-11-06 20:41:44 -05:00
Dan Marsden 3cfffd8c3e SCORM MDL-27036 increase sessid, improve lang strings 2011-11-07 14:34:13 +13:00
Sam Hemelryk efe41e35c9 MDL-28292 block_html: white space fix 2011-11-07 12:33:18 +13:00
Sam Hemelryk 68bcca4d04 Merge branch 'wip-MDL-28292-master' of git://github.com/phalacee/moodle 2011-11-07 12:24:26 +13:00
Sam Hemelryk a86529bdeb MDL-29864 minify: Added a link to upstream issue being patched 2011-11-07 12:19:57 +13:00
Sam Hemelryk a82a42b6c1 Merge branch 'MDL-29864-master-2' of git://git.luns.net.uk/moodle 2011-11-07 11:58:44 +13:00
Sam Hemelryk 0abe89f7b4 Merge branch 'MDL-29955' of git://github.com/rwijaya/moodle 2011-11-07 11:41:31 +13:00
Andreas Grabs 6543f3cd5b MDL-30154 - WebDAV-Repository fails on some WebDAV-Server 2011-11-06 22:09:11 +01:00
Mary Evans afc7026a57 MDL-30010FIX for pagelayout problems when moving blocks 2011-11-06 19:48:10 +00:00
Petr Skoda bc196cbe21 MDL-30151 finally remove mod/forum:initialsubscriptions and improve perf
The 'mod/forum:initialsubscriptions' was introduced in 1.7 as a workaround for missing enrolment info - the mod_form forum help was not even updated to mention this capability. Now that we have reliable enrolment info we can significantly improve both enrol and unenrol performance. Hopefully majority of users will not miss this capability...
2011-11-06 19:58:16 +01:00
Petr Skoda 2b0e3941e9 MDL-30026 improve session lock acquire timeouts and other minor cleanup
This is partially based on original patch by Tony Levi.
2011-11-06 17:52:15 +01:00
Petr Skoda 4f6bba205d MDL-29030 add report management UI 2011-11-06 12:51:48 +01:00
Petr Skoda bb41c281e9 MDL-29030 add pagetype names 2011-11-06 12:31:17 +01:00
Petr Skoda f621e30b49 MDL-29030 fix report_log paging 2011-11-06 12:22:52 +01:00
Petr Skoda a260c84796 MDL-29030 move user completion reporting to report_completion plugin 2011-11-06 12:22:52 +01:00
Petr Skoda beda8fa8e2 MDL-29030 move user stats reporting to report_stats plugin 2011-11-06 12:22:52 +01:00
Petr Skoda fad8e0248c MDL-29030 move user log reporting to report_log plugin 2011-11-06 12:22:52 +01:00
Petr Skoda 4d00fded9d MDL-29030 migrate outline user reporting to plugin 2011-11-06 12:22:51 +01:00
Petr Skoda f0897f4426 MDL-29030 more css cleanup 2011-11-06 12:22:51 +01:00
Petr Skoda 672281f996 MDL-29030 normalise version numbers in all reports 2011-11-06 12:22:51 +01:00
Petr Skoda 158e9e2af9 MDL-29030 add basic report backup/restore support for course level 2011-11-06 12:22:51 +01:00
Petr Skoda ba50bd3d63 MDL-29030 fix remaining report linking hacks
Please note all plugin references from core should use callbacks, it is not ok to use capabilities or links to plugins because they may not be present in customised installs.
2011-11-06 12:22:50 +01:00
Petr Skoda ffd8bb207e MDL-29030 update completion block to use migrated report 2011-11-06 12:22:50 +01:00
Petr Skoda 635284c42f MDL-29030 update themes to use new report selectors 2011-11-06 12:22:50 +01:00
Petr Skoda cf24e82ed3 MDL-29030 move base CSS to report plugins 2011-11-06 12:22:50 +01:00
Petr Skoda a2a444ab75 MDL-29030 migration and cleanup of stats report
AMOS BEGIN
 MOV [pluginpagetype,coursereport_stats],[pluginpagetype,report_stats]
 MOV [stats:view,coursereport_stats],[stats:view,report_stats]
AMOS END
2011-11-06 12:22:49 +01:00
Petr Skoda bb1377744c MDL-29030 fix broken report settings support 2011-11-06 12:22:49 +01:00
Petr Skoda 033af4b7ba MDL-29030 migrate and cleanup log report
AMOS BEGIN
 MOV [log:view,coursereport_log],[log:view,report_log]
 MOV [log:viewtoday,coursereport_log],[log:viewtoday,report_log]
AMOS END
2011-11-06 12:22:49 +01:00
Petr Skoda 8a8f29c2f5 MDL-29030 new loglive report plugin
AMOS BEGIN
 CPY [log:viewlive,coursereport_log,[loglive:view,report_loglive]
 MOV [livelogs,core],[livelogs,report_loglive]
 CPY [loglive,coursereport_log],[pluginname,report_loglive]
AMOS END
2011-11-06 12:22:49 +01:00
Petr Skoda e20de26278 MDL-29030 minor participation report cleanup 2011-11-06 12:22:48 +01:00
Petr Skoda 3afce1a574 MDL-29030 convert participation report to new report type
AMOS BEGIN
 MOV [participation:view,coursereport_participation],[participation:view,report_participation]
 MOV [pluginpagetype,coursereport_participation],[pluginpagetype,report_participation]
 MOV [pluginname,coursereport_participation],[pluginname,report_participation]
AMOS END
2011-11-06 12:22:48 +01:00
Petr Skoda 8619857d5f MDL-29030 migrate progress report to new type
AMOS BEGIN
 MOV [pluginname,coursereport_progress],[pluginname,report_progress]
 MOV [pluginpagetype,coursereport_progress],[pluginpagetype,report_progress]
 MOV [progress:view,coursereport_progress],[progress:view,report_progress]
AMOS END
2011-11-06 12:22:48 +01:00
Petr Skoda ee6000db2c MDL-29030 fix typos 2011-11-06 12:22:47 +01:00
Petr Skoda 764607014d MDL-29030 minor completion report cleanup 2011-11-06 12:22:47 +01:00
Petr Skoda 13fdaaacc3 MDL-29030 migrate completion report to new report type
AMOS BEGIN
 MOV [completion:view,coursereport_completion],[completion:view,report_completion]
 MOV [completiondate,coursereport_completion],[completiondate,report_completion]
 MOV [pluginpagetype,coursereport_completion],[pluginpagetype,report_completion]
 MOV [pluginname,coursereport_completion],[pluginname,report_completion]
AMOS END
2011-11-06 12:22:47 +01:00
Petr Skoda 3f5389b129 MDL-29030 fix whitespace 2011-11-06 12:22:47 +01:00
Petr Skoda 275cbac71a MDL-29030 migrate outline report to new type
AMOS BEGIN
 MOV [outline:view,coursereport_outline],[outline:view,report_outline]
 MOV [pluginpagetype,coursereport_outline],[pluginpagetype,report_outline]
 MOV [pluginname,coursereport_outline],[pluginname,report_outline]
AMOS END
2011-11-06 12:22:47 +01:00
Petr Skoda d9298dc6fd MDL-29030 standardise report_security 2011-11-06 12:22:46 +01:00
Petr Skoda a54078f684 MDL-29030 standardise report_questioninstances 2011-11-06 12:22:46 +01:00
Petr Skoda fd2af3faea MDL-29030 standardise report_courseoverview 2011-11-06 12:22:46 +01:00
Petr Skoda c3a18edf65 MDL-29030 standardise report_configlog 2011-11-06 12:22:46 +01:00
Petr Skoda 1241d9736c MDL-29030 standardise report_backups 2011-11-06 12:22:45 +01:00
Petr Skoda e30cc24c0d MDL-29030 make admin reports general reports
AMOS BEGIN
 CPY [pluginname,coursereport_log],[pluginname,report_log]
 CPY [pluginname,coursereport_stats],[pluginname,report_stats]
AMOS END
2011-11-06 12:22:45 +01:00
Petr Skoda 2a1ce6a8ed MDL-30150 support frankenstyle in page type callbacks 2011-11-06 11:32:12 +01:00
Petr Skoda 817e396a84 MDL-30148 remember guest access key
Remember password for course guest access and reuse it if the enrol cache is reset. Do not print guest access form when already using guest course access.
2011-11-06 11:00:31 +01:00
Petr Skoda bbfdff344c MDL-30131 improve current user enrol caching 2011-11-06 09:40:06 +01:00
Petr Skoda d4fa91564d fix requires, originally plugins database did not allow proper version there 2011-11-05 12:59:33 +01:00
Petr Skoda 61d821821a stable mod_book release for Moodle 2.1
No more development planned, I am looking for a new maintainer.
2011-11-05 12:54:31 +01:00
Dan Marsden 4388bd45b2 SCORM MDL-30146 AICC - add ability to link direct to a simple AICC url 2011-11-05 21:51:24 +13:00
Dan Marsden ba0e91a281 SCORM MDL-27036 enable AICC HACP 2011-11-05 20:31:01 +13:00
Tim Hunt 9d5687893a MDL-30145 Quiz intro not displayed on the password page 2011-11-04 22:57:17 +00:00
Tim Hunt f484a62984 MDL-30137 question engine: Ugglify the SQL to appease MS SQL server. 2011-11-04 15:02:29 +00:00
sam marshall b849c21255 MDL-26647 (8) Support showuseridentity on enrol screen
Includes support for the table display, plus the AJAX, including search. (The fallback version uses user selector so is already supported.)
2011-11-04 13:57:21 +00:00
sam marshall 02dd3b9fc0 MDL-26647 (7) Support showuseridentity on assignment report 2011-11-04 13:57:19 +00:00
sam marshall e4aec5bed3 MDL-26647 (6) Support showuseridentity on grader report, quiz report, SCORM report 2011-11-04 13:57:17 +00:00
sam marshall 24e14bc7a6 MDL-26647 (5) Support showuseridentity on course and activity completion reports 2011-11-04 13:57:15 +00:00
sam marshall 43aa295b95 MDL-26647 (4) Support showuseridentity on Participants page 2011-11-04 13:57:13 +00:00
sam marshall 1fdc0c6aaa MDL-26647 (3) Support showuseridentity on Browse Users page 2011-11-04 13:57:11 +00:00
sam marshall a1c947bde2 MDL-26647 (2) New lib function get_extra_user_fields and related
get_extra_user_fields to get a list of extra user fields for display (that are permitted for current user in given context). get_extra_user_fields_sql returns the same thing as a SELECT list.

get_user_field_name returns the display name of a user field (basically just get_string($field) except phone1=>phone)
2011-11-04 13:57:10 +00:00
sam marshall 5c60a847f5 MDL-26647 (1) 'extrauserselectorfields' -> 'showuseridentity', add capability
This change:
- Renames the existing setting 'extrauserselectorfields' to 'showuseridentity'
  in preparation for using it in more places. (Upgrade change, new version.)
- Adds a new capability moodle/site:viewuseridentity, now required in order
  to see the extra fields; if you don't have the capability, you don't see them
- Slightly improves the display of extra fields in user selector list; it used
  to be like 'sam marshall, 01234567, email@address' and is now
  'sam marshall [01234567, email@address]' ie the fields are in square
  brackets
- Turns feature on for the group selector - the feature was enabled for other
  user selectors but not for the group selector. Tim did the disable code, he
  thinks this may be to do with more people having access to group selector -
  probably not a problem now it is controlled by capability.
2011-11-04 13:57:08 +00:00
David Mudrak 58c447aef0 MDL-29620 workshop table id sequence reset after the upgrade 2011-11-04 13:58:23 +01:00
David Mudrak 10df8657c1 MDL-29977 MNet does not allow to start a remote session when masquerading as another user 2011-11-04 10:02:19 +01:00
David Mudrak fa4cbd214b Merge pull request #22 from marinaglancy/wip-nov04_1-rubric 2011-11-04 00:42:52 -07:00
Marina Glancy 59be90119e MDL-30023: rubric editor usability - support for tab key and adding multiple levels 2011-11-04 14:58:05 +08:00
Ankit Kumar Agarwal 3ab853fade MDL-28277 SCORM optimising function get_scorm_question_count 2011-11-04 11:27:17 +05:30
Marina Glancy 4f110c471a MDL-30023: rubriceditor usability - skip buttons for reorder and delete in tabindex 2011-11-04 11:30:06 +08:00
Mary Evans 0a52611c5a wip-MDL-22351 convert Anomaly CSS to readable format 2011-11-04 02:37:11 +00:00
AMOS bot 4384a6805b Automatically generated installer lang files 2011-11-04 00:55:28 +00:00
stabijoh 2fd7abbbd7 MDL-27622 integrate mymobile thme into core RC2 2011-11-03 10:59:45 -04:00
David Mudrak 0455c99864 MDL-29920 User report may display the grade analysis link, too
The original idea was to use the link in the row header (the activity
link). However, for both unified user experience and the overall patch
design reasons, I finally decided not to alter the activity link but to
append the analysis icon. The user experience should be the same as in
the grader report.
2011-11-03 13:51:45 +01:00
David Mudrak f17bb885e9 MDL-29920 Grader report does not need to cache grade.php existence flags any more
This caching is now performed by the underlying methods.
2011-11-03 13:50:34 +01:00
David Mudrak eff314b06a MDL-29920 Performance improvements in the gradebook reports
Both methods get_activity_link() and get_grade_analysis_url() now cache
the results of the check whether the activity module provides grade.php
or not. Previously, get_activity_link() called file_exists() in every
call and get_grade_analysis_url() did not check the existence at all.

Note that this solution is still sub-optimal as apparently both methods
do very similar job. This should be refactored one day by a brave
developer who works on gradebook. Meanwhile, even this suboptimal
solution is more effective than the previous one for most courses.
2011-11-03 13:44:41 +01:00
Dan Marsden 7320f48b98 SCORM MDL-29159 - override getContentHtml function in treeview so that it doesn't escape text incorrectly 2011-11-04 00:29:05 +13:00
Tim Hunt de529cd253 MDL-30021 qtype numerical better showunits default when coming from 1.9
This applies to:
1. Upgrade from 1.9,
2. Import of questions exported from 1.9, and
3. Restore of courses backed-up from 1.9.

It also applies to the calculated question type.
2011-11-03 11:27:41 +00:00
Tim Hunt 78fc17ebdf MDL-29058 question export: include files from hints & combined feedback. 2011-11-03 11:27:39 +00:00
Tim Hunt fe5f412104 MDL-29739 question import used a bad default for text formats.
The new logic is that the questiontext defaults to HTML if the format is
not specified, then all other fields default to the same format of the
question text.

However, good practice is that the XML file should specify the format
for each bit of text content.

This code is not 100% backwards-compatible, since some methods have new
arguments, however for question types that have not been updated, it
will just generate a PHP Warning, which is, I think, and OK way to let
qtype developers know that they need to update their question types.
2011-11-03 11:27:37 +00:00
Charles Fulton 8f725ade78 MDL-29970 question preview: Fill correct only if qtype supports it 2011-11-03 11:27:09 +00:00
Tim Hunt bbc8c32174 MDL-28426 qtype base export_to_xml does not write format.
Fix based on Roger Moore's patch.
2011-11-03 11:24:29 +00:00
Petr Skoda 0b7fc76a9c Fix errors in book module during stats execution
closes skodak/moodle-mod_book#20
2011-11-03 11:38:39 +01:00
David Mudrak e14e78abbf Merge pull request #21 from marinaglancy/wip-nov03-rubric
Display warnings if used rubric is being updated and mark instances for regrade
2011-11-03 02:52:53 -07:00
Jason Fowler baf9c832de MDL-28292 - Blocks - Patch supplied by Chris Follin to fix blocks with empty titles that disappear when docked 2011-11-03 16:18:39 +08:00
Marina Glancy 0136124e21 MDL-30112: marking rubric filling instances for regrading
- If a used rubric being updated, teacher (moderator) is notified
- If the changes are significant, all instances automatically marked for regrade
- if the changes are minor (texts, options or sortorder), teacher can choose whether to mark for regrade or not
- The instances marked for regrade can be re-graded but students are not able to see the rubric
- when grading a message appears if the instance is marked for regrade and is not visible to students
2011-11-03 16:08:36 +08:00
Petr Skoda ee362526f8 MDL-29897 Update upgrade.txt files 2011-11-03 08:11:55 +01:00
Ankit Kumar Agarwal ef6b3ba159 MDL-29035 Backups making email match case-insensitive when restoring backups 2011-11-03 10:18:15 +05:30
Rossiani Wijaya 548a878bec MDL-25823 lesson mod: fixed true and false question feedback. 2011-11-03 12:47:53 +08:00
Ankit Kumar Agarwal e46cef0b64 MDL-30044 SCORM documenting function scorm_report_list 2011-11-03 07:51:43 +05:30
Ankit Kumar Agarwal b2f5ce3526 MDL-28277 SCORM Polishing codes 2011-11-03 07:46:08 +05:30
Dan Marsden 3297bb1add MDL-28277 SCORM remove whitespace from patch 2011-11-03 07:46:05 +05:30
Dan Marsden 49ff0cf349 MDL-28277 MDL-30009 fix for started on/last accessed on dates for users with no attempts. 2011-11-03 07:46:03 +05:30
Ankit Kumar Agarwal 769a621dc0 MDL-28277 small bug fixes
modified:   mod/scorm/report/interactions/report.php
	modified:   mod/scorm/report/interactions/responsessettings_form.php
	modified:   mod/scorm/report/reportlib.php
2011-11-03 07:46:01 +05:30
Ankit Kumar Agarwal 35540ec537 MDL-28277 Adding course context to format_Strings 2011-11-03 07:45:59 +05:30
Ankit Kumar Agarwal 7def307d1a MDL-28277 removed IN from sql statments 2011-11-03 07:45:57 +05:30
Ankit Kumar Agarwal 3b1e85a143 MDL-28277 formating codes 2011-11-03 07:45:55 +05:30
Ankit Kumar Agarwal b84b783f6c MDL-28277 Small fixes 2011-11-03 07:45:52 +05:30
Ankit Kumar Agarwal c03d2b753e MDL-28277 Added function to find question count 2011-11-03 07:45:50 +05:30
Ankit Kumar Agarwal 1135979696 MDL-28277 Basic Skeleton update
modified:   mod/scorm/report/interactions/report.php
2011-11-03 07:45:48 +05:30
Ankit Kumar Agarwal 8fb40a45fb MDL-28277 First Version push of the interactions plugin
new file:   mod/scorm/report/interactions/lang/en/scormreport_interactions.php
	new file:   mod/scorm/report/interactions/report.php
	new file:   mod/scorm/report/interactions/responsessettings_form.php
	new file:   mod/scorm/report/interactions/version.php
2011-11-03 07:45:46 +05:30
Ankit Kumar Agarwal b7afad0e17 MDL27522 First version Push
modified:   mod/scorm/report.php
	new file:   mod/scorm/reportuser.php

MDL-27522 SCORM Reports-remove users report to seperate files for better re-use

	modified:   mod/scorm/reportuser.php

MDL-27522 SCORM Reports validated reportuser.php

	modified:   mod/scorm/report.php
	modified:   mod/scorm/reportuser.php

MDL-27522 SCORM REPORT - updating reportuser.php to use MUST_EXIST parameter

	modified:   mod/scorm/lang/en/scorm.php
	modified:   mod/scorm/reportuser.php

MDL-27522 SCORM Reports- Cleaning of codes
	modified:   mod/scorm/report.php
	modified:   mod/scorm/reportuser.php

MDL-27522 SCORM Reports- update formating

	modified:   mod/scorm/report.php
	modified:   mod/scorm/reportuser.php

MDL-27522 SCORM Reports removed unwanted codes from reportuser.php

	modified:   mod/scorm/reportuser.php

MDL-27522 Scorm Reports - optimising codes

	modified:   mod/scorm/report.php
	modified:   mod/scorm/reportuser.php

MDL-27522 Scorm Reports-Formating report.php
	modified:   mod/scorm/report.php

MDL-27522 Scorm Reporting - removing unsed variables

	modified:   mod/scorm/lang/en/scorm.php
	modified:   mod/scorm/report.php
	modified:   mod/scorm/reportuser.php

MDL-27522 SCORM Reporting - Renaming reportuser.php to userreport.php
	new file:   mod/scorm/userreport.php

MDL-27522 SCORM Reporting - deleting old reportuser.php

	deleted:    mod/scorm/reportuser.php

MDL-27522 Scorm Reporting - updated version number

MDL-27522 Scorm Reporting - Discarding version changes

MDL-27523 Scorm Reporting - Basic reporting plugin
	new file:   mod/scorm/report/basic/lang/en/scorm_basic.php
	new file:   mod/scorm/report/basic/report.php
	new file:   mod/scorm/report/default.php
	new file:   mod/scorm/report/reportlib.php

MDL-27523 Scorm Reporting - Database Table structure pushed
	new file:   mod/scorm/db/subplugins.php

MDL-27523 Scorm Reporting - Plugin container codes
	modified:   mod/scorm/report.php
	modified:   mod/scorm/tabs.php

MDL-27523 Scorm Reporting - Capability update
	modified:   mod/scorm/report/reportlib.php

MDL-27523 Scorm Reporting - commenting files
	modified:   mod/scorm/report/basic/db/install.php
	modified:   mod/scorm/report/basic/lang/en/scorm_basic.php
	modified:   mod/scorm/report/basic/version.php

MDL-27523 Scorm Reporting - Formating codes
	modified:   mod/scorm/report/basic/db/install.php
	modified:   mod/scorm/report/basic/report.php
	modified:   mod/scorm/report/basic/version.php
	modified:   mod/scorm/report/default.php
	modified:   mod/scorm/report/reportlib.php

MDL-27523 Scorm Reporting - fixing small bugs
	modified:   mod/scorm/report/basic/report.php

MDL-27523 Scorm Reporting - added databse upgrade code to scorm/db/upgrade.php

MDL-27523 Scorm Reporting - small optimisations

MDL-27523 SCorm Reporting - Removing Mod.php

MDL-27523 Scorm Reporting - Minor Fixes

	new file:   mod/scorm/db/subplugins.php
	modified:   mod/scorm/lang/en/scorm.php
	modified:   mod/scorm/report.php
	new file:   mod/scorm/report/basic/db/install.php
	new file:   mod/scorm/report/basic/lang/en/scorm_basic.php
	new file:   mod/scorm/report/basic/report.php
	new file:   mod/scorm/report/basic/version.php
	new file:   mod/scorm/report/default.php
	new file:   mod/scorm/report/reportlib.php
	modified:   mod/scorm/tabs.php
	modified:   mod/scorm/userreport.php

	modified:   mod/scorm/db/install.xml
	new file:   mod/scorm/db/subplugins.php
	modified:   mod/scorm/db/upgrade.php
	modified:   mod/scorm/lang/en/scorm.php
	modified:   mod/scorm/report.php
	new file:   mod/scorm/report/basic/db/install.php
	new file:   mod/scorm/report/basic/lang/en/scorm_basic.php
	new file:   mod/scorm/report/basic/report.php
	new file:   mod/scorm/report/basic/version.php
	new file:   mod/scorm/report/default.php
	new file:   mod/scorm/report/reportlib.php
	modified:   mod/scorm/tabs.php
	modified:   mod/scorm/userreport.php
	modified:   mod/scorm/version.php

MDL-27523 Scorm Reporting - Removing Database Refereneces

MDL-27523 Scorm Reporting - Updating structure to remove DB usage
	modified:   mod/scorm/db/upgrade.php
	modified:   mod/scorm/report.php
	modified:   mod/scorm/report/basic/report.php
	modified:   mod/scorm/report/default.php
	modified:   mod/scorm/report/reportlib.php

MDL-27523 Scorm Reporting - Minor fixes

MDL-27523 Scorm Reporting - Formating codes

MDL-27523 Scorm Reporting - Foramting Codes
	modified:   mod/scorm/report/basic/lang/en/scorm_basic.php
	modified:   mod/scorm/report/basic/report.php
	modified:   mod/scorm/report/default.php
	modified:   mod/scorm/report/reportlib.php

	new file:   mod/scorm/db/subplugins.php
	modified:   mod/scorm/lang/en/scorm.php
	modified:   mod/scorm/report.php
	new file:   mod/scorm/report/basic/lang/en/scorm_basic.php
	new file:   mod/scorm/report/basic/report.php
	new file:   mod/scorm/report/basic/version.php
	new file:   mod/scorm/report/default.php
	new file:   mod/scorm/report/reportlib.php
	modified:   mod/scorm/tabs.php
	modified:   mod/scorm/userreport.php
	modified:   mod/scorm/version.php
2011-11-03 07:45:43 +05:30
Eloy Lafuente (stronk7) 8778398293 MDL-30057 plugins - glossary/data new filters made 1st-class citizens 2011-11-03 02:51:17 +01:00
AMOS bot 5b82b2d827 Automatically generated installer lang files 2011-11-03 00:55:24 +00:00
David Mudrak dd736a87ee Replaced deprecated get_system_context() with the new context_system::instance() 2011-11-02 23:35:05 +01:00
David Mudrak d6d341d09b Merge remote branch 'origin/master' into rubric
Conflicts:
	lib/db/upgrade.php
	version.php
2011-11-02 23:17:08 +01:00
David Mudrak 9e3d352dee Improved handling of occupied target issue
If the target area already contains a form, we can't pick anything to
use there. If the user works in two windows or there are several
teachers modifying the same course, it can happen that the form suddenly
appears in the target area while we have the form picker still open. In
such case, we simply redirects the user to the target area instead of
displaying the pooky exception.
2011-11-02 22:29:47 +01:00
David Mudrak 9e4eb676e4 MDL-29483 The list of gradable areas is now obtained from the module
At the moment, only activity modules are supported.
2011-11-02 22:25:32 +01:00
David Mudrak 967d346f72 MDL-29794 It is now possible to re-use a form without sharing it as a template
The patch also improves displaying tags-like status information next to
the grading form titles.
2011-11-02 21:57:24 +01:00
Eloy Lafuente (stronk7) 735de1c276 weekly release 2.2dev 2011-11-02 19:52:31 +01:00
Eloy Lafuente (stronk7) 77c5a59017 Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-11-02 19:48:26 +01:00
Eloy Lafuente (stronk7) 799be36820 MDL-29213 - add clarification note + todo once MDL-30039 arrives 2011-11-02 19:07:52 +01:00
David Mudrak ce7f5c8d3b Merge pull request #20 from marinaglancy/wip-nov02-rubric 2011-11-02 03:41:12 -07:00
Marina Glancy 63b9a6d07d MDL-29920: grade.php in assignment now can show submission/feedback for a particular user (also when submission did not exist yet) 2011-11-02 11:13:14 +01:00
Marina Glancy 6184b84393 MDL-30037: fixed bug with grade calculation 2011-11-02 11:38:00 +08:00
Marina Glancy 0e2a1d755a MDL-29482: error message is displayed to graders if grading form is unavailable 2011-11-02 11:12:02 +08:00
Marina Glancy 3599b113a6 MDL-29482, MDL-29794, MDL-30037: supporting form status in rubriceditor and forms sharing; fixed bug with grade calculation 2011-11-02 10:45:32 +08:00
Jerome Mouneyrac 2b8fe35b65 MDL-30043 token.php should not return a mix of EXTERNAL_TOKEN_PERMANENT and EXTERNAL_TOKEN_EMBEDDED 2011-11-02 09:38:02 +08:00
Marina Glancy 2ae7faf128 MDL-29482: added validation to rubric editor and the 'work in progress' status 2011-11-02 09:12:58 +08:00
Marina Glancy 37f391f00a MDL-29481: added css border around selected rubric level 2011-11-02 09:04:14 +08:00
Marina Glancy 156d6f4876 MDL-29920: now complete report properly calls view_feedback in assignment 2011-11-02 09:04:01 +08:00
Dan Marsden 2f717fcc20 SCORM MDL-30041 fix case of string 2011-11-02 09:42:29 +13:00
David Mudrak bb17ac1e32 MDL-29920 Gradebook grader report now supports grade analysis link
When grade analysis link is enabled, an icon is displayed next to each
grade of a module that supports grade.php file. The parameters needed to
identify the particular user and grade are passed to the grade.php
script.
2011-11-01 20:53:48 +01:00
Eloy Lafuente (stronk7) 5fbf87c802 Merge branch 'MDL-29879' of git://github.com/timhunt/moodle 2011-11-01 20:12:45 +01:00
Eloy Lafuente (stronk7) 313e048981 MDL-29283 import TCPDF to 5.9.133 - clean whitespace 2011-11-01 20:09:10 +01:00
Dan Marsden a5ba44f93c MDL-29213 - fix for bug with flash player and IE 9
(cherry-picked and amended with 1-line whitespace)
2011-11-01 19:59:05 +01:00
David Mudrak 25ab1d50e2 MDL-29920 The link from gradebook back to the activity contains itemnumber
The activity module must have a chance to display appropriate grades
report per itemnumber. Most activity modules have just one grade items
si they can ignore the param. Complex modules like the Workshop need this.
2011-11-01 18:18:45 +01:00
David Mudrak 49a537b356 MDL-29482 The rubric editor is now able to save the status of the form definition 2011-11-01 18:04:31 +01:00
Eloy Lafuente (stronk7) e785b0f3ca MDL-29283 import TCPDF to 5.9.133 - fix permissions 2011-11-01 17:27:26 +01:00
Eloy Lafuente (stronk7) e686d11257 Merge branch 'w43_MDL-29283_m22_tcpdf' of git://github.com/skodak/moodle 2011-11-01 17:23:20 +01:00
David Mudrak 4d064218fb MDL-29794 Rename templates.php back to pick.php
We will need the general management page implemented in a separate
script. This one will be used for picking an existing form only.
2011-11-01 16:30:17 +01:00
David Mudrak 3f3ee7114e MDL-29794 Do not offer re-sharing of unmodified forms
The patch introduces a new field 'timecopied' that holds the timestamp
of when the given form was cloned last time. Using this field, we can
decide whether the form can be actually re-shared or not.

Note that the logic just hides the icon. It is meant as a usability
feature, not any real protection from sharing.
2011-11-01 16:10:12 +01:00
David Mudrak 86e9ccfd92 MDL-29794 Shared grading form templates can be deleted now
There is a new capability to manage all shared templates. Without this
capability, the user is allowed to delete just templates they previously
shared.

In the future, an option to edit the template directly might be added.
At the moment, the workaround is to pick the template into a temporary
assignment, edit it there and re-save it as a new template.
2011-11-01 14:05:11 +01:00
David Mudrak 7622ae95dc MDL-29108 Improved support for form definition status
Every grading form can be basically in either DRAFT state (currently
being edited) or READY state (available for usage). For shared
templates, the status is not relevant at the moment and they are
automatically in the READY state.
2011-11-01 12:32:06 +01:00
Eloy Lafuente (stronk7) 302f45e8de Merge branch 'w43_MDL-29982_m22_canaccess' of git://github.com/skodak/moodle 2011-11-01 12:26:31 +01:00
Tim Hunt 78f8261f6e MDL-29879 qbehaviour missing. Fix bad lang string. 2011-11-01 10:37:48 +00:00
Jerome Mouneyrac f4a75854b7 MDL-30027 support no options + fix wrong param validation call 2011-11-01 15:22:28 +08:00
Aparup Banerjee ddba89cc2a Merge branch 'w43_MDL-30005_m22_uri' of git://github.com/skodak/moodle 2011-11-01 15:18:44 +08:00
Petr Skoda 0775152ff0 MDL-30005 regression fix for non http/ftp urls 2011-11-01 07:56:33 +01:00
Aparup Banerjee 203683e415 Merge branch 'MDL-29983' of git://github.com/timhunt/moodle 2011-11-01 13:23:03 +08:00
Sam Hemelryk 21e7d4c5fc MDL-28720 calendar: Quick fix of a regression in set.php 2011-11-01 17:50:01 +13:00
Sam Hemelryk f94d606f1f Merge branch 'w43_MDL-29964_m22_fixenrolevents' of git://github.com/skodak/moodle 2011-11-01 17:36:50 +13:00
Aparup Banerjee d29f4e055d Merge branch 'w43_MDL-29990_m22_navcontinue' of git://github.com/skodak/moodle 2011-11-01 12:15:40 +08:00
Aparup Banerjee b68c077632 Merge branch 'MDL-29787' of git://github.com/lazydaisy/moodle 2011-11-01 12:00:57 +08:00
Sam Hemelryk 5f3abf0a42 Merge branch 'w43_MDL-29980_m22_flowcss' of git://github.com/skodak/moodle 2011-11-01 16:52:02 +13:00
Sam Hemelryk 6ab6630b87 Merge branch 'MDL-29164' of git://github.com/timhunt/moodle 2011-11-01 16:47:16 +13:00
Gerwood Stewart 2388e7ca7d MDL-27521 Updates the can_finalize and can_unfinalize methods to deal with passing a submission object that isn't one (in this case is a Boolean value). This will result in both methods now returning false. Kick on effect is that it corrects the bug described in MDL-27521 by removing the button if it isn't possible to finalize the submission. 2011-11-01 11:35:39 +08:00
Sam Hemelryk bc454be746 Merge branch 'MDL-29197' of git://github.com/lazydaisy/moodle 2011-11-01 16:11:58 +13:00
Sam Hemelryk c189b664ae Merge branch 'MDL-25760' of git://github.com/lazydaisy/moodle 2011-11-01 15:56:55 +13:00
David Mudrak 20836db999 MDL-29794 Initial support for re-using a shared grading form
The patch introduces a new script templates.php that allows to search
for a previously shared form (template) and re-use it.

The patch also modifies the preview rendering of grading forms. Now
plugins are responsible for rendering the form itselft, without any
headers, descriptions etc (we need to embed the form preview into
various places so the caller looks after the frame).
2011-11-01 03:16:54 +01:00
AMOS bot 98ab317bc7 Automatically generated installer lang files 2011-11-01 00:55:16 +00:00
Sam Hemelryk 5a866c3634 Merge branch 'w43_MDL-29925_m22_calendar' of git://github.com/skodak/moodle 2011-11-01 09:38:24 +13:00
Tim Hunt a49e92a4e9 MDL-29164 question import, missing lang string.
AMOS BEGIN
 MOV [noquestionsinfile,mod_quiz],[noquestionsinfile,question]
AMOS END
2011-10-31 15:35:07 +00:00
Aparup Banerjee d1e82ba966 Merge branch 'w43_MDL-29922_m22_smarty' of git://github.com/skodak/moodle 2011-10-31 17:19:14 +08:00
Aparup Banerjee c84f4700ec Merge branch 'w43_MDL-29921_m22_qti2' of git://github.com/skodak/moodle 2011-10-31 17:08:32 +08:00
Aparup Banerjee ae44df3c43 Merge branch 'w43_MDL-29972_m22_langreset' of git://github.com/skodak/moodle 2011-10-31 16:10:00 +08:00
Aparup Banerjee c2c7d8715d Merge branch 'w43_MDL-29966_m22_grouploading' of git://github.com/skodak/moodle 2011-10-31 16:05:12 +08:00
Rossiani Wijaya 51803fd113 MDL-29955: filestorage/file_types: add support for .f4v, .m4v and .webm 2011-10-31 15:26:25 +08:00
Aparup Banerjee b6d2f5b266 Merge branch 'w43_MDL-29984_m22_enroltoday' of git://github.com/skodak/moodle 2011-10-31 15:25:55 +08:00
Aparup Banerjee b2851c8ded MDL-30005 URL : fixed typos 2011-10-31 15:12:45 +08:00
Aparup Banerjee 2636126f89 Merge branch 'w43_MDL-30005_m22_uri' of git://github.com/skodak/moodle 2011-10-31 14:13:46 +08:00
Sam Hemelryk 703912cd5e Merge branch 'w43_MDL-29883_m22_mp3player' of git://github.com/skodak/moodle 2011-10-31 18:02:03 +13:00
Sam Hemelryk d0464f3875 Merge branch 'w43_MDL-29824_m22_enrolmax' of git://github.com/skodak/moodle 2011-10-31 17:59:11 +13:00
Sam Hemelryk 0b49b6daa7 Merge branch 'w43_MDL-28720_m22_calendarreturn' of git://github.com/skodak/moodle 2011-10-31 17:28:57 +13:00
Sam Hemelryk 5e255d5ad8 Merge branch 'MDL-27919' of git://github.com/jamiepratt/moodle 2011-10-31 17:18:13 +13:00
Sam Hemelryk 243e3dd130 Merge branch 'MDL-29810' of git://github.com/bostelm/moodle 2011-10-31 17:11:08 +13:00
Sam Hemelryk 1fe368530f Merge branch 'MDL-29994' of git://github.com/stronk7/moodle 2011-10-31 16:53:24 +13:00
Jerome Mouneyrac dab3977a54 MDL-29931 remove unneeded join and selects 2011-10-31 10:57:06 +08:00
Aparup Banerjee 046391ea11 Merge branch 'w43_MDL-29923_m22_removesearch' of git://github.com/skodak/moodle 2011-10-31 10:23:59 +08:00
Sam Hemelryk 70f43a4789 Merge branch 'MDL-29993' of git://github.com/stronk7/moodle 2011-10-31 15:19:31 +13:00
Sam Hemelryk 01dc193786 Merge branch 'MDL-29992' of git://github.com/stronk7/moodle 2011-10-31 14:56:06 +13:00
Mary Evans ab9d5899b8 MDL-29197 FIX for content displacment when clicking anchor elements in course page 2011-10-31 01:43:17 +00:00
Sam Hemelryk a6d832f022 Merge branch 'MDL-29978' of git://github.com/stronk7/moodle 2011-10-31 13:51:07 +13:00
Sam Hemelryk cdf30a11a8 Merge branch 'MDL-30006-workshop-grades' of git://github.com/mudrd8mz/moodle 2011-10-31 13:06:10 +13:00
Sam Hemelryk 81ad059658 Merge branch 'master_MDL-28559' of git://github.com/danmarsden/moodle 2011-10-31 12:59:35 +13:00
Sam Hemelryk 75dab90e3d Merge branch 'master_MDL-29965' of git://github.com/danmarsden/moodle 2011-10-31 12:55:57 +13:00
Sam Hemelryk ad7592f32b Merge branch 'master_MDL-30009' of git://github.com/danmarsden/moodle 2011-10-31 12:47:21 +13:00
Sam Hemelryk 385f30f7a7 Merge branch 'MDL-29898-master-1' of git://git.luns.net.uk/moodle 2011-10-31 12:44:05 +13:00
Petr Skoda b615a0bf9a MDL-30005 bump up version after lang string change 2011-10-30 23:53:26 +01:00
Petr Skoda 48f69e418c MDL-30005 fix general URI support in URL module
The recent change completely removed support for general URIs and enforced strict URL validation which was breaking backwards compatibility and was not user friendly at all.

This patch finally adds full URI support with basic validation and fixes some older xhtml strict issues.

Please note we do not try to explain the difference between URL and URI to our users. Also keep in mind that mod/url has XSS risk and does not do any security validation of the data.
2011-10-30 23:53:17 +01:00
Dan Marsden 503dfba895 SCORM MDL-30009 fix issue with started on/last accessed when iterating through users. 2011-10-31 11:04:20 +13:00
David Mudrak 8df95cf7f4 MDL-30006 Workshop / Number of errors grading: force graders to actually answer the form
QuickForms do not distinguish non-checked radio from the checked radio
with the value "0". So we map the database grade value "0" to a value
"-1" when displaying the form and vice versa when saving the form. This
allowed us to have none radios checked by default and force the grader
to actually answer the form themselves, using the 'required' rule.
2011-10-30 20:17:54 +01:00
David Mudrak 60a3e801f3 MDL-30006 Workshop / Accumulative grading: force graders to actually pick a grade
This patch introduces a new hidden field with the value "-1". The grade
selectors are compared with this values and must be greater than it.
This should fit well for numerical grades with the range 0..x and scale
items with the range 1..x.
2011-10-30 20:17:50 +01:00
Petr Skoda 9ccb37ad8b MDL-29824 bump up version after new lang string 2011-10-30 13:35:12 +01:00
Petr Skoda 78c5042e06 MDL-29824 improve notification of max number of enrolled users 2011-10-30 13:34:23 +01:00
Petr Skoda 0f14c8273e MDL-29982 fixed missing $userid
Thanks Eloy!
2011-10-30 10:53:42 +01:00
Eloy Lafuente (stronk7) 775051a3e9 MDL-29994 filters - prevent mod/data and mod/glossary to be re-added 2011-10-30 02:35:59 +01:00
Eloy Lafuente (stronk7) 350f973d38 MDL-29993 filters - new filter/data filter replacement for legacy mod/data/filter. 2011-10-30 02:33:11 +02:00
Eloy Lafuente (stronk7) 9ff8c803be MDL-29992 filters - move related css from mod/glossary to filter/glossary 2011-10-29 19:02:22 +02:00
Eloy Lafuente (stronk7) d307a1a70d MDL-29992 filters - move js popup from mod/glossary to filter/glossary
This commit moves the js popup to the new location of the filter. Also
it fixes one bug, with the js processing also glossary category links
leading to error, so now the categories are working again.
2011-10-29 19:02:07 +02:00
Eloy Lafuente (stronk7) 85a69ce123 MDL-29992 filters - new filter/glossary filter replacement for legacy mod/glossary/filter. 2011-10-29 17:50:58 +02:00
Petr Skoda 563329e84c MDL-29990 fix syntax error 2011-10-29 09:59:49 +02:00
Petr Skoda 1344b0ca7f MDL-29982 improve can_access_course()
Hopefully faster and more accurate.
2011-10-29 09:45:54 +02:00
Petr Skoda d0a0db4275 MDL-29283 import TCPDF to 5.9.133
There seem to be some problems with unicode chars unfortunately, hopefully real life documents will not hit them...
2011-10-29 08:56:26 +02:00
Dan Marsden 61c347cc73 SCORM MDL-29965 improve display of SCORM package - decrease unecessary padding 2011-10-29 15:28:09 +13:00
Petr Skoda eb59a448f7 MDL-28720 fix set.php return url handling 2011-10-28 19:35:04 +02:00
Petr Skoda 581e8dba38 MDL-29925 improve redirect url cleanup 2011-10-28 19:32:07 +02:00
Petr Skoda 44ac4f62de MDL-29972 make sure lang dir exists before writing into it 2011-10-28 16:05:52 +02:00
Petr Skoda 96bf0b3af4 MDL-29966 fix invalid group loading image
Credit goes to Alexander Bias.
2011-10-28 15:49:13 +02:00
Petr Skoda 18382a85fe MDL-29980 fix rules typo
Credit goes to Paul Nicholls.
2011-10-28 15:21:02 +02:00
Petr Skoda 4f500c259c MDL-29984 fix undefined $today when no course start date 2011-10-28 15:11:42 +02:00
Petr Skoda 0c2701fd6d MDL-29964 fix order of events triggered by enrolment 2011-10-28 14:57:42 +02:00
Tim Hunt d68f4d8b9f MDL-29983 fix question_type::local_name 2011-10-28 13:38:33 +01:00
Petr Skoda 63017358c5 MDL-29922 remove outdated unused Smarty lib 2011-10-28 10:38:30 +02:00
Petr Skoda 2dc54611f2 MDL-29921 remove unmaintained qti_two export question type
It can be easily included in official distribution again if somebody fixes it because there are no stored data, capabilities or versions. This will finally allow us to drop the outdate Smarty library form distribution package.
2011-10-28 10:32:24 +02:00
Petr Skoda f68cef22b9 MDL-29923 remove all traces of experimental global search
Hopefully it will be replaced by something fully functional soon, see http://moodle.org/mod/forum/discuss.php?d=189023
2011-10-28 10:20:00 +02:00
Petr Skoda 8d588844e9 MDL-29883 remove unused mp3player 2011-10-28 09:17:31 +02:00
AMOS bot d818b933a3 Automatically generated installer lang files 2011-10-28 00:55:37 +00:00
Mary Evans 1bc21356fc MDL-25760 FIX for highlighted current topic section 2011-10-28 01:30:26 +01:00
Eloy Lafuente (stronk7) 3f123d9227 MDL-29978 install - dependencies must be checked against disk (target) versions 2011-10-28 01:41:04 +02:00
Mary Evans aa1639680f MDL-29787 FIX to remove sprite hover image from single menu item 2011-10-28 00:21:23 +01:00
Andreas Grabs 9c5bc7a580 MDL-29804 - Clean up Feedback modules coding style 2011-10-28 00:30:42 +02:00
Henning Bostelmann 4ac9f47051 MDL-29810 Assignment grading: don't include teachers in list of students 2011-10-27 22:16:03 +01:00
David Mudrak 18dd4a69d0 Merge remote branch 'origin/master' into rubric
Conflicts:
	lib/db/upgrade.php
2011-10-27 21:58:45 +02:00
Eloy Lafuente (stronk7) 38e9a1cc79 weekly release 2.2dev 2011-10-27 18:51:29 +02:00
Eloy Lafuente (stronk7) d2822153b0 Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-10-27 18:48:55 +02:00
Petr Skoda 8d1da74863 MDL-29474 fix undefined release, phpdocs and one TODO 2011-10-27 15:07:34 +02:00
Petr Skoda 2dfef18842 MDL-29474 tell AMOS we have a new install string 2011-10-27 14:36:20 +02:00
Petr Skoda c1f55426ee MDL-29474 fix cli upgrade regression 2011-10-27 14:04:19 +02:00
Petr Skoda 72081a6f75 MDL-29474 add env and plugin test to cli db install 2011-10-27 13:56:22 +02:00
Petr Skoda f433088d5a MDL-29474 fix regressions in CLI install 2011-10-27 13:55:41 +02:00
David Mudrak 72e48ad28f Merge pull request #17 from marinaglancy/wip-rubricrenderer-rubric
Better rendering of the rubrics, rubric display options
2011-10-26 23:47:29 -07:00
AMOS bot 4ca17ac303 Automatically generated installer lang files 2011-10-27 00:55:29 +00:00
Sam Hemelryk 7b27861217 Merge branch 'MDL-29912' of git://github.com/stronk7/moodle 2011-10-27 12:57:21 +13:00
Eloy Lafuente (stronk7) 86e00f970b MDL-29912 course search - oracle inabilities with concats, empties, nulls and type-restrictions 2011-10-26 19:04:31 +02:00
Eloy Lafuente (stronk7) 85819105a6 Merge branch 'w42_MDL-29688_m22_enrol' of git://github.com/skodak/moodle 2011-10-26 11:40:01 +02:00
Petr Skoda dcb9a0c1f1 MDL-29688 rewrite complex joins to be compatible with MySQL
Unfortunately MySQL does not handle complex EXISTS queries properly…
2011-10-26 11:35:42 +02:00
Eloy Lafuente (stronk7) 75d9479f8b MDL-29474 plugin dependencies: version minibump 2011-10-26 10:34:28 +02:00
Eloy Lafuente (stronk7) 10dd4995da Merge branch 'MDL-29474' of git://github.com/timhunt/moodle 2011-10-26 10:33:37 +02:00
Marina Glancy 39c6f4b625 MDL-29482, MDL-29481: better rendering, options for rubric display 2011-10-26 11:36:29 +08:00
Aparup Banerjee a0b10b271f Merge branch 'MDL-29854_b' of git://github.com/timhunt/moodle 2011-10-26 11:23:09 +08:00
Dan Marsden da69510f2a MDL-28559 - hide send for marking button from people that are enrolled but don't have capability to submit files - displays the same way as teachers/admins - keeps ability to display previously submitted files if they exist 2011-10-26 10:59:13 +13:00
Eloy Lafuente (stronk7) 036f27a420 Merge branch 'w42_MDL-29670_m22_croncleanup' of git://github.com/skodak/moodle 2011-10-25 23:51:10 +02:00
Sam Hemelryk e6369d951c Merge branch 'MDL-29569' of git://github.com/rwijaya/moodle 2011-10-26 10:44:41 +13:00
Dan Poltawski 10aeaf0f74 MDL-26568 block_online_users - reporting incorrect number of users
When over 50 users were online the count used in the listing was incorrect
2011-10-25 23:34:46 +02:00
Sam Hemelryk 462a064cf0 Merge branch 'MDL-29716' of git://github.com/mouneyrac/moodle 2011-10-26 10:21:35 +13:00
Petr Skoda 4332cc468c MDL-29670 add more timeout resets 2011-10-25 22:07:04 +02:00
Stephen Bourget d31a1ad808 MDL-29368 Assignment: Fixed a fatal error caused by a missing include 2011-10-25 19:19:02 +02:00
Eloy Lafuente (stronk7) f65cd7f46c Merge branch 'w42_MDL-29918_m22_accesslibdocs' of git://github.com/skodak/moodle 2011-10-25 17:47:09 +02:00
Eloy Lafuente (stronk7) 35454bd55d Merge branch 'MDL-29815' of git://github.com/timhunt/moodle 2011-10-25 17:43:51 +02:00
Eloy Lafuente (stronk7) 44a9630623 MDL-29815 dbtest - added one test_get_records_sql_complicated related test 2011-10-25 17:37:34 +02:00
Eloy Lafuente (stronk7) 94da1daf40 Merge branch 'w42_MDL-29866_m22_setupinit' of git://github.com/skodak/moodle 2011-10-25 16:41:11 +02:00
Eloy Lafuente (stronk7) a7fc769154 Merge branch 'w42_MDL-29914_m22_codesniffer' of git://github.com/skodak/moodle 2011-10-25 16:34:04 +02:00
Eloy Lafuente (stronk7) bad48c0cbc MDL-29881 pear/console/getopt - deleting one more occurrence 2011-10-25 16:21:35 +02:00
Eloy Lafuente (stronk7) 980dfc5720 Merge branch 'w42_MDL-29881_m22_profiling' of git://github.com/skodak/moodle 2011-10-25 16:17:40 +02:00
Tim Hunt bed495578f MDL-29854 questions: display better message and more useful continue
when an error occurs in the middle of processing responeses.
2011-10-25 14:49:57 +01:00
Petr Skoda 99ddfdf4c4 MDL-29918 improve accesslib inline docs 2011-10-25 14:20:22 +02:00
Eloy Lafuente (stronk7) 1bf0076e83 Merge branch 'w42_MDL-29882_m22_overlib' of git://github.com/skodak/moodle 2011-10-25 13:27:09 +02:00
Petr Skoda 9845bd201f MDL-29914 remove unused CodeSniffer lib 2011-10-25 09:14:29 +02:00
Petr Skoda 41701ffd2d MDL-29866 fix p tags and more docs 2011-10-25 08:54:30 +02:00
Rossiani Wijaya b43251b846 MDL-29569: lesson_mod: in matching type questions, fixed and set default value for scoring and fixed jump page setting when response text is set to empty 2011-10-25 12:22:02 +08:00
Sam Hemelryk 1c3bd9b3ff Merge branch 'MDL-28718' of git://github.com/timhunt/moodle 2011-10-25 16:47:20 +13:00
Jerome Mouneyrac 5b9735b949 MDL-29716 Make token more flexible to support third party client - also fix issue with some code not matching the way the server authenticate/authorize token, missing iprestriction/validuntil for restricted users (there are iprestriction/validiuntil on token and on restricted user). Also add missing check when the user is not listed in the authorised list. 2011-10-25 11:17:18 +08:00
Sam Hemelryk e6acc5518b MDL-29106 white space clean up 2011-10-25 15:28:52 +13:00
Sam Hemelryk d040ea8893 Merge branch 'wip-MDL-29231-master' of git://github.com/phalacee/moodle 2011-10-25 15:19:45 +13:00
Marina Glancy 8722a322db MDL-29794: fixed bug with description cloning 2011-10-25 09:49:10 +08:00
Sam Hemelryk 6327bf8f2b Merge branch 'w42_MDL-29444_m22_iframe' of git://github.com/skodak/moodle 2011-10-25 14:28:53 +13:00
Sam Hemelryk 44d10ad002 Merge branch 'w42_MDL-29688_m22_enrol' of git://github.com/skodak/moodle 2011-10-25 14:02:20 +13:00
Marina Glancy 8df55bbe6a MDL-29481: rubric renderer now uses tables for smoother layout 2011-10-25 08:57:56 +08:00
Marina Glancy fc5adc3b5d MDL-29481: phpdocs in renderer, renamed the main CSS class for rubric 2011-10-25 08:57:56 +08:00
Sam Hemelryk 9d9d8e17eb Merge branch 'MDL-29902' of git://git.luns.net.uk/moodle 2011-10-25 13:10:43 +13:00
Eloy Lafuente (stronk7) 9bfe68bff8 Merge branch 'MDL-29339_b' of git://github.com/timhunt/moodle 2011-10-25 01:53:51 +02:00
Eloy Lafuente (stronk7) dc83f5b006 Merge branch 'w42_MDL-28627_m22_kses' of git://github.com/skodak/moodle 2011-10-25 01:42:48 +02:00
Sam Hemelryk 6f59dd1a8b Merge branch 'MDL-29906' of git://github.com/timhunt/moodle 2011-10-25 12:25:28 +13:00
Eloy Lafuente (stronk7) 4ecbf079b5 Merge branch 'w42_MDL-29671_m22_odbc' of git://github.com/skodak/moodle
Conflicts:
	lib/thirdpartylibs.xml
2011-10-25 01:21:09 +02:00
Eloy Lafuente (stronk7) e1595b32dc Merge branch 'w42_MDL-29863_m22_extendsorder' of git://github.com/skodak/moodle 2011-10-25 01:01:10 +02:00
Sam Hemelryk 9c99c3df46 Merge branch 'w42_MDL-29862_m22_fullmeinit' of git://github.com/skodak/moodle 2011-10-25 11:49:25 +13:00
Sam Hemelryk 2d94084463 Merge branch 'MDL-29825' of git://github.com/mouneyrac/moodle 2011-10-25 11:46:51 +13:00
Sam Hemelryk c486d7f2d8 Merge branch 'MDL-29459' of git://github.com/mouneyrac/moodle 2011-10-25 11:45:58 +13:00
Sam Hemelryk 2336a84333 MDL-29106 webservices: Minor whitespace cleanup 2011-10-25 11:43:53 +13:00
Sam Hemelryk b8b594843c Merge branch 'MDL-29106' of git://github.com/mouneyrac/moodle 2011-10-25 11:42:40 +13:00
Eloy Lafuente (stronk7) e4950b6cf0 Merge branch 'w42_MDL-29867_m22_author' of git://github.com/skodak/moodle 2011-10-24 23:14:31 +02:00
Eloy Lafuente (stronk7) 1272091a6c Merge branch 'w42_MDL-29878_m22_typo3' of git://github.com/skodak/moodle 2011-10-24 23:04:54 +02:00
Eloy Lafuente (stronk7) 918ecf1754 Merge branch 'w42_MDL-29880_m22_geoip' of git://github.com/skodak/moodle 2011-10-24 23:03:11 +02:00
David Mudrak 01609c9ad9 Merge remote branch 'origin/master' into rubric
Conflicts:
	lib/db/upgrade.php
	version.php
2011-10-24 22:13:01 +02:00
David Mudrak 8b9ada5e19 Merge remote branch 'github/rubric' into rubric 2011-10-24 21:02:56 +02:00
David Mudrak 9c9cee4e33 Simplified manage.php initialization
For now, we support activity modules only anyway.
2011-10-24 21:02:05 +02:00
David Mudrak d1bc817832 Merge pull request #16 from marinaglancy/wip-MDL-29483-rubric
MDL-29483: advanced grading methods support on assignment module, grading
2011-10-24 11:59:08 -07:00
Eloy Lafuente (stronk7) a4f6cc2fc7 Merge branch 'w42_MDL-29887_m22_swfobject' of git://github.com/skodak/moodle 2011-10-24 18:25:52 +02:00
Eloy Lafuente (stronk7) b64188cd97 Merge branch 'w42_MDL-29884_m22_base32' of git://github.com/skodak/moodle 2011-10-24 18:03:42 +02:00
Eloy Lafuente (stronk7) e9296e6177 Merge branch 'w42_MDL-29885_m22_csshover' of git://github.com/skodak/moodle 2011-10-24 17:50:27 +02:00
Petr Skoda 22d7cede55 MDL-29887 add forgotten flashvars
Thanks Eloy!
2011-10-24 17:43:05 +02:00
Tim Hunt 442a3c0b62 MDL-29906 quiz statistics report: replace use of deprectaed helpbutton. 2011-10-24 16:19:46 +01:00
Dan Poltawski e52a8ebdd2 MDL-29902: Course contacts display cleanup
This fixes warnings in course description when searching courses with
users assigned multiple display roles. It cleans up inconsistent behaviour
which I noticed whilst fixing the bug. Now course search and course listing
use the same logic to display users.
2011-10-24 15:52:35 +01:00
Eloy Lafuente (stronk7) f3b6463506 Merge branch 'w42_MDL-29886_m22_md5js' of git://github.com/skodak/moodle 2011-10-24 16:51:53 +02:00
Andrew Robert Nicols 3b3b8c6b0b MDL-29898: Fix documentation for CLI DB only installer 2011-10-24 12:31:16 +01:00
Tim Hunt deef04a44e MDL-29339 Manually cast objects to string before calling dmllib. 2011-10-24 11:08:10 +01:00
Andrew Robert Nicols ffd5e66e0e MDL-29864: Port a patch from upstream minify project to handle spaces in font-family names
No upstream release of minify with this patch included is available yet, so
I've ported just the relevant part of the fixing commit.
2011-10-24 10:48:05 +01:00
Aparup Banerjee 0e03740fc8 Merge branch 'MDL-29542' of git://github.com/rwijaya/moodle 2011-10-24 17:05:17 +08:00
Aparup Banerjee 64fcc674f9 Merge branch 'MDL-29828' of git://github.com/timhunt/moodle 2011-10-24 16:39:17 +08:00
Aparup Banerjee ef0aa7ba5c MDL-29527 RSS : improved language string. 2011-10-24 15:50:58 +08:00
Aparup Banerjee 9809413bba Merge branch 'MDL-29527' of git://git.luns.net.uk/moodle 2011-10-24 15:37:14 +08:00
Aparup Banerjee 5117a3d789 Merge branch 'MDL-29619-master' of git://github.com/ankitagarwal/moodle 2011-10-24 14:21:39 +08:00
Marina Glancy fc05f22204 MDL-29483: allow the grading instance to exist without itemid until submitting (submission in assignment might not yet existed) 2011-10-24 13:36:51 +08:00
Marina Glancy ed709412c2 MDL-29108: support for returnurl in rubriceditor 2011-10-24 13:36:42 +08:00
Marina Glancy 5060997ba5 MDL-29481: added support for remarks in rubric feedback 2011-10-24 13:36:33 +08:00
Aparup Banerjee b077de82f9 Merge branch 'MDL-29646-master' of git://github.com/ankitagarwal/moodle 2011-10-24 13:26:28 +08:00
Aparup Banerjee c11ccbfd8b Merge branch 'MDL-29818-master' of git://git.luns.net.uk/moodle 2011-10-24 11:36:07 +08:00
Jerome Mouneyrac 5d1017e11d MDL-29106 new web service naming convention 2011-10-24 11:06:00 +08:00
Petr Skoda 3df93d6d88 MDL-29444 use iframe embedding in IE
iframe is back in HTML 5, we can safely use it in IE for all text documents because object embedding has multiple problems
2011-10-23 21:14:04 +02:00
Petr Skoda 379434e440 MDL-29688 add support for status sync in enrol meta plugin 2011-10-23 20:52:10 +02:00
Petr Skoda 804796138a MDL-29688 properly reactivate ext db enrolment 2011-10-23 20:51:39 +02:00
Petr Skoda 358fb4dc06 MDL-29688 fix user enrolment modification event
Fixed invalid event name and usage.
2011-10-23 20:30:33 +02:00
Petr Skoda 2020594f13 MDL-29863 fix order of context and context_helper class definitions
The switched order may create problems in older PHP versions or opt caches. In any case it is more logical to define the classes in this order. Sorry for the trouble.
2011-10-23 12:50:56 +02:00
Petr Skoda 13ae464c0f MDL-29887 remove outdated swfobject
Contrib code can use YUI flash embedding, manual embedding or better switch to JS/HTML 5.
2011-10-23 12:05:44 +02:00
Petr Skoda ae8b7d530f MDL-29886 remove unused md5 js lib 2011-10-23 11:46:50 +02:00
Petr Skoda 60812c3c8b MDL-29885 remove unused csshover 2011-10-23 11:41:36 +02:00
Petr Skoda 8b0f478842 MDL-29884 remove unused base32 lib 2011-10-23 11:35:46 +02:00
Petr Skoda 2dae747629 MDL-29882 finally removing overlib 2011-10-23 10:51:51 +02:00
Petr Skoda c34724de75 MDL-29881 remove old apd profiling
Profiling is now handled via xhprof extension and new profiling UI.
2011-10-23 10:45:35 +02:00
Petr Skoda 5113e342d7 MDL-29880 bump up geoip version
The RC was the same as the final 1.0.0 version.
2011-10-23 10:14:36 +02:00
Petr Skoda 29329a2519 MDL-29878 reapply our typo3 fixes 2011-10-22 21:10:20 +02:00
Petr Skoda 2c5b848872 MDL-29878 import latest Typo3 4.5.0 2011-10-22 21:07:24 +02:00
Petr Skoda 210b9b68d2 MDL-29671 remove unused odbc lib 2011-10-22 20:48:39 +02:00
Petr Skoda 31cd5fe8ef MDL-29867 fix invalid file author 2011-10-22 20:18:11 +02:00
Petr Skoda 50ed196e51 MDL-29670 cron cleanup and minor fixing
Auth and enrol is moved to the top because other plugin types depend on accurate user list and enrolments. Passwords and failed login messages are generated during every cron execution.  Contexts are build properly in each execution. Fixed deleting of unconfirmed users. And minor phpdocs and comments improvements.
2011-10-22 14:31:18 +02:00
Petr Skoda 73b309e6a3 MDL-28627 remove buggy and obsolete KSES cleaning 2011-10-22 09:25:06 +02:00
Andreas Grabs 7e4b0986c8 MDL-29806 - When a Feedback activity is restore the "Site after submit" URL is not updated and shows "$@PAGEVIEWBYID*15463@$" 2011-10-21 23:08:59 +02:00
Petr Skoda f0f8f9a796 MDL-29866 page setup improvements
incorrect PAGE init - it should be done at the very end; redirect() should not use OUTPUT before PAGE init; SITEID should be deprecated in favour of $SITE->id (this is going to cause troubles in tenant switching in CLI, cron and tests); missing "global $SITE"'; minor coding style issues; PHPDocs; it also helps with merging/testing of multitenant patch
2011-10-21 16:35:19 +02:00
Ankit Kumar Agarwal 8077c81f47 MDL-29619 Validate urls before generating output 2011-10-21 14:00:38 +05:30
Petr Skoda d21149699c MDL-29862 incorrect wwwroot must be detected before session start 2011-10-21 09:52:18 +02:00
Jerome Mouneyrac 729ca37388 MDL-29825 better debug info when a ws client user misses a protocol capability 2011-10-21 15:11:38 +08:00
Marina Glancy 9e2eca0fde MDL-29483, MDL-29482 advanced grading in assignment, rubrics editor
- advanced grading plugins now return the grade in the specified range
- prohibited quick grading when advanced grading method is used
- fixed bug in processing description in rubric editor
- some improvements to rubric editor JS
2011-10-21 13:58:52 +08:00
Rossiani Wijaya 05db3cc7e5 MDL-29542 lesson module: changing qtype param type to INT 2011-10-21 12:38:29 +08:00
Tim Hunt 987541952f MDL-29828 quiz review: fix display of overdue time. 2011-10-20 23:16:58 +01:00
Tim Hunt 304f0d850f MDL-29815 question engine DB: bad group-by clause detected by Oracle.
Thanks to Yanfei Lu for finding this and suggesting the fix.
2011-10-20 11:14:14 +01:00
Tim Hunt 777781d16e MDL-29474 plugin dependencies: fix misspelling dependancies. 2011-10-20 11:13:45 +01:00
Tim Hunt 3ba2858853 MDL-29474 admin/index.php consistent use of die(); 2011-10-20 11:13:43 +01:00
Tim Hunt faadd32696 MDL-29474 prevent install/upgrade if plugin dependancies not met. 2011-10-20 11:13:41 +01:00
Tim Hunt cc359566fe MDL-29474 admin index/plugins/environment pages: all ouptut code -> renderer. 2011-10-20 11:13:39 +01:00
Tim Hunt 99e1a8d21b MDL-29474 admin envrionment page: fix boilerplate and indent. 2011-10-20 11:13:37 +01:00
Tim Hunt da2fdc3f34 MDL-29474 update more of the admin code to use the admin renderer. 2011-10-20 11:13:35 +01:00
Tim Hunt 36ca62cab7 MDL-29474 display the dependancy information on the upgrade screen. 2011-10-20 11:13:33 +01:00
Tim Hunt e61aaece64 MDL-29474 pluginlib: rename plugintype_interface to plugin_information.
So that the type acutally tells you what the thing is.
2011-10-20 11:13:31 +01:00
Tim Hunt 0242bdc759 MDL-29474 pluginlib.php: Code to load the dependancy information and make it available. 2011-10-20 11:13:29 +01:00
Tim Hunt 44a7f3840d MDL-29474 fix qtype and qbehaviour plugins to use proper pluginname strings.
But maintain backwards-compatibility for now.
2011-10-20 11:13:27 +01:00
Tim Hunt 6740c6058e MDL-29474 pluginlib.php: fix get_settings_url implimentation. 2011-10-20 11:13:25 +01:00
Tim Hunt 473289a097 MDL-29474 pluginlib.php: refactor the code to eliminate some duplication. 2011-10-20 11:13:23 +01:00
Tim Hunt b8343e68f0 MDL-29474 lib/pluginlib.php improve method names.
I discussed this change with David Mudrak who originally wrote this code, and he agreed.
2011-10-20 11:13:21 +01:00
Tim Hunt c6ba8f28bc MDL-28718 block_quiz_results - add missing require_once. 2011-10-20 11:12:19 +01:00
Tim Hunt 0d46102837 MDL-28718 block_quiz_results - add copyright headers. 2011-10-20 11:12:18 +01:00
Marina Glancy 36937f0264 MDL-29483: advanced grading methods support on assignment module, grading form element, rubrics
- gradingform API now has not only controller class but also instance class with functions and data related to the particular grading instance
- assignment grading form and grading form element deal with elements of gradingform_instance class instead of gradingform_controller
- implemented the class gradingform_rubric_instance
- added more phpdocs
2011-10-20 12:15:51 +08:00
Jerome Mouneyrac 6d4aa25892 MDL-29459 REST-XML server validate return values and throw exception if the returned values are bad (missing, not expected, wrong type). Remove from the REST serialize function previous error checking (missing key error, bypassing not expected keys). It now matches other servers that do validate the return values and throw exception 2011-10-20 11:22:36 +08:00
Ankit Kumar Agarwal e5e6c961c4 MDL-29464 Scorm Fixing regressions on userreport.php 2011-10-20 08:14:41 +05:30
Eloy Lafuente (stronk7) 3a81b37617 emergency release 2.2dev 2011-10-20 00:53:26 +02:00
Eloy Lafuente (stronk7) 3cb206f575 MDL-29496 course search - emergency regression fix 2011-10-20 00:49:02 +02:00
Eloy Lafuente (stronk7) 401d480d81 weekly release 2.2dev 2011-10-19 18:44:16 +02:00
Eloy Lafuente (stronk7) 4b8a3a7b41 Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-10-19 18:41:14 +02:00
Dan Poltawski 636b4f9d2c MDL-29527 - RSS: Add a description to the reset keys page
Thanks to Alexander Bias for the suggestion
2011-10-19 13:48:25 +01:00
David Mudrak 671ec8f50e Form definitions can be removed now 2011-10-19 13:25:47 +02:00
Andrew Robert Nicols 5a6084cf61 MDL-29818: Improve error message when a grade has no answer 2011-10-19 09:34:59 +01:00
Sam Hemelryk 7229f239f3 MDL-28945 course_reports: Fixed up pagination issue 2011-10-19 16:50:23 +13:00
Sam Hemelryk 9a23f94bd9 MDL-26953 theme_nonzero: Quick fix to incorrect left position 2011-10-19 16:26:31 +13:00
Eloy Lafuente (stronk7) 2c6da73106 MDL-29602 unittest - fixing other tests to work with new accesslib 2011-10-19 01:37:30 +02:00
David Mudrak fde3380443 Saving a form as a public template
There is a new API method get_definition_copy() that is expected to
return the definition structure as if the form was written from scratch
via the editor. Such a prepared structure is passed to
a controller's update_definition() method in the new target area.

The same mechanism will be used for copying definitions from a shared
area to a normal gradable area.
2011-10-19 01:17:43 +02:00
David Mudrak 71bd9d2066 Trivial rename of the active method selector param 2011-10-18 16:39:54 +02:00
David Mudrak ac16cedf00 Fixed registering new form definition 2011-10-18 16:27:22 +02:00
David Mudrak a990240b31 Fixed form cancellation handling
Previously, a cancelled form was processed as if all rubric definition
was removed.
2011-10-18 16:26:06 +02:00
David Mudrak 98a73bb7ac Improved management page's integration into the settings block (again) 2011-10-18 16:25:30 +02:00
David Mudrak 553af5fd6a New capability to share and publish a form as a template 2011-10-18 14:55:25 +02:00
Eloy Lafuente (stronk7) c2551ed593 Merge branch 'w41_MDL-29602_m22_accesslib' of git://github.com/skodak/moodle 2011-10-18 13:15:13 +02:00
sam marshall f2b1537bd3 MDL-29719 Category page typo fix 2011-10-18 11:43:01 +02:00
Eloy Lafuente (stronk7) 92e0466957 Merge branch 'MDL-29627' of git://github.com/timhunt/moodle 2011-10-18 11:22:15 +02:00
Eloy Lafuente (stronk7) bca8b79e2a Merge branch 'MDL-28491' of git://github.com/timhunt/moodle 2011-10-18 11:08:15 +02:00
Eloy Lafuente (stronk7) 36903cece3 Merge branch 'wip-MDL-29496-master' of git://github.com/phalacee/moodle 2011-10-18 11:00:04 +02:00
Eloy Lafuente (stronk7) fc0aebb595 MDL-29496 unittests - verify COALESCE() cross-db compatibility 2011-10-18 15:58:56 +08:00
Tim Hunt 0e2274c382 MDL-28491 fix notice because $page was undefined. 2011-10-18 08:40:02 +01:00
Tim Hunt e4df79dd9c MDL-29627 quiz access rules: quiz edit settings was broken with no custom rules installed.
Thanks to Apu for reporting this.
2011-10-18 08:22:05 +01:00
Jason Fowler 1d559a1eb0 MDL-26712 Themes - Correcting text dimming for hidden labels 2011-10-18 13:54:51 +08:00
Aparup Banerjee 77c3e9d0c6 MDL-29768 Language : fixed installation undefined debugstringids notice 2011-10-18 11:19:43 +08:00
Sam Hemelryk f856216cb1 Merged branch 'MDL-28491' of git://github.com/timhunt/moodle.git with conflict resolution 2011-10-18 14:31:34 +13:00
Eloy Lafuente (stronk7) 065d6d80a2 Merge branch 'MDL-29627' of git://github.com/timhunt/moodle 2011-10-18 01:44:58 +02:00
Tim Hunt 613002ced4 MDL-29627 quiz access rules: fix two little problems found during integration.
Missing include was breaking unit tests if they were run separately.

Missing breaks in one switch.
2011-10-18 00:39:22 +01:00
Eloy Lafuente (stronk7) b0ef6d0420 NOBUG: Minibump to get css/js pruned everywhere 2011-10-18 01:37:09 +02:00
Eloy Lafuente (stronk7) c6015af280 Merge branch 'MDL-28613' of git://github.com/timhunt/moodle 2011-10-18 01:35:34 +02:00
David Mudrak 6832a10264 Initial support for the grading management screen
The user is sent to the new grade/grading/manage.php screen when an
advanced grading method is set in the activity mod form or via the
settings block.

The screen is supposed to (1) let the user change the currently active
grading method, (2) open the editor for the selected method, (3) create
new form from a template (4) display a preview of the form.
2011-10-18 01:05:07 +02:00
Eloy Lafuente (stronk7) c78238f151 Merge branch 'MDL-28614' of git://github.com/timhunt/moodle 2011-10-18 00:58:09 +02:00
Tim Hunt 6fd1995d3b MDL-28614 questions: remove another obsolete editing_head_contributions fn. 2011-10-17 23:53:53 +01:00
Sam Hemelryk 4f50a62635 Merge branch 'MDL-29501-master' of git://github.com/sammarshallou/moodle 2011-10-18 11:38:26 +13:00
Sam Hemelryk e797476fd2 MDL-29695 enrol-cohort: Minor code improvement 2011-10-18 11:02:00 +13:00
Ruslan Kabalin 543009cba4 MDL-29695 cohorts: Add pagination and search to cohorts adminstartion page 2011-10-18 10:54:59 +13:00
Ruslan Kabalin 22a811be2d MDL-29695 enrol: cohort: Add pagination and search to quickenrolment interface 2011-10-18 10:54:51 +13:00
Eloy Lafuente (stronk7) ebb9cd230b Merge branch 'MDL-28614' of git://github.com/timhunt/moodle 2011-10-17 23:09:03 +02:00
David Mudrak d80bb9bccd Initial version of a couple of big icons from Tango Desktop project 2011-10-17 21:42:04 +02:00
Eloy Lafuente (stronk7) cb284e953c Merge branch 'w41_MDL-29785_m22_tinymce' of git://github.com/skodak/moodle 2011-10-17 21:24:39 +02:00
Tim Hunt 1b796a2700 MDL-28491 diplay the quiz navigation on the summary page.
This makes the UI more consistent as you work through the quiz. The improvement is more noticable in some themes than others.
2011-10-17 12:06:44 +01:00
Tim Hunt 46e40567fa MDL-28614 qtypes: get_editing_head_contributions not used any more. Remove from base class. 2011-10-17 11:42:41 +01:00
Tim Hunt 891df4a949 MDL-28613 question CSS. Some text in the grey info box is the wrong size.
Note that according to http://www.quirksmode.org/css/contents.html, the > CSS selector works in IE 7+, so is probably now safe to use.
2011-10-17 11:28:49 +01:00
Eloy Lafuente (stronk7) a598a8d4b1 Merge branch 'MDL-29719-master' of git://github.com/sammarshallou/moodle 2011-10-17 12:05:05 +02:00
David Mudrak 6477706e9c Merge pull request #15 from marinaglancy/wip-renderer-rubric
MDL-29481: implemented rubrics renderer, improved rubrics UI
2011-10-17 02:54:53 -07:00
sam marshall 7fb4699266 MDL-29719 Option to display course shortname alongside fullname on course lists 2011-10-17 10:50:59 +01:00
Marina Glancy ab156741fc MDL-29481: implemented rubrics renderer, improved rubrics UI 2011-10-17 17:03:25 +08:00
Eloy Lafuente (stronk7) 22ca3e49e0 NOBUG - whitespace fixes (MDL-19488, MDL-27242, MDL-29435) 2011-10-17 10:19:59 +02:00
Sam Hemelryk ff90023b00 Merge branch 'MDL-28170' of git://github.com/stronk7/moodle 2011-10-17 18:52:23 +13:00
Sam Hemelryk 22ca670f88 Merge branch 'MDL-26953' of git://github.com/lazydaisy/moodle 2011-10-17 17:37:49 +13:00
Sam Hemelryk 5f6de5dc6b Merge branch 'MDL-29435' of git://github.com/mouneyrac/moodle 2011-10-17 17:31:52 +13:00
Sam Hemelryk d97505d2a3 Merge branch 'MDL-27242-master' of git://github.com/sammarshallou/moodle 2011-10-17 17:28:32 +13:00
Sam Hemelryk a6ec1940c8 Merge branch 'MDL-28945-master' of git://github.com/sammarshallou/moodle 2011-10-17 16:25:33 +13:00
Sam Hemelryk f7e8e43f2d Merge branch 'MDL-29781' of git://github.com/lazydaisy/moodle 2011-10-17 15:21:45 +13:00
Sam Hemelryk b55853ff63 Merge branch 'MDL-26893' of git://github.com/lazydaisy/moodle 2011-10-17 13:54:03 +13:00
Sam Hemelryk 92fe97f922 Merged branch 'MDL-29277' of git://github.com/mouneyrac/moodle.git with improvements 2011-10-17 13:18:30 +13:00
Eloy Lafuente (stronk7) 77c36d4ce8 MDL-28170 environment - add new 2.2 section
nothing changes from 2.1 as far as it was agreed that this will be
the last version supporting 1.9 upgrade. See issue for details.
2011-10-17 02:09:46 +02:00
Sam Hemelryk f35c45006a MDL-19488 mod_feedback: Coding style improvement 2011-10-17 11:12:33 +13:00
Sam Hemelryk 629aa44873 Merge branch 'MDL-19488_master_wip' of git://github.com/grabs/moodle 2011-10-17 11:07:25 +13:00
Eloy Lafuente (stronk7) e02ddb9be8 Merge branch 'MDL-28219d' of git://github.com/bostelm/moodle 2011-10-16 21:16:38 +02:00
David Mudrak 8168299d7e Improved integration into the settings block 2011-10-16 19:40:47 +02:00
David Mudrak 03d448e5ff Activity module's settings form redirects to the management screen when advanced grading method was selected to use 2011-10-16 19:40:47 +02:00
David Mudrak 3bd217aaa4 Grading manager's set_active_method() returns bool now 2011-10-16 19:40:46 +02:00
David Mudrak 6b5b05dc3b Fixing the nullability of levelid field in the gradingform_rubric_fillings table
Credit goes to Marina Glency for spotting this.
2011-10-16 19:40:46 +02:00
David Mudrak 44354f9e32 Adding a unique key to the gradingform_rubric_fillings table
Credit goes to Marina Glency for the suggestion.
2011-10-16 19:40:45 +02:00
David Mudrak 998085c9f7 Dropping the uq_rater_per_item from the table grading_instances
It was realized that we may need multiple instances per one rater/item
to be able to 1) implement a draft instance and 2) eventually keep the
history of advanced grading.
2011-10-16 19:40:34 +02:00
Eloy Lafuente (stronk7) 6966fea5f8 Merge branch 'MDL-27351' of git://github.com/nebgor/moodle 2011-10-16 19:21:57 +02:00
Eloy Lafuente (stronk7) 3452a2db90 Merge branch 'MDL-28436' of git://github.com/nebgor/moodle 2011-10-16 19:13:00 +02:00
Eloy Lafuente (stronk7) 140af2a0f0 MDL-29191 wiki - avoid one more username leak 2011-10-16 19:03:19 +02:00
Sun Zhigang 6b3e5ab959 MDL-29191 - Show creator's fullname instead of username 2011-10-16 18:52:35 +02:00
Stephen Bourget e4784b616a MDL-29698 Assignment: Fix broken logentry 2011-10-16 18:26:38 +02:00
Eloy Lafuente (stronk7) 39b3ee70c4 MDL-29768 debugstringids new help lang string now used 2011-10-16 17:51:59 +02:00
Eloy Lafuente (stronk7) f3c34143f9 Merge branch 'MDL-29768-master' of git://github.com/sammarshallou/moodle 2011-10-16 17:46:18 +02:00
Petr Skoda 626509d478 MDL-29785 enable TinyMCE on iOS 5 devices 2011-10-16 17:37:12 +02:00
Eloy Lafuente (stronk7) 28a01625f0 Merge branch 'MDL-28483-master' of git://github.com/ankitagarwal/moodle 2011-10-16 17:30:45 +02:00
Eloy Lafuente (stronk7) 29fb2bcc39 Merge branch 'MDL-29788-langpack_version' of git://github.com/mudrd8mz/moodle 2011-10-16 17:23:35 +02:00
Petr Skoda 9ef8d17ab2 MDL-29785 import latest TinyMCE 3.4.6
using https://github.com/moodle/custom-tinymce/tree/MOODLE_22_3.4.6 and https://github.com/moodle/custom-tinymce_spellchecker_php/tree/MOODLE_22_2.0.6 customised branches
2011-10-16 17:14:33 +02:00
Petr Skoda e922fe23b6 MDL-29602 accesslib improvements
Refactoring and improvements of the accesslib.php library including prevention of access for not-logged-in users when forcelogin enabled, improved context caching, OOP refactoring of contexts, fixed context loading, deduplication of role definitions in user sessions, installation improvements, decoupling of enrolment checking from capability loading, added detection of deleted and non-existent users in has_capability(), new function accesslib test, auth and enrol upgrade notes.

More details are available in tracker subtasks.
2011-10-16 14:05:18 +02:00
David Mudrak f3a99ef8f7 MDL-29788 Fixed the version of installed language packs 2011-10-15 00:01:44 +02:00
Mary Evans 7846a85bc1 MDL-29781 FIX for side-post-only layout 2011-10-14 20:39:36 +01:00
Petr Skoda e2ddc5318f bump up subplugins too and mark as beta2 2011-10-14 19:57:22 +02:00
Petr Skoda 82ebcbc855 bump up version 2011-10-14 19:52:57 +02:00
Petr Skoda 26c6ba6c72 do not try to export when no chapters present yet 2011-10-14 19:50:36 +02:00
Petr Skoda 327f9184c5 fix return link on the frontpage
credit goes to mauno, closes #18
2011-10-14 19:45:37 +02:00
Petr Skoda 8ad39e4f38 explain zip archive is required when importing html
closes #19
2011-10-14 19:36:08 +02:00
Petr Skoda 260c4a5b09 MDL-29773 prevent negative unix timestamps in the files table 2011-10-14 15:52:49 +02:00
Petr Skoda 694f3b74c7 MDL-29773 use db debuginfo when file record insertion fails 2011-10-14 15:30:54 +02:00
Mary Evans d4bb762643 MDL-26953 FIX for side-post-only layout 2011-10-14 02:28:03 +01:00
AMOS bot 49bfc8be29 Automatically generated installer lang files 2011-10-14 00:55:22 +00:00
David Mudrak 7ece4a0798 Merge branch 'rubric' of github.com:mudrd8mz/moodle into rubric 2011-10-13 22:45:30 +02:00
David Mudrak 20c207ab21 Merge branch 'master' into rubric
Conflicts:
	lib/db/upgrade.php
2011-10-13 22:42:47 +02:00
David Mudrak ba2a25a816 Merge pull request #14 from marinaglancy/wip-MDL-29481-rubric
MDL-29481: Filling rubric by teacher (first steps)
2011-10-13 13:24:37 -07:00
Tony Levi 1f186372ea MDL-28945: Fix course/activity completion reports initial selection broken 2011-10-13 17:00:52 +01:00
sam marshall 2e98ae02ec MDL-29768 debugstringids option did not do anything 2011-10-13 12:57:55 +01:00
Tim Hunt c999d841b4 MDL-29627 add quizaccess plugins to standard_plugins_list. 2011-10-13 11:13:26 +01:00
Tim Hunt 5adace99f8 MDL-29627 quiz access rules: backup and restore of data. 2011-10-13 11:13:24 +01:00
Tim Hunt ffe162d44d MDL-29627 quiz access move strings only used in one subplugin into that plugin.
AMOS BEGIN
 MOV [youcannotwait,mod_quiz],[youcannotwait,quizaccess_delaybetweenattempts]
 MOV [youmustwait,mod_quiz],[youmustwait,quizaccess_delaybetweenattempts]
 MOV [subnetwrong,mod_quiz],[subnetwrong,quizaccess_ipaddress]
 MOV [attemptsallowedn,mod_quiz],[attemptsallowedn,quizaccess_numattempts]
 MOV [notavailable,mod_quiz],[notavailable,quizaccess_openclosedate]
 MOV [quiznotavailable,mod_quiz],[quiznotavailable,quizaccess_openclosedate]
 MOV [passworderror,mod_quiz],[passworderror,quizaccess_password]
 MOV [requirepasswordmessage,mod_quiz],[requirepasswordmessage,quizaccess_password]
 MOV [requiresafeexambrowser,mod_quiz],[requiresafeexambrowser,quizaccess_safebrowser]
 MOV [safebrowsererror,mod_quiz],[safebrowsererror,quizaccess_safebrowser]
 MOV [safebrowsernotice,mod_quiz],[safebrowsernotice,quizaccess_safebrowser]
 MOV [popupwithjavascriptsupport,mod_quiz],[popupwithjavascriptsupport,quizaccess_securewindow]
 MOV [quiztimelimit,mod_quiz],[quiztimelimit,quizaccess_timelimit]
AMOS END
2011-10-13 11:13:22 +01:00
Tim Hunt 987c2d491e MDL-29627 quiz access refactor password check into a generic check page. 2011-10-13 11:13:20 +01:00
Tim Hunt 4344c5d5d9 MDL-29627 quiz old popup int column => new browsersecurity column.
The new column store more meaningful string constants.
2011-10-13 11:13:18 +01:00
Tim Hunt 0eafc98852 MDL-29627 fix code-checker issues throughout the quiz code. 2011-10-13 11:13:16 +01:00
Tim Hunt 1d9e1a3c06 MDL-29627 refactor the way the rules are constructed from the quiz. 2011-10-13 11:13:14 +01:00
Tim Hunt d755b0f577 MDL-29627 quiz_access_manager move all output code to the renderer.
This achieves a massive clean-up. It simplifies comples code in a number
of places. It allows some methods and functions to be moved to a more
appropriate home (for example cannot_review_message to the quiz class).
It moves more logic out of the renderer.
2011-10-13 11:13:12 +01:00
Tim Hunt dd70d561ef MDL-29627 quiz load access settings when a quiz is being attempted. 2011-10-13 11:13:10 +01:00
Tim Hunt c18ba64c3e MDL-29627 load the existing settings when the quiz settings are re-edited. 2011-10-13 11:13:08 +01:00
Tim Hunt b83c32d39f MDL-29627 quiz access plugins can add fields to mod_form and save the data. 2011-10-13 11:13:06 +01:00
Tim Hunt ea38245cfb MDL-29627 quiz access: move the unit tests into the relevant plugins. 2011-10-13 11:13:04 +01:00
Tim Hunt e5844040a0 MDL-29627 quiz access: fix variable names that don't match the coding style. 2011-10-13 11:13:02 +01:00
Tim Hunt a28a5d74af MDL-29627 refactor quiz access rules into separate subplugins. 2011-10-13 11:13:00 +01:00
sam marshall 73ca5f01c5 MDL-29501 Gradebook should not show links to activities that aren't available to user 2011-10-13 10:29:45 +01:00
sam marshall 6282381d05 MDL-27242 Conditional availability dates should support time as well as day
Change also adds minor feature to date-time selector so you can specify the time it uses as default when the value is 0 (disabled).

Credit: This feature was developed collaboratively by Charles Fulton, Neill Magill, and me.
2011-10-13 10:23:23 +01:00
Andreas Grabs 7b1126fd20 MDL-19488 - allow the creation of a "Public" feedback 2011-10-13 11:10:15 +02:00
Andreas Grabs e70dab0646 MDL-19488 - allow the creation of a "Public" feedback 2011-10-13 11:10:15 +02:00
Andreas Grabs 485ec5941e MDL-19488 - allow the creation of a "Public" feedback 2011-10-13 11:10:14 +02:00
Marina Glancy 3bf7ef29a5 MDL-29481: filling rubric by teacher, first steps 2011-10-13 16:27:33 +08:00
Aparup Banerjee 774118e960 MDL-27351 Quiz : updated string to reflect validation looking for embedded questions. 2011-10-13 15:27:30 +08:00
Jason Fowler 020088d695 MDL-29231 - Course, Resource - Fix so that the correct icon is displayed for courses that have had two or more files uploaded to them - Thanks Michael D for the patch 2011-10-13 11:50:23 +08:00
Ankit Kumar Agarwal 4373200f88 MDL-28483 URL adding validation checks and changing field externalurl to not-null 2011-10-13 08:57:27 +05:30
Adrian ec3c9dad7b MDL-28483 URL making url field required 2011-10-13 08:57:20 +05:30
Aparup Banerjee f6f2bebd0c MDL-28436 webservice : fixed missing field in query 2011-10-13 09:54:25 +08:00
Mary Evans 4146e4352b MDL-26983 FIX for side-post-only layout 2011-10-13 02:43:04 +01:00
Henning Bostelmann cc9fc649a1 MDL-28219 QE2 adaptive behaviour: fix scores and penalties 2011-10-12 23:27:10 +01:00
Eloy Lafuente (stronk7) 6731a04d93 weekly release 2.2dev 2011-10-12 23:46:36 +02:00
David Mudrak a5c4c99b24 Merge pull request #13 from marinaglancy/wip-formvalidation-rubric
Initial prototype of integrating advanced grading methods into current forms

There is a new form element called 'grading', which receives grading_controller as an argument and uses it's functions to produce html and validate the value.

The biggest change in grading form is that I included call to new function validate_and_preprocess_feedback, which validates and also fills the xgrade field with value, calculated by controller

Another issue: when the teacher grades the student on offline assignment for the first time, there may be no entry in submission table (and therefore no id). So I create a submission if there is advanced grading otherwise we won't be able to save via AJAX the process of filling rubric, because normal grading will create an entry only on submit.

And as an example I created text field in rubric, that is saved as grade. There is validation that value can not be more than 100.
2011-10-12 01:06:27 -07:00
Marina Glancy 6798c63e20 Added form element grading and integrated it with grading_controller 2011-10-12 15:01:53 +08:00
Marina Glancy 18e6298c7b Added validation to grading form, implemented methods in advanced grading to return form contents and process and return the final grade 2011-10-12 11:48:06 +08:00
David Mudrak 6abcb0c21f Merge remote branch 'origin/master' into rubric 2011-10-12 03:13:55 +02:00
David Mudrak fe817d8799 Various modifications and tweaks of the rubric editing page 2011-10-12 03:10:08 +02:00
David Mudrak 2824c44aec Merged Marina's recent work on rubric plugin
Conflicts:
	grade/grading/form/lib.php
	grade/grading/form/rubric/lib.php
	grade/grading/lib.php
2011-10-11 21:37:14 +02:00
Eloy Lafuente (stronk7) f6e1809608 Merge branch 'MDL-29625' of git://github.com/timhunt/moodle 2011-10-11 12:10:51 +02:00
Tim Hunt e4e0020ed6 MDL-29625 new helper function get_plugin_list_with_class.
Based on the existing get_plugin_list_with_function. As part
of implementing this, I refactored out a
get_plugin_list_with_file function, which may also be useful.
2011-10-11 10:46:23 +01:00
Aparup Banerjee fc09870e0e Merge branch 'wip-MDL-27058-master' of git://github.com/samhemelryk/moodle.git (solved conflict) 2011-10-11 13:37:34 +08:00
Aparup Banerjee 44d872b87e Merge branch 'wip-MDL-27278-master' of git://github.com/samhemelryk/moodle 2011-10-11 11:19:14 +08:00
Aparup Banerjee bdfb2b71b7 Merge branch 'wip-MDL-28549-master' of git://github.com/samhemelryk/moodle 2011-10-11 09:46:16 +08:00
Aparup Banerjee e6d80c1d3e Merge branch 'wip-MDL-28582-master' of git://github.com/samhemelryk/moodle 2011-10-11 09:26:30 +08:00
Eloy Lafuente (stronk7) 71e1a1f820 MDL-20306 Add course_category idnumber field: version bump and fix missing add_field() call 2011-10-10 23:54:40 +02:00
Andrew Robert Nicols 83cd9b163a MDL-20306 Add course_category idnumber field 2011-10-10 23:54:30 +02:00
Sam Hemelryk d87ef08598 Merge branch 'MDL-29447' of git://github.com/timhunt/moodle 2011-10-11 10:25:33 +13:00
Sam Hemelryk 811cbdcfbf Merge branch 'MDL-29640_master' of git://github.com/kordan/moodle 2011-10-11 10:15:46 +13:00
Aparup Banerjee aabf13c240 Merge branch 'wip-MDL-29224-master' of git://github.com/samhemelryk/moodle 2011-10-10 23:14:05 +08:00
Aparup Banerjee f717586091 Merge branch 'wip-MDL-29672-master' of git://github.com/samhemelryk/moodle 2011-10-10 22:45:01 +08:00
Kordan 2106024854 MDL-29640 fix for master 2011-10-10 13:19:15 +02:00
Eloy Lafuente (stronk7) c676af9f72 MDL-29564 Assignment: whitespace fix 2011-10-10 13:08:48 +02:00
Marina Glancy c586d2bfd6 MDL-29481: start implementing rubric editor 2011-10-10 15:27:15 +08:00
Sam Hemelryk 1216ab39d1 Merge branch 'MDL-16553' of git://github.com/bostelm/moodle 2011-10-10 17:56:14 +13:00
Jason Fowler b438bce949 MDL-29496 Search, Course - Code applied from patch to allow courses with a blank summary to be found in searchs - Thanks to Andrew Nicols for the patch 2011-10-10 11:35:42 +08:00
Dan Poltawski e0daa8499a MDL-29661 - lib/googleapi.php - Switch to SSL urls
I am not sure why I did not use these in the first instance, I don't
think Google supported SSL in the first versions of their API.

They do now, and it seems that this week they stopped supporting non-ssl
requests.
2011-10-10 16:27:53 +13:00
Ruslan Kabalin 7757237cdd MDL-29692 enrol: cohort: Fix default role issue in Chrome
This is related to MDL-24280, the issue still persists in Chrome. The patch
fixes it for Chrome and works fine for the most major browsers.
2011-10-10 14:57:42 +13:00
Sam Hemelryk 3070626a74 Merge branch 'w40_MDL-29686_m2_yuicaching' of git://github.com/skodak/moodle 2011-10-10 12:20:38 +13:00
Sam Hemelryk 77b93da537 Merge branch 'MDL-29668' of git://github.com/stronk7/moodle 2011-10-10 12:09:34 +13:00
Sam Hemelryk 36a42c57d1 Merge branch 'MDL-29677' of git://github.com/stronk7/moodle 2011-10-10 12:03:39 +13:00
Stephen Bourget 19f7391c50 MDL-29564 Assignment: Fixed a fatal error caused by a missing include 2011-10-10 11:54:53 +13:00
Sam Hemelryk f915430855 Merge branch 'master_MDL-29690' of git://github.com/danmarsden/moodle 2011-10-10 11:24:44 +13:00
Sam Hemelryk 356a6de351 MDL-27058 navigation: Added a setting to control whether user forum links are added 2011-10-10 10:57:02 +13:00
Sam Hemelryk 5a1b6297c9 MDL-28582 course-report: Added a nothing to display notification to the outline and complete activity reports 2011-10-10 10:35:05 +13:00
Sam Hemelryk e7f9b7abc8 MDL-28549 navigation: Added a missing login check when adding the calendar link to the navigation 2011-10-10 10:30:22 +13:00
Sam Hemelryk 01ec550b0f MDL-29672 user: Fixed user edit page for non-admin users 2011-10-10 10:27:18 +13:00
Sam Hemelryk 32b9e80b15 MDL-27278 navigation: Admin users can now set the home page preference like normal users 2011-10-10 10:17:00 +13:00
Eloy Lafuente (stronk7) b77088cd04 emergency release 2.2dev 2011-10-09 22:40:35 +02:00
Eloy Lafuente (stronk7) 033d656617 MDL-29520 - mysql multitable delete, outer join some tables 2011-10-09 22:15:27 +02:00
Petr Skoda fe9820e8a7 fix required Moodle version 2011-10-09 16:27:42 +02:00
Petr Skoda bc66f1c0e3 fix readme 2011-10-09 16:05:44 +02:00
Petr Skoda d816304377 annoy users with MDL-28019
closes #17, it should be no ready for beta testing
2011-10-09 15:53:53 +02:00
Petr Skoda 6992de4fda normalise copyright links 2011-10-09 15:29:20 +02:00
Petr Skoda 74979715a4 standardised includes 2011-10-09 15:26:33 +02:00
Petr Skoda d4f5642057 highlight more authors 2011-10-09 15:21:48 +02:00
Petr Skoda 890e146f45 add missing moodle.org link 2011-10-09 15:20:09 +02:00
Petr Skoda f3d91d521f fixed imscp export support
closes #12
2011-10-09 15:18:15 +02:00
Petr Skoda 0c9f18642f add basic revision tracking support 2011-10-09 13:40:20 +02:00
Petr Skoda 34660c5979 rewritten html import
hopefully there are not many bugs, closes #13
2011-10-09 12:55:54 +02:00
Petr Skoda 22d3a77a52 oops, it is 10th month already 2011-10-08 22:24:23 +02:00
Petr Skoda 2ecc0ff5d0 add proper deleting of chapter files 2011-10-08 22:13:12 +02:00
Eloy Lafuente (stronk7) 617a9bb4c3 MDL-29668 xmldb editor - fix PHP generation for foreign-unique keys 2011-10-08 21:49:56 +02:00
Petr Skoda df78099aee remove old hack 2011-10-08 20:45:34 +02:00
Petr Skoda e145338300 fix indentation 2011-10-08 20:44:13 +02:00
Petr Skoda a22a82822d migrate all legacy book files - yay!
closes #7
2011-10-08 19:03:03 +02:00
Petr Skoda 00328eb344 fix borked backup and restore
credit for the amp problem discovery goes to Davo Smith, closes #16
2011-10-08 15:44:02 +02:00
Petr Skoda bd4a960f36 add full 1.9 restore support
#15
2011-10-08 14:40:42 +02:00
Petr Skoda 21496cd86b new markdown formatted readme
release notes will be released separately
2011-10-08 14:17:00 +02:00
Petr Skoda dd9b772bb6 add file browser support
closes #14
2011-10-08 13:25:55 +02:00
Petr Skoda 920fd2c6a4 add support for page types 2011-10-08 12:59:39 +02:00
Petr Skoda b962f03009 more refactoring 2011-10-08 12:55:04 +02:00
Petr Skoda 45573d5ad1 move book specific stuff to locallib.php 2011-10-08 12:35:59 +02:00
Petr Skoda 3f24450df2 fix php docs, abstract view and post actions 2011-10-08 12:33:28 +02:00
Petr Skoda e08764150a add missing extra caps 2011-10-08 12:23:08 +02:00
Petr Skoda b6931b14bd use png instead of legacy gif format
fixes #11
2011-10-08 11:58:15 +02:00
Petr Skoda 3325a1891f convert html import to new booktool plugin
fixes #5

AMOS BEGIN
 MOV [doimport,mod_book],[doimport,booktool_importhtml]
 MOV [import,mod_book],[import,booktool_importhtml]
 MOV [book:importhtml,mod_book],[importhtml:import,booktool_importhtml]
 MOV [importinfo,mod_book],[importinfo,booktool_importhtml]
 MOV [importing,mod_book],[importing,booktool_importhtml]
 MOV [importingchapters,mod_book],[importingchapters,booktool_importhtml]
 MOV [import_help,mod_book],[import_help,booktool_importhtml]
 MOV [maindirectory,mod_book],[maindirectory,booktool_importhtml]
 MOV [relinking,mod_book],[relinking,booktool_importhtml]
AMOS END
2011-10-08 11:41:13 +02:00
Petr Skoda 4bc75ecc3f convert imscp export to new booktool plugin
fixed #4

AMOS BEGIN
 MOV [book:exportimscp,mod_book],[exportimscp:export,booktool_exportimscp]
 MOV [generateimscp,mod_book],[generateimscp,booktool_exportimscp]
AMOS END
2011-10-08 11:17:00 +02:00
Petr Skoda 7927cab1b1 convert printing support to new booktool plugin
fixed #6

AMOS BEGIN
 MOV [pluginname,mod_book],[pluginname,booktool_print]
 MOV [printbook,mod_book],[printbook,booktool_print]
 MOV [printchapter,mod_book],[printchapter,booktool_print]
 MOV [printdate,mod_book],[printdate,booktool_print]
 MOV [printedby,mod_book],[printedby,booktool_print]
 MOV [book:print,mod_book],[print:print,booktool_print]
AMOS END
2011-10-08 10:59:32 +02:00
Petr Skoda 3c6239ee58 use plugin_supports for module resource type information
closes #10
2011-10-08 10:08:30 +02:00
Petr Skoda b2617f0b99 future versions of mod_book are going to require at least Moodle 2.1.0 2011-10-08 10:00:22 +02:00
David Mudrak fba356f375 MDL-29483 Initial draft of advanced grading support in the Assignment module 2011-10-08 01:02:31 +02:00
David Mudrak 21d37aa623 MDL-29479 The draft of embedding the UI widgets into the page
The patch makes more sense when reviewed together with the parallel work
on gradingform_random (see MDL-29631) where the developed API is
actually tested.
2011-10-08 00:59:01 +02:00
Henning Bostelmann db3543428f MDL-16553 Assignment, student view: show response files when no grade available 2011-10-07 23:22:31 +01:00
David Mudrak b7a6bb9ba8 MDL-29480 Adding new fields into grading_definitions 2011-10-07 22:43:02 +02:00
David Mudrak 2c86d85daf MDL-29480 Making the upgrade.php in sync with recent install.xml 2011-10-07 22:07:55 +02:00
David Mudrak e8004aadc8 Merge remote branch 'origin/master' into rubric
Conflicts:
	lib/db/install.xml
	lib/db/upgrade.php
	version.php
2011-10-07 22:01:38 +02:00
Dan Marsden c9b8a78951 MDL-29690 fix usage of select all/deselect all in choice reports 2011-10-07 21:41:35 +13:00
Jerome Mouneyrac 9360256937 MDL-29277 when validate externallib function parameters or return values, build the path to the error into the debuginfo. This patch also revert the exception to the original invalid_parameter_exception and invalid_response_exception 2011-10-07 16:06:19 +08:00
Petr Skoda 14b1579aa0 MDL-29686 obey caching setting for moodle yui modules 2011-10-07 08:41:15 +02:00
Jerome Mouneyrac 2c28fa7643 MDL-29435 SOAP/XMLRPC server return debuginfo into the exception message when DEBUG >= NORMAL 2011-10-07 14:21:41 +08:00
Eloy Lafuente (stronk7) a7f99cf02e MDL-29677 unit tests - missing global was causing tons of incorrect debugging info 2011-10-07 01:24:18 +02:00
Eloy Lafuente (stronk7) 9086337415 weekly release 2.2dev 2011-10-07 00:09:23 +02:00
Eloy Lafuente (stronk7) 943c662d62 fix permissions 2011-10-07 00:07:15 +02:00
Eloy Lafuente (stronk7) 897015a0eb Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-10-07 00:04:52 +02:00
Stephen Bourget 7a66fb6dec mdl-23003 XMLDB missing strings
Fix notices generated by editing a table name using the XMLDB editor
2011-10-06 14:10:28 -04:00
Sam Hemelryk dee1a0fd7a MDL-29224 navigation: Navigation now respects a modules onclick event when preparing navigation nodes 2011-10-06 19:32:27 +13:00
AMOS bot 3529863465 Automatically generated installer lang files 2011-10-06 00:55:31 +00:00
David Mudrak afc766a238 MDL-29480 Allow null values for format fields
When inserting a record without the associated text, it does not make
sense to force format to be set. And using any hard-coded default is
tricky.
2011-10-05 18:29:21 +02:00
Aparup Banerjee 80f01595af MDL-29089 gradebook: fixed incorrect precision 2011-10-05 15:14:27 +08:00
Aparup Banerjee 73f5ebea0c Merge branch 'wip-MDL-28615-master-squashed' of git://github.com/samhemelryk/moodle 2011-10-05 10:54:05 +08:00
David Mudrak 3e43eff5dc MDL-29479 Improved gradingform_controller base class 2011-10-05 03:51:41 +02:00
David Mudrak 8cd65f1657 MDL-29479 It is now possible to set the active method to null (simple direct grading) 2011-10-05 03:50:12 +02:00
David Mudrak fb13a1484d MDL-29479 Improved grading manager factory function 2011-10-05 03:49:21 +02:00
Eloy Lafuente (stronk7) 202c2032fa Merge branch 'MDL-28469' of git://github.com/timhunt/moodle 2011-10-05 01:13:57 +02:00
Eloy Lafuente (stronk7) 7eaca44932 Merge branch 'wip-MDL-25697-master' of git://github.com/samhemelryk/moodle 2011-10-05 01:10:03 +02:00
Sam Hemelryk a161d96f3a MDL-28615 forum: Fixed up a couple of minor regressions 2011-10-05 11:08:50 +13:00
Tim Hunt 8dd9ccf475 MDL-29447 quiz course reset does not reset the quiz_grades table.
Thank to Jean-Michel Vedrine for working out the basic idea of the fix.
2011-10-04 22:47:44 +01:00
Eloy Lafuente (stronk7) cec6a15b99 Merge branch 'MDL-29644' of git://github.com/timhunt/moodle 2011-10-04 23:34:15 +02:00
Tim Hunt 77d0f5f07b MDL-29644 qtype multianswer, hints lost doing Moodle XML export.
This commit also includes a lot of useful tidying up of some of the unit
test helper code. I turned out that I could not use all the helper code
in my new tests, but despite that it will be useful in the future, so I
am committing it here.
2011-10-04 22:23:58 +01:00
Aparup Banerjee 2fbc708186 Merge branch 'MDL-29089_grade_history_missing_columns2' of git://github.com/andyjdavis/moodle.git (resolved version.php conflicts) 2011-10-05 02:46:38 +08:00
Eloy Lafuente (stronk7) a361676b22 Merge branch 'MDL-27857-assignment-portfolio' of git://github.com/mudrd8mz/moodle 2011-10-04 12:42:32 +02:00
Eloy Lafuente (stronk7) 66f7705daa Merge branch 'MDL-29548' of git://github.com/timhunt/moodle 2011-10-04 12:31:34 +02:00
Tim Hunt 7529f9e944 MDL-29548 allow message plugins to control message
defaults.

At the moment, each message_provider can specify defaults for
each message output, to say whether that message output should be
used for this type of message:
http://docs.moodle.org/dev/Messaging_2.0#Adding_new_message_type.

If the message provider does not set a default, this change allows
the message output to set the default.
2011-10-04 11:23:52 +01:00
Eloy Lafuente (stronk7) cdee9bd4f6 Merge branch 'MDL-19575-master' of git://github.com/ankitagarwal/moodle 2011-10-04 12:12:08 +02:00
Tim Hunt f0bfd964ba MDL-29520 question engine: work-around bad MySQL delete performance.
This is a temporary fix, until the new API from MDL-29589 is available.

(amended to fix comments)
2011-10-04 12:03:41 +02:00
Tim Hunt 7042a252c5 MDL-29571 questions: improve class=accesshide screen-reader hints.
This changes the hint that comes before the question text. There are
unit tests to verify the new behaviour.

(amended to fix comments)
2011-10-04 11:50:56 +02:00
Tim Hunt 9d1658a07e MDL-29571 qtype description refactor unit test code a bit. 2011-10-04 11:50:12 +02:00
Sam Hemelryk 0870a06899 Merge branch 'MDL-29621_master_wip' of git://github.com/grabs/moodle 2011-10-04 17:54:00 +13:00
Sam Hemelryk 6fdcc0d44f MDL-28615 forum: Fixed missing context regression 2011-10-04 16:37:16 +13:00
Sam Hemelryk 2bbe5979cb Merge branch 'MDL-28725_wiki_section2' of git://github.com/andyjdavis/moodle 2011-10-04 16:21:16 +13:00
Sam Hemelryk 66d216c574 Merge branch 'wip-mdl-25937-disableif' of git://github.com/rajeshtaneja/moodle 2011-10-04 15:52:57 +13:00
Eloy Lafuente (stronk7) c72cf85f17 Merge branch 'MDL-29511' of git://github.com/timhunt/moodle 2011-10-04 01:11:20 +02:00
Eloy Lafuente (stronk7) 38697ad4aa Merge branch 'MDL-29216' of git://github.com/timhunt/moodle 2011-10-03 22:52:55 +02:00
Eloy Lafuente (stronk7) 92c9bc6127 Merge branch 'MDL-29341' of git://github.com/timhunt/moodle 2011-10-03 22:50:18 +02:00
David Mudrak 9b8550f8d9 MDL-29479 Grading method plugins can extend module settings block
As a part of this, new class grading_controller is introduced and bunch
of smaller changes was done here and there.
2011-10-03 22:26:53 +02:00
David Mudrak f25a5a32b8 MDL-29479 Introducing a new capability moodle/grade:managegradingforms 2011-10-03 22:26:52 +02:00
David Mudrak 6440286719 MDL-29479 Active grading method can be set for the given area 2011-10-03 22:26:52 +02:00
David Mudrak 8a4acb3aca MDL-29479 Cosmetic rename of some methods in grading manager API 2011-10-03 22:26:52 +02:00
David Mudrak 6c9e506ca5 MDL-29479 List of available grading methods returned properly 2011-10-03 22:26:52 +02:00
David Mudrak f59f488a36 MDL-29480 Introducing new rubric plugin 2011-10-03 22:26:51 +02:00
Eloy Lafuente (stronk7) eefebc2edb Merge branch 'MDL-29570' of git://github.com/timhunt/moodle 2011-10-03 21:42:28 +02:00
Andreas Grabs af26e3453a MDL-29621 - XHTML not welformed when creating Feedback questions 2011-10-03 18:40:16 +02:00
Tim Hunt e07cccfc25 MDL-28469 quiz settings pages should be pagelayout admin. 2011-10-03 16:38:34 +01:00
Rajesh Taneja 63d5c4ac85 MDL-25937 Forms Library: Filepicker will respect disable if 2011-10-03 16:26:21 +08:00
David Mudrak fd04c5bd87 MDL-27857 Export to portfolio support in the assignment module improved
Portfolio API code in the assignment module expected that the current
user is the author of the submission. Therefore the "Export to
portfolio" button did not work when the submission was viewed by a
teacher (eg at the page with the list of all submissions in the Advanced
upload assignment).

This patch introduces a new callback argument 'submissionid' that holds
explicit ID of the submission the export deals with. With it available,
we do not need to expect the current user is the author of the
submission.

The patch also cleans some strings used for portfolio callback
exceptions.
2011-10-03 10:15:39 +02:00
David Mudrak d3996e0705 MDL-27857 Typo in the phpDocs fixed 2011-10-03 10:15:38 +02:00
David Mudrak b777c798b0 MDL-27857 Assignment does not use form tag to render portfolio export control widget
When this code was used as a part of the grading screen, the default
PORTFOLIO_ADD_FULL_FORM widget led to nested form elements. This patch replaces
the form widget with a plain text link that can be embedded safely.
2011-10-03 10:15:38 +02:00
Aparup Banerjee 6d3ae9103c MDL-26486 Lesson : fixed whitespace 2011-10-03 16:00:24 +08:00
Aparup Banerjee b735bd19cc Merge branch 'MDL-26486' of git://github.com/rwijaya/moodle 2011-10-03 15:37:50 +08:00
Andrew Davis (andyjdavis) c04b01f46f MDL-27640 rating: altered the return url provided by mod_data to ratings 2011-10-03 15:17:27 +08:00
Aparup Banerjee 9928cc8aa2 MDL-29541 Administration : fixed whitespace 2011-10-03 14:01:17 +08:00
Aparup Banerjee c1b723e5f1 Merge branch 'wip-mdl-29244' of git://github.com/rajeshtaneja/moodle 2011-10-03 13:57:48 +08:00
Rajesh Taneja 542cde9977 MDL-29244 users: Fixed comments for checkbox.php 2011-10-03 13:42:27 +08:00
Sam Hemelryk 1bbe222d53 Merge branch 'MDL-29296' of git://github.com/rwijaya/moodle 2011-10-03 17:08:21 +13:00
Sam Hemelryk 324e620474 Merge branch 'MDL-29605' of git://github.com/lazydaisy/moodle 2011-10-03 16:41:12 +13:00
Sam Hemelryk 006debe5e4 Merge branch 'wip-mdl-29539' of git://github.com/rajeshtaneja/moodle 2011-10-03 15:09:17 +13:00
Sam Hemelryk 36e966b005 MDL-28566 theme_base: removed MDL comment 2011-10-03 15:02:33 +13:00
Sam Hemelryk 2c66ceeaef Merge branch 'MDL-28566' of git://github.com/lazydaisy/moodle 2011-10-03 14:37:35 +13:00
Sam Hemelryk 3a2abe2e6e Merge branch 'MDL-29323' of git://github.com/lazydaisy/moodle 2011-10-03 14:29:49 +13:00
Sam Hemelryk 49ebdaf1da Merge branch 'wip-MDL-25454-master' of git://github.com/marinaglancy/moodle 2011-10-03 14:24:38 +13:00
Sam Hemelryk 9ea1b97fa4 Merge branch 'MDL-29558' of git://github.com/jamiepratt/moodle 2011-10-03 14:01:48 +13:00
AMOS bot 3551164776 Automatically generated installer lang files 2011-10-03 00:55:23 +00:00
Sam Hemelryk ef6380f042 Merge commit 'FETCH_HEAd' 2011-10-03 13:29:26 +13:00
Sam Hemelryk 1efd3fc8e7 Merge branch 'MDL-29567' of git://github.com/stronk7/moodle 2011-10-03 13:23:01 +13:00
Sam Hemelryk dcde0e9389 Merge branch 'MDL-29566' of git://github.com/stronk7/moodle 2011-10-03 12:49:39 +13:00
Sam Hemelryk 9209bcfbb1 Merge branch 'MDL-29618' of git://github.com/stronk7/moodle 2011-10-03 12:27:11 +13:00
Sam Hemelryk e06ae159ff Merge branch 'MDL-29612' of git://github.com/stronk7/moodle.git with typo cleanup 2011-10-03 12:24:40 +13:00
Eloy Lafuente (stronk7) 35aa80d166 Merge branch 'w39_MDL-29555_m22_yui341' of git://github.com/skodak/moodle 2011-10-03 01:06:15 +02:00
Sam Hemelryk dc39771b01 Merge branch 'MDL-29611' of git://github.com/stronk7/moodle 2011-10-03 12:02:58 +13:00
Sam Hemelryk 9afd0b3e2e Merge branch 'MDL-27295' of git://git.luns.net.uk/moodle 2011-10-03 11:51:30 +13:00
Eloy Lafuente (stronk7) f253e791ed MDL-29618 backup - back to handling enrolments properly. Regession of MDL-26841, my fault, grrr 2011-10-03 00:45:18 +02:00
Sam Hemelryk 61ab8f0749 MDL-28615 forum: Revised enrol_sharing_course to use the new enrol_get_shared_courses and fixed permission checking in forum_user_can_see_post 2011-10-03 11:23:30 +13:00
Eloy Lafuente (stronk7) 428da49383 MDL-29612 xmldb editor - fix recent regression + prevent unsigned floats and numbers 2011-10-02 01:18:32 +02:00
Eloy Lafuente (stronk7) 35c4f1e26f MDL-29611 xmldb editor - comments and whitespace cleanup 2011-10-02 00:41:55 +02:00
Mary Evans 39d59f934f MDL-29605-modify Afterburner menu to allow auto format 2011-10-01 23:13:12 +01:00
Tim Hunt a44995325e MDL-29216 multianswer qtype needs intereactive elements on the form. 2011-10-01 00:09:04 +01:00
Tim Hunt 522d9fcb2a MDL-29341 qtype numerical/calc: display of mc units badly laid out. 2011-09-30 23:32:57 +01:00
Dan Poltawski eea78ebc03 MDL-27295 Course Category View - Only display count when more than 0 courses 2011-09-30 11:59:58 +01:00
Kordan bbf28a466c MDL-29403 fix for master 2011-09-30 11:10:11 +02:00
Jamie Pratt 76e6cf5d84 MDL-29558 question preview: limit variants drop-down to the first 100
In situations when question has many variants.
2011-09-30 09:33:28 +07:00
Mary Evans db25d9b768 MDL-29323-FIX invalid border style 2011-09-30 03:04:17 +01:00
AMOS bot 7f674801fa Automatically generated installer lang files 2011-09-30 00:55:16 +00:00
Tim Hunt f123d67f60 MDL-29511 cannot review previous steps of a question attempt since MDL-28679. 2011-09-29 21:48:23 +01:00
Tim Hunt c3584ad683 MDL-29511 Fix problems on the quiz review questions page found while investigating this bug. 2011-09-29 21:46:39 +01:00
David Mudrak 091222581d MDL-29479 Registered new plugin type "gradingform" 2011-09-29 18:36:00 +02:00
David Mudrak 3da9e0a3cb MDL-29480 Database tables for the new advanced grading subsystem 2011-09-29 18:36:00 +02:00
Marina Glancy a6c124f5e3 MDL-25454: using the faster way to check if record exists in db 2011-09-29 17:00:04 +08:00
Tim Hunt 72bbb091a4 MDL-29570 Quiz editing page displays the wrong time in the status line sometimes. 2011-09-29 09:06:11 +01:00
Petr Skoda 9e44f79f57 MDL-29555 import YUI 3.4.1
To be backported to 2.1 stable soon.
2011-09-29 09:38:40 +02:00
Andrew Davis (andyjdavis) 1323bf5597 MDL-28725 wiki: added urlencode around the section variable when it is being used to construct URLs 2011-09-29 14:57:28 +08:00
Andrew Davis (andyjdavis) 41017112cf MDL-28725 wiki: added missing string
AMOS BEGIN
 CPY [invalidsection,core_admin],[invalidsection,mod_wiki]
AMOS END
2011-09-29 14:57:28 +08:00
Ankit Kumar Agarwal 5eb1cec34f MDL-19575 Global Search Adding capability checks to the search and stat pages 2011-09-29 08:52:29 +05:30
Andrew Davis (andyjdavis) 70e61f7071 MDL-29089 gradebook: added missing columns to the history tables 2011-09-29 09:53:18 +08:00
Rajesh Taneja c6aa3670d0 MDL-25937 Froms Library: Added server side validation for filepicker and filemanager 2011-09-29 09:39:44 +08:00
Rajesh Taneja 856484f92f MDL-29539 HTML Editor: Fixed XHTML formatting for editor 2011-09-29 09:36:57 +08:00
Sam Hemelryk 4b71542394 MDL-28615 mod_forum: Fixed the users page that shows all of the users posts 2011-09-29 14:20:58 +13:00
Sam Hemelryk 6598f57e90 MDL-25697 theme_base: Improved the alignment of the activity editing icons on the course frontpage 2011-09-29 14:15:38 +13:00
Marina Glancy e2558cd3ab MDL-25454 before skipping course backup make sure that there are no change entries in it's log during the last month. Store the nextstarttime even for courses that were not backed up 2011-09-29 08:56:48 +08:00
Eloy Lafuente (stronk7) 69857fa06e MDL-29567 postgresql - handle negative defaults in numerical cols properly 2011-09-29 01:20:10 +02:00
Eloy Lafuente (stronk7) c75d9b6700 MDL-29567 unit tests - add some tests to cover negative defaults in numerical cols 2011-09-29 01:15:37 +02:00
Eloy Lafuente (stronk7) 61e55061a6 MDL-29566 mysql - length / decimal specs in float columns are optional 2011-09-29 00:24:54 +02:00
Eloy Lafuente (stronk7) 12e89a0a69 MDL-29566 unit tests - add some tests to cover get_columns() with number/float columns 2011-09-29 00:13:44 +02:00
David Mudrak b11f9da65e MDL-29479 New feature FEATURE_ADVANCED_GRADING
Plugins will use this feature to claim their support for the new
advanced grading methods machinery.
2011-09-29 00:09:59 +02:00
David Mudrak 4333580e80 MDL-29479 Added new core subsystem "grading" 2011-09-29 00:09:58 +02:00
Mary Evans 16c0dd2b1a MDL-28566 - Fix for participants user details 2011-09-28 15:26:22 +01:00
Eloy Lafuente (stronk7) 43c741b9b4 MDL-29552 themes - show the name of the picked theme when working with device detection enabled 2011-09-28 13:39:18 +02:00
Eloy Lafuente (stronk7) 228d24fd97 weekly release 2.2dev 2011-09-28 11:07:04 +02:00
Eloy Lafuente (stronk7) 3babb0f5ba Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-09-28 11:04:07 +02:00
Rossiani Wijaya c90ba16f51 MDL-26486 lesson mod: fixed grade report error on matching and shortanswers questions 2011-09-28 11:34:14 +08:00
AMOS bot f0990dd4dc Automatically generated installer lang files 2011-09-28 00:55:17 +00:00
Eloy Lafuente (stronk7) ce05a13d83 Merge branch 'w38_MDL-29533_m22_yui341pr1' of git://github.com/skodak/moodle 2011-09-27 12:12:57 +02:00
Petr Skoda 4bb2ac5a7f MDL-29533 add skins 2011-09-27 12:08:02 +02:00
Petr Skoda a4e0591dba MDL-29533 fresh build fetched from cdn 2011-09-27 11:55:16 +02:00
Petr Skoda 3340dae60a MDL-29504 plugin_callback() - undelete global $CFG that was supposed to be unused 2011-09-27 10:12:57 +02:00
Aparup Banerjee 260316ce48 Merge branch 'MDL-29230' of git://github.com/rwijaya/moodle 2011-09-27 14:52:00 +08:00
Aparup Banerjee 59e2fd4523 Merge branch 'wip-mdl-29244' of git://github.com/rajeshtaneja/moodle 2011-09-27 13:22:14 +08:00
Rajesh Taneja 8295d44434 MDL-29244 Users: Fixed filter for selecting users who never logged in and course roles dropdown show all revelent roles 2011-09-27 12:30:16 +08:00
Aparup Banerjee df1ed7d435 Merge branch 'MDL-25241_forum_search_ratings' of git://github.com/andyjdavis/moodle 2011-09-27 11:18:17 +08:00
Aparup Banerjee b11bf8b841 Merge branch 'w38_MDL-29510_m22_orglang' of git://github.com/skodak/moodle 2011-09-27 10:19:06 +08:00
Sam Hemelryk f08d258cd4 Merge branch 'master_MDL-29519' of git://github.com/danmarsden/moodle 2011-09-27 14:09:18 +13:00
Eloy Lafuente (stronk7) 432e182654 MDL-29504 plugin_callback() - delete some unused code 2011-09-27 02:03:50 +02:00
Eloy Lafuente (stronk7) 01b4e00161 Merge branch 'w38_MDL-29509_m22_admintool2' of git://github.com/skodak/moodle 2011-09-27 01:52:23 +02:00
Eloy Lafuente (stronk7) a068812635 Merge branch 'w38_MDL-29504_m22_plugincallback' of git://github.com/skodak/moodle 2011-09-27 01:02:51 +02:00
Eloy Lafuente (stronk7) bde5c82a20 Merge branch 'MDL-28686' of git://github.com/bostelm/moodle 2011-09-27 00:45:45 +02:00
Petr Skoda 5e8cc8462b MDL-29509 fix maturity flag 2011-09-27 00:39:23 +02:00
Petr Skoda dd51f9b1c5 MDL-29509 fix customlang upgrade script 2011-09-27 00:39:23 +02:00
Petr Skoda be746aabfd MDL-29509 fix small docs typos 2011-09-27 00:39:22 +02:00
Petr Skoda d11a27bffb MDL-29509 use appropriate requires and consistent versions for all admin tools 2011-09-27 00:39:22 +02:00
Petr Skoda fab6f7b78e MDL-29509 migrate DB replace to admin tools 2011-09-27 00:39:21 +02:00
Petr Skoda 3cdfaeeff9 MDL-29509 new admin tool manager UI 2011-09-27 00:39:21 +02:00
Petr Skoda 62f97dfc8c MDL-29509 remove dangerous and obsolete dataroot purge script
The problem is that we would have to purge files table too, but in any case this is absolutely forbidden for production sites. People have to use command line deleting on dev sites, sorry.
2011-09-27 00:39:21 +02:00
Petr Skoda 26e629c19b MDL-29509 new dbperf tool will have to be implemented from scratch 2011-09-27 00:39:21 +02:00
Petr Skoda 9597e00b79 MDL-29509 move timezoneimport to admin tools
AMOS BEGIN
 MOV [configintrotimezones,core_admin],[configintrotimezones,tool_timezoneimport]
 MOV [importtimezones,core_admin],[importtimezones,tool_timezoneimport]
 MOV [importtimezonescount,core_admin],[importtimezonescount,tool_timezoneimport]
 MOV [importtimezonesfailed,core_admin],[importtimezonesfailed,tool_timezoneimport]
 MOV [updatetimezones,core_admin],[updatetimezones,tool_timezoneimport]
AMOS END
2011-09-27 00:39:20 +02:00
Petr Skoda 17a14fbd01 MDL-29509 move spamcleaner to admin tools
Why? Because this tool does not support contexts, allows data modifications and is intended only for admins. It is still linked from admin reports for now, we will move it elsewhere once we know where to add general new reports.

AMOS BEGIN
 MOV [pluginname,report_spamcleaner],[pluginname,tool_spamcleaner]
 MOV [spamauto,report_spamcleaner],[spamauto,tool_spamcleaner]
 MOV [spamcannotdelete,report_spamcleaner],[spamcannotdelete,tool_spamcleaner]
 MOV [spamcannotfinduser,report_spamcleaner],[spamcannotfinduser,tool_spamcleaner]
 MOV [spamcleanerintro,report_spamcleaner],[spamcleanerintro,tool_spamcleaner]
 MOV [spamdeleteall,report_spamcleaner],[spamdeleteall,tool_spamcleaner]
 MOV [spamdeleteallconfirm,report_spamcleaner],[spamdeleteallconfirm,tool_spamcleaner]
 MOV [spamdeleteconfirm,report_spamcleaner],[spamdeleteconfirm,tool_spamcleaner]
 MOV [spamdesc,report_spamcleaner],[spamdesc,tool_spamcleaner]
 MOV [spameg,report_spamcleaner],[spameg,tool_spamcleaner]
 MOV [spamfromblog,report_spamcleaner],[spamfromblog,tool_spamcleaner]
 MOV [spaminvalidresult,report_spamcleaner],[spaminvalidresult,tool_spamcleaner]
 MOV [spamoperation,report_spamcleaner],[spamoperation,tool_spamcleaner]
 MOV [spamresult,report_spamcleaner],[spamresult,tool_spamcleaner]
 MOV [spamsearch,report_spamcleaner],[spamsearch,tool_spamcleaner]
AMOS END
2011-09-27 00:39:20 +02:00
Petr Skoda cff8fc8d5b MDL-29509 move qeupgradehelper to admin tools
AMOS BEGIN
 MOV [action,local_qeupgradehelper],[action,tool_qeupgradehelper]
 MOV [alreadydone,local_qeupgradehelper],[alreadydone,tool_qeupgradehelper]
 MOV [areyousure,local_qeupgradehelper],[areyousure,tool_qeupgradehelper]
 MOV [areyousuremessage,local_qeupgradehelper],[areyousuremessage,tool_qeupgradehelper]
 MOV [areyousureresetmessage,local_qeupgradehelper],[areyousureresetmessage,tool_qeupgradehelper]
 MOV [attemptstoconvert,local_qeupgradehelper],[attemptstoconvert,tool_qeupgradehelper]
 MOV [backtoindex,local_qeupgradehelper],[backtoindex,tool_qeupgradehelper]
 MOV [conversioncomplete,local_qeupgradehelper],[conversioncomplete,tool_qeupgradehelper]
 MOV [convertattempts,local_qeupgradehelper],[convertattempts,tool_qeupgradehelper]
 MOV [convertquiz,local_qeupgradehelper],[convertquiz,tool_qeupgradehelper]
 MOV [convertedattempts,local_qeupgradehelper],[convertedattempts,tool_qeupgradehelper]
 MOV [cronenabled,local_qeupgradehelper],[cronenabled,tool_qeupgradehelper]
 MOV [croninstructions,local_qeupgradehelper],[croninstructions,tool_qeupgradehelper]
 MOV [cronprocesingtime,local_qeupgradehelper],[cronprocesingtime,tool_qeupgradehelper]
 MOV [cronsetup,local_qeupgradehelper],[cronsetup,tool_qeupgradehelper]
 MOV [cronsetup_desc,local_qeupgradehelper],[cronsetup_desc,tool_qeupgradehelper]
 MOV [cronstarthour,local_qeupgradehelper],[cronstarthour,tool_qeupgradehelper]
 MOV [cronstophour,local_qeupgradehelper],[cronstophour,tool_qeupgradehelper]
 MOV [extracttestcase,local_qeupgradehelper],[extracttestcase,tool_qeupgradehelper]
 MOV [extracttestcase_desc,local_qeupgradehelper],[extracttestcase_desc,tool_qeupgradehelper]
 MOV [gotoindex,local_qeupgradehelper],[gotoindex,tool_qeupgradehelper]
 MOV [gotoquizreport,local_qeupgradehelper],[gotoquizreport,tool_qeupgradehelper]
 MOV [gotoresetlink,local_qeupgradehelper],[gotoresetlink,tool_qeupgradehelper]
 MOV [includedintheupgrade,local_qeupgradehelper],[includedintheupgrade,tool_qeupgradehelper]
 MOV [invalidquizid,local_qeupgradehelper],[invalidquizid,tool_qeupgradehelper]
 MOV [listpreupgrade,local_qeupgradehelper],[listpreupgrade,tool_qeupgradehelper]
 MOV [listpreupgrade_desc,local_qeupgradehelper],[listpreupgrade_desc,tool_qeupgradehelper]
 MOV [listpreupgradeintro,local_qeupgradehelper],[listpreupgradeintro,tool_qeupgradehelper]
 MOV [listtodo,local_qeupgradehelper],[listtodo,tool_qeupgradehelper]
 MOV [listtodo_desc,local_qeupgradehelper],[listtodo_desc,tool_qeupgradehelper]
 MOV [listtodointro,local_qeupgradehelper],[listtodointro,tool_qeupgradehelper]
 MOV [listupgraded,local_qeupgradehelper],[listupgraded,tool_qeupgradehelper]
 MOV [listupgraded_desc,local_qeupgradehelper],[listupgraded_desc,tool_qeupgradehelper]
 MOV [listupgradedintro,local_qeupgradehelper],[listupgradedintro,tool_qeupgradehelper]
 MOV [noquizattempts,local_qeupgradehelper],[noquizattempts,tool_qeupgradehelper]
 MOV [nothingupgradedyet,local_qeupgradehelper],[nothingupgradedyet,tool_qeupgradehelper]
 MOV [notupgradedsiterequired,local_qeupgradehelper],[notupgradedsiterequired,tool_qeupgradehelper]
 MOV [numberofattempts,local_qeupgradehelper],[numberofattempts,tool_qeupgradehelper]
 MOV [oldsitedetected,local_qeupgradehelper],[oldsitedetected,tool_qeupgradehelper]
 MOV [outof,local_qeupgradehelper],[outof,tool_qeupgradehelper]
 MOV [pluginname,local_qeupgradehelper],[pluginname,tool_qeupgradehelper]
 MOV [pretendupgrade,local_qeupgradehelper],[pretendupgrade,tool_qeupgradehelper]
 MOV [pretendupgrade_desc,local_qeupgradehelper],[pretendupgrade_desc,tool_qeupgradehelper]
 MOV [questionsessions,local_qeupgradehelper],[questionsessions,tool_qeupgradehelper]
 MOV [quizid,local_qeupgradehelper],[quizid,tool_qeupgradehelper]
 MOV [quizupgrade,local_qeupgradehelper],[quizupgrade,tool_qeupgradehelper]
 MOV [quizzesthatcanbereset,local_qeupgradehelper],[quizzesthatcanbereset,tool_qeupgradehelper]
 MOV [quizzestobeupgraded,local_qeupgradehelper],[quizzestobeupgraded,tool_qeupgradehelper]
 MOV [quizzeswithunconverted,local_qeupgradehelper],[quizzeswithunconverted,tool_qeupgradehelper]
 MOV [resetquiz,local_qeupgradehelper],[resetquiz,tool_qeupgradehelper]
 MOV [resetcomplete,local_qeupgradehelper],[resetcomplete,tool_qeupgradehelper]
 MOV [resettingquizattempts,local_qeupgradehelper],[resettingquizattempts,tool_qeupgradehelper]
 MOV [resettingquizattemptsprogress,local_qeupgradehelper],[resettingquizattemptsprogress,tool_qeupgradehelper]
 MOV [upgradingquizattempts,local_qeupgradehelper],[upgradingquizattempts,tool_qeupgradehelper]
 MOV [upgradedsitedetected,local_qeupgradehelper],[upgradedsitedetected,tool_qeupgradehelper]
 MOV [upgradedsiterequired,local_qeupgradehelper],[upgradedsiterequired,tool_qeupgradehelper]
 MOV [veryoldattemtps,local_qeupgradehelper],[veryoldattemtps,tool_qeupgradehelper]
AMOS END
2011-09-27 00:39:20 +02:00
Petr Skoda b703861f49 MDL-29509 move customlang to admin tools
AMOS BEGIN
 MOV [checkin,report_customlang],[checkin,tool_customlang]
 MOV [checkout,report_customlang],[checkout,tool_customlang]
 MOV [checkoutdone,report_customlang],[checkoutdone,tool_customlang]
 MOV [checkoutinprogress,report_customlang],[checkoutinprogress,tool_customlang]
 MOV [confirmcheckin,report_customlang],[confirmcheckin,tool_customlang]
 MOV [customlang:edit,report_customlang],[customlang:edit,tool_customlang]
 MOV [customlang:view,report_customlang],[customlang:view,tool_customlang]
 MOV [filter,report_customlang],[filter,tool_customlang]
 MOV [filtercomponent,report_customlang],[filtercomponent,tool_customlang]
 MOV [filtercustomized,report_customlang],[filtercustomized,tool_customlang]
 MOV [filtermodified,report_customlang],[filtermodified,tool_customlang]
 MOV [filteronlyhelps,report_customlang],[filteronlyhelps,tool_customlang]
 MOV [filtershowstrings,report_customlang],[filtershowstrings,tool_customlang]
 MOV [filterstringid,report_customlang],[filterstringid,tool_customlang]
 MOV [filtersubstring,report_customlang],[filtersubstring,tool_customlang]
 MOV [headingcomponent,report_customlang],[headingcomponent,tool_customlang]
 MOV [headinglocal,report_customlang],[headinglocal,tool_customlang]
 MOV [headingstandard,report_customlang],[headingstandard,tool_customlang]
 MOV [headingstringid,report_customlang],[headingstringid,tool_customlang]
 MOV [markinguptodate,report_customlang],[markinguptodate,tool_customlang]
 MOV [markinguptodate_help,report_customlang],[markinguptodate_help,tool_customlang]
 MOV [markuptodate,report_customlang],[markuptodate,tool_customlang]
 MOV [modifiedno,report_customlang],[modifiedno,tool_customlang]
 MOV [modifiednum,report_customlang],[modifiednum,tool_customlang]
 MOV [nostringsfound,report_customlang],[nostringsfound,tool_customlang]
 MOV [placeholder,report_customlang],[placeholder,tool_customlang]
 MOV [placeholder_help,report_customlang],[placeholder_help,tool_customlang]
 MOV [placeholderwarning,report_customlang],[placeholderwarning,tool_customlang]
 MOV [pluginname,report_customlang],[pluginname,tool_customlang]
 MOV [savecheckin,report_customlang],[savecheckin,tool_customlang]
 MOV [savecontinue,report_customlang],[savecontinue,tool_customlang]
AMOS END
2011-09-27 00:39:19 +02:00
Petr Skoda 58415fa0aa MDL-29509 explain registration url trouble
The problem is that the registration does not pass the confirmation url together with the registration request, this means we can not move the admin/registration to admin/tool/registration, but also sites with custom $CFG->admin can not be registered either.
2011-09-27 00:39:19 +02:00
Petr Skoda 67a6243ad4 MDL-29509 add cron support for admin tools 2011-09-27 00:39:19 +02:00
Petr Skoda 60c452b4a2 MDL-29504 fix invalid plugin callback names
Only modules are allow to use old style non-frankenstyle callback names, all other plugins must use full component prefix.
2011-09-27 00:37:18 +02:00
Sam Hemelryk 87eca3192f Merge branch 'MDL-28424' of git://github.com/timhunt/moodle.git with changes 2011-09-27 11:24:02 +13:00
Eloy Lafuente (stronk7) e135797586 Merge branch 'w38_MDL-29401_m22_frankenstyle' of git://github.com/skodak/moodle 2011-09-27 00:00:20 +02:00
Petr Skoda a5bb3a70aa MDL-29401 few more tests for Eloy 2011-09-26 23:26:09 +02:00
Petr Skoda 5a2bd48665 MDL-29401 fix previous regression
The problem was introduced when / was removed from PARAM_ALPHAEXT.
2011-09-26 23:21:39 +02:00
Eloy Lafuente (stronk7) c430009676 Merge branch 'MDL-29462' of git://github.com/timhunt/moodle 2011-09-26 22:40:32 +02:00
Eloy Lafuente (stronk7) e75f06d9ec Merge branch 'MDL-28202' of git://github.com/timhunt/moodle 2011-09-26 22:27:00 +02:00
Eloy Lafuente (stronk7) 8374ca3c5f Merge branch 'w38_MDL-29533_m22_yui341pr1' of git://github.com/skodak/moodle 2011-09-26 22:10:52 +02:00
Petr Skoda 363e0389ec MDL-29533 import new YUI 3.4.1pr1
We need to test this in master because we need to backport it into Moodle 2.1.x in order to resolve issues with latest browsers.
2011-09-26 21:54:31 +02:00
Eloy Lafuente (stronk7) 1a8ab39b3c Merge branch 'MDL-29427' of git://github.com/timhunt/moodle 2011-09-26 21:47:40 +02:00
Eloy Lafuente (stronk7) 789e95ddde Merge branch 'MDL-29528' of git://github.com/timhunt/moodle 2011-09-26 21:43:57 +02:00
Tim Hunt 288633ebbe MDL-29528 qtype multichoice and caclulated combined feedback format overwritten during upgrade. 2011-09-26 13:37:12 +01:00
Aparup Banerjee 976624ad5e Merge branch 'MDL-29270-question-grade' of git://github.com/mudrd8mz/moodle 2011-09-26 16:57:01 +08:00
Rossiani Wijaya 0343553fbc MDL-29296 lesson mod: fixed regression for continue button on last lesson page. 2011-09-26 16:41:49 +08:00
Aparup Banerjee 2ba08e4ba2 Merge branch 'wip-MDL-29487-master' of git://github.com/samhemelryk/moodle 2011-09-26 16:00:04 +08:00
Aparup Banerjee 94f59561ad Merge branch 'MDL-29464' of git://github.com/timhunt/moodle 2011-09-26 14:32:52 +08:00
Aparup Banerjee 2a8702c158 Merge branch 'MDL-29333_rating_ajax' of git://github.com/andyjdavis/moodle 2011-09-26 13:47:20 +08:00
Sam Hemelryk 32da08a2e2 Merge branch 'MDL-29428' of git://github.com/timhunt/moodle 2011-09-26 14:03:54 +13:00
AMOS bot 15218d8183 Merge branch 'master' into install_master 2011-09-26 00:55:27 +00:00
Sam Hemelryk aa856c7999 Merge branch 'MDL-29484' of git://github.com/timhunt/moodle 2011-09-26 13:53:17 +13:00
Sam Hemelryk 98182d2bb6 Merge branch 'MDL-29492' of git://github.com/timhunt/moodle 2011-09-26 13:50:36 +13:00
Sam Hemelryk 663a12c32e Merge branch 'MDL-29493' of git://github.com/timhunt/moodle 2011-09-26 13:47:41 +13:00
Petr Skoda 65e9eac0d1 MDL-29401 fix forgotten area
Thanks Eloy!
2011-09-26 02:16:31 +02:00
Dan Marsden 8cf1862ccc MDL-29519 move plagiarism cron to after event queue 2011-09-26 13:15:15 +13:00
Sam Hemelryk 6ef900d20b Merge branch 'MDL-29416' of git://github.com/stronk7/moodle 2011-09-26 12:55:19 +13:00
Sam Hemelryk 809dae3461 Merge branch 'MDL-29336-numerrors-mapping' of git://github.com/mudrd8mz/moodle 2011-09-26 12:37:12 +13:00
Eloy Lafuente (stronk7) 1c08c1fa32 MDL-29416 oracle - xmldb report to change all BYTE semantics to CHAR 2011-09-26 00:54:25 +02:00
Sam Hemelryk 0ebe6764e9 Merge branch 'MDL-29478' of git://github.com/stronk7/moodle 2011-09-26 10:52:48 +13:00
Sam Hemelryk fea98bd4c3 Merge branch 'MDL-29139' of git://github.com/nebgor/moodle 2011-09-26 10:46:39 +13:00
Sam Hemelryk 9d0fc907e8 Merge branch 'MDL-29190_master_wip' of git://github.com/grabs/moodle 2011-09-26 10:38:54 +13:00
Jean-Michel Vedrine 9107daa0f5 MDL-29270 Fixed question bank backup converter (field rename) 2011-09-25 23:33:00 +02:00
Petr Skoda 389392486d remove deprecated enum info 2011-09-25 20:38:59 +02:00
Petr Skoda 61e36b9649 fix maturity info 2011-09-25 20:36:27 +02:00
Eloy Lafuente (stronk7) e63ae067f4 weekly release 2.2dev (emergency) 2011-09-25 17:25:04 +02:00
Eloy Lafuente (stronk7) ac4a2a8c08 MDL-29512 Revert "MDL-25937 Froms Library: Added server side validation for filepicker and filemanager"
This reverts commit f03a17bb09.
2011-09-25 17:13:40 +02:00
Eloy Lafuente (stronk7) f0e2317087 MDL-29512 Revert "MDL-25937 Forms Library: Added Javascript validation for filepicker and filemanager. Also fixed disbledif rule check for both"
This reverts commit 7dfe3c517b.
2011-09-25 17:10:27 +02:00
Petr Skoda aff24313be MDL-29401 introduce new frankenstyle PARAM types
New PARAM_COMPONENT, PARAM_AREA and PARAM_PLUGIN + fixing of hopefully all current incorrect parameter types. This should help with diagnosing of incorrectly named 3rd party plugins too.
2011-09-25 09:59:55 +02:00
Petr Skoda 228ec7bba4 MDL-29510 remove moodle.org lang file
It is now maintained in a separate local plugin. Translators have to use AMOS already.
2011-09-25 09:32:49 +02:00
AMOS bot bf4771b438 Automatically generated installer lang files 2011-09-25 00:55:16 +00:00
AMOS bot 58fad12668 Automatically generated installer lang files 2011-09-24 00:55:18 +00:00
Andreas Grabs 2497d0273d MDL-29190 - XHTML not well formed in show_nonrespondents.php 2011-09-23 18:56:47 +02:00
Tim Hunt 7664182d7f MDL-29493 questions should be createable with defaultmark a float. 2011-09-23 12:55:01 +01:00
Tim Hunt b84dca8cb8 MDL-29492 restore unit test prettiness. 2011-09-23 12:15:13 +01:00
Tim Hunt e9735a1f31 MDL-29484 qformat xml tests failing. 2011-09-23 12:06:45 +01:00
Sam Hemelryk 9d796fba6c MDL-29487 enrol: Fixed typo in enrol_sharing_course 2011-09-23 18:17:35 +12:00
Rossiani Wijaya 6d84e82f3a MDL-29230 lesson_module: fixed question's answer to have 0 value. 2011-09-23 14:02:46 +08:00
Eloy Lafuente (stronk7) e437d9f1d9 MDL-29478 unittest - fix rating tests so they can be executed with accesslib caches cleaned 2011-09-23 01:46:38 +02:00
Eloy Lafuente (stronk7) 5169a039c7 MDL-29478 unittest - explicity include blog/lib.php. Was causing "random" errors 2011-09-23 01:36:41 +02:00
Eloy Lafuente (stronk7) 40a8974915 MDL-29478 unittest - we aren't a report anymore but one admin/tool 2011-09-23 00:11:50 +02:00
Eloy Lafuente (stronk7) 635c65bbd5 MDL-29478 blog - fixed some recent regressions introduced by MDL-29186 2011-09-23 00:03:56 +02:00
Tim Hunt 79a46626d3 MDL-29427 quiz nav: information items should should have a state tooltip 2011-09-22 18:12:43 +01:00
Tim Hunt 572a96edb0 MDL-29428 quiz navigation panel should use 'This page' (accessibility improvement) 2011-09-22 17:56:02 +01:00
Kyle Temkin aecb339307 MDL-28202 qtype_calculated fix edge case in the rounding code. 2011-09-22 12:13:08 +01:00
Aparup Banerjee bfc60f5d1b MDL-29139 Forms Library : fixed missing require_once 2011-09-22 14:57:11 +08:00
David Mudrak c8f1b818ff MDL-29336 Saving grade mapping table in the Workshop
The Workshop module using the "Number of errors" grading strategy did
not save all items in the grade mapping table. If some assessment form
fields have weight > 1, the number of possible errors is greater that
the number of the assessment form fields. The previous code deleted all
mappings where the number of errors was greater than the number of
fields.

In this patch, the maximum number of possible errors is calculated as a
sum of weights of all fields. Only mappings over this maximum are
deleted now.
2011-09-22 05:33:01 +02:00
AMOS bot 406719af1a Automatically generated installer lang files 2011-09-22 00:55:27 +00:00
Tim Hunt fabface827 MDL-29464 quiz add random question popup does not update sumgrades. 2011-09-21 16:39:31 +01:00
Tim Hunt 1f347cb71d MDL-29462 html_to_text('0') gives '', not '0'. 2011-09-21 16:38:58 +01:00
Tim Hunt babfb615c9 MDL-28424 Reviewing a quiz in 'secure mode' gives a fatal error.
The problem was when output was being started in relation to when the fake block was added.

Took the opportunity to clean up the quiz renderer API a bit.
2011-09-21 16:37:21 +01:00
Eloy Lafuente (stronk7) dab8148fde weekly release 2.2dev 2011-09-21 17:11:02 +02:00
Andrew Davis (andyjdavis) 5e36e1045a MDL-29333 rating: prevent the ratings JS from being intialized multiple times 2011-09-21 15:49:24 +08:00
Andrew Davis (andyjdavis) 5c0452c6f8 MDL-29333 rating: refactored the ratings ajax 2011-09-21 14:54:32 +08:00
Jamie Pratt 1ae299f5f3 MDL-27919 Fixed a regression where I was seeing that after choosing "Overwrite"
in a filemanager form component when subsequently trying to add another file the
file picker would then immediately close upon opening.
2011-09-21 13:15:23 +07:00
Sam Hemelryk 609ad0da5b Merge branch 'MDL-26635' of git://github.com/mouneyrac/moodle 2011-09-21 17:52:53 +12:00
Jerome Mouneyrac ccda013458 MDL-26635 Return a more explicit debuginfo message when the user can not access the web service function 2011-09-21 13:03:18 +08:00
Eloy Lafuente (stronk7) 0e89333992 Merge branch 'MDL-26567' of git://github.com/timhunt/moodle 2011-09-21 00:10:30 +02:00
Eloy Lafuente (stronk7) ed9e0cb6ec MDL-21676 user: minor gravatar fixes 2011-09-20 12:43:00 +02:00
Sam Hemelryk 4125bdc139 MDL-21676 user: Implemented support for Gravatar profile pictures
Big thanks to the developers who put effort into this improvement:
* Jonathan Robson <jonathan.robson@remote-learner.net>
* Jonathan Harker <jonathan@catalyst.net.nz>
2011-09-20 12:41:48 +02:00
Tim Hunt 71c4154a98 MDL-26567 no grade category option on the quiz settings form.
Also, refine the standard_grading_coursemodule_elements method to add a
help string.

AMOS BEGIN
 CPY [gradecategory,grades],[gradecategoryonmodform,grades]
AMOS END
2011-09-20 11:10:34 +01:00
Andrew Davis (andyjdavis) 667f63fefa MDL-25241 forum: reimplemented the display of ratings on the forum search page 2011-09-20 16:17:00 +08:00
Eloy Lafuente (stronk7) 8974d17a8f Merge branch 'wip-mdl-29079' of git://github.com/rajeshtaneja/moodle 2011-09-20 09:50:46 +02:00
Aparup Banerjee c9f7b5e20b Merge branch 'MDL-26890-master' of git://github.com/ankitagarwal/moodle 2011-09-20 13:15:52 +08:00
Ankit Kumar Agarwal c0d60b3a3f MDL-26890 Forums check on filesize if the file is added to the forum from private area 2011-09-20 10:01:42 +05:30
Rajesh Taneja 94b38ab1c1 MDL-29079 Administration: Added space on both sides of locked checkbox and for rtl language space will be applied accordingly 2011-09-20 11:49:24 +08:00
Aparup Banerjee 48a7eed587 Merge branch 'wip-mdl-28726' of git://github.com/rajeshtaneja/moodle 2011-09-20 10:19:17 +08:00
Sam Hemelryk 436cfb8bb7 Merge branch 'MDL-26841' of git://github.com/stronk7/moodle 2011-09-20 12:14:13 +12:00
Sam Hemelryk 7d6e26b49b Merge branch 'MDL-29392' of git://github.com/timhunt/moodle 2011-09-20 11:58:04 +12:00
Colin Chambers 5a1a7112cd MDL-29394 form editor - Use hidden field when only 1 format option is available #947 2011-09-20 00:35:01 +02:00
Eloy Lafuente (stronk7) 3eabe0ccd5 Merge branch 'wip-mdl-29079' of git://github.com/rajeshtaneja/moodle 2011-09-20 00:17:20 +02:00
Eloy Lafuente (stronk7) 3ff38c0e9c Merge branch 'MDL-28679' of git://github.com/timhunt/moodle 2011-09-20 00:03:46 +02:00
Eloy Lafuente (stronk7) f1ac51ac60 Merge branch 'MDL-29279' of git://github.com/mouneyrac/moodle 2011-09-19 23:56:41 +02:00
Eloy Lafuente (stronk7) 93eb27d4c0 Merge branch 'MDL-29126_export_separator' of git://github.com/andyjdavis/moodle 2011-09-19 23:38:07 +02:00
Eloy Lafuente (stronk7) 4ac92d2ac1 MDL-29029 admin_tool - fixed 2 ocurrences pointing to old paths 2011-09-19 18:54:30 +02:00
Eloy Lafuente (stronk7) 9d8d55a00e Merge branch 'w37_MDL-29029_m22_admintools' of git://github.com/skodak/moodle 2011-09-19 18:26:55 +02:00
Eloy Lafuente (stronk7) 3d5bb9115d Merge branch 'w37_MDL-29081_m22_googlespellproxy' of git://github.com/skodak/moodle 2011-09-19 18:09:47 +02:00
M Kassaei 5cd7869883 MDL-29392 grade/report/index.php should use $CFG->grade_profilereport 2011-09-19 11:30:49 +01:00
Eloy Lafuente (stronk7) ab545ab55e Merge branch 'wip-MDL-29185-master' of git://github.com/samhemelryk/moodle 2011-09-19 11:58:37 +02:00
Eloy Lafuente (stronk7) 9ab5df6b8b MDL-26841 backup - prevent any enrolments info to be handled in IMPORT/HUB operations 2011-09-19 11:21:43 +02:00
Aparup Banerjee aa601cca0a Merge branch 's13_MDL-29036_ws_upload_master' of git://github.com/dongsheng/moodle 2011-09-19 16:02:45 +08:00
Dongsheng Cai 7515e1bac4 MDL-29036 WEBSERVICE : webservice upload script should respect maxbytes and userquota settings 2011-09-19 15:31:34 +08:00
Sam Hemelryk 4cc14ab11e Merge branch 'MDL-29366' of git://github.com/timhunt/moodle 2011-09-19 19:19:42 +12:00
Sam Hemelryk 0910764ff3 Merge branch 'MDL-28329' of git://github.com/timhunt/moodle 2011-09-19 18:36:38 +12:00
Jerome Mouneyrac a08b4cc8eb MDL-29279 REST server can return json format 2011-09-19 13:54:09 +08:00
Rajesh Taneja 48a614d97e MDL-29079 Administration: Added space between checkboxes on general backup setting page 2011-09-19 13:32:38 +08:00
Sam Hemelryk 931f89cc13 Merge branch 'wip-mdl-25937' of git://github.com/rajeshtaneja/moodle 2011-09-19 17:01:00 +12:00
Aparup Banerjee 9fee890b57 Merge branch 's13_MDL-28509_youtube_master' of github.com:dongsheng/moodle 2011-09-19 12:10:23 +08:00
Dongsheng Cai 4a54e75848 MDL-28509 repository : fixed youtube repository search keyword 2011-09-19 11:57:46 +08:00
Mark Johnson 79ba96f75c MDL-28509 repository_youtube Enable selection of sort order 2011-09-19 11:57:35 +08:00
Sam Hemelryk 668dae632a Merge branch 'MDL-29276' of git://github.com/mouneyrac/moodle 2011-09-19 14:26:58 +12:00
Sam Hemelryk cb2c93c8db Merge branch 'w37_MDL-29406_m22_configdelete' of git://github.com/skodak/moodle 2011-09-19 13:32:37 +12:00
Sam Hemelryk 7e0b7fe7cf Merge branch 'MDL-29360' of git://github.com/timhunt/moodle 2011-09-19 11:56:34 +12:00
Sam Hemelryk 76ecaa1074 Merge branch 'MDL-28259' of git://github.com/timhunt/moodle 2011-09-19 11:40:48 +12:00
Eloy Lafuente (stronk7) 37b5d8b0c4 MDL-29321 syntax - fix switch() statement 2011-09-19 01:24:51 +02:00
Eloy Lafuente (stronk7) b1c1eeaec9 MDL-29314 syntax - fix switch() statement 2011-09-19 01:21:57 +02:00
Sam Hemelryk 2b834a1d06 Merge branch 'MDL-29415' of git://github.com/stronk7/moodle 2011-09-19 11:15:04 +12:00
Eloy Lafuente (stronk7) 018213bed2 MDL-29415 xmldb - fix get_columns() in oracle to get char based lengths + test 2011-09-19 00:34:10 +02:00
Petr Skoda 8f9f70fba2 MDL-29081 add proxy support to googlespell 2011-09-18 13:00:28 +02:00
Petr Skoda ce15d56ddb MDL-29029 move user upload to admin tools
AMOS BEGIN
 MOV [uploadpictures,core_admin],[uploadpictures,tool_uploaduser]
 MOV [uploadpictures_help,core_admin],[uploadpictures_help,tool_uploaduser]
 MOV [uploadusers,core_admin],[uploadusers,tool_uploaduser]
 MOV [uploadusers_help,core_admin],[uploadusers_help,tool_uploaduser]
 MOV [uploaduserspreview,core_admin],[uploaduserspreview,tool_uploaduser]
 MOV [uploadusersresult,core_admin],[uploadusersresult,tool_uploaduser]
 MOV [uucsvline,core_admin],[uucsvline,tool_uploaduser]
 MOV [userrenamed,core_admin],[userrenamed,tool_uploaduser]
 MOV [useraccountupdated,core_admin],[useraccountupdated,tool_uploaduser]
 MOV [useraccountuptodate,core_admin],[useraccountuptodate,tool_uploaduser]
 MOV [userdeleted,core_admin],[userdeleted,tool_uploaduser]
 MOV [uupasswordcron,core_admin],[uupasswordcron,tool_uploaduser]
 MOV [userscreated,core_admin],[userscreated,tool_uploaduser]
 MOV [usersupdated,core_admin],[usersupdated,tool_uploaduser]
 MOV [usersdeleted,core_admin],[usersdeleted,tool_uploaduser]
 MOV [deleteerrors,core_admin],[deleteerrors,tool_uploaduser]
 MOV [usersrenamed,core_admin],[usersrenamed,tool_uploaduser]
 MOV [renameerrors,core_admin],[renameerrors,tool_uploaduser]
 MOV [usersskipped,core_admin],[usersskipped,tool_uploaduser]
 MOV [usersweakpassword,core_admin],[usersweakpassword,tool_uploaduser]
 MOV [errors,core_admin],[errors,tool_uploaduser]
 MOV [csvdelimiter,core_admin],[csvdelimiter,tool_uploaduser]
 MOV [encoding,core_admin],[encoding,tool_uploaduser]
 MOV [rowpreviewnum,core_admin],[rowpreviewnum,tool_uploaduser]
 MOV [uuoptype_addinc,core_admin],[uuoptype_addinc,tool_uploaduser]
 MOV [uuoptype_addnew,core_admin],[uuoptype_addnew,tool_uploaduser]
 MOV [uuoptype_addupdate,core_admin],[uuoptype_addupdate,tool_uploaduser]
 MOV [uuoptype_update,core_admin],[uuoptype_update,tool_uploaduser]
 MOV [uuoptype,core_admin],[uuoptype,tool_uploaduser]
 MOV [uupasswordnew,core_admin],[uupasswordnew,tool_uploaduser]
 MOV [uupasswordold,core_admin],[uupasswordold,tool_uploaduser]
 MOV [nochanges,core_admin],[nochanges,tool_uploaduser]
 MOV [uuupdateall,core_admin],[uuupdateall,tool_uploaduser]
 MOV [uuupdatefromfile,core_admin],[uuupdatefromfile,tool_uploaduser]
 MOV [uuupdatemissing,core_admin],[uuupdatemissing,tool_uploaduser]
 MOV [uuupdatetype,core_admin],[uuupdatetype,tool_uploaduser]
 MOV [allowrenames,core_admin],[allowrenames,tool_uploaduser]
 MOV [allowdeletes,core_admin],[allowdeletes,tool_uploaduser]
 MOV [uunoemailduplicates,core_admin],[uunoemailduplicates,tool_uploaduser]
 MOV [uustandardusernames,core_admin],[uustandardusernames,tool_uploaduser]
 MOV [uubulk,core_admin],[uubulk,tool_uploaduser]
 MOV [uubulkall,core_admin],[uubulkall,tool_uploaduser]
 MOV [uubulknew,core_admin],[uubulknew,tool_uploaduser]
 MOV [uubulkupdated,core_admin],[uubulkupdated,tool_uploaduser]
 MOV [uulegacy1role,core_admin],[uulegacy1role,tool_uploaduser]
 MOV [uulegacy2role,core_admin],[uulegacy2role,tool_uploaduser]
 MOV [uulegacy3role,core_admin],[uulegacy3role,tool_uploaduser]
 MOV [defaultvalues,core_admin],[defaultvalues,tool_uploaduser]
 MOV [uuusernametemplate,core_admin],[uuusernametemplate,tool_uploaduser]
 MOV [requiredtemplate,core_admin],[requiredtemplate,tool_uploaduser]
 MOV [uploadpicture_baduserfield,core_admin],[uploadpicture_baduserfield,tool_uploaduser]
 MOV [uploadpicture_cannotmovezip,core_admin],[uploadpicture_cannotmovezip,tool_uploaduser]
 MOV [uploadpicture_cannotprocessdir,core_admin],[uploadpicture_cannotprocessdir,tool_uploaduser]
 MOV [uploadpicture_cannotsave,core_admin],[uploadpicture_cannotsave,tool_uploaduser]
 MOV [uploadpicture_cannotunzip,core_admin],[uploadpicture_cannotunzip,tool_uploaduser]
 MOV [uploadpicture_invalidfilename,core_admin],[uploadpicture_invalidfilename,tool_uploaduser]
 MOV [uploadpicture_overwrite,core_admin],[uploadpicture_overwrite,tool_uploaduser]
 MOV [uploadpicture_userfield,core_admin],[uploadpicture_userfield,tool_uploaduser]
 MOV [uploadpicture_usernotfound,core_admin],[uploadpicture_usernotfound,tool_uploaduser]
 MOV [uploadpicture_userskipped,core_admin],[uploadpicture_userskipped,tool_uploaduser]
 MOV [uploadpicture_userupdated,core_admin],[uploadpicture_userupdated,tool_uploaduser]
AMOS END
2011-09-18 11:00:39 +02:00
Petr Skoda 0715e3d938 MDL-29029 move multilang upgrade to admin tools
AMOS BEGIN
 MOV [multilangupgrade,core_admin],[pluginname,tool_ multilangupgrade]
 MOV [multilangupgradeinfo,core_admin],[multilangupgradeinfo,tool_ multilangupgrade]
AMOS END
2011-09-18 09:44:39 +02:00
Jamie Pratt 913b3cb30c MDL-27919 also adding a callback to the filepicker when a file is overwritten
but a file with the same name. This is not necessary in most cases but is
instant and some code may expect a call to the function whether the url and / or
file name has changed or not so it can update itself when the file changes.
2011-09-18 13:57:09 +07:00
Jamie Pratt 794cc7e1cf MDL-27919 Fixes 'undefined' message and similar problems when selecting a
recent file, server file or when renaming a file being uploaded with the same
name as a previous one.
2011-09-18 13:22:35 +07:00
Petr Skoda b007a5d041 MDL-29029 move xmldb-editor to admin tools
AMOS BEGIN
 MOV [xmldbeditor,moodle],[pluginname,tool_xmldb]
 MOV [actual,core_xmldb],[actual,tool_xmldb]
 MOV [aftertable,core_xmldb],[aftertable,tool_xmldb]
 MOV [back,core_xmldb],[back,tool_xmldb]
 MOV [backtomainview,core_xmldb],[backtomainview,tool_xmldb]
 MOV [binaryincorrectlength,core_xmldb],[binaryincorrectlength,tool_xmldb]
 MOV [cannotuseidfield,core_xmldb],[cannotuseidfield,tool_xmldb]
 MOV [completelogbelow,core_xmldb],[completelogbelow,tool_xmldb]
 MOV [confirmdeletefield,core_xmldb],[confirmdeletefield,tool_xmldb]
 MOV [confirmdeleteindex,core_xmldb],[confirmdeleteindex,tool_xmldb]
 MOV [confirmdeletekey,core_xmldb],[confirmdeletekey,tool_xmldb]
 MOV [confirmdeletetable,core_xmldb],[confirmdeletetable,tool_xmldb]
 MOV [confirmdeletexmlfile,core_xmldb],[confirmdeletexmlfile,tool_xmldb]
 MOV [confirmcheckbigints,core_xmldb],[confirmcheckbigints,tool_xmldb]
 MOV [confirmcheckdefaults,core_xmldb],[confirmcheckdefaults,tool_xmldb]
 MOV [confirmcheckforeignkeys,core_xmldb],[confirmcheckforeignkeys,tool_xmldb]
 MOV [confirmcheckindexes,core_xmldb],[confirmcheckindexes,tool_xmldb]
 MOV [confirmrevertchanges,core_xmldb],[confirmrevertchanges,tool_xmldb]
 MOV [create,core_xmldb],[create,tool_xmldb]
 MOV [createtable,core_xmldb],[createtable,tool_xmldb]
 MOV [defaultincorrect,core_xmldb],[defaultincorrect,tool_xmldb]
 MOV [delete,core_xmldb],[delete,tool_xmldb]
 MOV [delete_field,core_xmldb],[delete_field,tool_xmldb]
 MOV [delete_index,core_xmldb],[delete_index,tool_xmldb]
 MOV [delete_key,core_xmldb],[delete_key,tool_xmldb]
 MOV [delete_table,core_xmldb],[delete_table,tool_xmldb]
 MOV [delete_xml_file,core_xmldb],[delete_xml_file,tool_xmldb]
 MOV [doc,core_xmldb],[doc,tool_xmldb]
 MOV [docindex,core_xmldb],[docindex,tool_xmldb]
 MOV [documentationintro,core_xmldb],[documentationintro,tool_xmldb]
 MOV [down,core_xmldb],[down,tool_xmldb]
 MOV [duplicate,core_xmldb],[duplicate,tool_xmldb]
 MOV [duplicatefieldname,core_xmldb],[duplicatefieldname,tool_xmldb]
 MOV [duplicatekeyname,core_xmldb],[duplicatekeyname,tool_xmldb]
 MOV [edit,core_xmldb],[edit,tool_xmldb]
 MOV [edit_field,core_xmldb],[edit_field,tool_xmldb]
 MOV [edit_field_save,core_xmldb],[edit_field_save,tool_xmldb]
 MOV [edit_index,core_xmldb],[edit_index,tool_xmldb]
 MOV [edit_index_save,core_xmldb],[edit_index_save,tool_xmldb]
 MOV [edit_key,core_xmldb],[edit_key,tool_xmldb]
 MOV [edit_key_save,core_xmldb],[edit_key_save,tool_xmldb]
 MOV [edit_table,core_xmldb],[edit_table,tool_xmldb]
 MOV [edit_table_save,core_xmldb],[edit_table_save,tool_xmldb]
 MOV [edit_xml_file,core_xmldb],[edit_xml_file,tool_xmldb]
 MOV [enumvaluesincorrect,core_xmldb],[enumvaluesincorrect,tool_xmldb]
 MOV [expected,core_xmldb],[expected,tool_xmldb]
 MOV [extensionrequired,core_xmldb],[extensionrequired,tool_xmldb]
 MOV [field,core_xmldb],[field,tool_xmldb]
 MOV [fieldnameempty,core_xmldb],[fieldnameempty,tool_xmldb]
 MOV [fields,core_xmldb],[fields,tool_xmldb]
 MOV [fieldsnotintable,core_xmldb],[fieldsnotintable,tool_xmldb]
 MOV [fieldsusedinkey,core_xmldb],[fieldsusedinkey,tool_xmldb]
 MOV [filenotwriteable,core_xmldb],[filenotwriteable,tool_xmldb]
 MOV [fkviolationdetails,core_xmldb],[fkviolationdetails,tool_xmldb]
 MOV [floatincorrectdecimals,core_xmldb],[floatincorrectdecimals,tool_xmldb]
 MOV [floatincorrectlength,core_xmldb],[floatincorrectlength,tool_xmldb]
 MOV [float2numbernote,core_xmldb],[float2numbernote,tool_xmldb]
 MOV [generate_all_documentation,core_xmldb],[generate_all_documentation,tool_xmldb]
 MOV [generate_documentation,core_xmldb],[generate_documentation,tool_xmldb]
 MOV [gotolastused,core_xmldb],[gotolastused,tool_xmldb]
 MOV [change,core_xmldb],[change,tool_xmldb]
 MOV [charincorrectlength,core_xmldb],[charincorrectlength,tool_xmldb]
 MOV [checkbigints,core_xmldb],[checkbigints,tool_xmldb]
 MOV [check_bigints,core_xmldb],[check_bigints,tool_xmldb]
 MOV [checkdefaults,core_xmldb],[checkdefaults,tool_xmldb]
 MOV [check_defaults,core_xmldb],[check_defaults,tool_xmldb]
 MOV [checkforeignkeys,core_xmldb],[checkforeignkeys,tool_xmldb]
 MOV [check_foreign_keys,core_xmldb],[check_foreign_keys,tool_xmldb]
 MOV [checkindexes,core_xmldb],[checkindexes,tool_xmldb]
 MOV [check_indexes,core_xmldb],[check_indexes,tool_xmldb]
 MOV [incorrectfieldname,core_xmldb],[incorrectfieldname,tool_xmldb]
 MOV [index,core_xmldb],[index,tool_xmldb]
 MOV [indexes,core_xmldb],[indexes,tool_xmldb]
 MOV [integerincorrectlength,core_xmldb],[integerincorrectlength,tool_xmldb]
 MOV [key,core_xmldb],[key,tool_xmldb]
 MOV [keys,core_xmldb],[keys,tool_xmldb]
 MOV [listreservedwords,core_xmldb],[listreservedwords,tool_xmldb]
 MOV [load,core_xmldb],[load,tool_xmldb]
 MOV [main_view,core_xmldb],[main_view,tool_xmldb]
 MOV [masterprimaryuniqueordernomatch,core_xmldb],[masterprimaryuniqueordernomatch,tool_xmldb]
 MOV [missing,core_xmldb],[missing,tool_xmldb]
 MOV [missingindexes,core_xmldb],[missingindexes,tool_xmldb]
 MOV [mustselectonefield,core_xmldb],[mustselectonefield,tool_xmldb]
 MOV [mustselectoneindex,core_xmldb],[mustselectoneindex,tool_xmldb]
 MOV [mustselectonekey,core_xmldb],[mustselectonekey,tool_xmldb]
 MOV [mysqlextracheckbigints,core_xmldb],[mysqlextracheckbigints,tool_xmldb]
 MOV [newfield,core_xmldb],[newfield,tool_xmldb]
 MOV [newindex,core_xmldb],[newindex,tool_xmldb]
 MOV [newkey,core_xmldb],[newkey,tool_xmldb]
 MOV [newtable,core_xmldb],[newtable,tool_xmldb]
 MOV [newtablefrommysql,core_xmldb],[newtablefrommysql,tool_xmldb]
 MOV [new_table_from_mysql,core_xmldb],[new_table_from_mysql,tool_xmldb]
 MOV [nomasterprimaryuniquefound,core_xmldb],[nomasterprimaryuniquefound,tool_xmldb]
 MOV [nomissingindexesfound,core_xmldb],[nomissingindexesfound,tool_xmldb]
 MOV [noviolatedforeignkeysfound,core_xmldb],[noviolatedforeignkeysfound,tool_xmldb]
 MOV [nowrongdefaultsfound,core_xmldb],[nowrongdefaultsfound,tool_xmldb]
 MOV [nowrongintsfound,core_xmldb],[nowrongintsfound,tool_xmldb]
 MOV [numberincorrectdecimals,core_xmldb],[numberincorrectdecimals,tool_xmldb]
 MOV [numberincorrectlength,core_xmldb],[numberincorrectlength,tool_xmldb]
 MOV [pendingchanges,core_xmldb],[pendingchanges,tool_xmldb]
 MOV [pendingchangescannotbesaved,core_xmldb],[pendingchangescannotbesaved,tool_xmldb]
 MOV [pendingchangescannotbesavedreload,core_xmldb],[pendingchangescannotbesavedreload,tool_xmldb]
 MOV [reserved,core_xmldb],[reserved,tool_xmldb]
 MOV [reservedwords,core_xmldb],[reservedwords,tool_xmldb]
 MOV [revert,core_xmldb],[revert,tool_xmldb]
 MOV [revert_changes,core_xmldb],[revert_changes,tool_xmldb]
 MOV [save,core_xmldb],[save,tool_xmldb]
 MOV [searchresults,core_xmldb],[searchresults,tool_xmldb]
 MOV [selectaction,core_xmldb],[selectaction,tool_xmldb]
 MOV [selectdb,core_xmldb],[selectdb,tool_xmldb]
 MOV [selectfieldkeyindex,core_xmldb],[selectfieldkeyindex,tool_xmldb]
 MOV [selectonecommand,core_xmldb],[selectonecommand,tool_xmldb]
 MOV [selectonefieldkeyindex,core_xmldb],[selectonefieldkeyindex,tool_xmldb]
 MOV [selecttable,core_xmldb],[selecttable,tool_xmldb]
 MOV [table,core_xmldb],[table,tool_xmldb]
 MOV [tables,core_xmldb],[tables,tool_xmldb]
 MOV [textincorrectlength,core_xmldb],[textincorrectlength,tool_xmldb]
 MOV [unload,core_xmldb],[unload,tool_xmldb]
 MOV [up,core_xmldb],[up,tool_xmldb]
 MOV [view,core_xmldb],[view,tool_xmldb]
 MOV [viewedited,core_xmldb],[viewedited,tool_xmldb]
 MOV [vieworiginal,core_xmldb],[vieworiginal,tool_xmldb]
 MOV [viewphpcode,core_xmldb],[viewphpcode,tool_xmldb]
 MOV [view_reserved_words,core_xmldb],[view_reserved_words,tool_xmldb]
 MOV [viewsqlcode,core_xmldb],[viewsqlcode,tool_xmldb]
 MOV [view_structure_php,core_xmldb],[view_structure_php,tool_xmldb]
 MOV [view_structure_sql,core_xmldb],[view_structure_sql,tool_xmldb]
 MOV [view_table_php,core_xmldb],[view_table_php,tool_xmldb]
 MOV [view_table_sql,core_xmldb],[view_table_sql,tool_xmldb]
 MOV [viewxml,core_xmldb],[viewxml,tool_xmldb]
 MOV [violatedforeignkeys,core_xmldb],[violatedforeignkeys,tool_xmldb]
 MOV [violatedforeignkeysfound,core_xmldb],[violatedforeignkeysfound,tool_xmldb]
 MOV [violations,core_xmldb],[violations,tool_xmldb]
 MOV [wrong,core_xmldb],[wrong,tool_xmldb]
 MOV [wrongdefaults,core_xmldb],[wrongdefaults,tool_xmldb]
 MOV [wrongints,core_xmldb],[wrongints,tool_xmldb]
 MOV [wronglengthforenum,core_xmldb],[wronglengthforenum,tool_xmldb]
 MOV [wrongreservedwords,core_xmldb],[wrongreservedwords,tool_xmldb]
 MOV [yesmissingindexesfound,core_xmldb],[yesmissingindexesfound,tool_xmldb]
 MOV [yeswrongdefaultsfound,core_xmldb],[yeswrongdefaultsfound,tool_xmldb]
 MOV [yeswrongintsfound,core_xmldb],[yeswrongintsfound,tool_xmldb]
AMOS END
2011-09-17 23:05:55 +02:00
Petr Skoda cfe070b292 MDL-29029 move dbtransfer to admin tools
AMOS BEGIN
 CPY [dbexport,core_dbtransfer],[pluginname,tool_dbtransfer]
 MOV [dbexport,core_dbtransfer],[dbexport,tool_dbtransfer]
 MOV [dbtransfer,core_dbtransfer],[dbtransfer,tool_dbtransfer]
 MOV [exportdata,core_dbtransfer],[exportdata,tool_dbtransfer]
 MOV [notargetconectexception,core_dbtransfer],[notargetconectexception,tool_dbtransfer]
 MOV [pluginname,core_dbtransfer],[pluginname,tool_dbtransfer]
 MOV [transferdata,core_dbtransfer],[transferdata,tool_dbtransfer]
 MOV [transferdbintro,core_dbtransfer],[transferdbintro,tool_dbtransfer]
 MOV [transferdbtoserver,core_dbtransfer],[transferdbtoserver,tool_dbtransfer]
 MOV [transferringdbto,core_dbtransfer],[transferringdbto,tool_dbtransfer]
AMOS END
2011-09-17 22:24:12 +02:00
Petr Skoda 72941d564a MDL-29029 move innodb conversion to admin tools 2011-09-17 21:19:31 +02:00
Petr Skoda bd41bdd922 MDL-29029 move lang pack import to admin tools
Includes lang related language pack cleanup.

AMOS BEGIN
 MOV [langpacks,core_admin],[pluginname,tool_langimport]
 MOV [install,core_admin],[install,tool_langimport]
 MOV [installedlangs,core_admin],[installedlangs,tool_langimport]
 MOV [langimport,core_admin],[langimport,tool_langimport]
 MOV [langimportdisabled,core_admin],[langimportdisabled,tool_langimport]
 MOV [langpackinstalled,core_admin],[langpackinstalled,tool_langimport]
 MOV [langpackremoved,core_admin],[langpackremoved,tool_langimport]
 MOV [langpackupdateskipped,core_admin],[langpackupdateskipped,tool_langimport]
 MOV [langpackuptodate,core_admin],[langpackuptodate,tool_langimport]
 MOV [langupdatecomplete,core_admin],[langupdatecomplete,tool_langimport]
 MOV [missinglangparent,core_admin],[missinglangparent,tool_langimport]
 MOV [nolangupdateneeded,core_admin],[nolangupdateneeded,tool_langimport]
 MOV [remotelangnotavailable,core_admin],[remotelangnotavailable,tool_langimport]
 MOV [uninstall,core_admin],[uninstall,tool_langimport]
 MOV [uninstallconfirm,core_admin],[uninstallconfirm,tool_langimport]
 MOV [updatelangs,core_admin],[updatelangs,tool_langimport]
AMOS END
2011-09-17 20:58:26 +02:00
Petr Skoda 7f1d34f0eb MDL-29029 move health center to admin tools
AMOS BEGIN
 MOV [healthcenter,moodle],[pluginname,tool_health]
 MOV [healthnoproblemsfound,moodle],[healthnoproblemsfound,tool_health]
 MOV [healthproblemsdetected,moodle],[healthproblemsdetected,tool_health]
 MOV [healthproblemsolution,moodle],[healthproblemsolution,tool_health]
 MOV [healthreturntomain,moodle],[healthreturntomain,tool_health]
 MOV [healthsolution,moodle],[healthsolution,tool_health]
AMOS END
2011-09-17 19:43:18 +02:00
Petr Skoda 8e4c1a80b4 MDL-29029 move blog upgrade to admin tools
AMOS BEGIN
 MOV [bloglevelupgrade,core_admin],[pluginname,tool_bloglevelupgrade]
 MOV [bloglevelupgradedescription,core_admin],[bloglevelupgradedescription,tool_bloglevelupgrade]
 MOV [bloglevelupgradeinfo,core_admin],[bloglevelupgradeinfo,tool_bloglevelupgrade]
 MOV [bloglevelupgradeprogress,core_admin],[bloglevelupgradeprogress,tool_bloglevelupgrade]
AMOS END
2011-09-17 19:43:18 +02:00
Petr Skoda 6c7365d98d MDL-29029 move unmaintained generator to admin tools
Do NOT add link into settings tree, this is extremely dangerous and buggy. It is now usable only in DEBUG_DEVELOPER mode!
2011-09-17 19:43:17 +02:00
Petr Skoda b412f9c4c9 MDL-29029 move all the simpletest bits into new tool unittest
AMOS BEGIN
 MOV [pluginname,report_unittest],[pluginname,tool_unittest]
 MOV [unittest:view,report_unittest],[unittest:execute,tool_unittest]
 MOV [dbtest,core_admin],[dbtest,tool_unittest]
 MOV [addconfigprefix,core_simpletest],[addconfigprefix,tool_unittest]
 MOV [all,core_simpletest],[all,tool_unittest]
 MOV [codecoverageanalysis,core_simpletest],[codecoverageanalysis,tool_unittest]
 MOV [codecoveragecompletereport,core_simpletest],[codecoveragecompletereport,tool_unittest]
 MOV [codecoveragedisabled,core_simpletest],[codecoveragedisabled,tool_unittest]
 MOV [codecoveragelatestdetails,core_simpletest],[codecoveragelatestdetails,tool_unittest]
 MOV [codecoveragelatestreport,core_simpletest],[codecoveragelatestreport,tool_unittest]
 MOV [confignonwritable,core_simpletest],[confignonwritable,tool_unittest]
 MOV [coveredlines,core_simpletest],[coveredlines,tool_unittest]
 MOV [coveredpercentage,core_simpletest],[coveredpercentage,tool_unittest]
 MOV [deletingnoninsertedrecord,core_simpletest],[deletingnoninsertedrecord,tool_unittest]
 MOV [deletingnoninsertedrecords,core_simpletest],[deletingnoninsertedrecords,tool_unittest]
 MOV [droptesttables,core_simpletest],[droptesttables,tool_unittest]
 MOV [exception,core_simpletest],[exception,tool_unittest]
 MOV [executablelines,core_simpletest],[executablelines,tool_unittest]
 MOV [fail,core_simpletest],[fail,tool_unittest]
 MOV [ignorefile,core_simpletest],[ignorefile,tool_unittest]
 MOV [ignorethisfile,core_simpletest],[ignorethisfile,tool_unittest]
 MOV [installtesttables,core_simpletest],[installtesttables,tool_unittest]
 MOV [moodleunittests,core_simpletest],[moodleunittests,tool_unittest]
 MOV [notice,core_simpletest],[notice,tool_unittest]
 MOV [onlytest,core_simpletest],[onlytest,tool_unittest]
 MOV [pass,core_simpletest],[pass,tool_unittest]
 MOV [pathdoesnotexist,core_simpletest],[pathdoesnotexist,tool_unittest]
 MOV [prefix,core_simpletest],[prefix,tool_unittest]
 MOV [prefixnotset,core_simpletest],[prefixnotset,tool_unittest]
 MOV [reinstalltesttables,core_simpletest],[reinstalltesttables,tool_unittest]
 MOV [retest,core_simpletest],[retest,tool_unittest]
 MOV [retestonlythisfile,core_simpletest],[retestonlythisfile,tool_unittest]
 MOV [runall,core_simpletest],[runall,tool_unittest]
 MOV [runat,core_simpletest],[runat,tool_unittest]
 MOV [runonlyfile,core_simpletest],[runonlyfile,tool_unittest]
 MOV [runonlyfolder,core_simpletest],[runonlyfolder,tool_unittest]
 MOV [runtests,core_simpletest],[runtests,tool_unittest]
 MOV [rununittests,core_simpletest],[rununittests,tool_unittest]
 MOV [showpasses,core_simpletest],[showpasses,tool_unittest]
 MOV [showsearch,core_simpletest],[showsearch,tool_unittest]
 MOV [skip,core_simpletest],[skip,tool_unittest]
 MOV [stacktrace,core_simpletest],[stacktrace,tool_unittest]
 MOV [summary,core_simpletest],[summary,tool_unittest]
 MOV [tablesnotsetup,core_simpletest],[tablesnotsetup,tool_unittest]
 MOV [testdboperations,core_simpletest],[testdboperations,tool_unittest]
 MOV [testtablescsvfileunwritable,core_simpletest],[testtablescsvfileunwritable,tool_unittest]
 MOV [testtablesneedupgrade,core_simpletest],[testtablesneedupgrade,tool_unittest]
 MOV [testtablesok,core_simpletest],[testtablesok,tool_unittest]
 MOV [thorough,core_simpletest],[thorough,tool_unittest]
 MOV [timetakes,core_simpletest],[timetakes,tool_unittest]
 MOV [totallines,core_simpletest],[totallines,tool_unittest]
 MOV [uncaughtexception,core_simpletest],[uncaughtexception,tool_unittest]
 MOV [uncoveredlines,core_simpletest],[uncoveredlines,tool_unittest]
 MOV [unittestprefixsetting,core_simpletest],[unittestprefixsetting,tool_unittest]
 MOV [unittests,core_simpletest],[unittests,tool_unittest]
 MOV [updatingnoninsertedrecord,core_simpletest],[updatingnoninsertedrecord,tool_unittest]
 MOV [version,core_simpletest],[version,tool_unittest]
AMOS END
2011-09-17 19:43:00 +02:00
Petr Skoda a419316622 MDL-29406 fix greedy config settings cleanup 2011-09-17 13:36:22 +02:00
Petr Skoda 187536f6c4 MDL-29029 move profiling to admin tools
AMOS BEGIN
 MOV [calls,report_profiling],[calls,tool_profiling]
 MOV [cannotfindanyrunforurl,report_profiling],[cannotfindanyrunforurl,tool_profiling]
 MOV [cannotfindanyrunforrunid,report_profiling],[cannotfindanyrunforrunid,tool_profiling]
 MOV [comment,report_profiling],[comment,tool_profiling]
 MOV [differencesbetween2runsof,report_profiling],[differencesbetween2runsof,tool_profiling]
 MOV [executiontime,report_profiling],[executiontime,tool_profiling]
 MOV [cputime,report_profiling],[cputime,tool_profiling]
 MOV [lastrunof,report_profiling],[lastrunof,tool_profiling]
 MOV [markreferencerun,report_profiling],[markreferencerun,tool_profiling]
 MOV [memory,report_profiling],[memory,tool_profiling]
 MOV [pluginname,report_profiling],[pluginname,tool_profiling]
 MOV [profilingfocusscript,report_profiling],[profilingfocusscript,tool_profiling]
 MOV [profilingruns,report_profiling],[profilingruns,tool_profiling]
 MOV [profilingrunsfor,report_profiling],[profilingrunsfor,tool_profiling]
 MOV [referencerun,report_profiling],[referencerun,tool_profiling]
 MOV [runid,report_profiling],[runid,tool_profiling]
 MOV [summaryof,report_profiling],[summaryof,tool_profiling]
 MOV [viewdetails,report_profiling],[viewdetails,tool_profiling]
 MOV [viewdiff,report_profiling],[viewdiff,tool_profiling]
 MOV [viewdiffdetails,report_profiling],[viewdiffdetails,tool_profiling]
AMOS END
2011-09-17 10:20:51 +02:00
Petr Skoda a3c0e9bbb0 MDL-29029 move unsuproles to admin tools
AMOS BEGIN
 MOV [contextlevel,report_unsuproles],[contextlevel,tool_unsuproles]
 MOV [count,report_unsuproles],[count,tool_unsuproles]
 MOV [confirmdelete,report_unsuproles],[confirmdelete,tool_unsuproles]
 MOV [noprolbems,report_unsuproles],[noprolbems,tool_unsuproles]
 MOV [pluginname,report_unsuproles],[pluginname,tool_unsuproles]
AMOS END
2011-09-17 10:20:29 +02:00
Petr Skoda 4211dfa4b4 MDL-29029 move capability overview to tools
AMOS BEGIN
 MOV [capabilitylabel,report_capability],[capabilitylabel,tool_capability]
 MOV [capabilityreport,report_capability],[capabilityreport,tool_capability]
 MOV [forroles,report_capability],[forroles,tool_capability]
 MOV [getreport,report_capability],[getreport,tool_capability]
 MOV [changeoverrides,report_capability],[changeoverrides,tool_capability]
 MOV [changeroles,report_capability],[changeroles,tool_capability]
 MOV [intro,report_capability],[intro,tool_capability]
 MOV [pluginname,report_capability],[pluginname,tool_capability]
 MOV [reportforcapability,report_capability],[reportforcapability,tool_capability]
 MOV [reportsettings,report_capability],[reportsettings,tool_capability]
 MOV [roleslabel,report_capability],[roleslabel,tool_capability]
AMOS END
2011-09-17 09:32:39 +02:00
Petr Skoda 11b24ce7b2 MDL-29029 add new "Admin tool" plugin type 2011-09-17 08:49:24 +02:00
KNDeepa 545299f471 MDL-28329 local_qeupgradehelper make cron work. 2011-09-16 18:42:52 +01:00
Tim Hunt d47d12d0d4 MDL-28679 question response history displays states incorrectly. 2011-09-16 16:05:12 +01:00
Tim Hunt 73a7a0c90d MDL-29360 quiz comment.php has broken JS for the Cancel button.
This swtichest it to more modern YUI3 approach.
2011-09-16 12:03:46 +01:00
Tim Hunt bca8065844 MDL-28259 Individual answers Feedback not shown in Cloze questions 2011-09-16 12:02:08 +01:00
Petr Skoda b610f1d4d7 MDL-29313 allow larger char fields 2011-09-16 08:55:23 +02:00
Petr Skoda aa6dba5538 MDL-29321 tweak large varchar unit tests for oracle 2011-09-16 08:53:11 +02:00
Petr Skoda 2ba8f87a89 MDL-29322 instruct oracle to use current NLS char size when creating VARCHAR2 fields
This solves problems on servers with default configuration where VARCHAR2 sizes are specified in bytes. Also add more reserved words.
2011-09-16 08:51:09 +02:00
Petr Skoda 257ad88f89 MDL-29313 enforce varchar size limit 2011-09-16 08:49:42 +02:00
Petr Skoda b2cfdcf697 MDL-29314 enforce index size limits 2011-09-16 08:45:06 +02:00
Sam Hemelryk 89eda3eeaf MDL-29185 backup: Removed backup_log table and fixed the backup admin report 2011-09-16 15:51:23 +12:00
Rajesh Taneja a459fd9062 MDL-28726 wiki-2.0: Fixed XSS in wiki comments 2011-09-16 11:07:11 +08:00
Rajesh Taneja 7dfe3c517b MDL-25937 Forms Library: Added Javascript validation for filepicker and filemanager. Also fixed disbledif rule check for both 2011-09-16 09:17:20 +08:00
Rajesh Taneja f03a17bb09 MDL-25937 Froms Library: Added server side validation for filepicker and filemanager 2011-09-16 09:17:19 +08:00
Eloy Lafuente (stronk7) 9cfaebbd0e weekly release 2.2dev 2011-09-16 01:37:34 +02:00
Eloy Lafuente (stronk7) 6c4319d46a Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-09-16 01:34:18 +02:00
Petr Skoda eb7d00a69a Revert "MDL-29081 add support for proxy in TinyMCE GoogleSpell plugin"
This reverts commit 57638f2c05.
2011-09-15 10:10:27 +02:00
Petr Skoda c6bba40392 MDL-29025 fix missing $ espacing 2011-09-15 09:25:30 +02:00
Jerome Mouneyrac b02578db42 MDL-29276 fix missing global jerome in generate_simple_struct_class() - it breaks normal PHP-SOAP call 2011-09-15 15:03:03 +08:00
Tim Hunt 474abf1221 MDL-29366 qtype_essay import/export as Moodle XML loses files from graderinfo 2011-09-14 19:01:18 +01:00
Eloy Lafuente (stronk7) 3ae79749f1 MDL-29093 auth - help string now specifies MNet exception. Thanks Helen! 2011-09-14 11:36:42 +02:00
Eloy Lafuente (stronk7) b7aefc8de5 Merge branch 'w36_MDL-29081_m22_googlespellproxy' of git://github.com/skodak/moodle 2011-09-14 11:23:44 +02:00
Eloy Lafuente (stronk7) 847c66f5fc Merge branch 'w36_MDL-28455_m22_tinymce' of git://github.com/skodak/moodle 2011-09-14 11:20:19 +02:00
Eloy Lafuente (stronk7) 53d2fe2ac1 MDL-29093 auth - help string changed to VBFET suggestion
(very best favourite english translator, aka. Helen :-P)
2011-09-14 10:10:49 +02:00
Petr Skoda f22cd93999 MDL-28455 bump up editor version file 2011-09-14 09:07:47 +02:00
Sam Hemelryk 113b970e62 MDL-29188 course_formats Fixed up formatting of section name within navigation 2011-09-14 11:39:48 +12:00
Eloy Lafuente (stronk7) cdcb1b9ea1 Merge branch 'wip-MDL-29093-master' of git://github.com/samhemelryk/moodle 2011-09-14 00:28:56 +02:00
Petr Skoda 148c65bfc8 MDL-29295 do not use strtok in dml and ddl layers
This prevents clobbering of internal pointer when code calling DML
uses strtok too. Unit test added to prevent future uses.
2011-09-14 00:19:55 +02:00
Eloy Lafuente (stronk7) 3afd493065 Merge branch 'w36_MDL-29326_m22_sqlsrv' of git://github.com/skodak/moodle 2011-09-13 17:33:42 +02:00
Eloy Lafuente (stronk7) 7cf7471100 Merge branch 'w36_MDL-29328_m22_adodb' of github.com:skodak/moodle 2011-09-13 17:28:43 +02:00
Eloy Lafuente (stronk7) 60bf24f024 Merge branch 'w36_MDL-29351_m22_tempregr' of git://github.com/skodak/moodle 2011-09-13 17:24:48 +02:00
Petr Skoda f848c0f6e6 MDL-29351 add missing temp and cache dirs to installers 2011-09-13 13:33:06 +02:00
Aparup Banerjee af4f1cc722 MDL-26257 Authentication : whitespace/style fixes 2011-09-13 19:10:54 +08:00
Aparup Banerjee 631c9c02ab Merge branch 'MDL-26257' of git://github.com/bostelm/moodle 2011-09-13 19:07:22 +08:00
Aparup Banerjee d1e362405e Merge branch MDL-29186-master of git://github.com/samhemelryk/moodle
- resolved conflicts, minor whitespace and fixed quote.
- note: textlib_get_instance() is already deprecated
2011-09-13 16:06:21 +08:00
Aparup Banerjee 7eae2c5ae2 Merge branch MDL-29187-master of git://github.com/samhemelryk/moodle
- resolved conflict.
2011-09-13 13:52:31 +08:00
Aparup Banerjee f7dd6bda31 Merge branch 'wip-MDL-29188-master' of git://github.com/samhemelryk/moodle 2011-09-13 11:58:21 +08:00
Aparup Banerjee 9568a4e87b Merge branch 'master' of git.moodle.org:/git/integration 2011-09-13 11:42:18 +08:00
Aparup Banerjee 5433da6064 Merge branch MDL-29189-master of git://github.com/samhemelryk/moodle
- resolved conflicts.
2011-09-13 11:39:06 +08:00
Sam Hemelryk 4bc844f770 Merged branch '28595_m22_installcontinue' of git://github.com/skodak/moodle with changes 2011-09-13 15:34:03 +12:00
Sam Hemelryk 2c7a91475f MDL-29093 - Authentication improved new setting name and strings 2011-09-13 15:10:22 +12:00
Iñaki Arenaza 4f6aa35eb8 MDL-29093 - Authentication for authentication only, not for user creation
There are cases when a moodle installation needs to only deal
user authentication and not user creation (this is especially
interesting when using external authentication sources such as LDAP,
CAS, etc.)

Add an option to prevent automatic user creation if the administrator
does't want users to be automatically created.

Signed-off-by: Iñaki Arenaza <iarenaza@mondragon.edu>
2011-09-13 15:08:57 +12:00
Sam Hemelryk 62b214d9a6 Merge branch 'w36_MDL-29014_m22_str' of git://github.com/skodak/moodle 2011-09-13 12:45:34 +12:00
Sam Hemelryk eb38d45b4e MDL-29189 course Minor fixups after code review 2011-09-13 11:17:18 +12:00
Eloy Lafuente (stronk7) 452b166526 Merge branch 'wip-MDL-23534-master' of git://github.com/samhemelryk/moodle 2011-09-12 21:59:38 +02:00
Eloy Lafuente (stronk7) ce9d0673d0 Merge branch 'MDL-29236-master' of git://github.com/sammarshallou/moodle 2011-09-12 20:37:24 +02:00
Eloy Lafuente (stronk7) f8fa11e1af MDL-15377 filterlib - whitespace fixes 2011-09-12 16:30:10 +02:00
Sam Hemelryk 32ec60d142 Merged branch 'MDL-22232_easier_turn_off_notifications' from git://github.com/andyjdavis/moodle.git with conflict resolution 2011-09-12 20:18:27 +12:00
Sam Hemelryk 9f768d6e5f Merge branch 'MDL-29211_master' of git://github.com/kordan/moodle 2011-09-12 19:48:33 +12:00
kordan 712dee7a59 MDL-29211 fix for master 2011-09-12 09:42:18 +02:00
Petr Skoda 5cc6b84731 MDL-29326 add support for auth and enrol using mssqlnative adodb driver 2011-09-12 09:23:47 +02:00
Petr Skoda 3a67b21769 MDL-29328 update 3rd party library list with new adodb version 2011-09-12 09:13:39 +02:00
Petr Skoda 7911fccafc MDL-29328 import latest adodb 2011-09-12 09:12:46 +02:00
Sam Hemelryk f8adfe6cc0 Merge branch 'w36_MDL-28701_m22_tempcachedir' of git://github.com/skodak/moodle 2011-09-12 18:26:09 +12:00
Andrew Davis (andyjdavis) bb3546f3c2 MDL-22232 messaging: added the ability to temporarily disable notifications to a particular user 2011-09-12 14:05:14 +08:00
Sam Hemelryk eb3d2faaa1 Merge branch 'w36_MDL-29025_m22_verboseauthdb' of git://github.com/skodak/moodle 2011-09-12 17:48:09 +12:00
Sun Zhigang c5234aa1d9 MDL-29112 trigger event mod_deleted after deleting mod through AJAX 2011-09-12 17:36:02 +12:00
Sam Hemelryk 16ff2aee7d Merge branch 'MDL-28724' of git://github.com/nebgor/moodle 2011-09-12 17:24:49 +12:00
Sam Hemelryk 5da0e7fc03 Merge branch 'w36_MDL-29131_m22_recentsep' of git://github.com/skodak/moodle 2011-09-12 17:08:27 +12:00
Sam Hemelryk 5b4404f615 Merge branch 'w36_MDL-29175_m22_clozearray' of git://github.com/skodak/moodle 2011-09-12 16:52:36 +12:00
Sam Hemelryk 8d6540ffd1 Merge branch 'w36_MDL-29257_m22_uniqid' of git://github.com/skodak/moodle 2011-09-12 16:30:44 +12:00
Aparup Banerjee 48346fb11f MDL-28724 wiki : Fixed bugs in wiki forms 2011-09-12 12:28:54 +08:00
Sam Hemelryk b13dbc43d7 Merge branch 'w36_MDL-29306_m22_dbenrolroles' of git://github.com/skodak/moodle 2011-09-12 15:30:15 +12:00
Sam Hemelryk 8b5bab6f91 Merge branch 'w36_MDL-29292_m22_featuretypo' of git://github.com/skodak/moodle 2011-09-12 15:17:08 +12:00
Sam Hemelryk 633a5edd51 Merge branch 'MDL-27635' of git://github.com/rwijaya/moodle 2011-09-12 14:38:45 +12:00
Rossiani Wijaya ca896fdfcf MDL-27635 hub component: fixed default value for 'secret' field in 'registration_hubs' table 2011-09-12 10:25:46 +08:00
Sam Hemelryk 016ba63816 MDL-23534 Added setting to set the site pages node to the sites shortname if desired 2011-09-12 13:46:04 +12:00
Sam Hemelryk 342e97ee9c Merge branch 'MDL-15377-master' of git://github.com/raymanuk/moodle 2011-09-12 13:42:28 +12:00
Sam Hemelryk 0eac94dfc7 Merge branch 'MDL-28488' of git://github.com/stronk7/moodle 2011-09-12 13:19:12 +12:00
Sam Hemelryk 014d3c1f8d Merge branch 'MDL-29269' of git://github.com/stronk7/moodle 2011-09-12 13:09:30 +12:00
kordan c6926ff064 MDL-29056 theme-formal_white fix for the report pagelayout that was preventing horizontal scroll 2011-09-12 13:01:49 +12:00
Eloy Lafuente (stronk7) 59fc0cbdb7 MDL-28488 backup - conditionaly apply defaults based on mode
Some modes of backup cannot be preloaded with general backup
settings because they may conflict with the definitions required/set
by the mode (for example, import backups are, by definition, without
users always, so we cannot apply one default in the opposite direction).

So, after the patch, current general_backup setting will be only applied
to general backups, import/hub modes won't be using any default and
automated backup defaults should be loaded here (TODO)
2011-09-11 19:35:56 +02:00
Eloy Lafuente (stronk7) 2a4ba40f31 MDL-28488 backup - '[backup|restore]:configure cap does not control import mode anymore 2011-09-11 19:09:59 +02:00
Petr Skoda 1d16e92700 MDL-29292 fix feature typo
Credit goes to Raminder Singh.
2011-09-11 12:50:16 +02:00
Petr Skoda ab6e0848c1 MDL-29025 standardise cli verbose output and general cleanup 2011-09-11 12:43:43 +02:00
Eloy Lafuente (stronk7) 9530e1ed68 MDL-28488 backup - fixup some strings and delete legacy ones 2011-09-11 12:03:11 +02:00
AMOS bot d06a1e485e Automatically generated installer lang files 2011-09-11 00:55:34 +00:00
Petr Skoda 1ad8143a30 MDL-28595 explain the need to install into new db if something fails during the initial install 2011-09-11 00:07:28 +02:00
Petr Skoda 3efe6bbb88 MDL-28595 do not print continue link if install fails 2011-09-10 23:57:11 +02:00
Petr Skoda 05e60bd206 MDL-29306 support multiple roles in ext enrol db 2011-09-10 23:30:58 +02:00
Petr Skoda 57638f2c05 MDL-29081 add support for proxy in TinyMCE GoogleSpell plugin 2011-09-10 22:56:57 +02:00
Petr Skoda 3e48e0b009 MDL-28455 fix versions in readmes 2011-09-10 21:53:58 +02:00
Petr Skoda ceef298f39 MDL-28455 remove previous TinyMCE version 2011-09-10 21:53:51 +02:00
Petr Skoda 2c2fc4ad75 MDL-28455 switch to new TinyMCE 3.4.5 2011-09-10 21:53:45 +02:00
Petr Skoda fb916bf046 MDL-28455 import customised TinyMCE 3.4.5 2011-09-10 21:53:36 +02:00
Petr Skoda e7dd4ff575 MDL-29131 fix multiple groups issues on the recent activity report 2011-09-10 13:52:42 +02:00
Petr Skoda af08a48b2d MDL-29257 use more entropy in ws upload 2011-09-10 12:06:59 +02:00
Petr Skoda cedc3d338c MDL-29257 use more entropy in repo upload 2011-09-10 12:05:29 +02:00
Petr Skoda 2c479c8fe6 MDL-29257 use counter for unique element ids 2011-09-10 12:02:51 +02:00
Petr Skoda 3e6e4d001f MDL-28701 temp and cache upgrade notes 2011-09-10 11:36:41 +02:00
Petr Skoda 32db0f0d83 MDL-28701 add old cache and temp creation debug message and improve docs a bit 2011-09-10 11:24:46 +02:00
Petr Skoda b6b5023144 MDL-28701 some more tempdirs updated 2011-09-10 10:55:32 +02:00
Petr Skoda 8f6e5a8d19 MDL-28701 one more make_cache_directory 2011-09-10 10:49:04 +02:00
Tom Lanyon 5a87c912a2 MDL-28701 Change uses of make_upload_directory(cache) to make_cache_directory(). 2011-09-10 10:44:43 +02:00
Tom Lanyon af9b14446d MDL-28701 Change uses of make_upload_directory(temp) to make_temp_directory(). 2011-09-10 10:43:49 +02:00
Tom Lanyon e695890739 MDL-28701 Add make_temp_directory() and make_cache_directory(). 2011-09-10 10:35:48 +02:00
Tom Lanyon 365bec4c06 MDL-28701 Change all uses of $CFG->dataroot/cache to $CFG->cachedir 2011-09-10 10:35:46 +02:00
Tom Lanyon 383d388411 MDL-28701 Fixed broken $CFG->tempdir default and added $CFG->cachedir 2011-09-10 10:35:41 +02:00
Tom Lanyon 7aa06e6ded MDL-28701 Change all uses of $CFG->dataroot/temp to $CFG->tempdir 2011-09-10 10:35:39 +02:00
Tom Lanyon 3e93987142 MDL-28701 Added $CFG->tempdir setting 2011-09-10 10:35:37 +02:00
Petr Skoda 138c76789b MDL-29014 fix a few incorrect uses of strlen and substr 2011-09-10 10:21:31 +02:00
Eloy Lafuente (stronk7) 77c2ca69af MDL-28488 backup - make backup and import capabilities independent
Before this change, in order to perform one course import it was
necessary to have both the backupcourse and the backuptargetimport
capabilities. After agreement now each one will control its own
backup mode. Same applies for restore.
2011-09-09 17:46:21 +02:00
Eloy Lafuente (stronk7) 8645a28f3e MDL-28488 backup - activity duplication requires 2 capabilities in ctx 2011-09-09 15:53:02 +02:00
Petr Skoda b8cc71e724 MDL-29175 use new optinal_param_array in cloze question verification 2011-09-09 15:50:27 +02:00
Sam Hemelryk efd9c8e5b6 MDl-29189 course Increased the shortname field length so that it is more usable now that it is consistently formatted 2011-09-09 14:47:37 +12:00
Henning Bostelmann f4831673b6 MDL-26257 Shibboleth auth: run logout handler only if logged in via Shibboleth 2011-09-08 12:13:07 +01:00
Eloy Lafuente (stronk7) 7aacd75be4 MDL-29269 textlib - better handling of collation warnings and errors 2011-09-08 13:00:30 +02:00
Sam Hemelryk 91d284c145 MDL-29186 multilang Reviewed the uses of course fullname and ensured things were being formatted consistently 2011-09-08 09:38:46 +12:00
Sam Hemelryk 63390481c4 MDL-29187 multilang Reviewed the uses of category name and ensured things are being formatted correctly 2011-09-08 09:37:07 +12:00
Sam Hemelryk 8ebbb06adf MDL-29189 mutlilang Reviewed the uses of course shortname and ensured things are being formatted consistently 2011-09-08 09:30:27 +12:00
Sam Hemelryk 71e0b3b5c7 MDL-29188 multilang Reviewed the uses of section name and ensured things were being formatted consistently 2011-09-08 09:27:38 +12:00
sam marshall 371fbe1cc1 MDL-29236 Labels (and other content from modules) on course page should use module filter settings
E.g. if you disable smileys for a label, this ought to work (it doesn't previously, as everything is filtered using the course context).
2011-09-07 17:57:12 +01:00
Eloy Lafuente (stronk7) 5d2db8acc8 weekly release 2.2dev 2011-09-07 17:56:05 +02:00
Eloy Lafuente (stronk7) a1b888384e MDL-27001 Integration bump needed (we were already @ 2011083100.01) 2011-09-06 15:57:49 +02:00
Eloy Lafuente (stronk7) 4a94d2c61f Merge branch 'MDL-27001-master' of git://github.com/sammarshallou/moodle 2011-09-06 15:50:26 +02:00
Eloy Lafuente (stronk7) d09ca89642 Merge branch 'wip-MDL-28043-master' of git://github.com/samhemelryk/moodle 2011-09-06 13:53:34 +02:00
Eloy Lafuente (stronk7) 20079ee7bc MDL-28599 textlib Capture error message earlier to avoid mixing 2011-09-06 13:45:25 +02:00
Eloy Lafuente (stronk7) 0fde6cb8b4 MDL-28599 textlib Document collatorlib switch for asort() 2011-09-06 13:03:01 +02:00
Eloy Lafuente (stronk7) b49c28aab3 Merge branch 'wip-MDL-28599-master-r4' of git://github.com/samhemelryk/moodle 2011-09-06 13:02:33 +02:00
sam marshall 3e4c243500 MDL-27001 'Show description' feature part 3: Implementation for all modules
For modules that still used the 'old' generic object return from _get_coursemodule_info instead of returning a cached_cm_info object, I changed them to use the new format as part of this. This made a few areas of code regarding onclick links slightly nicer.
2011-09-06 11:03:06 +01:00
sam marshall b3a89232d9 MDL-27001 'Show description' feature part 2 - Automatic support for modules that don't have a get_coursemodule_info function
If a module doesn't have module_get_coursemodule_info function, but it does have 'intro' and 'introformat' fields in its main table, then all it needs to do is return true for FEATURE_SHOW_DESCRIPTIONS and everything is handled automatically.
2011-09-06 11:03:03 +01:00
sam marshall 8c40662e22 MDL-27001 'Show description' feature part 1: infrastructure that allows modules to support feature
The 'Show description' feature is about optionally including module description on the course page. This change include the necessary infrastructure - new database field, new FEATURE constant, changes to forms to display it, new language strings for it, backup and restore, and old course conversion. (I found the places to change by searching for an existing field in course_modules).

Documentation for the field is included in install.xml and in modinfolib.
2011-09-06 11:03:00 +01:00
Sam Hemelryk d609d96261 MDL-28599 textlib Separated collator to collatorlib with static methods, and added support for locale aware sorting of objects 2011-09-06 15:39:00 +12:00
Eloy Lafuente (stronk7) dfdb0051e7 Merge branch 'wip-mdl-28987' of git://github.com/rajeshtaneja/moodle 2011-09-06 01:59:20 +02:00
Sam Hemelryk 871a3ec5fb MDL-28043 user Fixed context hack in pluginfile for user pics leading to init of page, theme and output for redirect 2011-09-06 11:29:05 +12:00
Eloy Lafuente (stronk7) c35fba98da Merge branch 'wip-mdl-23520' of git://github.com/rajeshtaneja/moodle 2011-09-06 01:25:05 +02:00
Eloy Lafuente (stronk7) 4df93d22be Merge branch 'wip-MDL-29006-master' of git://github.com/samhemelryk/moodle 2011-09-06 00:38:10 +02:00
Eloy Lafuente (stronk7) 49873b7e43 Merge branch 'w35_MDL-29145_m22_imscpregression' of git://github.com/skodak/moodle 2011-09-05 21:51:44 +02:00
Ray Guo 34d37f7514 MDL-15377 Filter: Fixed glossary keyword autolinked when appearing in
Javascript
2011-09-05 17:12:42 +01:00
Eloy Lafuente (stronk7) 01d6182fa8 MDL-29072 Import course - whitespace fixes 2011-09-05 10:41:57 +02:00
Petr Skoda 986eb4cfbb MDL-29145 fix regression caused by MDL-27448 2011-09-05 09:44:41 +02:00
Sam Hemelryk e824388a1c Merge branch 'w35_MDL-29233_m22_usersel' of git://github.com/skodak/moodle 2011-09-05 19:23:07 +12:00
Petr Skoda 409ac82413 MDL-29233 revert the optional_param workaround and use this->multiselect to decide when we expect arrays 2011-09-05 09:02:47 +02:00
Rajesh Taneja a82e9ada37 MDL-28987 Forms Library: Removed onBlur validation. Now the validation will occur on form submit only 2011-09-05 14:25:13 +08:00
Aparup Banerjee 660a6aae02 Merge branch 'wip_MDL-27689_Vague_README-LDAP_master' of git://github.com/iarenaza/moodle 2011-09-05 13:29:14 +08:00
Aparup Banerjee 57ef9c14cb Merge branch 'wip-MDL-26811-master' of git://github.com/samhemelryk/moodle 2011-09-05 13:01:23 +08:00
Rajesh Taneja ab978b38c4 MDL-28987 Forms Library: Added tinyMCE onblur event callback for required tinymce fields 2011-09-05 12:19:40 +08:00
Aparup Banerjee e2e1cf53db Merge branch 'MDL-29198' of git://github.com/stronk7/moodle 2011-09-05 12:10:32 +08:00
Sam Hemelryk ae4d8567b4 Merge branch 'MDL-29018' of git://github.com/rwijaya/moodle 2011-09-05 16:08:03 +12:00
Sam Hemelryk 0d966d5bfe Merge branch 'MDL-28689' of git://github.com/rwijaya/moodle 2011-09-05 16:03:04 +12:00
Rossiani Wijaya 5951d333e5 MDL-29018 lesson module statistics: fixed statistics diplay for whole the class 2011-09-05 11:18:15 +08:00
Sam Hemelryk 15f3ba7e78 Merge branch 'MDL-29072' of git://github.com/bostelm/moodle 2011-09-05 13:41:04 +12:00
Sam Hemelryk 3dc1b595ef Merge branch 'MDL-27975' of git://github.com/rwijaya/moodle 2011-09-05 13:36:35 +12:00
Sam Hemelryk 057c2f8d06 Merge branch 's13_MDL-29170_risklevel_master' of git://github.com/dongsheng/moodle 2011-09-05 11:12:10 +12:00
Eloy Lafuente (stronk7) ee91760321 MDL-28080 DML unit tests - cover tweak_param_names() and the new 30 chars limit exception 2011-09-01 19:46:30 +02:00
Eloy Lafuente (stronk7) 07ee317d2a MDL-28080 oracle - avoid tweak_param_names() tweaking too much :-P
Sometimes the (oracle only) tweak_param_names() method was causing
placeholders having > 28 chars length to exceed the 30 chars limit
imposed by Oracle. With this commit the tweak is performed by
replacement for such long placeholders and, at the same time, the
tweak has been commented out from insert/update because it is not
necessary there (placeholders are safe column name always)
2011-09-01 19:42:29 +02:00
Iñaki Arenaza 7edcbecad6 MDL-27689 Vague README-LDAP file in auth/ldap
README-LDAP referes to a file that was renamed (to auth.php) in Moodle
1.8 and no longer exists. Make clear what file we are referring to.
2011-09-01 12:43:58 +02:00
Tim Hunt 8de7858fb9 MDL-28080 coding_exception for over-long placeholder names. 2011-09-01 11:47:40 +02:00
Eloy Lafuente (stronk7) 4b5c84ae30 MDL-29198 DB - make delete_records transactional safe when needed 2011-09-01 11:05:21 +02:00
Rossiani Wijaya fb0a425d35 MDL-27975 community block: fixed string typo 2011-09-01 17:01:13 +08:00
Rossiani Wijaya 5163bf8bb3 MDL-28689 chat module: add input.png file. This is a simple fix by copying the file from bubbles themes. Proper fix should be done in the future 2011-09-01 16:19:57 +08:00
Andrew Davis (andyjdavis) a485083171 MDL-29126 gradebook: made text export with tabs as separator work 2011-09-01 15:21:04 +08:00
Dongsheng Cai f2eac75624 WEBSERVICE MDL-29170 reduce createmobiletoken capability risk level 2011-09-01 11:02:03 +08:00
Rajesh Taneja cbe20ec362 MDL-28987 Forms Library: Added tinyMCE save for tinymce editor validation 2011-08-31 14:13:35 +08:00
Adam Olley 567282021a MDL-28987: Affix [text] to editor element in JS validation and add blur event 2011-08-31 14:09:12 +08:00
Rajesh Taneja ac0a82cf92 MDL-23520 mod-wiki-2.0: Added delete page and version feature as it was in 1.9 2011-08-31 13:54:05 +08:00
Sam Hemelryk 3485687660 MDL-29006 block_html Added formatted to title printed on editing form when a hard freeze is in effect 2011-08-31 11:45:57 +12:00
Sam Hemelryk 14d4c6603e MDL-26811 upgrade Fixed up default handling causing exception on upgrade of used site in MSSQL 2011-08-31 11:34:21 +12:00
Eloy Lafuente (stronk7) 9805fb9f17 weekly release 2.2dev 2011-08-31 01:32:26 +02:00
Eloy Lafuente (stronk7) 2c1f86678c Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-08-31 01:29:22 +02:00
Aparup Banerjee dd0c9fb142 MDL-29005 blocks : clarified comment 2011-08-30 11:17:50 +08:00
Aparup Banerjee d9d76da933 Merge branch 'MDL-29005' of git://github.com/mouneyrac/moodle 2011-08-30 11:07:38 +08:00
Sam Hemelryk 239ed133f1 Merge branch 'MDL-28489_master' of git://github.com/stronk7/moodle 2011-08-30 11:03:38 +12:00
Eloy Lafuente (stronk7) c3b825e1b8 MDL-28489 site news forum - support multilang filter 2011-08-29 22:03:04 +02:00
Eloy Lafuente (stronk7) 0c4a35b2f4 Merge branch 'wip-mdl-29104' of git://github.com/rajeshtaneja/moodle 2011-08-29 13:29:58 +02:00
Eloy Lafuente (stronk7) bae0925b4d Merge branch 'MDL-29141' of git://github.com/timhunt/moodle 2011-08-29 13:00:21 +02:00
Rajesh Taneja c600761b15 MDL-29104 course: Fixed optional_param_array usage for load_selected_users 2011-08-29 17:30:40 +08:00
Eloy Lafuente (stronk7) 1d6d2c91d2 Merge branch 'wip-MDL-24202-master' of git://github.com/samhemelryk/moodle 2011-08-29 10:23:22 +02:00
Aparup Banerjee a1b744594c Merge branch 'MDL-29144' of git://github.com/timhunt/moodle 2011-08-29 12:10:30 +08:00
Sam Hemelryk 1e31393dba Merge branch 'MDL-28564' of git://github.com/timhunt/moodle 2011-08-29 13:58:05 +12:00
Sam Hemelryk 9bf5af2181 MDL-24202 navigation Fixed bug caused by navigation overriding a CFG setting 2011-08-29 13:45:04 +12:00
Eloy Lafuente (stronk7) c01a24bdef Merge branch 'MDL-28943_manage_message_name' of git://github.com/andyjdavis/moodle 2011-08-29 03:25:41 +02:00
Eloy Lafuente (stronk7) c45eca3f06 Merge branch 'MDL-26302' of git://github.com/timhunt/moodle 2011-08-29 03:22:02 +02:00
Eloy Lafuente (stronk7) 0312bf641c Merge branch 'wip-MDL-28596-master' of git://github.com/samhemelryk/moodle 2011-08-29 03:15:25 +02:00
Sam Hemelryk e57bbf55ab Merge branch 'MDL-26819' of git://github.com/stronk7/moodle 2011-08-29 13:05:00 +12:00
Sam Hemelryk c4b06ddd75 Merge branch 'dev_MDL-27289_boxnet_master' of git://github.com/dongsheng/moodle 2011-08-29 12:53:51 +12:00
Eloy Lafuente (stronk7) 18c8de5806 Merge branch 'MDL-29064' of git://github.com/timhunt/moodle 2011-08-29 02:52:35 +02:00
Eloy Lafuente (stronk7) 52d935de27 Merge branch 'MDL-29062' of git://github.com/timhunt/moodle 2011-08-29 02:39:42 +02:00
Sam Hemelryk c873eb4a90 Merge branch 'MDL-29135-mnet-login' of git://github.com/mudrd8mz/moodle 2011-08-29 12:23:27 +12:00
Sam Hemelryk 1924a86afa Merged branch 'MDL-28460_master' of git://github.com/kordan/moodle.git with conflict resolution 2011-08-29 12:13:40 +12:00
Eloy Lafuente (stronk7) 6843dea2e9 Merge branch 'master' of git.moodle.org:/git/integration 2011-08-29 02:04:46 +02:00
Eloy Lafuente (stronk7) 1343d181ae Merge branch 'MDL-29111' of git://github.com/timhunt/moodle 2011-08-29 02:01:37 +02:00
Kordan ec140757f7 MDL-28459 theme-formal_white Added option to specify a special logo for use on the frontpage 2011-08-29 11:53:55 +12:00
David Mudrak 54941685e3 MDL-29148 MNet - improved handling of a verification function return code 2011-08-29 01:48:55 +02:00
Eloy Lafuente (stronk7) 1f03315b18 Merge branch 'wip_MDL-16168_HEAD_CAS_crash_if_no_LDAP' of https://github.com/iarenaza/moodle 2011-08-29 01:30:37 +02:00
Eloy Lafuente (stronk7) 7795ad41b3 Merge branch 'MDL-25872' of git://github.com/bostelm/moodle 2011-08-29 01:22:22 +02:00
Sam Hemelryk 95d0c74474 Merge branch 'MDL-6397_database_rss_label' of git://github.com/andyjdavis/moodle 2011-08-29 11:11:10 +12:00
Iñaki Arenaza fa5f5c206f MDL-28402 LDAP configuration values being stored in lower case, causing misconfiguration
It looks like array_change_key_case() does not work recursively, so we
were not actually lowercasing the expiration attribute key. As the
configuration setting is always lowercase they didn't match.
2011-08-29 01:07:30 +02:00
Eloy Lafuente (stronk7) 1ccfd8dcbf MDL-26819 quiz statistics - use cross-db GROUP BY expression 2011-08-28 22:12:40 +02:00
Iñaki Arenaza ab8b1d15a5 MDL-16168 auth/cas CAS crashes if no LDAP is set up
Fix was pending for master. Credit goes to Ivan Dackiewicz.
2011-08-28 15:31:14 +02:00
David Mudrak a014e3bcd8 MDL-27107 auth_mnet - consider all incoming roaming users as confirmed
The 'confirmed' field can't be optional. If the identity provider did
not export it, the new remote user would be created with 'confirmed' set
to default zero and as such could be a subject of scheduled deletion.
2011-08-28 02:44:45 +02:00
David Mudrak 190bbc1603 MDL-29135 Reworded login prompt with SSO over MNet enabled 2011-08-27 18:25:31 +02:00
Tom Cubanski 14bf45747d MDL-26302 quiz editing: top move button on the order and paging tab does not work.
It is strange that processes the submission already handles the submitted data from this change to the HTML.
2011-08-27 08:20:46 +01:00
Tim Hunt ff82d7fd0a MDL-29064 qtype multianswer, question text should be a required field. 2011-08-27 08:20:08 +01:00
Tim Hunt 3908a52310 MDL-29062 qtype multianswer refers to old name for the question_delete_questions function. 2011-08-27 08:19:17 +01:00
Tim Hunt 1b343d5241 MDL-28564 question type importing, improve Jamie's fix. 2011-08-27 08:16:47 +01:00
Jamie Pratt 05cef658dd MDL-28564 "implement support for extra answer fields in question export and
import" implemented support for extra answer fields in questiontype base
export and import functions.
2011-08-27 08:16:47 +01:00
AMOS bot 3059883dad Automatically generated installer lang files 2011-08-27 00:55:36 +00:00
M Kassaei f28ef47e8f MDL-29144 quiz navigation: Screen-readers speak question state twice 2011-08-26 19:10:08 +01:00
Tim Hunt 918776f47d MDL-29111 quiz was passing 0 to ->review_url when it should have been null. 2011-08-26 18:21:43 +01:00
Henning Bostelmann 7d8b217bca MDL-25872 View assignment submissions: show only students, not teachers
Fixing incorrect capability reference mod/assignment:view to ...:submit
2011-08-26 17:33:46 +01:00
Tim Hunt e20ad67d7b MDL-29141 question bank show question text checkbox does not match state. 2011-08-26 17:01:06 +01:00
Henning Bostelmann 987e0e915c MDL-28686 QE2 upgrade: recognize manually graded, deleted questions 2011-08-26 14:38:50 +01:00
Eloy Lafuente (stronk7) 4ad6128920 weekly release 2.2dev 2011-08-26 15:10:15 +02:00
Eloy Lafuente (stronk7) ab2da3f679 Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-08-26 14:56:34 +02:00
Eloy Lafuente (stronk7) 6459abdc9e MDL-28684 QE2 upgrade: fix undefined $a regression. Thanks Henning! 2011-08-25 15:56:39 +02:00
Petr Skoda 89631804a4 Merge branch 'w33_MDL-28554_m22_yui' of github.com:skodak/moodle 2011-08-25 11:40:07 +02:00
Petr Skoda 0958759dc2 MDL-28554 workaround for http://yuilibrary.com/projects/yui3/ticket/2530999
Do not load io-xdr and io-upload-iframe on the same page.
2011-08-25 11:38:34 +02:00
Eloy Lafuente (stronk7) 50dabefeef Merge branch 'MDL-27823_bulk_messaging_2' of git://github.com/andyjdavis/moodle 2011-08-25 10:45:43 +02:00
Sam Hemelryk 7749e187cc MDL-28596 course Improved and modernised the production of module editing icons and added support for renderable content when rendering action_link components 2011-08-25 18:02:35 +12:00
Andrew Davis (andyjdavis) c87d90be14 MDL-6397 database: removed an unused string 2011-08-25 08:29:32 +08:00
Eloy Lafuente (stronk7) 7b4537561f MDL-29012 custom profile fields - replace some &quot; by ' 2011-08-25 01:40:51 +02:00
Eloy Lafuente (stronk7) dc7ed03214 Merge branch 'MDL-29012-show_deleted_field' of git://github.com/tmuras/moodle 2011-08-25 01:30:41 +02:00
Eloy Lafuente (stronk7) 85dca0996e Merge branch 'MDL-MDL-28650' of https://github.com/mouneyrac/moodle 2011-08-25 01:11:15 +02:00
Eloy Lafuente (stronk7) 4f7c38660a Merge branch 'w33_MDL-29027_m22_textlib' of git://github.com/skodak/moodle 2011-08-24 18:49:05 +02:00
Petr Skoda 17ddbd050a MDL-29027 yet more tests 2011-08-24 18:47:05 +02:00
Petr Skoda b25a17142c MDL-29027 support for mail charsets 2011-08-24 18:37:13 +02:00
Petr Skoda 2e0ecae45e MDL-29027 fallback to typo and more tests
Hopefully we now get the same results on all systems.
2011-08-24 17:14:47 +02:00
Eloy Lafuente (stronk7) f04da0f051 Merge branch 'MDL-28684' of git://github.com/timhunt/moodle 2011-08-24 17:08:31 +02:00
Tim Hunt 4ca3f2d167 MDL-28684 fix failing unit test - which means fix the acutal code.
Sorry for the noise.
2011-08-24 16:00:37 +01:00
Eloy Lafuente (stronk7) a3f2ad4e80 Merge branch 'w33_MDL-28929_m22_themeplaceholders' of git://github.com/skodak/moodle 2011-08-24 16:24:21 +02:00
Eloy Lafuente (stronk7) 07ad6c600c Merge branch 'w33_MDL-26796_m22_arrayparams' of git://github.com/skodak/moodle 2011-08-24 16:12:19 +02:00
Petr Skoda c16c1be700 MDL-26796 accept objects that can be converted to string in clean_param() 2011-08-24 16:09:25 +02:00
Petr Skoda 0f70414078 MDL-28929 document themes api changes 2011-08-24 15:11:25 +02:00
Petr Skoda 7339273895 Merge branch 'w33_MDL-28554_m22_yui' of github.com:skodak/moodle 2011-08-24 15:01:50 +02:00
Petr Skoda 9d753c38d7 MDL-28554 fix problematic loading of io-upload-frame
This is a bit of a mystery, somehow 'io' module dependency is not enough to load everything, this might be caused by a regression in yui.
2011-08-24 15:00:10 +02:00
Eloy Lafuente (stronk7) 0a4ca115b2 Merge branch 'w33_MDL-26796_m22_arrayparams' of git://github.com/skodak/moodle 2011-08-24 14:06:22 +02:00
Eloy Lafuente (stronk7) 6408c7d9f0 NOBUG: Minibump needed here for some automated tests to happen 2011-08-24 13:35:24 +02:00
Eloy Lafuente (stronk7) ca5c3667cd Merge branch 'w33_MDL-28929_m22_themeplaceholders' of git://github.com/skodak/moodle 2011-08-24 13:31:54 +02:00
Eloy Lafuente (stronk7) 2ed28439f6 Merge branch 'MDL-28976' of git://github.com/timhunt/moodle 2011-08-24 12:57:16 +02:00
Petr Skoda b5ae095d91 MDL-28929 add version.php with requirements and copyrights
The data for missing copyrights was taken from other files in the same theme, git history or plugins database.
2011-08-24 10:50:22 +02:00
Jerome Mouneyrac 4962df40a9 MDL-29005 display enrollable courses total and downloadable courses total instead of courses/sites total 2011-08-24 14:40:15 +08:00
Aparup Banerjee efdbbafdba Revert "MDL-28509 repository_youtube Enable selection of sort order"
This reverts commit 88bf951aa7.
2011-08-24 14:39:46 +08:00
Eloy Lafuente (stronk7) a2e87acfc5 Merge branch 'w33_MDL-29020_m22_clidbenrol' of git://github.com/skodak/moodle 2011-08-24 03:50:41 +02:00
Eloy Lafuente (stronk7) a7493463d1 Merge branch 'MDL-28248b' of https://github.com/totara/moodle 2011-08-24 03:39:23 +02:00
Aaron Barnes b58f4df6ea MDL-28248 completion: Incorrect SQL for finding enrol start date 2011-08-24 12:05:34 +12:00
Eloy Lafuente (stronk7) 55cbc63882 Merge branch 'MDL-28979' of git://github.com/timhunt/moodle 2011-08-24 01:55:45 +02:00
Tim Hunt a980739fd4 MDL-28942 qtype multichoice, multi-response. Avoid computing the wrong random guess score.
It is effectively impossible to compute the right random guess score, so we should not compute anything, rather than computing a number that we know is wrong.

This patch also fixes a multianswer unit test error that was shown up by this fix.
2011-08-24 01:52:28 +02:00
Eloy Lafuente (stronk7) 64ce7fb6c5 Merge branch 'MDL-28975' of git://github.com/timhunt/moodle 2011-08-24 01:44:02 +02:00
Sun Zhigang c03ae03383 MDL-29019 enrol - fix a typo 2011-08-24 01:30:57 +02:00
Eloy Lafuente (stronk7) f622fbef7f Merge branch 'w33_MDL-19380_m22_repoclamav' of git://github.com/skodak/moodle 2011-08-24 01:17:28 +02:00
Eloy Lafuente (stronk7) 5f37fcf861 Merge branch 'w33_MDL-29000_m22_forgetcase' of git://github.com/skodak/moodle 2011-08-24 00:56:46 +02:00
Eloy Lafuente (stronk7) c8f74cc628 Merge branch 'w33_MDL-28981_m22_canpost' of git://github.com/skodak/moodle 2011-08-24 00:52:56 +02:00
Eloy Lafuente (stronk7) de1c2d8322 Merge branch 'w33_MDL-27228_m22_labelhide' of git://github.com/skodak/moodle 2011-08-23 23:35:41 +02:00
Eloy Lafuente (stronk7) df12713415 Merge branch 'w33_MDL-28708_m22_f304' of git://github.com/skodak/moodle 2011-08-23 23:26:06 +02:00
Eloy Lafuente (stronk7) 94fd5ebc06 Merge branch 'w33_MDL-28709_m22_h304' of git://github.com/skodak/moodle 2011-08-23 23:16:29 +02:00
Eloy Lafuente (stronk7) 3a6cd081e4 Merge branch 'w33_MDL-29011_m22_nomanualenrol' of git://github.com/skodak/moodle 2011-08-23 23:12:34 +02:00
Eloy Lafuente (stronk7) d12d4d59a6 MDL-28684 QE2 upgrade: whitespace fix 2011-08-23 22:52:16 +02:00
Eloy Lafuente (stronk7) a4a6279a61 Merge branch 'MDL-28684b' of git://github.com/bostelm/moodle 2011-08-23 22:50:03 +02:00
Eloy Lafuente (stronk7) 53ef01d00b Merge branch 'MDL-28444' of git://github.com/timhunt/moodle 2011-08-23 22:46:17 +02:00
Aparup Banerjee 553d343bf2 Merge branch 'w33_MDL-28982_m22_sqlfullname' of git://github.com/skodak/moodle 2011-08-24 03:03:50 +08:00
Aparup Banerjee 5ad0103d9d Merge branch 'MDL-28687' of git://github.com/timhunt/moodle 2011-08-24 02:24:08 +08:00
Henning Bostelmann 96576a2ac1 MDL-29072 Import course: Use correct capability for course selection 2011-08-23 19:07:54 +01:00
Eloy Lafuente (stronk7) 379771a723 Merge branch 'master_MDL-27624' of git://github.com/danmarsden/moodle 2011-08-23 19:04:44 +02:00
Eloy Lafuente (stronk7) fb57247ed2 MDL-28962 enrol imsenterprise - whitespace fix 2011-08-23 18:39:48 +02:00
Eloy Lafuente (stronk7) 4a88ad2f2a Merge branch 'master_MDL-28962' of git://github.com/danmarsden/moodle 2011-08-23 18:31:01 +02:00
Eloy Lafuente (stronk7) 8d30b1a97e Merge branch 'MDL-28957' of git://github.com/colchambers/moodle 2011-08-23 18:00:51 +02:00
Eloy Lafuente (stronk7) 01fc285579 Merge branch 'MDL-28397' of https://github.com/totara/moodle 2011-08-23 17:17:16 +02:00
Petr Skoda a7a20faf8f MDL-29027 fallback to mb_string on errors if available and simplify charset parsing
This may solve problems with encodings unsupported in iconv and random borked chars are ignored.
2011-08-23 15:21:15 +02:00
Aparup Banerjee 31d13687c9 Merge branch 'wip-MDL-25636-master' of git://github.com/samhemelryk/moodle 2011-08-23 18:17:26 +08:00
Eloy Lafuente (stronk7) 065399a11f Merge branch 'w33_MDL-28381_m22_cliphpver' of git://github.com/skodak/moodle 2011-08-23 11:03:19 +02:00
Eloy Lafuente (stronk7) 4abd7a07e1 Merge branch 'MDL-28996' of git://github.com/timhunt/moodle 2011-08-23 10:41:17 +02:00
Eloy Lafuente (stronk7) 6c29e785eb Merge branch 'w33_MDL-28554_m22_yui' of git://github.com/skodak/moodle 2011-08-23 10:11:41 +02:00
Eloy Lafuente (stronk7) f1bb5b2ec7 Merge branch 'w33_MDL-28935_m22_calendardays' of git://github.com/skodak/moodle 2011-08-23 09:59:27 +02:00
Petr Skoda ebdeccca4e MDL-26796 remove unused param 2011-08-23 08:18:03 +02:00
Aparup Banerjee f3d8c8a9a3 Merge branch 'MDL-28509_master' of git://github.com/marxjohnson/moodle 2011-08-23 14:07:08 +08:00
Eloy Lafuente (stronk7) c946644435 Merge branch 'master_MDL-28999' of git://github.com/danmarsden/moodle 2011-08-23 02:49:40 +02:00
Eloy Lafuente (stronk7) 906f11ef3b Merge branch 'w33_MDL-29016_m22_distropermissions' of git://github.com/skodak/moodle 2011-08-23 02:42:40 +02:00
Eloy Lafuente (stronk7) 1a3c27d0b6 Merge branch 'MDL-28990' of git://github.com/mouneyrac/moodle 2011-08-23 02:35:05 +02:00
Eloy Lafuente (stronk7) 865b0b1437 Merge branch 'w33_MDL-29031_m22_oldblock' of git://github.com/skodak/moodle 2011-08-23 02:03:19 +02:00
Eloy Lafuente (stronk7) c04b098343 Merge branch 'MDL-28226' of git://github.com/timhunt/moodle 2011-08-23 01:42:05 +02:00
Eloy Lafuente (stronk7) 47cd63bcd8 Merge branch 'MDL-28481' of git://github.com/aolley/moodle 2011-08-23 01:36:25 +02:00
Eloy Lafuente (stronk7) f342cd715a Merge branch 'w33_MDL-28936_m22_msgstrlen' of git://github.com/skodak/moodle 2011-08-23 01:19:52 +02:00
Eloy Lafuente (stronk7) 16302db3a4 Merge branch 'MDL-28241' of git://github.com/timhunt/moodle 2011-08-23 01:16:34 +02:00
Tim Hunt c1f15d3539 MDL-28241 editing multianswer questions broken since the fix for MDL-24594. 2011-08-22 22:35:05 +01:00
Aparup Banerjee c6f94ea2fa Merge branch 'wip-mdl-28580' of git://github.com/rajeshtaneja/moodle 2011-08-23 00:51:28 +08:00
Aaron Barnes 4756710889 MDL-28397 completion: Activity completion criteria not showing grading
requirement

Credit goes to Evan Irving-Pease for the patch
2011-08-22 14:54:41 +12:00
Adam Olley 936cabd6f0 MDL-28481: Send headers before any possible output 2011-08-22 09:11:42 +09:30
Petr Skoda 3b3f302855 MDL-28929 update all themes to use the new placeholders 2011-08-21 21:01:53 +02:00
Petr Skoda 72009b8777 MDL-28929 fix incorrect use if static placeholders in theme layouts 2011-08-21 21:01:31 +02:00
Petr Skoda 1e3c41c0cf MDL-29011 do not require manual enrol cap on the enrolled users page 2011-08-21 18:17:43 +02:00
Petr Skoda 925c5efd3e MDL-29031 drop unused block tables 2011-08-21 17:56:06 +02:00
Petr Skoda fe8682fd41 MDL-27248 remove forgotten unique sortorder index from the course table 2011-08-21 17:32:02 +02:00
Petr Skoda 11ec4ed51d MDL-28981 fix forum_user_can_post() call params 2011-08-21 15:50:23 +02:00
Petr Skoda 1c8c6c34fd MDL-28982 fix DML use 2011-08-21 15:38:46 +02:00
Tony Levi d9b49c23da MDL-27228: Fix label 'eye' does not match show/hide setting 2011-08-21 14:54:00 +02:00
Petr Skoda 8de5d7b987 MDL-28381 always verify PHP version in CLI scripts
The problem is that people may use different php binary for web and CLI.
2011-08-21 12:21:29 +02:00
Petr Skoda ff72b8d1b0 MDL-29000 multiple password reset issues
* stop abusing get_complete_user_data()
* fix case-sensitiveness in password reset for PG
* do not allow reset of disabled accounts
* propose a solution for non-unique emails
2011-08-20 19:22:04 +02:00
Tomasz Muras 192a8aef34 MDL-29012 Show which user profile field is being deleted
Improve usability by showing the name of the profile field
being deleted.
2011-08-20 16:29:21 +01:00
Petr Skoda 5a7e4c1158 MDL-29027 improve textlib api and add missing unittests 2011-08-20 17:00:53 +02:00
Tim Hunt e8b8073d3c MDL-28444 unit test to verify the fix. 2011-08-20 13:14:07 +01:00
Petr Skoda 043c7cb863 MDL-28935 use weekdays as calendar table headings 2011-08-20 13:45:37 +02:00
Jason Ilicic 2953ad13bb MDL-28935 Add days of week to monthly calendar view 2011-08-20 13:38:19 +02:00
Petr Skoda 6650f3dedf MDL-29020 add CLI verbose mode and stop requiring course idnumber when external column specified 2011-08-20 12:59:23 +02:00
Henning Bostelmann 409199d660 MDL-28444 synchronized datasets: fix typo in get_variants_selection_seed() 2011-08-20 11:49:26 +01:00
Petr Skoda 70801baf0b MDL-29016 allow distributions to set dataroot permissions 2011-08-20 12:48:44 +02:00
Petr Skoda 0b92cdce1f MDL-28936 fix invalid >200 comparison and utf-8 incompatibility
Credit for discovery goes to Jason Ilicic.
2011-08-19 18:42:49 +02:00
Petr Skoda ffa5e3ddae MDL-28708 minor unrelated cleanup and elimination of dead code 2011-08-19 17:26:28 +02:00
Tony Levi f73c6bad2c MDL-28708: Send 304 Not Modified response when browser If-Modified-Since header is after file mtime 2011-08-19 17:14:54 +02:00
Petr Skoda 21aa9d48e3 MDL-26796 document array parameter changes 2011-08-19 17:04:34 +02:00
Petr Skoda aa603b14c7 MDL-28709 adding HTTP_IF_MODIFIED_SINCE and minor style tweaks 2011-08-19 16:32:30 +02:00
Tony Levi ccc0fff941 MDL-28709: Performance: Send cache/contenttype headers with 304 responses 2011-08-19 16:23:08 +02:00
Henning Bostelmann fbf51a480a MDL-28684 QE2 upgrade: recognize empty answer in multichoice questions 2011-08-19 10:33:35 +01:00
Andrew Davis (andyjdavis) 2a4d3c98d5 MDL-27823 messaging: preventing html tags from being output to the UI 2011-08-19 16:53:32 +08:00
Petr Skoda ef7329dce0 MDL-28544 workaround for missing YUI 3.4.0 loader info 2011-08-19 10:21:30 +02:00
Petr Skoda b13425c810 MDL-28554 import YUI 3.4.0 2011-08-19 10:20:21 +02:00
Rajesh Taneja bb44ef990f MDL-28580 Administration: Added sanity check to grab wrong usage of upgrade_main_savepoint 2011-08-19 07:37:48 +00:00
Petr Skoda 6fc17ca906 MDL-28554 import YUI 2.9.0 2011-08-19 07:49:06 +02:00
Jerome Mouneyrac fa698a15a8 MDL-28990 add web service mobile overview 2011-08-19 11:45:18 +08:00
Ankit Kumar Agarwal 784967eab8 MDL-27624 SCORM formating codes 2011-08-19 11:17:19 +12:00
Ankit Kumar Agarwal 266a129c14 MDL-27624 Small structural changes
MDL-27624 SCORM adding definition to scrom elements
	modified:   mod/scorm/lang/en/scorm.php
	modified:   mod/scorm/userreport.php
2011-08-19 11:17:19 +12:00
Dan Marsden 3b71ce6a5c MDL-28999 SCORM add missing yui2 require 2011-08-19 10:23:46 +12:00
Tim Hunt a47a46f136 MDL-28996 Quiz view page list of attempts table is sometimes missing a cell. 2011-08-18 19:26:30 +01:00
Tim Hunt 5e86cb87de MDL-28979 qtype match: correct answer formatted badly. 2011-08-18 14:00:57 +01:00
Tim Hunt 45e5fbe11e MDL-28976 quiz was passing 0 to ->attempt_url when it should have been null.
There was also one other incorrect call that is fixed in this commit.
2011-08-18 14:00:30 +01:00
Tim Hunt a40d411e74 MDL-28975 question engine, JavaScript error in IE. 2011-08-18 14:00:05 +01:00
Tim Hunt 2a73f863ff MDL-28687 questions avoid fatal errors when reviewing attempts at deleted questions. 2011-08-18 13:59:07 +01:00
Tim Hunt 13bbfebc75 MDL-28226 quiz locallib. Fix PHPdoc comment and code to make the API clearer. 2011-08-18 13:58:14 +01:00
Petr Skoda 84641adc3b MDL-19380 fix redirect when virus found in JS-less mode 2011-08-18 09:01:53 +02:00
Petr Skoda 18bd7573d6 MDL-26796 convert array parameter cleaning to new functions 2011-08-18 08:40:33 +02:00
Petr Skoda 923aff64fa MDL-26796 add unit tests for parameter cleanup 2011-08-18 08:40:32 +02:00
Petr Skoda 2ca3bffa95 MDL-26796 do not accept arrays in optional_param() and required_param(), add new functions 2011-08-18 08:40:32 +02:00
Petr Skoda 23bfe0a448 MDL-19380 reimplement antivir scanning in repositories 2011-08-18 08:37:40 +02:00
Jerome Mouneyrac cde291ed73 MDL-28650 add a page in the administration to the full web service API (API documentation). 2011-08-18 11:51:02 +08:00
Dan Marsden 5375c60ad4 MDL-28962 enrol imsenterprise - incorrect conversion of new dml syntax - thanks to Patrick Gagnon for report and fix. 2011-08-18 13:39:22 +12:00
AMOS bot 5823344462 Automatically generated installer lang files 2011-08-18 00:55:20 +00:00
Eloy Lafuente (stronk7) 4f3632441a weekly release 2.2dev 2011-08-18 02:41:22 +02:00
Eloy Lafuente (stronk7) 29092038d8 Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-08-18 02:38:24 +02:00
Colin Chambers 9ec3e43867 #MDL-28957 outputrequirementslib reduced excessive js console logging 2011-08-17 15:00:44 +01:00
Eloy Lafuente (stronk7) 1d1982c5a2 Merge branch 'MDL-28349' of git://github.com/timhunt/moodle 2011-08-17 15:28:55 +02:00
Dongsheng Cai 3deff6c9d2 MDL-27289, upgrade box.net repository plugin to use new box.net authentication process 2011-08-17 11:42:23 +08:00
Eloy Lafuente (stronk7) f5cf69047d Merge branch 'MDL27951' of git://github.com/ankitagarwal/moodle 2011-08-17 03:09:15 +02:00
Eloy Lafuente (stronk7) 2bdd5cf6ec Merge branch 'wip_MDL-20804_wsdl' of git://github.com/timhunt/moodle 2011-08-17 03:04:34 +02:00
Eloy Lafuente (stronk7) c2f4948cab Merge branch 'wip-mdl-27219' of git://github.com/rajeshtaneja/moodle 2011-08-17 02:58:40 +02:00
Eloy Lafuente (stronk7) c4904bdab5 Merge branch 'MDL-28737' of git://github.com/timhunt/moodle 2011-08-17 02:51:09 +02:00
Eloy Lafuente (stronk7) eed08a1c25 Revert "MDL-25757 SCORM fix issue with duplicate cmi values being saved"
This reverts commit 7441c53cc1.
2011-08-17 02:27:50 +02:00
Eloy Lafuente (stronk7) e1314fe345 Merge branch 'MDL-21934' of git://github.com/timhunt/moodle 2011-08-17 01:28:41 +02:00
Eloy Lafuente (stronk7) 682309687d Merge branch 'MDL-27752' of git://github.com/rwijaya/moodle 2011-08-17 01:01:59 +02:00
Eloy Lafuente (stronk7) 8b321291e2 Merge branch 'MDL-28301-master' of git://github.com/sammarshallou/moodle 2011-08-17 00:56:28 +02:00
Eloy Lafuente (stronk7) a50fe03ebe Merge branch 'MDL-28643-master' of git://github.com/sammarshallou/moodle 2011-08-17 00:44:44 +02:00
Eloy Lafuente (stronk7) b59545e6e5 Merge branch 'master_MDL-28649' of git://github.com/danmarsden/moodle 2011-08-17 00:32:23 +02:00
Eloy Lafuente (stronk7) 11092aeb16 Merge branch 'MDL-28652' of git://github.com/timhunt/moodle 2011-08-17 00:28:43 +02:00
Eloy Lafuente (stronk7) ca00985a79 Merge branch 'MDL-28653' of git://github.com/timhunt/moodle 2011-08-17 00:17:14 +02:00
Eloy Lafuente (stronk7) e2c65492c8 Merge branch 'MDL-28654' of git://github.com/timhunt/moodle 2011-08-17 00:08:59 +02:00
Eloy Lafuente (stronk7) ff61183f43 Merge branch 'MDL-28655' of git://github.com/bostelm/moodle 2011-08-17 00:07:19 +02:00
Eloy Lafuente (stronk7) 6d4f437640 Merge branch 'master_MDL-28721' of git://github.com/danmarsden/moodle 2011-08-16 23:42:59 +02:00
Eloy Lafuente (stronk7) 50c89706a7 Merge branch 'wip-MDL-26754-master' of github.com:marinaglancy/moodle 2011-08-16 13:07:54 +02:00
Eloy Lafuente (stronk7) 78fe1bad47 Merge branch 'MDL-28365' of git://github.com/timhunt/moodle 2011-08-16 13:03:02 +02:00
Eloy Lafuente (stronk7) 515380a992 Merge branch 'MDL-23872_M' of git://github.com/nebgor/moodle 2011-08-16 11:51:24 +02:00
Rajesh Taneja d0157d827b MDL-27219 chat: Beep will not display user fullname if user is not in chat 2011-08-16 16:34:16 +08:00
Andrew Davis (andyjdavis) 2fd7c451ad MDL-28943 messaging: made messaging admin page use a string instead of the plugin name 2011-08-16 14:30:34 +08:00
Eloy Lafuente (stronk7) 2345ab864d Merge branch 'MDL-28931_master' of git://github.com/stronk7/moodle 2011-08-16 03:03:26 +02:00
Eloy Lafuente (stronk7) 6ae8a01edb Merge branch 'master_MDL-28739' of git://github.com/danmarsden/moodle 2011-08-16 03:02:29 +02:00
Eloy Lafuente (stronk7) c4e560099c Merge branch 'wip-mdl-27728' of git://github.com/rajeshtaneja/moodle 2011-08-16 02:14:26 +02:00
Eloy Lafuente (stronk7) f716839a3f Merge branch 'MDL-27030' of git://github.com/timhunt/moodle 2011-08-16 02:06:07 +02:00
Eloy Lafuente (stronk7) 32dc8ecd16 MDL-27896 filters/editor - fix whitespace 2011-08-16 01:57:51 +02:00
Eloy Lafuente (stronk7) f50675809f Merge branch 'wip-mdl-27896' of git://github.com/rajeshtaneja/moodle 2011-08-16 01:55:30 +02:00
Eloy Lafuente (stronk7) 70fc3fb919 Merge branch 'master_MDL-28937' of git://github.com/danmarsden/moodle 2011-08-16 01:52:59 +02:00
Eloy Lafuente (stronk7) 485b56ee87 Merge branch 'master_MDL-28933' of git://github.com/danmarsden/moodle
Conflicts:
	mod/scorm/api.php
2011-08-16 01:40:06 +02:00
Eloy Lafuente (stronk7) 21507599b1 Merge branch 'master_MDL-28541' of git://github.com/danmarsden/moodle 2011-08-16 01:26:34 +02:00
Eloy Lafuente (stronk7) c380fbf4c9 Merge branch 'master_MDL-25757' of git://github.com/danmarsden/moodle 2011-08-16 00:37:23 +02:00
Eloy Lafuente (stronk7) 8f85249a96 MDL-26979 css - clean whitespace introduced by previous commit 2011-08-16 00:31:08 +02:00
Eloy Lafuente (stronk7) eed36bbbd9 Merge branch 'wip-MDL-26979-master' of git://github.com/samhemelryk/moodle 2011-08-15 22:46:01 +02:00
Petr Skoda ace24aaa7d Merge branch 'wip-MDL-25602-master' of git://github.com/samhemelryk/moodle 2011-08-15 20:45:43 +02:00
Petr Skoda 49989aa47d Merge branch 'MDL-27845_rating_aggregation' 2011-08-15 20:33:33 +02:00
Eloy Lafuente (stronk7) 04a332d740 Merge branch 'master_MDL-28603' of git://github.com/danmarsden/moodle 2011-08-15 20:00:53 +02:00
Dan Poltawski 22fb538603 MDL-28605 repsitory/local - Prevent server running out of memory
Removing useless code..
2011-08-15 19:57:46 +02:00
Tim Hunt effc982b1e MDL-21934 Removing all questions from the quiz should not delet overall feedback.
Overall feedback was being wiped because the quiz max grade was being set to zero when sumgrades was set to 0. The correct logic is to only set maxgrade to 0 if there are questions in the quiz and sumgrades is 0.
2011-08-15 18:47:03 +01:00
Eloy Lafuente (stronk7) c97cc5c72f Merge branch 'MDL-28939' of git://github.com/timhunt/moodle 2011-08-15 19:34:31 +02:00
Tim Hunt 0519420f59 MDL-28349 error when GIFT-importing essay questions. 2011-08-15 16:17:16 +01:00
Tim Hunt a41c441c05 MDL-28365 Move question lang string to the right file
All the references to this sring were already referring to it in the new
place.

AMOS BEGIN
 MOV [cannotread,mod_quiz],[cannotread,question]
AMOS END
2011-08-15 15:18:21 +01:00
Tim Hunt 9d555b4456 MDL-28939 Bad lang string reference in grade/import/csv. 2011-08-15 15:11:51 +01:00
Tim Hunt 08f5328659 MDL-28639 question import should set timemodified and modified by.
Thanks to Jean-Michel Vedrine for the fix.
2011-08-15 14:55:50 +01:00
Tim Hunt 45bdcf1134 MDL-28438 Aiken question import broken since MDL-24594. 2011-08-15 14:44:57 +01:00
Dan Marsden 6917eee804 MDL-28937 SCORM 2004 ADL TEST CM-01 MDL-28740 first part of check for hidecontinue param in SCO - prevent next item in TOC from being selectable and disable buttons in navbar if links don't exist in TOC 2011-08-15 18:33:33 +12:00
Dan Marsden e6402b54ad MDL-28933 SCORM use a global function to check SCORM version to make sure all methods of storing SCORM version are checked. 2011-08-15 14:05:59 +12:00
Mayank Gupa 05c2b851c0 MDL-28541 SCORM ADL TEST CM-01 MDL-28740 fixing cmi.scaled_passing_score returning null 2011-08-15 13:47:40 +12:00
Mayank Gupa 6faea458ba MDL-28541 SCORM ADL TEST CM-01 MDL-28740 fixing cmi.scaled_passing_score returning null 2011-08-15 10:26:18 +12:00
Eloy Lafuente (stronk7) 03625387e2 MDL-28931 timezone - update to 2011h (2200 rules) 2011-08-14 18:04:59 +02:00
Dan Marsden 45999e7895 MDL-28739 SCORM trim minnormalizedmeasure before saving it 2011-08-13 19:03:53 +12:00
Dan Marsden 7441c53cc1 MDL-25757 SCORM fix issue with duplicate cmi values being saved 2011-08-13 13:22:58 +12:00
Tim Hunt 775fd4f145 MDL-28737 advcheckboxes toggle state every submit if checkbox_controller present. 2011-08-12 19:11:45 +01:00
Rajesh Taneja cec1d81461 MDL-27896 course - Rectified wrong use of itemid for preparing draft file area 2011-08-12 16:41:29 +08:00
Ankit Kumar Agarwal 59666dae0e MDL-27951 Balancing Div tags 2011-08-12 10:59:35 +05:30
Dan Marsden f35b5884be MDL-28603 - fix regression for SCORM 1.2 test 2011-08-12 17:15:18 +12:00
Rajesh Taneja dedb69a2a1 MDL-27896 editor - parent context will be respected by editor in case context is not created. 2011-08-12 11:33:21 +08:00
Rajesh Taneja f9157eb798 MDL-27896 editor - added sanity check to pick wrong context passed to editor creation 2011-08-12 11:33:21 +08:00
Rajesh Taneja e9de1cf49c MDL-27896 context - Fixed editor context to observe filter status 2011-08-12 11:33:21 +08:00
Sam Hemelryk 6c95e46a15 MDL-26979 custommenu Improved the custom menu CSS in base and all other core themes
* The custom menu now requires the YUI module directly rather than in its initialisation
* Improved the CSS in base so that it was more precise and more easily overrideable
* Reviewed the CSS for all core themes improving and removing !important from rules
2011-08-12 11:10:06 +08:00
Sam Hemelryk 6919b90f05 MDL-25602 blocks Altered order of block editing icons and added CSS to better control the size of block editing icons 2011-08-12 10:26:20 +08:00
Rajesh Taneja b29c9b05e6 MDL-27728 Moodleforms: Added validation for element before checking element values 2011-08-12 10:22:40 +08:00
AMOS bot 7b83d6291c Automatically generated installer lang files 2011-08-12 00:55:26 +00:00
Dan Marsden 666efc149a MDL-28649 SCORM fix force new attempt when skipview is used 2011-08-12 12:44:16 +12:00
Dan Marsden 93e46331fc MDL-28721 SCORM - respect hide navigation buttons setting. 2011-08-12 11:06:58 +12:00
Eloy Lafuente (stronk7) 7969f1ecf5 weekly release 2.2dev 2011-08-12 00:18:07 +02:00
Marina Glancy 03909d79e4 MDL-26754: Removed unnecessary include 2011-08-11 13:39:30 +08:00
Sam Hemelryk bd4624765e MDL-25636 block_html Fixed up missing format config if block restored from early 2.0 backup 2011-08-11 11:17:37 +08:00
Eloy Lafuente (stronk7) 76f063fa5d Merge branch 'MDL-27491-master' of git://github.com/sammarshallou/moodle 2011-08-10 23:03:06 +02:00
Eloy Lafuente (stronk7) 89c6def316 Merge branch 'master_MDL-28295' of git://github.com/danmarsden/moodle 2011-08-10 22:46:42 +02:00
sam marshall ad275cb4ad MDL-28643 Fix debugging message when deleting activity with grade completion 2011-08-10 11:02:56 +01:00
sam marshall 26848c48f9 MDL-28301 Completion: Replaced completion tickbox icons with nicer ones 2011-08-10 11:02:05 +01:00
sam marshall 05b7cd7ae9 MDL-27491 Add 'complete on view' support to wiki, survey 2011-08-10 10:56:14 +01:00
Daren Chandisingh f1f70bd4dd MDL-23872 Forms Library : Updated MoodleQuickForm to honour setConstant(), prevents injection. 2011-08-10 15:17:53 +08:00
Sam Hemelryk 92636dfb5a Merge branch 'MDL-20501' of git://github.com/rwijaya/moodle 2011-08-10 14:04:22 +08:00
Sam Hemelryk 751a6d3c29 Merge branch 'MDL_25417' of git://git.luns.net.uk/moodle 2011-08-10 13:39:32 +08:00
Eloy Lafuente (stronk7) 09e35896d4 Merge branch 'MDL-27631' of git://github.com/mkassaei/moodle 2011-08-10 03:00:17 +02:00
Eloy Lafuente (stronk7) 7e988ed160 Merge branch 'MDL-27550-workshop-feedback' of git://github.com/mudrd8mz/moodle 2011-08-10 02:47:57 +02:00
Eloy Lafuente (stronk7) 628e2396af Merge branch 'w31_MDL-27597_m22_catlike' of git://github.com/skodak/moodle 2011-08-10 02:34:51 +02:00
Dan Marsden 6d954dd372 MDL-28295 SCORM change mangement of pop-up windows, load full SCORM API in existing window - this fixes an issue with IE 7 and httpreq communication 2011-08-10 12:19:49 +12:00
Eloy Lafuente (stronk7) 1ddecae7c7 Merge branch 'MDL-23967' of git://git.luns.net.uk/moodle 2011-08-10 02:04:55 +02:00
Eloy Lafuente (stronk7) 6d067fec6f Merge branch 'MDL-28059' of git://git.luns.net.uk/moodle 2011-08-10 01:58:03 +02:00
Eloy Lafuente (stronk7) b16d8f59ab Merge branch 'wip-MDL-28407-master' of git://github.com/samhemelryk/moodle 2011-08-10 01:10:27 +02:00
Eloy Lafuente (stronk7) 43c88235c5 Merge branch 'w31_MDL-28533_m22_columnperf' of git://github.com/skodak/moodle 2011-08-09 19:30:54 +02:00
Tim Hunt 25d9a6a664 MDL-28653 question output. Add a class to the main div based on question state.
This makes it possible themes do cool things. For example change more of the display depending on whether the answer was correct or not.
2011-08-09 11:31:37 +01:00
Eloy Lafuente (stronk7) 8a015bdb84 Merge branch 'MDL-28565_M' of git://github.com/nebgor/moodle 2011-08-09 10:13:18 +02:00
Henning Bostelmann 35ee6e333d MDL-28655 qtype_calculated question engine upgrade: fix return value 2011-08-09 09:13:09 +01:00
Eloy Lafuente (stronk7) 1c001177ea Merge branch 'MDL-28604' of git://github.com/timhunt/moodle 2011-08-09 09:41:53 +02:00
Tony Levi 88b3eb8bb5 MDL-27030: Fix quiz overview report showing incorrect grades on regraded attempts
Conflicts:

	mod/quiz/report/overview/report.php
2011-08-08 23:34:54 +01:00
Eloy Lafuente (stronk7) 1cdb96319d MDL-28493 scorm - fix whitespace 2011-08-08 18:15:42 +02:00
Tim Hunt d572f4497f MDL-28654 fix path for TinyMCE in lib/thirdpartylibs.xml. 2011-08-08 16:39:58 +01:00
Petr Skoda ca39e6d2fd Merge branch 'master_MDL-28601' 2011-08-08 16:18:08 +02:00
Petr Skoda 260cf4c2fd Merge branch 'MDL-28620' of git://github.com/jbrisland/moodle 2011-08-08 15:32:29 +02:00
Tim Hunt 6ef90fdef9 MDL-28652 qtype calculated, bad display of placeholder names on the editing form. 2011-08-08 13:13:37 +01:00
Aparup Banerjee e637e76a25 MDL-28565 General - updated lang files License link to docs.moodle.org/dev/License 2011-08-08 17:16:07 +08:00
Aparup Banerjee 9fdab2fe73 MDL-28565 General - updated License and Credits links
to docs.moodle.org/dev/License and docs.moodle.org/dev/Credits
2011-08-08 17:15:57 +08:00
Sagie Maoz 0d5e5644b8 MDL-26721 automated backups - Fix typo
Causing the 'role assignment' backup inclusion to be tied to the users

Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2011-08-08 15:40:55 +08:00
Sam Hemelryk 01352e33cc Merge branch 'master_MDL-28311' of git://github.com/danmarsden/moodle 2011-08-08 15:05:56 +08:00
Sam Hemelryk e97584bcf1 Merge branch 'mdl-28517' of git://github.com/colchambers/moodle 2011-08-08 14:22:51 +08:00
Dan Poltawski d8d1f9e35e MDL-28569 blocks/rss_client - RSS feed autodiscovery fails with ampersands
Simpliepie is quoting urls and we need the url to be unescaped
2011-08-08 14:11:13 +08:00
Sam Hemelryk 0d38abcf38 Merged branch 'MDL-28575_master' of git://github.com/kordan/moodle.git with conflict resolution 2011-08-08 13:58:10 +08:00
Sam Hemelryk 9e4b5b45a4 Merge branch 'MDL-28587_master' of git://github.com/kordan/moodle 2011-08-08 13:43:42 +08:00
Rossiani Wijaya 03929beaa1 MDL-27752 Calendar export: fixed typo in url parameter 2011-08-08 13:01:09 +08:00
Sam Hemelryk a3ff929807 Merge branch 'MDL-28406_block_duplicate' of git://github.com/andyjdavis/moodle 2011-08-08 11:18:14 +08:00
Sam Hemelryk 16c009c5bf Merge branch 'MDL-28602' of git://github.com/timhunt/moodle 2011-08-08 11:06:54 +08:00
Sam Hemelryk 067b8a5556 Merge branch 'MDL-28593' of git://github.com/timhunt/moodle 2011-08-08 11:04:19 +08:00
Sam Hemelryk 9d85b62c42 Merge branch 'MDL-28612' of git://github.com/timhunt/moodle 2011-08-08 11:00:38 +08:00
Sam Hemelryk 2f86bcfffa Merge branch 'MDL-28618' of git://github.com/timhunt/moodle 2011-08-08 10:57:11 +08:00
Sam Hemelryk b1251c9008 Merge branch 'w31_MDL-27586_m22_browser' of git://github.com/skodak/moodle 2011-08-08 10:46:41 +08:00
Sam Hemelryk cb09753feb Merge branch 'w31_MDL-27685_m22_pglike' of git://github.com/skodak/moodle 2011-08-08 10:26:20 +08:00
Sam Hemelryk 9be161c678 Merge branch 'w31_MDL-28382_m22_iis' of git://github.com/skodak/moodle 2011-08-08 10:20:15 +08:00
Sam Hemelryk 7d85a4e226 Merged branch 'w31-MDL-28412_m22_iconv' of git://github.com/skodak/moodle.git with english string improvements 2011-08-08 10:16:23 +08:00
Sam Hemelryk 3b8502658f Merge branch 'w31_MDL-28450_m22_defgroup' of git://github.com/skodak/moodle 2011-08-08 10:09:31 +08:00
Sam Hemelryk 406bf830cd Merge branch 'w31_MDL-28468_m22_cohortassign' of git://github.com/skodak/moodle 2011-08-08 10:06:06 +08:00
Sam Hemelryk 7d405fe7c8 Merge branch 'w31_MDL-28473_m22_blocksupgrade' of git://github.com/skodak/moodle 2011-08-08 09:59:42 +08:00
Sam Hemelryk 639ab4d5c5 Merge branch 'w31_MDL-28622_m22_userdel' of git://github.com/skodak/moodle 2011-08-08 09:57:11 +08:00
Sam Hemelryk c357b5c6e0 Merge branch 'w31_MDL-28630_m22_cookie' of git://github.com/skodak/moodle 2011-08-08 09:50:33 +08:00
Petr Skoda 37c8259280 MDL-28382 work around or detect REQUEST_URI IIS bug 2011-08-07 14:39:45 +02:00
Petr Skoda d5b3deecba MDL-27685 fix pg LIKE escape trouble 2011-08-07 13:19:02 +02:00
Petr Skoda c160da9cb8 MDL-28450 prefer member group for default 2011-08-07 13:06:45 +02:00
Dan Poltawski 6e513b6fde MDL-23967 admin/cron.php - warn about use on CLI
Admins now need to use the explicit CLI script
2011-08-06 23:38:49 +01:00
Petr Skoda 695940df3b MDL-28412 detect broken iconv 2011-08-06 23:04:31 +02:00
Petr Skoda eab044a083 MDL-28634 fix forgotten references to Moodle 2.0 and old PHP version requirements 2011-08-06 23:00:02 +02:00
Petr Skoda 988fc20eef MDL-28630 prevent session breakage caused by incorrect cookie settings 2011-08-06 22:22:52 +02:00
Dan Poltawski a276778aea MDL-28059 weblib - don't strip mailto: anchors 2011-08-06 21:14:01 +01:00
Petr Skoda f6b07c4da5 MDL-27586 fix file_browser access control 2011-08-06 15:45:18 +02:00
Petr Skoda 79cfcd3f7d MDL-28473 fix $instanceids troubles in blocks upgrade
Credit goes to Mateusz Wójcik.
2011-08-05 22:08:58 +02:00
Petr Skoda 50584dd3cc MDL-28468 fix cohort assign check 2011-08-05 21:43:29 +02:00
Petr Skoda bce595034c verify where_clause() only in debug mode 2011-08-05 21:33:16 +02:00
Petr Skoda 618a7f91ec MDL-27597 fix invalid results of get_categories when shallow is false 2011-08-05 20:13:12 +02:00
Petr Skoda f9fd10e0be MDL-17477 improve session purging when deleting users 2011-08-05 19:47:54 +02:00
Tim Hunt a23bda41e4 MDL-28618 question combined feedback: inconsistency in file areas.
The (partially|in)?correct feedback fields acutally store their files in a file area with component 'question'. Some code, however, was written as if they were stored in the qtype_whatever area.
2011-08-05 16:45:17 +01:00
James Brisland a8b2690bff MDL-28620 - Removed admin/generator.php include as it causes issues if this script is included from any other script that is running in the command line 2011-08-05 16:09:30 +01:00
Dan Poltawski f40bbf7dce MDL-25417 - remove redunant code 2011-08-05 12:06:57 +01:00
M Kassaei 92e6e128ff MDL-27631 question bank Show question text in the question list when top level category is used 2011-08-05 10:40:06 +01:00
Tim Hunt 609c0d6b9a MDL-28593 Missing include breaks editing quiz grade item. 2011-08-05 08:50:08 +01:00
Andrew Davis (andyjdavis) 02f40510e6 MDL-27845 rating: altered the get_ratings() query to avoid possible future duplicate key problems 2011-08-05 11:12:44 +08:00
Sam Hemelryk 683eb07144 MDL-28407 Fixed up calendar preferences form handling 2011-08-05 09:34:27 +08:00
Tim Hunt e5b0920e48 MDL-28612 Quiz statistics report does not always show the 'Actual response' column when it should 2011-08-04 18:14:31 +01:00
Colin Chambers 43e607ca79 MDL-28517 question editing fixed duplicate id in hint header field 2011-08-04 14:49:31 +01:00
Tim Hunt b2817f8057 MDL-28602 Quiz review reports the wrong duration. 2011-08-04 14:11:32 +01:00
Tim Hunt b72b413759 MDL-28604 Question bank display forgets sort order 2011-08-04 13:53:02 +01:00
Dan Marsden 02c1f7e253 MDL-28601 SCORM remove old js not used since MDL-22951 2011-08-05 00:41:09 +12:00
Marina Glancy 50c71e0af6 MDL-26754 Display blocks in 'manage blocks' alphabetically sorted 2011-08-04 14:05:41 +08:00
Andrew Davis (andyjdavis) 8d0845d30a MDL-28406 blocks: added JS to prevent the addition of duplicate blocks 2011-08-04 12:01:52 +08:00
Dan Marsden 03c3488957 MDL-28311 SCORM tidy up php warnings and display warning message to teacher that their manifest is invalid 2011-08-04 11:08:42 +12:00
Petr Skoda 3fdc622697 weekly release 2.2dev 2011-08-03 18:07:11 +02:00
kordan 3f52353016 MDL-28587 fix for master 2011-08-03 15:27:18 +02:00
Sam Hemelryk 984915afe5 Revert "MDL-28284 don't load filepicker module for every page"
This reverts commit 9b0843c121.
2011-08-03 18:20:01 +08:00
Sam Hemelryk 948ef5d07a Merge branch 'MDL-28520' of git://git.luns.net.uk/moodle 2011-08-03 15:03:30 +08:00
Petr Skoda 92f97e8253 Merge branch 'master_MDL-28493' 2011-08-03 08:27:52 +02:00
Dan Marsden 894dbd0420 MDL-28493 - fix version in upgrade - thanks Andrew 2011-08-03 15:36:52 +12:00
kordan 34497bd33e MDL-28575 fix for master 2011-08-02 23:39:18 +02:00
David Mudrak 6403358838 MDL-27550 workshop: fixed XHTML strictness of H3 and A combo
H3 is block level element while A is in-line element in XHTML.
Credit goes to Sam Hemelryk for spotting this during the peer-review.
2011-08-02 23:34:04 +02:00
David Mudrak 2c75324ee6 MDL-27550 workshop: rendering links to the submission and the assessment page
This usability improvement helps to provide feedback quickly during the
grading evaluation phase.
2011-08-02 23:33:33 +02:00
David Mudrak 3779dcae98 MDL-27550 workshop: students do not see peer-assessment that are not graded yet 2011-08-02 23:33:32 +02:00
David Mudrak f68648e982 MDL-27550 workshop: display the feedback for the submission reviewer when the workshop is closed 2011-08-02 23:33:32 +02:00
David Mudrak 38504a4490 MDL-27550 workshop: assessments are now displayed via proper rendering subsystem
AMOS BEGIN
 MOV [assessmentbyknown,mod_workshop],[assessmentbyfullname,mod_workshop]
AMOS END
2011-08-02 23:33:32 +02:00
David Mudrak 0dfb4bad56 MDL-27550 workshop: display the feedback for the submission author when the workshop is closed
The method user_picture::fields() was not available when these SQL
statements were originally written. Now instead of hard-coding the list
of returned fields, the user_picture is asked for the list.

Together with this change, methods workshop::get_submission_by_id()
and workshop::get_submission_by_author() now return the information
about the user who provided the feedback and overwrote the grade.
2011-08-02 23:33:32 +02:00
Petr Skoda affce0d744 Merge branch 'MDL-28471' of git://github.com/timhunt/moodle 2011-08-02 16:35:09 +02:00
Tim Hunt e6541b37e4 MDL-28471 better question flag icons.
Transparent background, and higher contrast for better accessibility.
2011-08-02 15:29:39 +01:00
Petr Skoda 1f5be6fbcd Merge branch 'master_MDL-10707' 2011-08-02 15:59:42 +02:00
Petr Skoda 6179c38af5 Merge branch 'wip-MDL-23626-master' of git://github.com/samhemelryk/moodle 2011-08-02 15:48:20 +02:00
Sam Hemelryk ad4700977a MDL-26477 Added a setting to display course sections as links within the navigation 2011-08-02 15:24:59 +02:00
Petr Skoda 4a47631fb4 Merge branch 'wip-mdl-27658' of git://github.com/rajeshtaneja/moodle 2011-08-02 15:11:42 +02:00
Petr Skoda 58f9006970 Merge branch 'MDL-28338' of git://github.com/timhunt/moodle 2011-08-02 15:08:05 +02:00
Petr Skoda 411b2e1d8d Merge branch 'master_MDL-28410' 2011-08-02 15:01:15 +02:00
Petr Skoda 74b0ad6a4d Merge branch 'MDL-28471' of git://github.com/timhunt/moodle 2011-08-02 14:55:18 +02:00
Petr Skoda 48fa0c75b5 Merge branch 'MDL-28507' of git://github.com/timhunt/moodle 2011-08-02 14:50:41 +02:00
Petr Skoda 82b8e88418 Merge branch 'master_MDL-28535' 2011-08-02 14:35:21 +02:00
Petr Skoda c03b42f521 Merge branch 'master_MDL-28542' 2011-08-02 14:30:20 +02:00
Tim Hunt 35ddcfb854 MDL-28507 fix bad lang string uses, and remove two obsolete strings. 2011-08-02 13:13:01 +01:00
Sam Hemelryk 44506b87dc Merge branch 'MDL-28490' of git://github.com/timhunt/moodle 2011-08-02 17:55:21 +08:00
Sam Hemelryk 58e67f7f1a Merge branch 'MDL-28508' of git://github.com/timhunt/moodle 2011-08-02 17:48:02 +08:00
Sam Hemelryk 87573744e6 Merge branch 'MDL-28051' of git://github.com/timhunt/moodle 2011-08-02 17:14:04 +08:00
Sam Hemelryk 1eaeb5d89e Merge branch 'MDL-28515' of git://git.luns.net.uk/moodle 2011-08-02 17:06:56 +08:00
Sam Hemelryk 6b50af32d6 Merge branch 'MDL-28340_advanced_search_other_users' of git://github.com/andyjdavis/moodle 2011-08-02 16:59:55 +08:00
Sam Hemelryk a338b06243 Merge branch 'wip-mdl-28504' of git://github.com/rajeshtaneja/moodle 2011-08-02 16:50:58 +08:00
Sam Hemelryk fef0f0e793 Merge branch 'wip-MDL-19907-master' of git://github.com/marinaglancy/moodle 2011-08-02 16:46:39 +08:00
Sam Hemelryk dcaec029ec MDL-27122 admin Improved block protection help string 2011-08-02 16:23:45 +08:00
Sam Hemelryk 8a5d0e95b3 Merge branch 'wip-MDL-27122-master' of git://github.com/marinaglancy/moodle 2011-08-02 16:19:08 +08:00
Sam Hemelryk 5867cf5047 Merge branch 'wip-MDL-27754-master' of git://github.com/marinaglancy/moodle 2011-08-02 14:08:31 +08:00
Sam Hemelryk 223b96e0fd Merge branch 's11_MDL-28284_filepicker_module_master' of git://github.com/dongsheng/moodle 2011-08-02 13:42:44 +08:00
Mark Johnson b1fc521ff2 MDL-28510 repository_youtube Use smaller thumbnails in search results 2011-08-02 13:36:45 +08:00
unknown 16321a2bef Merge branch 'master_MDL-27876' of git://github.com/danmarsden/moodle 2011-08-02 13:25:44 +08:00
Piers Harding 9597f85d44 MDL-27876 SCORM auto-adjust the stage height 2011-08-02 17:12:39 +12:00
Dan Marsden 4201a7464a MDL-28542 SCORM tidy up code. 2011-08-02 17:00:01 +12:00
Sam Hemelryk dee43df740 Merge branch 'MDL-28487-typo' of git://github.com/mudrd8mz/moodle 2011-08-02 12:22:29 +08:00
Sam Hemelryk 2f783d93d5 Merge branch 'master_MDL-28493' of git://github.com/danmarsden/moodle 2011-08-02 12:02:52 +08:00
Sam Hemelryk 3d738ce735 MDL-28548 Fixed up misleading comments 2011-08-02 11:42:40 +08:00
Jamie Pratt 0ea7fc2587 MDL-28562 "automatic naming of file in convert_image not working"
there is an obvious typo in the code causing the problem. The use of 
an equality check instead of the intended assignment.
2011-08-01 22:43:37 +07:00
Rossiani Wijaya 63d25e414f MDL-20501 survey module: fix text alignment for right to left language. Change undefined string to 2011-08-01 17:42:23 +08:00
Rajesh Taneja 4d99adbb32 MDL-27658 javascript: Typo fixed for toUpperCase 2011-08-01 12:50:11 +08:00
Rajesh Taneja 251af6a5b9 MDL-28504 filter: Typo in css fixed 2011-08-01 10:18:47 +08:00
Mayank Gupa 07dbbdde39 MDL-10707 SCORM Fixing cmi.max_time_allowed returned null 2011-08-01 11:08:24 +12:00
Dan Marsden 040aa0880b MDL-28548 allow backup to contain info from multiple plagiarism plugins. 2011-08-01 10:27:39 +12:00
Dan Marsden aab23f98cd MDL-28542 SCORM Course format should use skipview setting. 2011-07-31 18:51:39 +12:00
Mayank Gupa 45075df124 MDL-28493 SCORM Changed objectiveid field to char 2011-07-31 17:13:03 +12:00
Dan Marsden 04c99f8cdf MDL-28535 SCORM remove old IE 6 related warning about zlib 2011-07-30 10:38:55 +12:00
Dan Marsden aa20227e9f MDL-28410 Choice - allow single answer choice to be created 2011-07-30 10:20:51 +12:00
Marina Glancy f3cf94f70d MDL-27754 fixed typo in language string 2011-07-29 15:52:08 +08:00
Marina Glancy 28e63a9d8c MDL-27122 Allow admin to change CFG->undeletableblocktypes on 'Manage blocks' settings page. Instances of protected block types will be undeletable only from site context 2011-07-29 13:51:40 +08:00
Marina Glancy 7b5702b681 MDL-19907 rewrote validation for required fields in forms, including support for editor field. Added parameter to use strict (no spaces) required fields validation 2011-07-29 13:51:26 +08:00
Sam Hemelryk ca3e8e98a4 weekly release 2.2dev (emergency) 2011-07-29 12:21:02 +08:00
Sam Hemelryk e832dfec60 Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-07-29 10:13:57 +08:00
Sam Hemelryk b3da2877a7 MDL-28503 comment-caps Slight improvement to allow frontpage and guest users to view comments by default 2011-07-29 09:32:48 +08:00
Wale Olujide 8418e5b77c MDL-28051 Question numbers on the question edit page shoud be the same as during the quiz attempt. 2011-07-28 18:02:53 +01:00
Ruslan Kabalin 84ee73ee3b MDL-28520: repositories: validation method to repository_type_form class 2011-07-28 17:11:58 +01:00
Andrew Robert Nicols 1a698e0090 MDL-28515 Add cli install options for fullname and shortname 2011-07-28 15:15:52 +01:00
Mark Johnson 88bf951aa7 MDL-28509 repository_youtube Enable selection of sort order 2011-07-28 13:16:47 +01:00
Mark Johnson 84553f6150 Merge branch 'master', remote-tracking branch 'upstream/master' 2011-07-28 12:48:01 +01:00
Tim Hunt 1e20dea9b2 MDL-28508 bad string trunction in Aiken format. 2011-07-28 11:51:07 +01:00
Sam Hemelryk 5167f4c9b1 MDL-28503 Removed the ability for plugins to override comment capabilities and the defaults associated with it 2011-07-28 13:39:21 +08:00
AMOS bot abf0ca745b Automatically generated installer lang files 2011-07-28 00:55:13 +00:00
Tim Hunt 2f1ba2aed7 MDL-28490 Better class names in the statistics report to help themes. 2011-07-27 19:23:21 +01:00
Tim Hunt 4e5b9e498e MDL-28338 fix stupid '\n's in the quiz renderer 2011-07-27 19:22:24 +01:00
David Mudrak df62f42013 MDL-28487 Fixed typo in media filter help string 2011-07-27 14:44:02 +02:00
Andrew Davis (andyjdavis) dd6d83c16b MDL-28340 messaging: fixed a display issue when you search for and tried to view a conversation between two other users 2011-07-27 14:13:47 +08:00
Sam Hemelryk e96bc3f9e5 MDL-23626 Fixed bug causing course and general user activity reports to be marked active at the same time 2011-07-27 10:16:48 +08:00
kordan e0523b9729 MDL-28460 fix for master 2011-07-26 23:00:55 +02:00
Tim Hunt 22c97c6446 MDL-28471 Further tweaks to the question flag code. 2011-07-26 17:43:55 +01:00
Wale Olujide 474ee9389a MDL-28471 make the question flag smaller, and give it a label. 2011-07-26 16:38:07 +01:00
Petr Skoda 6f05796919 weekly release 2.2dev 2011-07-26 11:13:59 +02:00
Petr Skoda 5ed2d500b1 Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-07-26 11:12:47 +02:00
AMOS bot b13aba99bd Automatically generated installer lang files 2011-07-26 00:55:20 +00:00
Tim Hunt 048f3d32d6 MDL-28218 allow testclient.php to find the necessary form for services defined in plugins. 2011-07-25 20:04:19 +02:00
Petr Skoda 3e6f62e3d7 Merge branch 'MDL-28437' of git://github.com/timhunt/moodle 2011-07-25 19:53:37 +02:00
Petr Skoda 14c94235d8 Merge branch 'MDL-28369' of git://github.com/timhunt/moodle 2011-07-25 19:51:48 +02:00
Petr Skoda d98b0fe9d2 Merge branch 'MDL-28377' of git://github.com/timhunt/moodle 2011-07-25 19:48:55 +02:00
Petr Skoda e58d77a259 Merge branch 'wip-MDL-28421-master' of https://github.com/Beedell/moodle 2011-07-25 16:51:04 +02:00
Petr Skoda d39afd96ff Merge branch 'wip-MDL-28191-master' 2011-07-25 16:45:40 +02:00
Petr Skoda 95a1cb245c Merge branch 'MDL-28453' 2011-07-25 16:23:01 +02:00
Tim Hunt ad858cd428 MDL-28369 Question hints not being restored. 2011-07-25 10:05:13 +01:00
John Beedell 51f2d42f4f MDL-28421 Improve admin config class
admin_settings_configmultiselect_modules to include default value
2011-07-25 10:02:04 +01:00
Aparup Banerjee ed6a14eb03 MDL-28453 backup - made temporary restoration courses hidden by default. 2011-07-25 16:34:11 +08:00
Tim Hunt 8c4deb8003 MDL-28377 Call to mod_quiz_renderer is screwed up. 2011-07-25 09:14:44 +01:00
Tim Hunt 4bf1be3596 MDL-28437 Question bank pages should all use General type: admin. 2011-07-25 08:50:06 +01:00
Sam Hemelryk 9e4d53c7e8 Merge branch 'w29_MDL-28441_m22_scromreport' of git://github.com/skodak/moodle 2011-07-25 15:37:05 +08:00
Sam Hemelryk 39c621f63b Merge branch 'MDL-28107' of git://github.com/rwijaya/moodle 2011-07-25 15:14:12 +08:00
Andrew Davis (andyjdavis) 675c2f5341 MDL-27845 rating: split the get_ratings() query into two to reduce query complexity 2011-07-25 13:46:49 +08:00
Dan Poltawski 831b73773e MDL-28228 pagelib - incorrect DEBUG constant used 2011-07-25 13:04:46 +08:00
Dan Poltawski d0cdf8ec72 MDL-28232 - Course log text export is missing a new line 2011-07-25 12:57:39 +08:00
Michael Aherne 50e3c7d8ef MDL-27538 Added deprecation details to functions now in $DB 2011-07-25 11:30:21 +08:00
Sam Hemelryk 6c193bff68 Merge branch 'w29_MDL-22584_m22_monsterpaths' of git://github.com/skodak/moodle 2011-07-25 11:18:21 +08:00
Sam Hemelryk 00d8d33cdc Merge branch 'w29_MDL-25699_m22_installcss' of git://github.com/skodak/moodle 2011-07-25 11:08:26 +08:00
Sam Hemelryk 9192b4537c Merge branch 'w29_MDL-27464_m22_continue' of git://github.com/skodak/moodle 2011-07-25 11:03:34 +08:00
Sam Hemelryk 7fe0effd00 Merge branch 'w29_MDL-27653_m22_usercasting' of git://github.com/skodak/moodle 2011-07-25 10:59:08 +08:00
Sam Hemelryk b039eeb82b Merge branch 'w29_MDL-27796_m22_httphost' of git://github.com/skodak/moodle 2011-07-25 10:54:25 +08:00
Sam Hemelryk 0e7f782eb4 Merge branch 'w29_MDL-27994_m22_creatorcaps' of git://github.com/skodak/moodle 2011-07-25 10:45:20 +08:00
Sam Hemelryk 1092bd6db4 Merge branch 'w29_MDL-28145_m22_renderer' of git://github.com/skodak/moodle 2011-07-25 10:39:11 +08:00
Sam Hemelryk e826ef51b2 Merge branch 'w29_MDL-28182_m22_userdel' of git://github.com/skodak/moodle 2011-07-25 10:36:36 +08:00
Sam Hemelryk 7443fae6a5 Merge branch 'w29_MDL-28337_m22_urlparams' of git://github.com/skodak/moodle 2011-07-25 10:29:42 +08:00
Sam Hemelryk 1f70ee662e Merge branch 'w29_MDL-28384_m22_nullurl' of git://github.com/skodak/moodle 2011-07-25 10:14:29 +08:00
Sam Hemelryk 94ffa4a183 Merge branch 'w29_MDL-28392_m22_capnames' of git://github.com/skodak/moodle 2011-07-25 10:02:16 +08:00
Sam Hemelryk 8306a3799e Merge branch 'w29_MDL-28432_m22_cohortconfig' of git://github.com/skodak/moodle 2011-07-25 09:52:33 +08:00
Sam Hemelryk 08ad288d6f Merge branch 'w29_MDL-28440_m22_jssemicol' of git://github.com/skodak/moodle 2011-07-25 09:44:25 +08:00
Sam Hemelryk 310758d655 Merge branch 'MDL-27768' of git://github.com/lazydaisy/moodle 2011-07-25 09:39:31 +08:00
Petr Skoda 2b55aca7b7 MDL-27653 fix incorrect int | object detection 2011-07-24 15:04:17 +02:00
Petr Skoda 88d823c1f4 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:18:13 +02:00
Petr Skoda 43b9db45da 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:07:30 +02:00
Petr Skoda c8d3345cd3 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:28:43 +02:00
Petr Skoda 99e8656170 MDL-28441 add scormreport_basic to the list of standard plugins 2011-07-23 13:04:23 +02:00
Petr Skoda 1a7cb87e46 MDL-28440 add missing semicolon causing JS issues
Credit goes to Mark Nielsen.
2011-07-23 11:48:53 +02:00
Petr Skoda 980a952c34 MDL-22584 deal with oversized dir and file names during upgrade 2011-07-23 11:34:30 +02:00
AMOS bot c820934e62 Automatically generated installer lang files 2011-07-23 00:55:14 +00:00
Petr Skoda e5d2c5779f MDL-25699 decode URLs in installer CSS 2011-07-23 00:45:17 +02:00
Petr Skoda b7d7aafada MDL-28392 validate capability names 2011-07-23 00:09:08 +02:00
Petr Skoda 92372aba01 MDL-28145 fix renderer typo in comments 2011-07-22 23:42:26 +02:00
Petr Skoda e0f2718fb2 MDL-27796 ignore missing HTTP_HOST header 2011-07-22 23:17:09 +02:00
Petr Skoda f91f3f63a7 MDL-28182 always use full user object when deleting users 2011-07-22 22:46:32 +02:00
Petr Skoda f08e5e984a MDL-28337 add parameters explanation in URL resource configuration 2011-07-22 22:16:52 +02:00
Andrew Davis (andyjdavis) a924c53e4a MDL-27845 rating: updated rating unit tests 2011-07-22 16:09:56 +08:00
Petr Skoda 6df9761774 MDL-28432 use enrol/cohort and enrol/manual capabilities correctly in cohort enrol UI and fix input validation in ajax 2011-07-22 09:52:12 +02:00
Sam Hemelryk 0e01784c44 MDL-28191 Continue button after selecting a theme now redirects back to the theme selector 2011-07-22 14:57:26 +08:00
Rossiani Wijaya e877160d46 MDL-28107 course enrolment icon: Fixed logged in user enrolment icons 2011-07-22 13:23:57 +08:00
Dongsheng Cai 9b0843c121 MDL-28284 don't load filepicker module for every page 2011-07-21 17:26:38 +08:00
Eloy Lafuente (stronk7) d8c713885f rating/lib.php unit tests 1st cut 2011-07-21 15:58:53 +08:00
Petr Skoda 6884b598f3 weekly release 2.2dev 2011-07-19 15:25:11 +02:00
Petr Skoda 8057e4d85e Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-07-19 15:15:32 +02:00
Petr Skoda 8aa74f821d MDL-27696 initialise arrays
Credit goes to David Mudrak.
2011-07-19 15:03:58 +02:00
Petr Skoda 51c3e855d0 MDL-27696 do not use placeholders in GROUP BY because pg does no like that 2011-07-19 10:53:20 +02:00
Petr Skoda 0881cb5135 MDL-27889 use new recaptcha google urls in lang packs 2011-07-19 10:27:20 +02:00
Mary Evans 080fbe680d fix for MDL-27768 removed reference to gradient-sb image 2011-07-18 23:37:33 +01:00
Petr Skoda 5e85f7b50b MDL-27523 fix phpdocs packages 2011-07-18 16:03:15 +02:00
Petr Skoda d6a1c91bee Merge branch 'master_MDL-27523' of git://github.com/danmarsden/moodle 2011-07-18 15:58:59 +02:00
Petr Skoda 696ddfe671 Merge branch 'wip-MDL-28040-master' of git://github.com/samhemelryk/moodle 2011-07-18 15:33:42 +02:00
Petr Skoda fa9264b55b Merge branch 'wip-MDL-28184-master' of git://github.com/samhemelryk/moodle 2011-07-18 15:28:16 +02:00
Petr Skoda 215f2c36d5 Merge branch 'wip-MDL-28205-master' of git://github.com/samhemelryk/moodle 2011-07-18 15:25:02 +02:00
Petr Skoda 6857b0db47 Merge branch 'wip-MDL-28137-master' of git://github.com/samhemelryk/moodle 2011-07-18 15:22:29 +02:00
Petr Skoda c051470207 Merge branch 'wip-MDL-27771-master' of git://github.com/samhemelryk/moodle 2011-07-18 15:19:35 +02:00
Petr Skoda a1d27703fe Merge branch 'wip-MDL-27696-master' of git://github.com/samhemelryk/moodle 2011-07-18 15:17:05 +02:00
Petr Skoda 7856cd8b8c Merge branch 'wip-MDL-27305-master' of git://github.com/samhemelryk/moodle 2011-07-18 15:13:44 +02:00
Petr Skoda b0d6fa17a4 Merge branch 'wip-MDL-25870-master' of git://github.com/samhemelryk/moodle 2011-07-18 14:57:02 +02:00
Sam Hemelryk c1d251e890 Merge branch 'wip-MDL-27756-master' of github.com:marinaglancy/moodle 2011-07-18 22:15:55 +10:00
Sam Hemelryk a4c3145984 Merge branch 'MDL-27555' of git://github.com/rwijaya/moodle 2011-07-18 21:50:50 +10:00
Sam Hemelryk 0704038e41 Merge branch 'w28_MDL-28345_m22_utf8' of git://github.com/skodak/moodle 2011-07-18 21:16:43 +10:00
Sam Hemelryk cc4db9d3c1 Merge branch 'wip-mdl-27837' of git://github.com/rajeshtaneja/moodle 2011-07-18 21:03:22 +10:00
Sam Hemelryk c5fe313c06 Merge branch 'w28_MDL-23344_m22_loginfocus2' of git://github.com/skodak/moodle 2011-07-18 20:25:43 +10:00
Sam Hemelryk ce4a587308 Merge branch 'w28_MDL-27804_m22_csvauth' of git://github.com/skodak/moodle 2011-07-18 20:17:51 +10:00
Sam Hemelryk b96fa1c265 Merge branch 'w28_MDL-28253_m22_managerupgrade' of git://github.com/skodak/moodle 2011-07-18 20:08:36 +10:00
Sam Hemelryk 50a3053e62 Merge branch 'w28_MDL-28313_m22_enroldb' of git://github.com/skodak/moodle 2011-07-18 20:01:08 +10:00
Sam Hemelryk 47fa86b306 Merge branch 'w28_MDL-28344_m22_clickjacking' of git://github.com/skodak/moodle 2011-07-18 19:47:59 +10:00
Sam Hemelryk 5576c64139 Merge branch 'w28_MDL-28348_m22_meta' of git://github.com/skodak/moodle 2011-07-18 19:37:49 +10:00
Sam Hemelryk 1eff23084e Merge branch 'w28_MDL-28350_m22_wsra' of git://github.com/skodak/moodle 2011-07-18 19:27:57 +10:00
Petr Skoda 83162b2612 Merge branch 'wip-MDL-25125-master' of github.com:marinaglancy/moodle 2011-07-18 09:18:31 +02:00
Sam Hemelryk 610cc5c383 Merge branch 'w28_MDL-28363_m22_dimmed' of git://github.com/skodak/moodle 2011-07-19 00:45:13 +10:00
Sam Hemelryk 761a000f73 Merge branch 'MDL-28298-workshop-constant' of git://github.com/mudrd8mz/moodle 2011-07-19 00:39:02 +10:00
Sam Hemelryk 508a5bd402 Merge branch 'MDL-28325-enrol-help' of git://github.com/mudrd8mz/moodle 2011-07-19 00:34:37 +10:00
Sam Hemelryk 5f65d37cd2 Merged branch 'master_MDL-26482' of git://github.com/danmarsden/moodle.git 2011-07-19 00:25:13 +10:00
Petr Skoda 0a0b535e27 MDL-28348 fix spelling and some whitespace issues 2011-07-17 20:39:20 +02:00
Petr Skoda c2f53f015b MDL-28348 fix fatal error caused by unenrolling of incorrect enrol instance 2011-07-17 20:37:02 +02:00
Petr Skoda fc7cd35c81 MDL-28348 prevent circular references in meta handler for enrolments 2011-07-17 20:36:12 +02:00
Petr Skoda 5b2904c8f8 MDL-28348 fix meta sync when unassigning roles 2011-07-17 20:35:15 +02:00
Petr Skoda 656749c18a MDL-28363 make dimmed selectors more specific to prevent overriding from other themes 2011-07-16 21:03:06 +02:00
Petr Skoda 78fcdb5fdb MDL-28345 make sure input parameters do not contain invalid utf-8 chars 2011-07-15 15:00:49 +02:00
Petr Skoda d20f655d59 MDL-28350 prevent bogus role assignment via externallib 2011-07-15 12:23:34 +02:00
Petr Skoda df83301630 MDL-27804 allow changing of only auth in csv user uploads 2011-07-15 11:07:33 +02:00
David Mudrak 94f630e33f 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-15 08:59:55 +02:00
Ankit Kumar Agarwal 4942a84bd6 MDL-27523 Fixing get_string issues 2011-07-15 09:27:02 +12:00
Petr Skoda 43c5c08cf7 MDL-28313 fix incorrect enrol database settings upgrade 2011-07-14 22:31:40 +02:00
Petr Skoda 5c754932e7 MDL-28344 new option to prevent clickjacking via frame embedding 2011-07-14 22:01:23 +02:00
Petr Skoda b9b639b30e MDL-28344 remove unused CFG->framename 2011-07-14 22:00:41 +02:00
Petr Skoda 595646d15b MDL-28344 remove the unused $CFG->framename 2011-07-14 21:40:50 +02:00
Petr Skoda 2d16dad0e1 MDL-23344 new option to autofocus username or password on the login form
Nearly everybody else does this login page autofocus. Once we switch to HMTL 5 we should use the new autofocus input option. I believe the admin setting should be enabled by default but it would not be possible to get it through the reviews.
2011-07-14 15:58:01 +02:00
Petr Skoda dfe42f0a15 MDL-28253 use unique name for new manager role 2011-07-14 13:38:36 +02:00
Marina Glancy 77bf97e300 MDL-27756 Improving move_course() performance 2011-07-14 11:00:09 +08:00
Rajesh Taneja 3a70ccb8ac MDL-27837 enrol - Fixed checkboxes for multiple self enrolment 2011-07-14 09:55:13 +08:00
Marina Glancy 4173ef4a04 MDL-25125 fix YUI bug with overriding styles 2011-07-14 09:40:00 +08:00
AMOS bot 955a47b358 Automatically generated installer lang files 2011-07-14 00:55:15 +00:00
Dan Marsden 99da7a9523 MDL-26482 SCORM add option to disable TOC completely - thanks to Clark Burns for some help! 2011-07-14 11:06:49 +12:00
Dan Marsden 7b6f5c8d1e MDL-28300 SCORM Fix check for SCORM 2004 thanks to Silvia Bastos for report/patch 2011-07-14 11:01:16 +12:00
Ankit Kumar Agarwal 219f919c24 MDL-27523 Small Fixes 2011-07-14 10:57:29 +12:00
Ankit Kumar Agarwal f8f34f823d MDL-27523 Minor Edits 2011-07-14 10:57:29 +12:00
Dan Marsden 5e3014df9e MDL-27523 tidy up links to download files, shift logic for set_page to allow mode to be set correctly 2011-07-14 10:57:29 +12:00
Dan Marsden b2614417a5 MDL-27523 SCORM move plugin links to tabs page and only show if more than one plugin is installed, move delete attempts code into plugin as it may not be supported in all plugins, general tidy up - good work Ankit! 2011-07-14 10:57:29 +12:00
Ankit Kumar Agarwal 62b82cbcff MDL27522 First version Push
modified:   mod/scorm/report.php
	new file:   mod/scorm/reportuser.php

MDL-27522 SCORM Reports-remove users report to seperate files for better re-use

	modified:   mod/scorm/reportuser.php

MDL-27522 SCORM Reports validated reportuser.php

	modified:   mod/scorm/report.php
	modified:   mod/scorm/reportuser.php

MDL-27522 SCORM REPORT - updating reportuser.php to use MUST_EXIST parameter

	modified:   mod/scorm/lang/en/scorm.php
	modified:   mod/scorm/reportuser.php

MDL-27522 SCORM Reports- Cleaning of codes
	modified:   mod/scorm/report.php
	modified:   mod/scorm/reportuser.php

MDL-27522 SCORM Reports- update formating

	modified:   mod/scorm/report.php
	modified:   mod/scorm/reportuser.php

MDL-27522 SCORM Reports removed unwanted codes from reportuser.php

	modified:   mod/scorm/reportuser.php

MDL-27522 Scorm Reports - optimising codes

	modified:   mod/scorm/report.php
	modified:   mod/scorm/reportuser.php

MDL-27522 Scorm Reports-Formating report.php
	modified:   mod/scorm/report.php

MDL-27522 Scorm Reporting - removing unsed variables

	modified:   mod/scorm/lang/en/scorm.php
	modified:   mod/scorm/report.php
	modified:   mod/scorm/reportuser.php

MDL-27522 SCORM Reporting - Renaming reportuser.php to userreport.php
	new file:   mod/scorm/userreport.php

MDL-27522 SCORM Reporting - deleting old reportuser.php

	deleted:    mod/scorm/reportuser.php

MDL-27522 Scorm Reporting - updated version number

MDL-27522 Scorm Reporting - Discarding version changes

MDL-27523 Scorm Reporting - Basic reporting plugin
	new file:   mod/scorm/report/basic/lang/en/scorm_basic.php
	new file:   mod/scorm/report/basic/report.php
	new file:   mod/scorm/report/default.php
	new file:   mod/scorm/report/reportlib.php

MDL-27523 Scorm Reporting - Database Table structure pushed
	new file:   mod/scorm/db/subplugins.php

MDL-27523 Scorm Reporting - Plugin container codes
	modified:   mod/scorm/report.php
	modified:   mod/scorm/tabs.php

MDL-27523 Scorm Reporting - Capability update
	modified:   mod/scorm/report/reportlib.php

MDL-27523 Scorm Reporting - commenting files
	modified:   mod/scorm/report/basic/db/install.php
	modified:   mod/scorm/report/basic/lang/en/scorm_basic.php
	modified:   mod/scorm/report/basic/version.php

MDL-27523 Scorm Reporting - Formating codes
	modified:   mod/scorm/report/basic/db/install.php
	modified:   mod/scorm/report/basic/report.php
	modified:   mod/scorm/report/basic/version.php
	modified:   mod/scorm/report/default.php
	modified:   mod/scorm/report/reportlib.php

MDL-27523 Scorm Reporting - fixing small bugs
	modified:   mod/scorm/report/basic/report.php

MDL-27523 Scorm Reporting - added databse upgrade code to scorm/db/upgrade.php

MDL-27523 Scorm Reporting - small optimisations

MDL-27523 SCorm Reporting - Removing Mod.php

MDL-27523 Scorm Reporting - Minor Fixes

	new file:   mod/scorm/db/subplugins.php
	modified:   mod/scorm/lang/en/scorm.php
	modified:   mod/scorm/report.php
	new file:   mod/scorm/report/basic/db/install.php
	new file:   mod/scorm/report/basic/lang/en/scorm_basic.php
	new file:   mod/scorm/report/basic/report.php
	new file:   mod/scorm/report/basic/version.php
	new file:   mod/scorm/report/default.php
	new file:   mod/scorm/report/reportlib.php
	modified:   mod/scorm/tabs.php
	modified:   mod/scorm/userreport.php

	modified:   mod/scorm/db/install.xml
	new file:   mod/scorm/db/subplugins.php
	modified:   mod/scorm/db/upgrade.php
	modified:   mod/scorm/lang/en/scorm.php
	modified:   mod/scorm/report.php
	new file:   mod/scorm/report/basic/db/install.php
	new file:   mod/scorm/report/basic/lang/en/scorm_basic.php
	new file:   mod/scorm/report/basic/report.php
	new file:   mod/scorm/report/basic/version.php
	new file:   mod/scorm/report/default.php
	new file:   mod/scorm/report/reportlib.php
	modified:   mod/scorm/tabs.php
	modified:   mod/scorm/userreport.php
	modified:   mod/scorm/version.php

MDL-27523 Scorm Reporting - Removing Database Refereneces

MDL-27523 Scorm Reporting - Updating structure to remove DB usage
	modified:   mod/scorm/db/upgrade.php
	modified:   mod/scorm/report.php
	modified:   mod/scorm/report/basic/report.php
	modified:   mod/scorm/report/default.php
	modified:   mod/scorm/report/reportlib.php

MDL-27523 Scorm Reporting - Minor fixes

MDL-27523 Scorm Reporting - Formating codes

MDL-27523 Scorm Reporting - Foramting Codes
	modified:   mod/scorm/report/basic/lang/en/scorm_basic.php
	modified:   mod/scorm/report/basic/report.php
	modified:   mod/scorm/report/default.php
	modified:   mod/scorm/report/reportlib.php

	new file:   mod/scorm/db/subplugins.php
	modified:   mod/scorm/lang/en/scorm.php
	modified:   mod/scorm/report.php
	new file:   mod/scorm/report/basic/lang/en/scorm_basic.php
	new file:   mod/scorm/report/basic/report.php
	new file:   mod/scorm/report/basic/version.php
	new file:   mod/scorm/report/default.php
	new file:   mod/scorm/report/reportlib.php
	modified:   mod/scorm/tabs.php
	modified:   mod/scorm/userreport.php
	modified:   mod/scorm/version.php
2011-07-14 10:57:29 +12:00
Sam Hemelryk ecb8829273 weekly release 2.2dev 2011-07-13 20:21:48 +08:00
Sam Hemelryk 59c8535226 Merge branch 'install_master' of git://github.com/amosbot/moodle 2011-07-13 20:06:16 +08:00
Sam Hemelryk 4d4e6d6bfc Revert "MDL-23344 fix login form focus"
This reverts commit 70b02b12d3.
2011-07-13 20:02:58 +08:00
David Mudrak c8ea2c4572 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:28:28 +02:00
Sam Hemelryk 2027c10ec4 MDL-28184 navigation: Tidied up handling of coursenode when adding course essentials 2011-07-13 14:58:57 +08:00
Sam Hemelryk 962360fa21 MDL-27771 filter-text: Fixed typo contninue 2011-07-13 14:52:44 +08:00
Chris Follin 84b2b9aa77 MDL-27305 forum: Added missing item to forum_get_view_actions 2011-07-13 14:22:18 +08:00
Sam Hemelryk b874637025 MDL-25870 enrol-manual: Fixed pagination of AJAX search results for users when changing search 2011-07-13 14:02:30 +08:00
Sam Hemelryk f50243edef MDL-28137 unit tests: Fixed up problem with block manager tests when running unit tests after turning editing on 2011-07-13 13:44:45 +08:00
Sam Hemelryk 112c7f05b5 MDL-28205 RSS: Fixed up notice and set better pagelayout type on manage feeds page 2011-07-13 10:32:38 +08:00
Sam Hemelryk c103eba85f MDL-27696 datalib Fixed up misused params in get_logs_usercourse 2011-07-13 10:30:35 +08:00
Sam Hemelryk c4afcf84d9 MDL-28040 navigation: Fixed up error with navigation when dealing with categories that have a lower sort order than the parent. 2011-07-13 09:58:42 +08:00
Eloy Lafuente (stronk7) e62a947eec Merge branch 'MDL-28221-resource-conversion' of git://github.com/mudrd8mz/moodle 2011-07-12 16:57:54 +02:00
Eloy Lafuente (stronk7) dd8f2538b6 Merge branch 'master_MDL-28017' of git://github.com/danmarsden/moodle
Conflicts:
	mod/scorm/version.php
2011-07-12 16:28:36 +02:00
Eloy Lafuente (stronk7) d703e3816f MDL-28210 messaging: all includes but config.php must use $CFG-based abosolute paths 2011-07-12 12:17:34 +02:00
Eloy Lafuente (stronk7) 8654b65619 Merge branch 'MDL-28210_messaging_constants2' of git://github.com/andyjdavis/moodle 2011-07-12 12:16:16 +02:00
Andrew Davis (andyjdavis) 6366fdcc6c MDL-28210 messaging: Fixed requires problems in /message/discussion.php 2011-07-12 10:46:59 +08:00
AMOS bot 84a4374683 Automatically generated installer lang files 2011-07-12 00:55:19 +00:00
Dan Marsden 59cdcb9770 MDL-28017 - SCORM unset old config var 2011-07-12 09:46:23 +12:00
David Mudrak 47f5964381 MDL-28221 Legacy resource URL pointing to the course itself are migrated as File module
This patch replays the logic of resource_20_migrate() function. If a
file is referred via URL to the course files of the course being
backed up, then such a resource is converted to the File module
(mod/resource) rather than URL module.
2011-07-11 23:30:28 +02:00
David Mudrak 498c722d0f MDL-28221 resource: improved file not found handling
When the referenced file is not found, do not rely on the record in
resource_old as the resource can be actually restored from a 1.9 backup.
2011-07-11 23:30:28 +02:00
David Mudrak c6c9a3bcdb MDL-28221 resource: fixed a typo in variable names 2011-07-11 23:30:28 +02:00
Eloy Lafuente (stronk7) d253e3cc90 Merge branch 'w27_MDL-28270_m22_cohortfilter' of git://github.com/skodak/moodle 2011-07-11 20:22:42 +02:00
Eloy Lafuente (stronk7) 701570b5e4 Merge branch 'master_MDL-26942' of git://github.com/danmarsden/moodle 2011-07-11 19:47:14 +02:00
Eloy Lafuente (stronk7) 8746aab856 Merge branch 'MDL-27755' of git://github.com/rwijaya/moodle 2011-07-11 19:41:00 +02:00
Eloy Lafuente (stronk7) 7660f09ee6 Merge branch 'MDL-27741' of git://github.com/rwijaya/moodle 2011-07-11 19:35:41 +02:00
Petr Skoda f6aa1830f1 copying more restore logic from glossary 2011-07-11 18:47:12 +02:00
Petr Skoda 252256fe3f use the same intro upgrade logic as the rest of modules 2011-07-11 18:02:43 +02:00
Tõnis Tartes 8c5ff185df CONTRIB-3023 basic 1.x restore support for 2.x 2011-07-11 17:52:32 +02:00
Eloy Lafuente (stronk7) fc75965b63 Merge branch 'w27_MDL-23344_m22_loginfocus' of git://github.com/skodak/moodle 2011-07-11 17:01:58 +02:00
Eloy Lafuente (stronk7) 2af4d0a27f Merge branch 'MDL-23580' of git://git.luns.net.uk/moodle 2011-07-11 16:46:35 +02:00
Eloy Lafuente (stronk7) 3fe120a6c6 Merge branch 'MDL-26165' of git://github.com/timhunt/moodle 2011-07-11 16:32:17 +02:00
Eloy Lafuente (stronk7) cf5b3dad05 Merge branch 'MDL-27483' of git://github.com/timhunt/moodle 2011-07-11 16:25:42 +02:00
Eloy Lafuente (stronk7) 97c5f85f37 Merge branch 'MDL-27931' of git://github.com/rwijaya/moodle 2011-07-11 15:56:22 +02:00
Eloy Lafuente (stronk7) d5497dcc86 MDL-28109 scorm - new settings => version bump 2011-07-11 15:54:11 +02:00
Eloy Lafuente (stronk7) 2abfc1c630 Merge branch 'master_MDL-28109' of git://github.com/danmarsden/moodle 2011-07-11 15:42:21 +02:00
Eloy Lafuente (stronk7) 21ba26e814 Merge branch 'w27_MDL-28158_m22_cookies' of git://github.com/skodak/moodle 2011-07-11 15:33:03 +02:00
Eloy Lafuente (stronk7) f046f96f05 Merge branch 'MDL-28186' of git://git.luns.net.uk/moodle 2011-07-11 15:20:56 +02:00
Eloy Lafuente (stronk7) 75853bc5a5 Merge branch 'w27_MDL-28279_m22_flash' of git://github.com/skodak/moodle 2011-07-11 12:06:22 +02:00
Eloy Lafuente (stronk7) 23e90aa5b8 Merge branch 'w27_MDL-28280_m22_usesid' of git://github.com/skodak/moodle 2011-07-11 12:01:34 +02:00
Rossiani Wijaya 0d3780a1e8 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:07:55 +08:00
Sam Hemelryk 9c52c8a4b0 Merge branch 'w27_MDL-25954_m22_cohortnav' of git://github.com/skodak/moodle 2011-07-11 16:20:03 +08:00
Sam Hemelryk e2d1b25a5a Merge branch 'w27_MDL-26965_m22_cohortuploaduser' of git://github.com/skodak/moodle 2011-07-11 16:11:50 +08:00
Sam Hemelryk 59772e4749 Merge branch 'wip-mdl-27954' of git://github.com/rajeshtaneja/moodle 2011-07-11 16:01:26 +08:00
Sam Hemelryk 9dae5179cb Merge branch 'w27_MDL-22404_m22_cohortbulk' of git://github.com/skodak/moodle 2011-07-11 15:40:12 +08:00
Petr Skoda 56284322ea MDL-22404 bulk user add to cohort 2011-07-11 09:20:45 +02:00
Sam Hemelryk c430467ca8 Merge branch 'MDL-28195' of git://github.com/timhunt/moodle 2011-07-11 15:02:03 +08:00
Sam Hemelryk 48ae99cbaf Merge branch 'w27_MDL-28273_m22_cohortremove' of git://github.com/skodak/moodle 2011-07-11 14:50:56 +08:00
Sam Hemelryk 3bbc7a0fc5 Merge branch 'w27_MDL-28278_m22_cohorticons' of git://github.com/skodak/moodle 2011-07-11 14:18:54 +08:00
Sam Hemelryk 42afcc172a Merge branch 'wip-MDL-27429-master' of git://github.com/Beedell/moodle 2011-07-11 13:54:49 +08:00
Sam Hemelryk c9d0d33174 Merge branch 'MDL-28268' of git://github.com/timhunt/moodle 2011-07-11 13:25:44 +08:00
Sam Hemelryk ed21851b3c Merge branch 'MDL-28192' of git://github.com/timhunt/moodle 2011-07-11 13:17:52 +08:00
Dan Marsden 6eca9e1c63 MDL-28017 SCORM - remove admin setting incorrectly added as it was never used. 2011-07-11 15:42:53 +12:00
Sam Hemelryk 7a5c6b98e1 Merge branch 'master_MDL-27947' of git://github.com/danmarsden/moodle 2011-07-11 11:31:13 +08:00
Sam Hemelryk 08d29fb18d Merge branch 'MDL-27890_master' of git://github.com/stronk7/moodle 2011-07-11 11:25:21 +08:00
Sam Hemelryk f7776c0fc8 Merge branch 'glossary_multilang_master' of git://github.com/stronk7/moodle 2011-07-11 11:14:44 +08:00
Sam Hemelryk c75d584dcc Merge branch 'mod_url_decode_master' of git://github.com/stronk7/moodle 2011-07-11 11:02:41 +08:00
Sam Hemelryk 8b6c283f94 Merge branch 'backup_groups_master' of git://github.com/stronk7/moodle 2011-07-11 10:53:38 +08:00
Rajesh Taneja ea2052ab8e MDL-27954 mod_database - fixed search navigation link 2011-07-11 10:09:44 +08:00
Eloy Lafuente (stronk7) b86f930647 MDL-28048 glossary - fix double ampersand & missing string 2011-07-11 01:36:30 +02:00
Eloy Lafuente (stronk7) bce3e3dca5 MDL-28048 glossary - add multilang support to categories 2011-07-11 01:02:06 +02:00
Dan Marsden 3c0b04c440 MDL-28109 - allow admin to decide which scorm settings are advanced, tidy up order of settings 2011-07-11 10:18:16 +12:00
Petr Skoda 70b02b12d3 MDL-23344 fix login form focus 2011-07-10 16:40:56 +02:00
Petr Skoda 98eaf27e3c MDL-28280 remove obsolete unmaintained $CFG->usesid 2011-07-10 13:44:41 +02:00
Petr Skoda 0342fc3609 MDL-28158 add optional "Remember username" checkbox in login forms 2011-07-10 13:22:55 +02:00
Eloy Lafuente (stronk7) 438606fca3 MDL-28156 restore - fix some notices restoring empty courses 2011-07-10 13:13:23 +02:00
Petr Skoda e115bdc51a MDL-28279 remove unused admin setting 2011-07-10 11:06:06 +02:00
Petr Skoda cdbd37126d MDL-28279 remove flash client version blocking
Everybody is responsible for upgrades of Flash, there is no excuse any more.
2011-07-10 11:03:02 +02:00
Petr Skoda 9aa14ff4b2 MDL-28278 use icons in cohort UI 2011-07-10 10:03:42 +02:00
Dan Marsden 0ffaa76be3 MDL-28109 - allow adming to decide which scorm settings are advanced, tidy up order of settings 2011-07-10 11:10:56 +12:00
Eloy Lafuente (stronk7) c8fbcaab1d MDL-28156 restore - support restoring files without grade items 2011-07-10 00:52:45 +02:00
Eloy Lafuente (stronk7) f70676a782 MDL-27438 backup - on course backups add course gropus and groupings 2011-07-09 19:27:23 +02:00
Petr Skoda 21c8d60dac MDL-25954 fix cohort navigation issues 2011-07-09 17:18:06 +02:00
Petr Skoda 92b59a56d1 MDL-26965 add support for uploading of users to cohorts via csv 2011-07-09 16:32:52 +02:00
Petr Skoda 5121a95da2 MDL-28273 waring that removing user from cohorts may unenrol from courses 2011-07-09 16:23:36 +02:00
Petr Skoda 85c199aede MDL-22404 add cohort ID to user filters
We are using only ID because there might be hundreds of cohorts in the system at different contexts. There is no special access control because filtering is supposed to be used by admins only.
2011-07-09 15:42:40 +02:00
Eloy Lafuente (stronk7) aef91ddfa7 MDL-27018 restore - decode links missing url->externalurl support 2011-07-09 13:33:50 +02:00
Jamie Pratt da8cd9f4b3 MDL-28268 Missing ORDER BY when using extra answer table.
From OU bug #921 "Order of answer fields in Variable numeric keeps changing" Cannot
reproduce this bug on my system but hopefully this will fix the problem. I added
an ORDER BY clause to the sql for fetching answers with extra answer fields.
2011-07-09 07:26:08 +01:00
Dan Marsden c5803aaa7f MDL-27947 - fix TOC display on skipview - use correct org in TOC title 2011-07-09 11:40:32 +12:00
Dan Marsden 8a4561accc SCORM MDL-26942 - get first scoid if not set 2011-07-09 11:06:36 +12:00
Dan Marsden 8cb7096bc5 SCORM MDL-26942 - fix ending of lists. 2011-07-09 11:06:35 +12:00
Dan Marsden b6c88d755b SCORM MDL-26942 - initial fix for list in toc 2011-07-09 11:06:35 +12:00
Dan Marsden 0797000aa9 SCORM MDL-26942 - move scorm_get_toc to locallib.php 2011-07-09 11:06:35 +12:00
Dan Marsden 27a9658f97 SCORM MDL-26942 remove empty file and add todo 2011-07-09 11:06:35 +12:00
Dan Marsden db0a77cc1a SCORM MDL-26942 merge scorm_get_toc to decrease duplicated code and simplify toc display 2011-07-09 11:05:54 +12:00
AMOS bot 169b544d7c Automatically generated installer lang files 2011-07-08 12:34:39 +02:00
John Beedell 7cf83f47cc MDL-27429 Adding tabindex and on keypress to the blocks show/hide icon. 2011-07-08 10:56:17 +01:00
Eloy Lafuente (stronk7) f6f6138379 weekly release 2.2dev 2011-07-08 11:15:49 +02:00
Eloy Lafuente (stronk7) 7e1fa4f019 fix permissions 2011-07-08 11:13:19 +02:00
Eloy Lafuente (stronk7) 1f767468ac Merge branch 'MDL-28015-workshop-sql' of git://github.com/mudrd8mz/moodle 2011-07-08 01:11:13 +02:00
Eloy Lafuente (stronk7) 4b02f9d2e9 Merge branch 'MDL-28168-custommenu' of git://github.com/mudrd8mz/moodle 2011-07-08 00:41:19 +02:00
Tim Hunt 0f83538e7e MDL-27890 tinymce - enable 30 as min height within moodle 2011-07-07 20:01:20 +02:00
Eloy Lafuente (stronk7) d614e55c69 MDL-NOBUG tinymce - updated instructions to cover local modifications and other minor changes 2011-07-07 18:23:01 +02:00
Eloy Lafuente (stronk7) 1fa6eab70b MDL-27890 tinymce - allow it to be smaller 2011-07-07 17:38:44 +02:00
David Mudrak 20e7fd839a 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:17:27 +02:00
Tim Hunt 7bf53cf233 MDL-27483 make quiz repagination more robust. 2011-07-07 12:38:06 +01:00
Tim Hunt d0cfa81312 MDL-28192 local_qeupgradehelper fix typo. 2011-07-07 11:25:39 +01:00
David Mudrak 4564d58f9e MDL-28168 Multi-language support for custom_menu reimplemented
This is a reimplementation of the multi-language support for the
custom_menu class. The menu items now accept the forth optional
parameter with the explicit list of languages the item is valid for. If
no languages are listed, the item is valid for any language. The caller
of the custom_menu constructor must provide the user's current language
or null if the multi-language should not be supported (all items are
valid for any language then, regardless the definition).

See the attached unit tests for the examples of usage.
2011-07-07 11:30:04 +02:00
David Mudrak 155fffe6a4 MDL-28168 Improved custom_menu constructor
This improves custom_menu constructor by dropping support for useless
$text parameter and replacing it with the menu definition. This makes
custom_menu instance independent on the place where the menu is defined
($CFG->custommenuitems) and can be unit-tested. Also, multiple instances
of custom_menu can be instantiated now which can be interesting in the
future.
2011-07-07 11:30:03 +02:00
David Mudrak 153a13226e MDL-28168 Revert "MDL-27073 Support multi-language content in custom menu"
This reverts commit 87e0230d0a.
2011-07-07 11:30:03 +02:00
Sun Zhigang 858d100fa3 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 10:39:47 +02:00
Eloy Lafuente (stronk7) 26635fd7f9 Merge branch 'MDL-28169' of git://github.com/nebgor/moodle 2011-07-07 10:21:32 +02:00
Eloy Lafuente (stronk7) d9aa768139 Merge branch 'w26_MDL-28163_m22_customfront' of git://github.com/skodak/moodle 2011-07-07 10:11:17 +02:00
Rossiani Wijaya c65f0b6fb5 MDL-27755 course search: Add course id and shortname to search fields 2011-07-07 15:02:11 +08:00
Aparup Banerjee c5a8abfedd MDL-28169 Installation Added 2.1 upgrade (idiot proof) lines to upgrade scripts. 2011-07-07 11:40:38 +08:00
Eloy Lafuente (stronk7) 907cc4ceb7 Merge branch 'master_MDL-28110' of git://github.com/danmarsden/moodle 2011-07-07 03:00:42 +02:00
Eloy Lafuente (stronk7) 627e4bd4a7 Merge branch 'master_MDL-28111' of git://github.com/danmarsden/moodle 2011-07-07 02:36:28 +02:00
Eloy Lafuente (stronk7) 6eb2cf62bd MDL-27989 whitespace fix 2011-07-07 02:21:44 +02:00
Eloy Lafuente (stronk7) 5b77684af7 Merge branch 'MDL-27989_master' of git://github.com/kordan/moodle 2011-07-07 02:19:15 +02:00
Eloy Lafuente (stronk7) dfef3028ae Merge branch 'MDL-26285' of git://git.luns.net.uk/moodle 2011-07-07 02:10:13 +02:00
Eloy Lafuente (stronk7) 25e2bb1b83 Merge branch 'w26_MDL-27375_m22_enrolcase' of git://github.com/skodak/moodle 2011-07-07 01:39:38 +02:00
Eloy Lafuente (stronk7) 535a635afc Merge branch 'w26_MDL-28117_m22_dataurlhack' of git://github.com/skodak/moodle 2011-07-07 01:32:30 +02:00
Eloy Lafuente (stronk7) 482b1ea121 Merge branch 'MDL-27329' of git://git.luns.net.uk/moodle 2011-07-07 00:24:19 +02:00
Eloy Lafuente (stronk7) 4357214a49 Merge branch 'MDL-28100' of git://git.luns.net.uk/moodle 2011-07-07 00:12:19 +02:00
Eloy Lafuente (stronk7) b274bc55d0 Merge branch 'MDL-27279' of git://git.luns.net.uk/moodle 2011-07-07 00:01:08 +02:00
Dan Poltawski ac9695e5d8 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-06 21:10:43 +01:00
Eloy Lafuente (stronk7) 83ca5bef34 Merge branch 'MDL-28222' of git://github.com/timhunt/moodle 2011-07-06 20:27:52 +02:00
Tim Hunt 82c07ea4f4 MDL-28222 quiz reports missing context in call to quiz_report_feedback_for_grade. 2011-07-06 19:08:52 +01:00
Tim Hunt cc7fb382d7 MDL-20804 Improve the automatically generated WSDL.
Note that this is currently very much a proof-of-concept implementation. It should receive a lot of careful testing and review before we think about integrating it.
2011-07-06 18:53:57 +01:00
Eloy Lafuente (stronk7) babbab1449 Merge branch 'MDL-27040' of git://github.com/timhunt/moodle 2011-07-06 19:25:47 +02:00
Eloy Lafuente (stronk7) cb600c4606 Merge branch 'MDL-28166' of git://github.com/timhunt/moodle 2011-07-06 19:03:59 +02:00
Tim Hunt 6c7da46108 MDL-26165 quiz submit are-you-sure is potentially confusing. 2011-07-06 14:49:38 +01:00
Tim Hunt 8f78cd5abc MDL-28195 confirm_action should allow the button labels to be customised 2011-07-06 14:47:30 +01:00
Tim Hunt 81522abd63 MDL-28166 fix some more instances of my favourite becuase typo. 2011-07-06 14:19:25 +01:00
Tim Hunt cbb8b55c33 MDL-28166 send quiz event notifications asynchronously.
This avoids the problem that you cannot send messages in transactions.

It also means that the quiz submission will not be prevented, and the
message will still be sent eventually, if any part of the messaging
system is giving intermittent errors when the student wants to submit
their quiz.
2011-07-06 14:16:30 +01:00
Rossiani Wijaya fd9672ac65 MDL-27931 admin bulk user upload: convert city as required field. Credit goes to Charles Fulton for supplying the patch. 2011-07-06 15:13:16 +08:00
Sam Hemelryk 8f49f9ce8e Merge branch 'MDL-27934' of git://git.luns.net.uk/moodle 2011-07-06 13:24:47 +08:00
Sam Hemelryk 50c1cb0394 Merge branch 'MDL-27855' of git://git.luns.net.uk/moodle 2011-07-06 13:17:54 +08:00
Sam Hemelryk 024ad4bd82 Merge branch 'MDL-27168' of git://git.luns.net.uk/moodle 2011-07-06 12:03:33 +08:00
Sam Hemelryk 1a3c5d2366 Merge branch 'MDL-26626' of git://git.luns.net.uk/moodle 2011-07-06 11:19:27 +08:00
Sam Hemelryk 8323432992 Merge branch 'MDL-26611-take2' of git://git.luns.net.uk/moodle 2011-07-06 11:06:20 +08:00
Sam Hemelryk 5b966cbb3b Merge branch 'MDL-28135' of git://github.com/nebgor/moodle 2011-07-06 10:53:48 +08:00
Eloy Lafuente (stronk7) ea9ad8f175 Merge branch 'w26_MDL-28147_m22_minify' of git://github.com/skodak/moodle 2011-07-06 03:13:11 +02:00
Eloy Lafuente (stronk7) 7edcd093b6 Merge branch 'MDL-28160' of git://github.com/timhunt/moodle 2011-07-06 03:06:34 +02:00
Eloy Lafuente (stronk7) 87cc19de07 Merge branch 'w26_MDL-28161_m22_caches' of git://github.com/skodak/moodle 2011-07-06 02:54:12 +02:00
Eloy Lafuente (stronk7) b2dfa10d5a Merge branch 'w26_MDL-28167_m22_exconstructor' of git://github.com/skodak/moodle 2011-07-06 02:05:20 +02:00
Eloy Lafuente (stronk7) 34d5507ab8 Merge branch 'wip-MDL-28172-master' of git://github.com/samhemelryk/moodle 2011-07-06 01:52:32 +02:00
Eloy Lafuente (stronk7) ed436add99 Merge branch 'MDL-28179' of git://github.com/timhunt/moodle 2011-07-06 01:45:15 +02:00
Eloy Lafuente (stronk7) 60ee61147d Merge branch 'MDL-28193' of git://git.luns.net.uk/moodle 2011-07-06 01:29:27 +02:00
Eloy Lafuente (stronk7) 9a160c7c46 MDL-28196 quiz calls get_in_or_equal (fixing missing $DB) 2011-07-05 22:02:30 +02:00
Eloy Lafuente (stronk7) 476ea4f8ce Merge branch 'MDL-28196' of git://github.com/timhunt/moodle 2011-07-05 19:55:31 +02:00
Dan Poltawski fe50898ebc MDL-23580 course overview - remove debugging junk 2011-07-05 18:46:08 +01:00
Eloy Lafuente (stronk7) 6ce986e54c Merge branch 'MDL-27821' of git://github.com/timhunt/moodle 2011-07-05 19:41:32 +02:00
Eloy Lafuente (stronk7) dd927fcefb Merge branch 'MDL-28185_master' of git://github.com/stronk7/moodle 2011-07-05 17:58:55 +02:00
Eloy Lafuente (stronk7) 555ac02985 Merge branch 'MDL-26618' of git://github.com/timhunt/moodle 2011-07-05 17:46:46 +02:00
Ruslan Kabalin 9f05a1a640 MDL-28186 messaging: Fix "Enable messagning setting" infuence on the menus
"Enable messaging system" (Site administration > Advanced features) is
supposed to control messaging between site users only, thus it should not
remove user messging preferences menu item. However, it may remove instant
messging preferences from providers list for the user.

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-07-05 15:35:52 +01:00
Eloy Lafuente (stronk7) 89526681cb MDL-28185 upgrade - fix oracle problem upgrading blocks 2011-07-05 15:37:16 +02:00
Tim Hunt b149b78859 MDL-28196 quiz calls get_in_or_equal (not DB->get_in_or_equal) in two places
Also, another minor error in one method call.
2011-07-05 14:29:30 +01:00
Andrew Robert Nicols b7eceef75f MDL-28193 Add $external arg to get_driver_instance
Signed-off-by: Andrew Robert Nicols <andrew.nicols@luns.net.uk>
2011-07-05 12:22:41 +01:00
Kordan c5b7c9357f addition to previous fix for MDL-27989 in master 2011-07-05 11:32:20 +02:00
Dan Poltawski f2ad165538 MDL-26611 Roles Language - remove reference to 'legacy role type' 2011-07-05 10:23:00 +01:00
Sam Hemelryk ee992c6c66 Merge branch 'MDL-25357_wip' of git://github.com/timhunt/moodle 2011-07-05 16:51:49 +08:00
Kordan 7843d2d609 MDL-27989 fix for master 2011-07-05 10:26:01 +02:00
Rossiani Wijaya 54c37fbd88 MDL-27555 assignment module: remove 'submitted' option from optional setting for offline assignment type. 2011-07-05 15:33:33 +08:00
Aparup Banerjee 3b1b5018f7 MDL-28135 general Updated broken and typo docs links 2011-07-05 14:41:29 +08:00
Aparup Banerjee 19b4d9d831 MDL-28135 general Updated the Copyright notice to point to docs.moodle.org/dev/Releases instead of en/Release 2011-07-05 14:30:24 +08:00
Aparup Banerjee 43d26e6d73 MDL-28135 general Updated doc links related to Release notes to docs.moodle.org/dev/Releases now 2011-07-05 14:29:47 +08:00
Aparup Banerjee 728ebac7f2 MDL-28135 general Updating all hardcoded "docs.moodle.org/en/Development:" type doc links to "docs.moodle.org/dev/" 2011-07-05 14:27:31 +08:00
Iñaki Arenaza 971db6a110 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).

Signed-off-by: Iñaki Arenaza <iarenaza@mondragon.edu>
2011-07-04 21:47:43 +02:00
Tim Hunt 99fa9745c4 MDL-28179 make failed event hander error message much more useful. 2011-07-04 18:55:45 +01:00
Tim Hunt abc2575493 MDL-27040 get_users_by_capability generates u.id IN () when no uesrs have accessallgroups 2011-07-04 18:50:21 +01:00
Petr Skoda 3f8465ca4b MDL-28117 include repo lib when hacking file_picker renderer 2011-07-04 17:09:28 +02:00
Petr Skoda 5607036a55 MDL-28167 fix missing new
And sloppy whitespace.
2011-07-04 16:42:55 +02:00
Tim Hunt fd3932fe54 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 15:36:16 +01:00
Tim Hunt 6b92faa47f MDL-27821 backup_exception should not throw away debug info. 2011-07-04 15:35:30 +01:00
Tim Hunt c141b05f7d MDL-25357 Allow maximum number of sections to be set by the admin. Also allow 0 sections at an choice.
Also fix one bad <br/> in another lang string.
2011-07-04 15:35:03 +01:00
Petr Skoda e1c2a211f2 MDL-28147 do not double cache theme css/js 2011-07-04 11:29:23 +02:00
Petr Skoda b216a820a1 MDL-28161 precreate htmlpurifier dir when resetting caches
Includes sloppy whitespace fix.
2011-07-04 09:48:03 +02:00
Sam Hemelryk b8d3c3f76e MDL-28172 forum: Fixed up overzealous check for portfolio enabled. 2011-07-04 15:04:16 +08:00
Dan Poltawski a58f4d5595 MDL-26626 course competion block - fix hardcoded string 2011-07-03 22:51:58 +01:00
Dan Poltawski af27c69e1f 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.
2011-07-03 22:12:05 +01:00
Dan Poltawski dc9c9c45ec MDL-27168 completionstatus block - Use localized strings 2011-07-03 20:51:15 +01:00
Petr Skoda 8275eab842 MDL-28163 custom site frontpage support 2011-07-03 15:02:46 +02:00
Tim Hunt 56920c36f9 MDL-28160 question preview window uses wrong pagelayout in activity contexts 2011-07-03 12:53:56 +01:00
Dan Poltawski 8b0614d9ea MDL-27855 navigation - only display participants link with permissions 2011-07-03 10:52:32 +01:00
Dan Marsden d9306a9c1f SCORM MDL-28110 fix string name 2011-07-03 12:51:56 +12:00
Dan Marsden 0ab985f918 SCORM MDL-28110 set default for forcejavascript to yes - add string explaining what it does. 2011-07-03 12:51:56 +12:00
Dan Marsden ca4eda13b5 SCORM MDL-28111 tidy up formatting of code 2011-07-03 12:49:29 +12:00
Dan Marsden f7b5c6aae6 SCORM MDL-28111 tidy up formatting of code 2011-07-03 12:49:29 +12:00
Petr Skoda 6c6b8ad2f0 MDL-27375 add missing lowercasing of external column names
Credit goes to Gail Preuninger.
2011-07-02 15:16:02 +02:00
Dan Poltawski 2207a21bfe MDL-28100 - page resource was not using context for text filtering 2011-07-02 13:34:05 +01:00
Dan Poltawski e9aa24736a MDL-27279 lang/en/xmldb - Fix Typo in confirmcheckforeignkeys 2011-07-02 12:56:09 +01:00
Sun Zhigang 0e30d4c7c7 MDL-27934 Upload Assignment - Remove useless code 2011-07-02 09:52:28 +01:00
Eloy Lafuente (stronk7) 81f8e0f8a0 weekly release 2.2dev 2011-07-01 23:58:02 +02:00
Petr Skoda 337b43a7f8 CONTRIB-2970 header printed too early
Credit goes to Sam Chaffee.
2011-06-27 11:28:17 +02:00
Petr Škoda 311d8d7277 Merge pull request #3 from mylescarrick/4b76ec61c07401bfa784cf1e62c622cad6cb1ce6
Pull request as at http://tracker.moodle.org/browse/CONTRIB-2916
2011-06-21 00:42:13 -07:00
Myles Carrick 4b76ec61c0 backup - fixed typo to correctly backup contentformat setting 2011-05-05 14:41:23 +10:00
Myles Carrick 49ed0a2697 MDL-26708 fix typo - custom titles 2011-04-28 14:40:04 +08:00
David Mudrák 33b8e0f06d Fixed missing 'throw' keyword 2011-04-24 14:37:21 +08:00
Petr Skoda 5aeca1e2ec translations are now maintained in AMOS 2011-03-21 10:09:36 +01:00
Petr Skoda 4bfe07d088 legacy files TODO 2011-03-20 19:16:10 +01:00
Petr Skoda 35b1833b2a bump up version 2011-03-20 11:34:23 +01:00
Petr Skoda 02f884216d fix file restore 2011-03-20 11:33:26 +01:00
Petr Skoda 1d5b62b76f book 2.0RC 2011-03-19 12:53:30 +01:00
Petr Skoda c194a4953c legacy is not used any more 2011-03-19 12:49:38 +01:00
Petr Skoda 06844f1322 fix whitespace 2011-03-19 12:46:24 +01:00
Petr Skoda ed89ac66fe CONTRIB-2805 fix incomplete book backup 2011-03-19 12:42:51 +01:00
Petr Skoda ed04f7c0bf add print popups 2011-02-14 09:03:04 +01:00
Petr Skoda 2d3a0d0f0f version bump 2011-02-08 23:18:53 +01:00
John Kelsh 8c554c2784 Fixing backup encode and restore decode rule names. 2011-02-07 14:32:02 +10:30
Petr Skoda bd0945240c more css cleanup 2011-01-26 13:15:33 +01:00
Petr Skoda 8cb50b2a87 CSS improvements 2011-01-26 12:55:40 +01:00
Petr Skoda 73491f5a6e CONTRIB-2723 let all frontpage users view and print books 2011-01-25 10:01:22 +01:00
Petr Skoda b0333d3cf1 new component info that helps with borked installs/upgrades 2011-01-23 15:22:40 +01:00
Petr Skoda ffe9d57ff4 tell ppl that outdate book can not be upgraded from 1.9->2.0 2011-01-23 15:22:20 +01:00
Petr Skoda 652517cedb more room for edit form
btw it is a sloppy hack to use admin layout just to get rid of the block on one side, ideally this should be hadnled by forms automatically!!
2011-01-23 12:44:59 +01:00
Petr Skoda 2890e4c1fb implement completion tracking 2011-01-16 23:15:56 +01:00
Petr Skoda 2e9dead56d bump version before snapshot 2011-01-16 23:03:02 +01:00
Petr Skoda 4cd51b08dd fix frankenstype git_string component 2011-01-16 23:02:31 +01:00
Petr Skoda ee952cbbb4 refactor chapter printing TOC 2011-01-16 23:01:05 +01:00
Petr Skoda b1a9b01ee2 refactor chapter title proccessing 2011-01-16 22:36:55 +01:00
Petr Skoda 97619eddbd add numbering default setting 2011-01-16 14:42:51 +01:00
Petr Skoda c5832d6b54 fix recent edit mode bug 2011-01-16 14:13:05 +01:00
Petr Skoda b52247a581 get rid of the table layout 2011-01-16 14:09:47 +01:00
Petr Skoda 2cdbd448b7 fix old style pix url 2011-01-16 14:03:54 +01:00
Petr Skoda 86f6bb2612 fix navigation links 2011-01-16 14:02:00 +01:00
Petr Skoda ad1c11bdfd move toc to fake block, remove toc width and add new mod settings 2011-01-16 13:46:13 +01:00
Petr Skoda 065f5c4c33 fix recent typo 2011-01-16 11:34:52 +01:00
Petr Skoda 56e7577e1d set page url 2011-01-16 11:31:11 +01:00
Petr Skoda 1cc316b762 use new frankenstyle for string components 2011-01-16 11:28:12 +01:00
Petr Skoda bc953600b3 improve coding style in book structure check 2011-01-16 11:22:32 +01:00
Petr Skoda 23b02c4fb1 improve performance when fixing book structure 2011-01-16 11:17:51 +01:00
Petr Skoda 459478b7f1 fix release info 2011-01-16 11:02:22 +01:00
Petr Skoda 1c4a973a1c updated readme 2011-01-16 11:01:41 +01:00
Petr Skoda 5dc5d03548 remove obsole disableprinting - use capabilities instead 2011-01-16 11:00:29 +01:00
Petr Skoda e2790e4bf7 improt conversion and other cleanup 2011-01-16 10:51:22 +01:00
Petr Skoda 7a395b898e conversion todo 2011-01-15 23:45:51 +01:00
Petr Skoda 3223060316 fix charset 2011-01-15 23:45:42 +01:00
Petr Skoda c60d3ab331 fix error detected by code inspeaction 2011-01-15 23:42:15 +01:00
Petr Skoda db4d90886f fix missing ) 2011-01-15 23:42:00 +01:00
Petr Skoda ad1e18e209 fix old style format_string and text + errors detected by code inspection 2011-01-15 23:41:36 +01:00
Petr Skoda 8e277fe5fc fix overriding of CSS 2011-01-15 23:41:10 +01:00
Petr Skoda 75b38e9864 completion todo 2011-01-15 22:34:40 +01:00
Petr Skoda 758f7dde80 move print and other functions to the settings block 2011-01-15 22:33:33 +01:00
Petr Skoda 9221a71122 fix case 2011-01-15 22:33:08 +01:00
Petr Skoda dc888a311c fix multilang suppport in chapter titles 2011-01-15 21:58:04 +01:00
Petr Skoda f6ca19aed0 locallib cleanup 2011-01-15 21:55:37 +01:00
Petr Skoda 608826922a fix extra height attribute 2011-01-15 21:51:38 +01:00
Petr Skoda 4171f20dbf refactor toc to locallib function 2011-01-15 21:46:45 +01:00
Petr Skoda 7c6c37466f update book index page 2011-01-15 21:28:43 +01:00
Petr Skoda dcf3a920d1 fixed lib.php typo 2011-01-15 16:42:29 +01:00
Petr Skoda 5572147bc1 standard gitignore 2011-01-15 12:52:36 +01:00
Petr Skoda 7c44a1a206 fixed release info and copyrights 2011-01-15 12:22:10 +01:00
Petr Skoda 8ecb96add3 CONTRIB-2154 add user outline 2011-01-15 11:44:02 +01:00
Petr Skoda 74b6860a78 CONTRIB-2656 fix disabling of printing 2011-01-15 11:31:34 +01:00
Petr Skoda 292a46eb1b fixed toc allignment 2011-01-02 21:20:12 +01:00
Petr Skoda 58aa4b5718 recover from previous error 2010-12-10 15:54:37 +01:00
Petr Skoda 22b8fa4dda fixed upgrade typo 2010-12-10 15:52:36 +01:00
Petr Skoda 5c0ff68d51 backup/restore support 2010-12-08 21:39:35 +01:00
Petr Skoda e6bf43cd0e b view.php param support 2010-12-08 21:21:35 +01:00
Petr Skoda f4e1849ed9 new file api support 2010-12-08 20:13:56 +01:00
Petr Skoda 6708d7d430 disable import for now 2010-12-08 19:02:11 +01:00
Petr Skoda 58eda86a66 improved coding style 2010-12-08 19:02:01 +01:00
Petr Skoda 210ed611a8 only print visible pages 2010-12-08 19:00:25 +01:00
Petr Skoda 661b9ea2e8 text formatting 2010-12-08 18:59:03 +01:00
Petr Skoda 8da51a1650 helps converted, import disabled for now 2010-12-08 18:52:50 +01:00
Petr Skoda 4f49e7caec cleaning up old help 2010-12-08 18:50:32 +01:00
Petr Skoda 989af7b328 minor file migration improvements 2010-12-08 18:49:32 +01:00
Petr Skoda be28c4b52a fixed intro upgrade 2010-12-08 18:46:40 +01:00
Petr Skoda 9d2fe17901 conversion 2010-12-08 18:10:21 +01:00
Petr Skoda f19d95175a more help cleanup 2010-12-08 17:33:56 +01:00
Petr Skoda bf9b62ea0a more conversion 2010-12-08 17:20:15 +01:00
Petr Skoda 0834c01692 new help 2010-12-08 17:20:04 +01:00
Petr Skoda 8708eb636f remove old course dir if empty 2010-12-08 17:09:16 +01:00
Petr Skoda 08440ca958 newc capability coding style 2010-12-08 17:08:50 +01:00
Petr Skoda 3eccc86133 adding pluginname string 2010-12-08 17:08:28 +01:00
Petr Skoda bd4eba6716 fixed upgrade path 2010-12-08 17:01:48 +01:00
Petr Skoda 2c1e98e663 conversion to 2.0 2010-12-08 16:45:09 +01:00
Petr Skoda 3c5e59cbac conversion to 2.0 2010-12-08 15:54:17 +01:00
Petr Skoda e355240d59 more upgrades 2010-12-08 15:41:55 +01:00
Petr Skoda 73861c80d5 missing upgrade step info 2010-12-08 15:30:51 +01:00
Petr Skoda f76a94d192 coursefiles not used any more 2010-12-08 15:29:28 +01:00
Petr Skoda e6e946c1d0 licenses and more upgrade 2010-12-08 15:28:32 +01:00
Petr Skoda 0f0ba61167 first part of upgrade 2010-12-08 14:56:55 +01:00
Petr Skoda 28d16c16e3 removing cvs tags and closing php tags 2010-12-08 14:39:43 +01:00
Petr Skoda 7bc1a381cc fixing invalid icon name 2010-12-08 14:28:48 +01:00
Petr Skoda 3543758a9f removing obsolete install files 2010-12-08 14:27:38 +01:00
Petr Skoda b0d99b9384 moving all icons to new locations 2010-12-08 14:27:12 +01:00
Petr Skoda 7d7adc4d3a updated readme 2010-12-08 13:39:46 +01:00
Petr Skoda 1148f9d40e renaming lang dirs 2010-12-08 13:35:08 +01:00
Petr Skoda 31859517a3 renaming lang pack 2010-09-01 12:37:24 +02:00
Petr Skoda 0aff11c5ae cvsimport 2010-08-01 13:10:36 +00:00
Petr Skoda f6140b0751 readme for github 2010-08-01 15:29:02 +02:00
Petr Skoda c008e4aefc getting rid of pesky cvs Id mess 2010-08-01 15:28:51 +02:00
Petr Skoda 8d623d147b CONTRIB-2232 oops, merging all changes from 1.9.x first 2010-08-01 13:10:36 +00:00
Petr Skoda 1b7aed36ff CONTRIB-2232 preparations for git migration - line ending fixes 2010-08-01 12:50:22 +00:00
Petr Skoda 9da8ea22e6 CONTRIB-2232 preparations for git migration 2010-08-01 12:15:46 +00:00
Petr Skoda b58b82c30d fixed regression reported by Miroslav FIkar 2008-08-17 13:04:56 +00:00
Petr Skoda c6d2eda2fb book v1.5beta compatible with 1.9.1 or later, not 2.0dev 2008-08-13 23:21:13 +00:00
Eloy Lafuente 817e3a800e Fix A tag regex searching in book. MDL-15842 ; merged from 19_STABLE 2008-07-26 22:58:27 +00:00
Petr Skoda 7ac78b9277 CONTRIB-500 fixed regression 2008-07-23 14:03:49 +00:00
Petr Skoda bc17b83556 CONTRIB-360 missing lang string for ims packages, credit goes to Ralf Hilgenstock 2008-07-22 15:16:26 +00:00
Petr Skoda 2006381428 CONTRIB-68 missing lang string for ims packages 2008-07-22 15:13:29 +00:00
Petr Skoda 54cdee377a CONTRIB-22 removed outdated installation instructions 2008-07-22 14:59:13 +00:00
Petr Skoda 4b3b18bfcc CONTRIB-22 removed outdated installation instructions 2008-07-22 14:56:49 +00:00
Petr Skoda 4c39c4ae24 CONTRIB-500 causes scales to go *really* slow, use new API credit goes to Alan Trick 2008-07-22 14:40:38 +00:00
Petr Skoda dbdb0676a7 CONTRIB-601 fix groups on book modedit page 2008-07-22 14:36:37 +00:00
Petr Skoda e472fa764b CONTRIB-417 fixed include problem on some server - credit goes to Andreas Grupp 2008-07-22 14:31:02 +00:00
Petr Skoda 71d78d24d5 CONTRIB-417 fixed include problem on some server - credit goes to Andreas Grupp 2008-07-22 14:30:07 +00:00
Dan Poltawski 50c53e2049 CONTRIB-350 - Update book module to use new navigation structure & admin
settings in 1.9
2008-03-25 20:19:49 +00:00
Eloy Lafuente ee7758e565 Second pass. Contrib. Some more default comments are out. MDL-11385 2007-09-24 22:26:30 +00:00
Eloy Lafuente dfb3876a09 First pass. Deleting some default comments. MDL-11385
(plus minor change in NOT NULL default, must not be explicit)
2007-09-24 19:15:38 +00:00
Petr Skoda 7bf645e7e8 incorrect import src fields type fixed 2007-09-24 08:47:34 +00:00
Eloy Lafuente 727fdf1bc5 And h2-ing it 2007-08-27 14:15:43 +00:00
Eloy Lafuente 8d8735e5c6 Fixing some lists and ampersands. 2007-08-27 14:13:01 +00:00
Andrea Bicciolo 51877fd889 Traduzione di Claudio Maggi 2007-07-03 11:42:29 +00:00
Eloy Lafuente a4e28b9b9a Moving the "Export to IMS CP" option from "export" to a new icon. Some
people is having problems locating / understanding it.

Merged from MOODLE_18_STABLE
2007-06-17 10:41:25 +00:00
Petr Skoda dab784a34e book should be now compatible with 1.8 2007-05-20 06:00:26 +00:00
Eloy Lafuente c54440410b Send courseid to print_textarea() just because we know it.
(wasn't being properly guessed sometimes)

Merged from MOODLE_18_STABLE
2007-04-24 19:20:52 +00:00
Petr Skoda 5db9c35d01 book - xml db merged from 17; removing utf migration code 2007-04-06 17:13:31 +00:00
Andrea Bicciolo 2d7c8ee038 Traduzione di Claudio Maggi 2007-02-16 18:47:46 +00:00
Eloy Lafuente fc9479b800 Adding IMS-CP export functionality to the book module.
Metadata interface coming soon.
2007-02-11 12:18:23 +00:00
Petr Skoda 2ced61ebda fixed === comparison that is not compatible with latest adodb 2006-11-21 19:26:36 +00:00
Petr Skoda 0d717a5232 fixed incorrect === in Book mod 2006-11-07 18:32:05 +00:00
Gustav Delius 1f17c197e9 Fixed typo, converting <p> into </p> 2006-10-16 08:05:26 +00:00
Petr Skoda d034a70d6f fixed dates of releases 2006-04-24 19:41:14 +00:00
Petr Skoda e4a0993bde fixed log action inserts 2006-04-24 19:35:48 +00:00
Petr Skoda d9b10a5a91 fixed typo 2006-03-29 06:21:56 +00:00
Petr Skoda 02039379f4 == 1.3alpha - 2003/03/12===
* compatible with 1.6dev only, use previous version for 1.5.x
    * unicode upgrade supported - not much tested
    * backup fixes - from Penny Leach, thanks!
    * all languages converted to utf-8
    * moved to contrib/book_16 directory
    * added proper content encoding conversion during import
2006-03-12 18:39:56 +00:00
8752 changed files with 968683 additions and 661167 deletions
+1
View File
@@ -25,3 +25,4 @@ CVS
/.project
/.buildpath
/.cache
phpunit.xml
+1 -1
View File
@@ -19,7 +19,7 @@ $returnurl = new moodle_url('/admin/settings.php', array('section'=>'manageauths
$PAGE->set_url($returnurl);
$action = optional_param('action', '', PARAM_ACTION);
$auth = optional_param('auth', '', PARAM_SAFEDIR);
$auth = optional_param('auth', '', PARAM_PLUGIN);
get_enabled_auth_plugins(true); // fix the list of enabled auths
if (empty($CFG->auth)) {
+1 -1
View File
@@ -6,7 +6,7 @@
require_once '../config.php';
require_once $CFG->libdir.'/adminlib.php';
$auth = required_param('auth', PARAM_SAFEDIR);
$auth = required_param('auth', PARAM_PLUGIN);
$PAGE->set_pagetype('admin-auth-' . $auth);
admin_externalpage_setup('authsetting'.$auth);
+68 -33
View File
@@ -12,6 +12,8 @@
$hide = optional_param('hide', 0, PARAM_INT);
$show = optional_param('show', 0, PARAM_INT);
$delete = optional_param('delete', 0, PARAM_INT);
$unprotect = optional_param('unprotect', 0, PARAM_INT);
$protect = optional_param('protect', 0, PARAM_INT);
/// Print headings
@@ -24,6 +26,9 @@
$strcourses = get_string('blockinstances', 'admin');
$strname = get_string('name');
$strshowblockcourse = get_string('showblockcourse');
$strprotecthdr = get_string('blockprotect', 'admin'). $OUTPUT->help_icon('blockprotect','admin');
$strprotect = get_string('blockprotect', 'admin');
$strunprotect = get_string('blockunprotect', 'admin');
/// If data submitted, then process and store.
@@ -43,6 +48,36 @@
admin_get_root(true, false); // settings not required - only pages
}
if (!isset($CFG->undeletableblocktypes) || (!is_array($CFG->undeletableblocktypes) && !is_string($CFG->undeletableblocktypes))) {
$undeletableblocktypes = array('navigation', 'settings');
} else if (is_string($CFG->undeletableblocktypes)) {
$undeletableblocktypes = explode(',', $CFG->undeletableblocktypes);
} else {
$undeletableblocktypes = $CFG->undeletableblocktypes;
}
if (!empty($protect) && confirm_sesskey()) {
if (!$block = $DB->get_record('block', array('id'=>$protect))) {
print_error('blockdoesnotexist', 'error');
}
if (!in_array($block->name, $undeletableblocktypes)) {
$undeletableblocktypes[] = $block->name;
set_config('undeletableblocktypes', implode(',', $undeletableblocktypes));
}
admin_get_root(true, false); // settings not required - only pages
}
if (!empty($unprotect) && confirm_sesskey()) {
if (!$block = $DB->get_record('block', array('id'=>$unprotect))) {
print_error('blockdoesnotexist', 'error');
}
if (in_array($block->name, $undeletableblocktypes)) {
$undeletableblocktypes = array_diff($undeletableblocktypes, array($block->name));
set_config('undeletableblocktypes', implode(',', $undeletableblocktypes));
}
admin_get_root(true, false); // settings not required - only pages
}
if (!empty($delete) && confirm_sesskey()) {
echo $OUTPUT->header();
echo $OUTPUT->heading($strmanageblocks);
@@ -63,34 +98,9 @@
exit;
} else {
// Inform block it's about to be deleted
if (file_exists("$CFG->dirroot/blocks/$block->name/block_$block->name.php")) {
$blockobject = block_instance($block->name);
if ($blockobject) {
$blockobject->before_delete(); //only if we can create instance, block might have been already removed
}
}
// First delete instances and then block
$instances = $DB->get_records('block_instances', array('blockname' => $block->name));
if(!empty($instances)) {
foreach($instances as $instance) {
blocks_delete_instance($instance);
}
}
// Delete block
$DB->delete_records('block', array('id'=>$block->id));
drop_plugin_tables($block->name, "$CFG->dirroot/blocks/$block->name/db/install.xml", false); // old obsoleted table names
drop_plugin_tables('block_'.$block->name, "$CFG->dirroot/blocks/$block->name/db/install.xml", false);
// Delete the capabilities that were defined by this block
capabilities_cleanup('block/'.$block->name);
// Remove event handlers and dequeue pending events
events_uninstall('block/'.$block->name);
uninstall_plugin('block', $block->name);
$a = new stdClass();
$a->block = $strblockname;
$a->directory = $CFG->dirroot.'/blocks/'.$block->name;
notice(get_string('blockdeletefiles', '', $a), 'blocks.php');
@@ -114,18 +124,32 @@
$table = new flexible_table('admin-blocks-compatible');
$table->define_columns(array('name', 'instances', 'version', 'hideshow', 'delete', 'settings'));
$table->define_headers(array($strname, $strcourses, $strversion, $strhide.'/'.$strshow, $strdelete, $strsettings));
$table->define_columns(array('name', 'instances', 'version', 'hideshow', 'undeletable', 'delete', 'settings'));
$table->define_headers(array($strname, $strcourses, $strversion, $strhide.'/'.$strshow, $strprotecthdr, $strdelete, $strsettings));
$table->define_baseurl($CFG->wwwroot.'/'.$CFG->admin.'/blocks.php');
$table->set_attribute('class', 'compatibleblockstable blockstable generaltable');
$table->setup();
$tablerows = array();
// Sort blocks using current locale.
$blocknames = array();
foreach ($blocks as $blockid=>$block) {
$blockname = $block->name;
if (file_exists("$CFG->dirroot/blocks/$blockname/block_$blockname.php")) {
$blocknames[$blockid] = get_string('pluginname', 'block_'.$blockname);
} else {
$blocknames[$blockid] = $blockname;
}
}
collatorlib::asort($blocknames);
foreach ($blocknames as $blockid=>$strblockname) {
$block = $blocks[$blockid];
$blockname = $block->name;
if (!file_exists("$CFG->dirroot/blocks/$blockname/block_$blockname.php")) {
$blockobject = false;
$strblockname = '<span class="notifyproblem">'.$blockname.' ('.get_string('missingfromdisk').')</span>';
$strblockname = '<span class="notifyproblem">'.$strblockname.' ('.get_string('missingfromdisk').')</span>';
$plugin = new stdClass();
$plugin->version = $block->version;
@@ -140,7 +164,6 @@
$incompatible[] = $block;
continue;
}
$strblockname = get_string('pluginname', 'block_'.$blockname);
}
$delete = '<a href="blocks.php?delete='.$blockid.'&amp;sesskey='.sesskey().'">'.$strdelete.'</a>';
@@ -191,15 +214,27 @@
$version = "$block->version ($plugin->version)";
}
if (!$blockobject) {
// ignore
$undeletable = '';
} else if (in_array($blockname, $undeletableblocktypes)) {
$undeletable = '<a href="blocks.php?unprotect='.$blockid.'&amp;sesskey='.sesskey().'" title="'.$strunprotect.'">'.
'<img src="'.$OUTPUT->pix_url('t/unlock') . '" class="icon" alt="'.$strunprotect.'" /></a>';
} else {
$undeletable = '<a href="blocks.php?protect='.$blockid.'&amp;sesskey='.sesskey().'" title="'.$strprotect.'">'.
'<img src="'.$OUTPUT->pix_url('t/unlock_gray') . '" class="icon" alt="'.$strprotect.'" /></a>';
}
$table->add_data(array(
$row = array(
'<span'.$class.'>'.$strblockname.'</span>',
$blocklist,
'<span'.$class.'>'.$version.'</span>',
$visible,
$undeletable,
$delete,
$settings
));
);
$table->add_data($row);
}
$table->print_html();
-152
View File
@@ -1,152 +0,0 @@
<?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');
require_once($CFG->dirroot.'/mod/forum/lib.php');
require_once($CFG->libdir.'/adminlib.php');
admin_externalpage_setup('bloglevelupgrade');
$PAGE->set_pagelayout('maintenance');
$go = optional_param('go', 0, PARAM_BOOL);
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('bloglevelupgrade', 'admin'));
$strbloglevelupgrade = get_string('bloglevelupgradeinfo', 'admin');
if (!$go or !data_submitted() or !confirm_sesskey()) { /// Print a form
$optionsyes = array('go'=>1, 'sesskey'=>sesskey());
echo $OUTPUT->confirm($strbloglevelupgrade, new moodle_url('bloglevelupgrade.php', $optionsyes), 'index.php');
echo $OUTPUT->footer();
die;
}
echo $OUTPUT->box_start();
/// Turn off time limits, sometimes upgrades can be slow.
set_time_limit(0);
$i = 0;
// If $CFG->bloglevel is set to BLOG_GROUP_LEVEL or BLOG_COURSE_LEVEL, create a new "blog" forum in each course
// whose enrolled students have written blog entries, copy these entries in that forum and switch off blogs at site level
if ($CFG->bloglevel == BLOG_COURSE_LEVEL || $CFG->bloglevel == BLOG_GROUP_LEVEL) {
$pbar = new progress_bar('bloglevelupgrade', 500, true);
$bloggers = $DB->get_records_sql("SELECT userid FROM {post} WHERE module = 'blog' GROUP BY userid");
require_once($CFG->dirroot.'/mod/forum/lib.php');
$a = new stdClass();
$a->userscount = 0;
$a->blogcount = 0;
foreach ($bloggers as $blogger) {
$courses = enrol_get_users_courses($blogger->userid, true, 'groupmode,groupmodeforce');
$blogentries = $DB->get_records('post', array('module' => 'blog', 'userid' => $blogger->userid));
foreach ($courses as $course) {
$forum = forum_get_course_forum($course->id, 'blog');
$cm = get_coursemodule_from_instance('forum', $forum->id);
if ($CFG->bloglevel == BLOG_GROUP_LEVEL && $course->groupmode != NOGROUPS) {
// Unless the course is set to separate groups forced, force the forum to Separate groups
if (!($course->groupmode == SEPARATEGROUPS && $course->groupmodeforce)) {
$cm->groupmode = SEPARATEGROUPS;
$DB->update_record('course_modules', $cm);
}
$groups = groups_get_user_groups($course->id, $blogger->userid);
foreach ($groups[0] as $groupid) { // [0] is for all groupings combined
$a->blogcount += bloglevelupgrade_entries($blogentries, $forum, $cm, $groupid);
}
} else {
$a->blogcount += bloglevelupgrade_entries($blogentries, $forum, $cm);
}
}
$a->userscount = $i . '/' . count($bloggers);
$pbar->update($i, count($bloggers), get_string('bloglevelupgradeprogress', 'admin', $a));
$i++;
}
}
function bloglevelupgrade_entries($blogentries, $forum, $cm, $groupid=-1) {
$count = 0;
$forumcontext = get_context_instance(CONTEXT_MODULE, $cm->id);
$sitecontext = get_context_instance(CONTEXT_SYSTEM);
foreach ($blogentries as $blogentry) {
$discussion = new stdClass();
$discussion->course = $forum->course;
$discussion->forum = $forum->id;
$discussion->name = $blogentry->subject;
$discussion->assessed = $forum->assessed;
$discussion->message = $blogentry->summary;
$discussion->messageformat = $blogentry->summaryformat;
$discussion->messagetrust = 0;
$discussion->attachments = 0;
$discussion->mailnow = false;
$discussion->timemodified = $blogentry->created;
$discussion->itemid = null;
$discussion->groupid = $groupid;
$message = '';
$discussionid = forum_add_discussion($discussion, null, $message);
// Copy file attachment records
$fs = get_file_storage();
$files = $fs->get_area_files($sitecontext->id, 'blog', 'attachment', $blogentry->id);
if (!empty($files)) {
foreach ($files as $storedfile) {
$newfile = new stdClass();
$newfile->component = 'mod_forum';
$newfile->filearea = 'attachment';
$newfile->itemid = $discussion->firstpost;
$newfile->contextid = $forumcontext->id;
$fs->create_file_from_storedfile($newfile, $storedfile->get_id());
}
}
$files = $fs->get_area_files($sitecontext->id, 'blog', 'post', $blogentry->id);
if (!empty($files)) {
foreach ($files as $storedfile) {
$newfile = new stdClass();
$newfile->component = 'mod_forum';
$newfile->filearea = 'post';
$newfile->itemid = $discussion->firstpost;
$newfile->contextid = $forumcontext->id;
$fs->create_file_from_storedfile($newfile, $storedfile->get_id());
}
}
$count++;
}
return $count;
}
// END OF LOOP
// set conversion flag - switches to new plugin automatically
set_config('bloglevel_upgrade_complete', 1);
// Finally switch bloglevel to 0 (disabled)
set_config('bloglevel', 0);
echo $OUTPUT->box_end();
/// Rebuild course cache which might be incorrect now
echo $OUTPUT->notification('Rebuilding course cache...', 'notifysuccess');
rebuild_course_cache();
echo $OUTPUT->notification('...finished', 'notifysuccess');
echo $OUTPUT->continue_button('index.php');
echo $OUTPUT->footer();
die;
+160
View File
@@ -0,0 +1,160 @@
<?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/>.
/**
* This file is used to display a categories sub categories, external pages, and settings.
*
* @since 2.3
* @package admin
* @copyright 2011 Sam Hemelryk
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$category = required_param('category', PARAM_SAFEDIR);
$return = optional_param('return','', PARAM_ALPHA);
$adminediting = optional_param('adminedit', -1, PARAM_BOOL);
/// no guest autologin
require_login(0, false);
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
$PAGE->set_url('/admin/category.php', array('category' => $category));
$PAGE->set_pagetype('admin-setting-' . $category);
$PAGE->set_pagelayout('admin');
$PAGE->navigation->clear_cache();
$adminroot = admin_get_root(); // need all settings
$settingspage = $adminroot->locate($category, true);
if (empty($settingspage) or !($settingspage instanceof admin_category)) {
print_error('categoryerror', 'admin', "$CFG->wwwroot/$CFG->admin/");
}
if (!($settingspage->check_access())) {
print_error('accessdenied', 'admin');
}
$statusmsg = '';
$errormsg = '';
if ($data = data_submitted() and confirm_sesskey()) {
if (admin_write_settings($data)) {
$statusmsg = get_string('changessaved');
}
if (empty($adminroot->errors)) {
switch ($return) {
case 'site': redirect("$CFG->wwwroot/");
case 'admin': redirect("$CFG->wwwroot/$CFG->admin/");
}
} else {
$errormsg = get_string('errorwithsettings', 'admin');
$firsterror = reset($adminroot->errors);
}
$adminroot = admin_get_root(true); //reload tree
$settingspage = $adminroot->locate($category, true);
}
if ($PAGE->user_allowed_editing() && $adminediting != -1) {
$USER->editing = $adminediting;
}
if ($PAGE->user_allowed_editing()) {
$url = clone($PAGE->url);
if ($PAGE->user_is_editing()) {
$caption = get_string('blockseditoff');
$url->param('adminedit', 'off');
} else {
$caption = get_string('blocksediton');
$url->param('adminedit', 'on');
}
$buttons = $OUTPUT->single_button($url, $caption, 'get');
}
$savebutton = false;
$outputhtml = '';
foreach ($settingspage->children as $childpage) {
if ($childpage->is_hidden()) {
continue;
}
if ($childpage instanceof admin_externalpage) {
$outputhtml .= $OUTPUT->heading(html_writer::link($childpage->url, $childpage->visiblename), 3);
} else if ($childpage instanceof admin_settingpage) {
$outputhtml .= $OUTPUT->heading(html_writer::link(new moodle_url('/'.$CFG->admin.'/settings.php', array('section' => $childpage->name)), $childpage->visiblename), 3);
} else if ($childpage instanceof admin_category) {
$outputhtml .= $OUTPUT->heading(html_writer::link(new moodle_url('/'.$CFG->admin.'/category.php', array('category' => $childpage->name)), get_string('admincategory', 'admin', $childpage->visiblename)), 3);
} else {
continue;
}
if (!empty($childpage->settings)) {
$outputhtml .= html_writer::start_tag('fieldset', array('class' => 'adminsettings'));
foreach ($childpage->settings as $setting) {
if (empty($setting->nosave)) {
$savebutton = true;
}
$fullname = $setting->get_full_name();
if (array_key_exists($fullname, $adminroot->errors)) {
$data = $adminroot->errors[$fullname]->data;
} else {
$data = $setting->get_setting();
}
$outputhtml .= html_writer::tag('div', '<!-- -->', array('class' => 'clearer'));
$outputhtml .= $setting->output_html($data);
}
$outputhtml .= html_writer::end_tag('fieldset');
}
}
if ($savebutton) {
$outputhtml .= html_writer::start_tag('div', array('class' => 'form-buttons'));
$outputhtml .= html_writer::empty_tag('input', array('class' => 'form-submit', 'type' => 'submit', 'value' => get_string('savechanges','admin')));
$outputhtml .= html_writer::end_tag('div');
}
$visiblepathtosection = array_reverse($settingspage->visiblepath);
$PAGE->set_title("$SITE->shortname: " . implode(": ",$visiblepathtosection));
$PAGE->set_heading($SITE->fullname);
$PAGE->set_button($buttons);
echo $OUTPUT->header();
if ($errormsg !== '') {
echo $OUTPUT->notification($errormsg);
} else if ($statusmsg !== '') {
echo $OUTPUT->notification($statusmsg, 'notifysuccess');
}
$path = array_reverse($settingspage->visiblepath);
if (is_array($path)) {
$visiblename = join(' / ', $path);
} else {
$visiblename = $path;
}
echo $OUTPUT->heading(get_string('admincategory', 'admin', $visiblename), 2);
echo html_writer::start_tag('form', array('action' => '', 'method' => 'post', 'id' => 'adminsettings'));
echo html_writer::start_tag('div');
echo html_writer::input_hidden_params(new moodle_url($PAGE->url, array('sesskey' => sesskey(), 'return' => $return)));
echo html_writer::end_tag('div');
echo html_writer::start_tag('fieldset');
echo html_writer::tag('div', '<!-- -->', array('class' => 'clearer'));
echo $outputhtml;
echo html_writer::end_tag('fieldset');
echo html_writer::end_tag('form');
echo $OUTPUT->footer();
+57 -18
View File
@@ -20,7 +20,6 @@
*
* This script is not intended for beginners!
* Potential problems:
* - environment check is not present yet
* - su to apache account or sudo before execution
* - not compatible with Windows platform
*
@@ -79,6 +78,16 @@ Example:
"; //TODO: localize, mark as needed in install - to be translated later when everything is finished
// distro specific customisation
$distrolibfile = dirname(dirname(dirname(__FILE__))).'/install/distrolib.php';
$distro = null;
if (file_exists($distrolibfile)) {
require_once($distrolibfile);
if (function_exists('distro_get_config')) {
$distro = distro_get_config();
}
}
// Nothing to do if config.php exists
$configfile = dirname(dirname(dirname(__FILE__))).'/config.php';
if (file_exists($configfile)) {
@@ -91,12 +100,16 @@ if (file_exists($configfile)) {
echo "\n\n";
}
cli_error(get_string('clialreadyinstalled', 'install'));
if ($DB->get_manager()->table_exists('config')) {
cli_error(get_string('clialreadyinstalled', 'install'));
} else {
cli_error(get_string('clialreadyconfigured', 'install'));
}
}
$olddir = getcwd();
// change directory so that includes bellow work properly
// change directory so that includes below work properly
chdir(dirname($_SERVER['argv'][0]));
// Servers should define a default timezone in php.ini, but if they don't then make sure something is defined.
@@ -115,12 +128,12 @@ if (function_exists('date_default_timezone_set') and function_exists('date_defau
define('MOODLE_INTERNAL', true);
// Check that PHP is of a sufficient version
if (version_compare(phpversion(), "5.2.8") < 0) {
if (version_compare(phpversion(), "5.3.2") < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN NOT move it after installib
echo "Sorry, Moodle 2.0 requires PHP 5.2.8 or later (currently using version $phpversion).\n";
echo "Please upgrade your server software or install latest Moodle 1.9.x instead.";
die;
fwrite(STDERR, "Moodle 2.1 or later requires at least PHP 5.3.2 (currently using version $phpversion).\n");
fwrite(STDERR, "Please upgrade your server software or install older Moodle version.\n");
exit(1);
}
// set up configuration
@@ -130,7 +143,6 @@ $CFG->dirroot = dirname(dirname(dirname(__FILE__)));
$CFG->libdir = "$CFG->dirroot/lib";
$CFG->wwwroot = "http://localhost";
$CFG->httpswwwroot = $CFG->wwwroot;
$CFG->dataroot = str_replace('\\', '/', dirname(dirname(dirname(dirname(__FILE__)))).'/moodledata');
$CFG->docroot = 'http://docs.moodle.org';
$CFG->running_installer = true;
$CFG->early_install_lang = true;
@@ -178,14 +190,14 @@ if (empty($databases)) {
// now get cli options
list($options, $unrecognized) = cli_get_params(
array(
'chmod' => '2777',
'chmod' => isset($distro->directorypermissions) ? sprintf('%04o',$distro->directorypermissions) : '2777', // let distros set dir permissions
'lang' => $CFG->lang,
'wwwroot' => '',
'dataroot' => $CFG->dataroot,
'dbtype' => $defaultdb,
'dbhost' => 'localhost',
'dataroot' => empty($distro->dataroot) ? str_replace('\\', '/', dirname(dirname(dirname(dirname(__FILE__)))).'/moodledata'): $distro->dataroot, // initialised later after including libs or by distro
'dbtype' => empty($distro->dbtype) ? $defaultdb : $distro->dbtype, // let distro skip dbtype selection
'dbhost' => empty($distro->dbhost) ? 'localhost' : $distro->dbhost, // let distros set dbhost
'dbname' => 'moodle',
'dbuser' => 'root',
'dbuser' => empty($distro->dbuser) ? 'root' : $distro->dbuser, // let distros set dbuser
'dbpass' => '',
'dbsocket' => false,
'prefix' => 'mdl_',
@@ -265,7 +277,7 @@ if ($interactive) {
$chmod = octdec(clean_param($options['chmod'], PARAM_INT));
if ($interactive) {
cli_separator();
cli_heading('Data directories permission'); // todo localize
cli_heading(get_string('datarootpermission', 'install'));
$prompt = get_string('clitypevaluedefault', 'admin', decoct($chmod));
$error = '';
do {
@@ -325,9 +337,7 @@ $CFG->httpswwwroot = $CFG->wwwroot;
//We need dataroot before lang download
if (!empty($options['dataroot'])) {
$CFG->dataroot = $options['dataroot'];
}
$CFG->dataroot = $options['dataroot'];
if ($interactive) {
cli_separator();
$i=0;
@@ -375,6 +385,8 @@ if ($interactive) {
cli_error(get_string('pathserrcreatedataroot', 'install', $a));
}
}
$CFG->tempdir = $CFG->dataroot.'/temp';
$CFG->cachedir = $CFG->dataroot.'/cache';
// download required lang packs
if ($CFG->lang !== 'en') {
@@ -413,7 +425,8 @@ if (isset($maturity)) {
exit(1);
}
} else {
cli_error(get_string('maturitycorewarning', 'admin'));
cli_problem(get_string('maturitycorewarning', 'admin', $maturitylevel));
cli_error(get_string('maturityallowunstable', 'admin'));
}
}
}
@@ -516,6 +529,9 @@ if ($interactive) {
}
$CFG->dbpass = cli_input($prompt, $options['dbpass']);
if (function_exists('distro_pre_create_db')) { // Hook for distros needing to do something before DB creation
$distro = distro_pre_create_db($database, $CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname, $CFG->prefix, array('dbpersist'=>0, 'dbsocket'=>$options['dbsocket']), $distro);
}
$hint_database = install_db_validate($database, $CFG->dbhost, $CFG->dbuser, $CFG->dbpass, $CFG->dbname, $CFG->prefix, array('dbpersist'=>0, 'dbsocket'=>$options['dbsocket']));
} while ($hint_database !== '');
@@ -645,6 +661,29 @@ require($configfile);
$CFG->lang = $installlang;
$SESSION->lang = $CFG->lang;
require("$CFG->dirroot/version.php");
// Test environment first.
require_once($CFG->libdir . '/environmentlib.php');
list($envstatus, $environment_results) = check_moodle_environment(normalize_version($release), ENV_SELECT_RELEASE);
if (!$envstatus) {
$errors = environment_get_errors($environment_results);
cli_heading(get_string('environment', 'admin'));
foreach ($errors as $error) {
list($info, $report) = $error;
echo "!! $info !!\n$report\n\n";
}
exit(1);
}
// Test plugin dependencies.
require_once($CFG->libdir . '/pluginlib.php');
$failed = array();
if (!plugin_manager::instance()->all_plugins_ok($version, $failed)) {
cli_problem(get_string('pluginscheckfailed', 'admin', array('pluginslist' => implode(', ', array_unique($failed)))));
cli_error(get_string('pluginschecktodo', 'admin'));
}
install_cli_database($options, $interactive);
echo get_string('cliinstallfinished', 'install')."\n";
+31 -5
View File
@@ -46,6 +46,8 @@ Options:
--adminuser=USERNAME Username for the moodle admin account. Default is admin.
--adminpass=PASSWORD Password for the moodle admin account.
--agree-license Indicates agreement with software license.
--fullname=STRING Name of the site
--shortname=STRING Name of the site
-h, --help Print out this help
Example:
@@ -53,12 +55,12 @@ Example:
";
// Check that PHP is of a sufficient version
if (version_compare(phpversion(), "5.2.8") < 0) {
if (version_compare(phpversion(), "5.3.2") < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN NOT move it after installib
fwrite(STDERR, "Sorry, Moodle 2.0 requires PHP 5.2.8 or later (currently using version $phpversion).\n");
fwrite(STDERR, "Please upgrade your server software or install latest Moodle 1.9.x instead.\n");
die(1);
fwrite(STDERR, "Moodle 2.1 or later requires at least PHP 5.3.2 (currently using version $phpversion).\n");
fwrite(STDERR, "Please upgrade your server software or install older Moodle version.\n");
exit(1);
}
// Nothing to do if config.php does not exist
@@ -66,7 +68,7 @@ $configfile = dirname(dirname(dirname(__FILE__))).'/config.php';
if (!file_exists($configfile)) {
fwrite(STDERR, 'config.php does not exist, can not continue'); // do not localize
fwrite(STDERR, "\n");
die(1);
exit(1);
}
// Include necessary libs
@@ -93,6 +95,8 @@ list($options, $unrecognized) = cli_get_params(
'lang' => 'en',
'adminuser' => 'admin',
'adminpass' => '',
'fullname' => '',
'shortname' => '',
'agree-license' => false,
'help' => false
),
@@ -140,6 +144,28 @@ if ($CFG->lang !== 'en') {
$CFG->early_install_lang = false;
get_string_manager(true);
require("$CFG->dirroot/version.php");
// Test environment first.
require_once($CFG->libdir . '/environmentlib.php');
list($envstatus, $environment_results) = check_moodle_environment(normalize_version($release), ENV_SELECT_RELEASE);
if (!$envstatus) {
$errors = environment_get_errors($environment_results);
cli_heading(get_string('environment', 'admin'));
foreach ($errors as $error) {
list($info, $report) = $error;
echo "!! $info !!\n$report\n\n";
}
exit(1);
}
// Test plugin dependencies.
require_once($CFG->libdir . '/pluginlib.php');
$failed = array();
if (!plugin_manager::instance()->all_plugins_ok($version, $failed)) {
cli_problem(get_string('pluginscheckfailed', 'admin', array('pluginslist' => implode(', ', array_unique($failed)))));
cli_error(get_string('pluginschecktodo', 'admin'));
}
install_cli_database($options, true);
+211
View File
@@ -0,0 +1,211 @@
<?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/>.
/**
* MySQL collation conversion tool.
*
* @package core
* @copyright 2012 Petr Skoda (http://skodak.org)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('CLI_SCRIPT', true);
require(dirname(dirname(dirname(__FILE__))).'/config.php');
require_once($CFG->libdir.'/clilib.php'); // cli only functions
if ($DB->get_dbfamily() !== 'mysql') {
cli_error('This function is designed for MySQL databases only!');
}
// now get cli options
list($options, $unrecognized) = cli_get_params(array('help'=>false, 'list'=>false, 'collation'=>false, 'available'=>false),
array('h'=>'help', 'l'=>'list', 'a'=>'available'));
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
cli_error(get_string('cliunknowoption', 'admin', $unrecognized));
}
$help =
"MySQL collation conversions script.
It is strongly recommended to stop the web server before the conversion.
This script may be executed before the main upgrade - 1.9.x data for example.
Options:
--collation=COLLATION Convert MySQL tables to different collation
-l, --list Show table and column information
-a, --available Show list of available collations
-h, --help Print out this help
Example:
\$ sudo -u www-data /usr/bin/php admin/cli/mysql_collation.php --collation=utf8_general_ci
";
if (!empty($options['collation'])) {
$collations = mysql_get_collations();
$collation = clean_param($options['collation'], PARAM_ALPHANUMEXT);
$collation = strtolower($collation);
if (!isset($collations[$collation])) {
cli_error("Error: collation '$collation' is not available on this server!");
}
echo "Converting tables and columns to '$collation' for $CFG->wwwroot:\n";
$prefix = $DB->get_prefix();
$prefix = str_replace('_', '\\_', $prefix);
$sql = "SHOW TABLE STATUS WHERE Name LIKE BINARY '$prefix%'";
$rs = $DB->get_recordset_sql($sql);
$converted = 0;
$skipped = 0;
$errors = 0;
foreach ($rs as $table) {
echo str_pad($table->name, 40). " - ";
if ($table->collation === $collation) {
echo "NO CHANGE\n";
$skipped++;
} else {
$DB->change_database_structure("ALTER TABLE $table->name DEFAULT COLLATE = $collation");
echo "CONVERTED\n";
$converted++;
}
$sql = "SHOW FULL COLUMNS FROM $table->name WHERE collation IS NOT NULL";
$rs2 = $DB->get_recordset_sql($sql);
foreach ($rs2 as $column) {
$column = (object)array_change_key_case((array)$column, CASE_LOWER);
echo ' '.str_pad($column->field, 36). " - ";
if ($column->collation === $collation) {
echo "NO CHANGE\n";
$skipped++;
continue;
}
if ($column->type === 'tinytext' or $column->type === 'mediumtext' or $column->type === 'text' or $column->type === 'longtext') {
$notnull = ($column->null === 'NO') ? 'NOT NULL' : 'NULL';
$default = (!is_null($column->default) and $column->default !== '') ? "DEFAULT '$column->default'" : '';
// primary, unique and inc are not supported for texts
$sql = "ALTER TABLE $table->name MODIFY COLUMN $column->field $column->type COLLATE $collation $notnull $default";
$DB->change_database_structure($sql);
} else if (strpos($column->type, 'varchar') === 0) {
$notnull = ($column->null === 'NO') ? 'NOT NULL' : 'NULL';
$default = !is_null($column->default) ? "DEFAULT '$column->default'" : '';
// primary, unique and inc are not supported for texts
$sql = "ALTER TABLE $table->name MODIFY COLUMN $column->field $column->type COLLATE $collation $notnull $default";
$DB->change_database_structure($sql);
} else {
echo "ERROR (unknown column type: $column->type)\n";
$error++;
continue;
}
echo "CONVERTED\n";
$converted++;
}
$rs2->close();
}
$rs->close();
echo "Converted: $converted, skipped: $skipped, errors: $errors\n";
exit(0); // success
} else if (!empty($options['list'])) {
echo "List of tables for $CFG->wwwroot:\n";
$prefix = $DB->get_prefix();
$prefix = str_replace('_', '\\_', $prefix);
$sql = "SHOW TABLE STATUS WHERE Name LIKE BINARY '$prefix%'";
$rs = $DB->get_recordset_sql($sql);
$counts = array();
foreach ($rs as $table) {
if (isset($counts[$table->collation])) {
$counts[$table->collation]++;
} else {
$counts[$table->collation] = 1;
}
echo str_pad($table->name, 40);
echo $table->collation. "\n";
$collations = mysql_get_column_collations($table->name);
foreach ($collations as $columname=>$collation) {
if (isset($counts[$collation])) {
$counts[$collation]++;
} else {
$counts[$collation] = 1;
}
echo ' ';
echo str_pad($columname, 36);
echo $collation. "\n";
}
}
$rs->close();
echo "\n";
echo "Table collations summary for $CFG->wwwroot:\n";
foreach ($counts as $collation => $count) {
echo "$collation: $count\n";
}
exit(0); // success
} else if (!empty($options['available'])) {
echo "List of available MySQL collations for $CFG->wwwroot:\n";
$collations = mysql_get_collations();
foreach ($collations as $collation) {
echo " $collation\n";
}
die;
} else {
echo $help;
die;
}
// ========== Some functions ==============
function mysql_get_collations() {
global $DB;
$collations = array();
$sql = "SHOW COLLATION WHERE Collation LIKE 'utf8\_%' AND Charset = 'utf8'";
$rs = $DB->get_recordset_sql($sql);
foreach ($rs as $collation) {
$collations[$collation->collation] = $collation->collation;
}
$rs->close();
$collation = $DB->get_dbcollation();
if (isset($collations[$collation])) {
$collations[$collation] .= ' (default)';
}
return $collations;
}
function mysql_get_column_collations($tablename) {
global $DB;
$collations = array();
$sql = "SELECT column_name, collation_name
FROM INFORMATION_SCHEMA.COLUMNS
WHERE table_schema = DATABASE() AND table_name = ? AND collation_name IS NOT NULL";
$rs = $DB->get_recordset_sql($sql, array($tablename));
foreach($rs as $record) {
$collations[$record->column_name] = $record->collation_name;
}
$rs->close();
return $collations;
}
+73 -8
View File
@@ -34,8 +34,8 @@ if ($DB->get_dbfamily() !== 'mysql') {
}
// now get cli options
list($options, $unrecognized) = cli_get_params(array('help'=>false, 'list'=>false, 'engine'=>false),
array('h'=>'help', 'l'=>'list'));
list($options, $unrecognized) = cli_get_params(array('help'=>false, 'list'=>false, 'engine'=>false, 'available'=>false),
array('h'=>'help', 'l'=>'list', 'a'=>'available'));
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
@@ -52,6 +52,7 @@ and does not support transactions.
Options:
--engine=ENGINE Convert MySQL tables to different engine
-l, --list Show table information
-a, --available Show list of available engines
-h, --help Print out this help
Example:
@@ -59,7 +60,11 @@ Example:
";
if (!empty($options['engine'])) {
$engines = mysql_get_engines();
$engine = clean_param($options['engine'], PARAM_ALPHA);
if (!isset($engines[strtoupper($engine)])) {
cli_error("Error: engine '$engine' is not available on this server!");
}
echo "Converting tables to '$engine' for $CFG->wwwroot:\n";
$prefix = $DB->get_prefix();
@@ -68,20 +73,34 @@ if (!empty($options['engine'])) {
$rs = $DB->get_recordset_sql($sql);
$converted = 0;
$skipped = 0;
$errors = 0;
foreach ($rs as $table) {
if ($table->engine === $engine) {
echo str_pad($table->name, 40). " - NO CONVERSION NEEDED\n";
if (strtoupper($table->engine) === strtoupper($engine)) {
$newengine = mysql_get_table_engine($table->name);
echo str_pad($table->name, 40). " - NO CONVERSION NEEDED ($newengine)\n";
$skipped++;
continue;
}
echo str_pad($table->name, 40). " - ";
$DB->change_database_structure("ALTER TABLE {$table->name} TYPE = $engine");
echo "DONE\n";
$converted++;
try {
$DB->change_database_structure("ALTER TABLE {$table->name} ENGINE = $engine");
$newengine = mysql_get_table_engine($table->name);
if (strtoupper($newengine) !== strtoupper($engine)) {
echo "ERROR ($newengine)\n";
$errors++;
continue;
}
echo "DONE ($newengine)\n";
$converted++;
} catch (moodle_exception $e) {
echo $e->getMessage()."\n";
$errors++;
continue;
}
}
$rs->close();
echo "Converted: $converted, skipped: $skipped\n";
echo "Converted: $converted, skipped: $skipped, errors: $errors\n";
exit(0); // success
} else if (!empty($options['list'])) {
@@ -109,7 +128,53 @@ if (!empty($options['engine'])) {
}
exit(0); // success
} else if (!empty($options['available'])) {
echo "List of available MySQL engines for $CFG->wwwroot:\n";
$engines = mysql_get_engines();
foreach ($engines as $engine) {
echo " $engine\n";
}
die;
} else {
echo $help;
die;
}
// ========== Some functions ==============
function mysql_get_engines() {
global $DB;
$sql = "SHOW Engines";
$rs = $DB->get_recordset_sql($sql);
$engines = array();
foreach ($rs as $engine) {
if (strtoupper($engine->support) !== 'YES' and strtoupper($engine->support) !== 'DEFAULT') {
continue;
}
$engines[strtoupper($engine->engine)] = $engine->engine;
if (strtoupper($engine->support) === 'DEFAULT') {
$engines[strtoupper($engine->engine)] .= ' (default)';
}
}
$rs->close();
return $engines;
}
function mysql_get_table_engine($tablename) {
global $DB;
$engine = null;
$sql = "SHOW TABLE STATUS WHERE Name = '$tablename'"; // no special chars expected here
$rs = $DB->get_recordset_sql($sql);
if ($rs->valid()) {
$record = $rs->current();
$engine = $record->engine;
}
$rs->close();
return $engine;
}
+53
View File
@@ -0,0 +1,53 @@
<?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 cli
* @copyright 2011 David Mudrak <david@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define('CLI_SCRIPT', true);
require(dirname(dirname(dirname(__FILE__))).'/config.php');
require_once($CFG->libdir.'/clilib.php');
list($options, $unrecognized) = cli_get_params(array('help' => false), array('h' => 'help'));
if ($unrecognized) {
$unrecognized = implode("\n ", $unrecognized);
cli_error(get_string('cliunknowoption', 'admin', $unrecognized), 2);
}
if ($options['help']) {
$help =
"Invalidates all Moodle internal caches
Options:
-h, --help Print out this help
Example:
\$sudo -u www-data /usr/bin/php admin/cli/purge_caches.php
";
echo $help;
exit(0);
}
purge_all_caches();
exit(0);
+19 -6
View File
@@ -20,7 +20,6 @@
*
* This script is not intended for beginners!
* Potential problems:
* - environment check is not present yet
* - su to apache account or sudo before execution
* - not compatible with Windows platform
*
@@ -37,7 +36,7 @@ require_once($CFG->libdir.'/adminlib.php'); // various admin-only function
require_once($CFG->libdir.'/upgradelib.php'); // general upgrade/install related functions
require_once($CFG->libdir.'/clilib.php'); // cli only functions
require_once($CFG->libdir.'/environmentlib.php');
require_once($CFG->libdir.'/pluginlib.php');
// now get cli options
list($options, $unrecognized) = cli_get_params(
@@ -83,7 +82,7 @@ if (empty($CFG->version)) {
cli_error(get_string('missingconfigversion', 'debug'));
}
require("$CFG->dirroot/version.php"); // defines $version, $release and $maturity
require("$CFG->dirroot/version.php"); // defines $version, $release, $branch and $maturity
$CFG->target_release = $release; // used during installation and upgrades
if ($version < $CFG->version) {
@@ -93,8 +92,13 @@ if ($version < $CFG->version) {
$oldversion = "$CFG->release ($CFG->version)";
$newversion = "$release ($version)";
// test environment first
if (!check_moodle_environment(normalize_version($release), $environment_results, false, ENV_SELECT_RELEASE)) {
if (!moodle_needs_upgrading()) {
cli_error(get_string('cliupgradenoneed', 'core_admin', $newversion), 0);
}
// Test environment first.
list($envstatus, $environment_results) = check_moodle_environment(normalize_version($release), ENV_SELECT_RELEASE);
if (!$envstatus) {
$errors = environment_get_errors($environment_results);
cli_heading(get_string('environment', 'admin'));
foreach ($errors as $error) {
@@ -104,6 +108,13 @@ if (!check_moodle_environment(normalize_version($release), $environment_results,
exit(1);
}
// Test plugin dependencies.
$failed = array();
if (!plugin_manager::instance()->all_plugins_ok($version, $failed)) {
cli_problem(get_string('pluginscheckfailed', 'admin', array('pluginslist' => implode(', ', array_unique($failed)))));
cli_error(get_string('pluginschecktodo', 'admin'));
}
if ($interactive) {
$a = new stdClass();
$a->oldversion = $oldversion;
@@ -123,7 +134,8 @@ if (isset($maturity)) {
echo get_string('morehelp') . ': ' . get_docs_url('admin/versions') . PHP_EOL;
cli_separator();
} else {
cli_error(get_string('maturitycorewarning', 'admin', $maturitylevel));
cli_problem(get_string('maturitycorewarning', 'admin', $maturitylevel));
cli_error(get_string('maturityallowunstable', 'admin'));
}
}
}
@@ -141,6 +153,7 @@ if ($version > $CFG->version) {
upgrade_core($version, true);
}
set_config('release', $release);
set_config('branch', $branch);
// unconditionally upgrade
upgrade_noncore(true);
+9
View File
@@ -36,6 +36,12 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
if (defined('STDIN')) {
fwrite(STDERR, "ERROR: This script no longer supports CLI, please use admin/cli/cron.php instead\n");
exit(1);
}
// This is a fake CLI script, it is a really ugly hack which emulates
// CLI via web interface, please do not use this hack elsewhere
define('CLI_SCRIPT', true);
@@ -75,6 +81,9 @@ if (check_browser_version('MSIE')) {
@header('Content-Type: text/plain; charset=utf-8');
}
// we do not want html markup in emulated CLI
@ini_set('html_errors', 'off');
// execute the cron
cron_run();
-32
View File
@@ -1,32 +0,0 @@
<?PHP
// dbperformance.php - shows latest ADOdb stats for the current server
// disable moodle specific debug messages and any errors in output
define('NO_DEBUG_DISPLAY', true);
require_once('../config.php');
error('TODO: rewrite db perf code'); // TODO: rewrite
$topframe = optional_param('topframe', 0, PARAM_BOOL);
$bottomframe = optional_param('bottomframe', 0, PARAM_BOOL);
$do = optional_param('do', '', PARAM_ALPHA);
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
$strdatabaseperformance = get_string("databaseperformance");
$stradministration = get_string("administration");
$site = get_site();
if (!empty($topframe)) {
$PAGE->set_url('/admin/dbperformance.php');
$PAGE->navbar->add($stradministration, new moodle_url('/admin/index.php'));
$PAGE->navbar->add($strdatabaseperformance);
$PAGE->set_title("$site->shortname: $strdatabaseperformance");
$PAGE->set_heading($site->fullname);
echo $OUTPUT->header();
exit;
}
-19
View File
@@ -1,19 +0,0 @@
<?php
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
require_once $CFG->libdir.'/formslib.php';
class database_export_form extends moodleform {
function definition() {
$mform = $this->_form;
$mform->addElement('header', 'database', get_string('dbexport', 'dbtransfer'));
$mform->addElement('textarea', 'description', get_string('description'), array('rows'=>5, 'cols'=>60));
$this->add_action_buttons(false, get_string('exportdata', 'dbtransfer'));
}
}
@@ -1,48 +0,0 @@
<?php
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
require_once $CFG->libdir.'/formslib.php';
class database_transfer_form extends moodleform {
function definition() {
$mform = $this->_form;
$mform->addElement('header', 'database', get_string('dbtransfer', 'dbtransfer'));
$supported = array (
'mysqli/native',
'pgsql/native',
'mssql/native',
'oci/native',
'sqlite3/pdo',
);
$drivers = array();
foreach($supported as $driver) {
list($dbtype, $dblibrary) = explode('/', $driver);
$targetdb = moodle_database::get_driver_instance($dbtype, $dblibrary);
if ($targetdb->driver_installed() !== true) {
continue;
}
$drivers[$driver] = $driver;
}
$mform->addElement('select', 'driver', get_string('dbtype', 'install'), $drivers);
$mform->addElement('text', 'dbhost', get_string('dbhost', 'install'));
$mform->addElement('text', 'dbname', get_string('database', 'install'));
$mform->addElement('text', 'dbuser', get_string('user'));
$mform->addElement('text', 'dbpass', get_string('password'));
$mform->addElement('text', 'prefix', get_string('dbprefix', 'install'));
$mform->addRule('dbhost', get_string('required'), 'required', null);
$mform->addRule('dbname', get_string('required'), 'required', null);
$mform->addRule('dbuser', get_string('required'), 'required', null);
$mform->addRule('dbpass', get_string('required'), 'required', null);
$mform->addRule('prefix', get_string('required'), 'required', null);
$this->add_action_buttons(false, get_string('transferdata', 'dbtransfer'));
}
}
-21
View File
@@ -1,21 +0,0 @@
<?php
require('../../config.php');
require_once('lib.php');
require_once('database_export_form.php');
require_login();
admin_externalpage_setup('dbexport');
//create form
$form = new database_export_form();
if ($data = $form->get_data()) {
dbtransfer_export_xml_database($data->description, $DB);
die;
}
echo $OUTPUT->header();
// TODO: add some more info here
$form->display();
echo $OUTPUT->footer();
-47
View File
@@ -1,47 +0,0 @@
<?php
require('../../config.php');
require_once('lib.php');
require_once('database_transfer_form.php');
require_login();
admin_externalpage_setup('dbtransfer');
// Create the form
$form = new database_transfer_form();
// If we have valid input.
if ($data = $form->get_data()) {
// Connect to the other database.
list($dbtype, $dblibrary) = explode('/', $data->driver);
$targetdb = moodle_database::get_driver_instance($dbtype, $dblibrary);
if (!$targetdb->connect($data->dbhost, $data->dbuser, $data->dbpass, $data->dbname, $data->prefix, null)) {
throw new dbtransfer_exception('notargetconectexception', null, "$CFG->wwwroot/$CFG->admin/dbtransfer/");
}
if ($targetdb->get_tables()) {
throw new dbtransfer_exception('targetdatabasenotempty', null, "$CFG->wwwroot/$CFG->admin/dbtransfer/");
}
// Start output.
echo $OUTPUT->header();
$data->dbtype = $dbtype;
echo $OUTPUT->heading(get_string('transferringdbto', 'dbtransfer', $data));
// Do the transfer.
$feedback = new html_list_progress_trace();
dbtransfer_transfer_database($DB, $targetdb, $feedback);
$feedback->finished();
// Finish up.
echo $OUTPUT->notification(get_string('success'), 'notifysuccess');
echo $OUTPUT->continue_button("$CFG->wwwroot/$CFG->admin/");
echo $OUTPUT->footer();
die;
}
// Otherwise display the settings form.
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('transferdbtoserver', 'dbtransfer'));
echo '<p>', get_string('transferdbintro', 'dbtransfer'), "</p>\n\n";
$form->display();
echo $OUTPUT->footer();
-52
View File
@@ -1,52 +0,0 @@
<?php
/*
TODO:
- exporting to server file >2GB fails in 32bit operating systems - needs warning
- we may run out of disk space exporting to srever file - we must verify the file is not truncated; read from the end of file?
- when sending file >4GB - FAT32 limit, Apache limit, browser limit - needs warning
- there must be some form of progress bar during export, transfer - new tracking class could be passed around
- command line operation - could work around some 2G/4G limits in PHP; useful for cron full backups
- by default allow exporting into empty database only (no tables with the same prefix yet)
- all dangerous operation (like deleting of all data) should be confirmed by key found in special file in dataroot
(user would need file access to dataroot which might prevent various "accidents")
- implement "Export/import running" notification in lib/setup.php (similar to new upgrade flag in config table)
- gzip compression when storing xml file - the xml is very verbose and full of repeated tags (zip is not suitable here at all)
this could help us keep the files bellow 2G (expected ratio is > 10:1)
*/
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/dtllib.php');
function dbtransfer_export_xml_database($description, $mdb) {
@set_time_limit(0);
session_get_instance()->write_close(); // release session
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');
header('Pragma: public');
while(@ob_flush());
$var = new file_xml_database_exporter('php://output', $mdb);
$var->export_database($description);
// no more output
die;
}
function dbtransfer_transfer_database($sourcedb, $targetdb, $feedback = null) {
@set_time_limit(0);
session_get_instance()->write_close(); // release session
$var = new database_mover($sourcedb, $targetdb, true, $feedback);
$var->export_database(null);
}
-86
View File
@@ -1,86 +0,0 @@
<?php
// Deletes the moodledata directory, COMPLETELY!!
// BE VERY CAREFUL USING THIS!
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
admin_externalpage_setup('purgemoodledata');
require_login();
$sure = optional_param('sure', 0, PARAM_BOOL);
$reallysure = optional_param('reallysure', 0, PARAM_BOOL);
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
$deletedir = $CFG->dataroot; // The directory to delete!
echo $OUTPUT->header();
echo $OUTPUT->heading('Purge moodledata');
if (empty($sure)) {
$optionsyes = array('sure'=>'yes', 'sesskey'=>sesskey());
$formcontinue = new single_button(new moodle_url('delete.php', $optionsyes), get_string('yes'));
$formcancel = new single_button('index.php', get_string('no'), 'get');
echo $OUTPUT->confirm('Are you completely sure you want to delete everything inside the directory '. $deletedir .' ?', $formcontinue, $formcancel);
echo $OUTPUT->footer();
exit;
}
if (!data_submitted() or empty($reallysure)) {
$optionsyes = array('sure'=>'yes', 'sesskey'=>sesskey(), 'reallysure'=>'yes');
$formcontinue = new single_button(new moodle_url('delete.php', $optionsyes), get_string('yes'));
$formcancel = new single_button('index.php', get_string('no'), 'get');
echo $OUTPUT->confirm('Are you REALLY REALLY completely sure you want to delete everything inside the directory '.
$deletedir .' (this includes all user images, and any other course files that have been created) ?',
$formcontinue, $formcancel);
echo $OUTPUT->footer();
exit;
}
if (!confirm_sesskey()) {
print_error('wrongcall', 'error');
}
/// OK, here goes ...
delete_subdirectories($deletedir);
echo '<h1 align="center">Done!</h1>';
echo $OUTPUT->continue_button($CFG->wwwroot);
echo $OUTPUT->footer();
exit;
function delete_subdirectories($rootdir) {
$dir = opendir($rootdir);
while (false !== ($file = readdir($dir))) {
if ($file != '.' and $file != '..') {
$fullfile = $rootdir .'/'. $file;
if (filetype($fullfile) == 'dir') {
delete_subdirectories($fullfile);
echo 'Deleting '. $fullfile .' ... ';
if (rmdir($fullfile)) {
echo 'Done.<br />';
} else {
echo 'FAILED.<br />';
}
} else {
echo 'Deleting '. $fullfile .' ... ';
if (unlink($fullfile)) {
echo 'Done.<br />';
} else {
echo 'FAILED.<br />';
}
}
}
}
closedir($dir);
}
+1 -1
View File
@@ -14,7 +14,7 @@ require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
$returnurl = "$CFG->wwwroot/$CFG->admin/settings.php?section=manageeditors";
$action = optional_param('action', '', PARAM_ACTION);
$editor = optional_param('editor', '', PARAM_SAFEDIR);
$editor = optional_param('editor', '', PARAM_PLUGIN);
// get currently installed and enabled auth plugins
$available_editors = editors_get_available();
+8 -1
View File
@@ -27,10 +27,11 @@ require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
$action = required_param('action', PARAM_ACTION);
$enrol = required_param('enrol', PARAM_SAFEDIR);
$enrol = required_param('enrol', PARAM_PLUGIN);
$confirm = optional_param('confirm', 0, PARAM_BOOL);
$PAGE->set_url('/admin/enrol.php');
$PAGE->set_context(context_system::instance());
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
@@ -41,10 +42,13 @@ $all = enrol_get_plugins(false);
$return = new moodle_url('/admin/settings.php', array('section'=>'manageenrols'));
$syscontext = context_system::instance();
switch ($action) {
case 'disable':
unset($enabled[$enrol]);
set_config('enrol_plugins_enabled', implode(',', array_keys($enabled)));
$syscontext->mark_dirty(); // resets all enrol caches
break;
case 'enable':
@@ -54,6 +58,7 @@ switch ($action) {
$enabled = array_keys($enabled);
$enabled[] = $enrol;
set_config('enrol_plugins_enabled', implode(',', $enabled));
$syscontext->mark_dirty(); // resets all enrol caches
break;
case 'up':
@@ -106,7 +111,9 @@ switch ($action) {
} else { // Delete everything!!
uninstall_plugin('enrol', $enrol);
$syscontext->mark_dirty(); // resets all enrol caches
$a = new stdClass();
$a->plugin = $strplugin;
$a->directory = "$CFG->dirroot/enrol/$enrol";
echo $OUTPUT->notification(get_string('uninstalldeletefiles', 'enrol', $a), 'notifysuccess');
+94 -122
View File
@@ -1,137 +1,109 @@
<?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/>.
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.com //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com //
// (C) 2001-3001 Eloy Lafuente (stronk7) http://contiento.com //
// //
// This program 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 2 of the License, or //
// (at your option) any later version. //
// //
// This program 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: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
// This file is the admin frontend to execute all the checks available
// in the environment.xml file. It includes database, php and
// php_extensions. Also, it's possible to update the xml file
// from moodle.org be able to check more and more versions.
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/environmentlib.php');
require_once($CFG->libdir.'/componentlib.class.php');
admin_externalpage_setup('environment');
/// Parameters
$action = optional_param('action', '', PARAM_ACTION);
$version = optional_param('version', '', PARAM_FILE); //
/**
* This file is the admin frontend to execute all the checks available
* in the environment.xml file. It includes database, php and
* php_extensions. Also, it's possible to update the xml file
* from moodle.org be able to check more and more versions.
*
* @package core
* @subpackage admin
* @copyright 2006 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/// Get some strings
$stradmin = get_string('administration');
$stradminhelpenvironment = get_string("adminhelpenvironment");
$strenvironment = get_string('environment', 'admin');
$strerror = get_string('error');
$strmoodleversion = get_string('moodleversion');
$strupdate = get_string('updatecomponent', 'admin');
$strupwards = get_string('upwards', 'admin');
$strmisc = get_string('miscellaneous');
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/environmentlib.php');
require_once($CFG->libdir.'/componentlib.class.php');
/// Print the header stuff
echo $OUTPUT->header();
// Parameters
$action = optional_param('action', '', PARAM_ACTION);
$version = optional_param('version', '', PARAM_FILE); //
/// Print the component download link
echo '<div class="reportlink"><a href="environment.php?action=updatecomponent&amp;sesskey='.sesskey().'">'.$strupdate.'</a></div>';
$extraurlparams = array();
if ($version) {
$extraurlparams['version'] = $version;
}
admin_externalpage_setup('environment', '', $extraurlparams);
echo $OUTPUT->heading($strenvironment);
// Handle the 'updatecomponent' action
if ($action == 'updatecomponent' && confirm_sesskey()) {
// Create component installer and execute it
if ($cd = new component_installer('http://download.moodle.org',
'environment',
'environment.zip')) {
$status = $cd->install(); //returns COMPONENT_(ERROR | UPTODATE | INSTALLED)
switch ($status) {
case COMPONENT_ERROR:
if ($cd->get_error() == 'remotedownloaderror') {
$a = new stdClass();
$a->url = 'http://download.moodle.org/environment/environment.zip';
$a->dest = $CFG->dataroot . '/';
print_error($cd->get_error(), 'error', $PAGE->url, $a);
die();
/// Handle the 'updatecomponent' action
if ($action == 'updatecomponent' && confirm_sesskey()) {
/// Create component installer and execute it
if ($cd = new component_installer('http://download.moodle.org',
'environment',
'environment.zip')) {
$status = $cd->install(); //returns COMPONENT_(ERROR | UPTODATE | INSTALLED)
switch ($status) {
case COMPONENT_ERROR:
if ($cd->get_error() == 'remotedownloaderror') {
$a = new stdClass();
$a->url = 'http://download.moodle.org/environment/environment.zip';
$a->dest= $CFG->dataroot.'/';
echo $OUTPUT->box(get_string($cd->get_error(), 'error', $a), 'errorbox');
} else {
echo $OUTPUT->box(get_string($cd->get_error(), 'error'), 'errorbox');
}
break;
case COMPONENT_UPTODATE:
echo $OUTPUT->box(get_string($cd->get_error(), 'error'));
break;
case COMPONENT_INSTALLED:
echo $OUTPUT->box(get_string('componentinstalled', 'admin'));
break;
}
}
}
/// Start of main box
echo $OUTPUT->box_start();
echo "<div style=\"text-align:center\">".$stradminhelpenvironment."</div><br />";
/// Get current Moodle version
$current_version = $CFG->release;
/// Calculate list of versions
$versions = array();
if ($contents = load_environment_xml()) {
if ($env_versions = get_list_of_environment_versions($contents)) {
/// Set the current version at the beginning
$env_version = normalize_version($current_version); //We need this later (for the upwards)
$versions[$env_version] = $current_version;
/// If no version has been previously selected, default to $current_version
if (empty($version)) {
$version = $env_version;
}
///Iterate over each version, adding bigger than current
foreach ($env_versions as $env_version) {
if (version_compare(normalize_version($current_version), $env_version, '<')) {
$versions[$env_version] = $env_version;
} else {
print_error($cd->get_error(), 'error', $PAGE->url);
die();
}
}
/// Add 'upwards' to the last element
$versions[$env_version] = $env_version.' '.$strupwards;
} else {
$versions = array('error' => $strerror);
case COMPONENT_UPTODATE:
redirect($PAGE->url, get_string($cd->get_error(), 'error'));
die;
case COMPONENT_INSTALLED:
redirect($PAGE->url, get_string('componentinstalled', 'admin'));
die;
}
}
}
/// Print form and popup menu
echo '<div style="text-align:center"> ';
$select = new single_select(new moodle_url('/admin/environment.php'), 'version', $versions, $version, null);
$select->label = $strmoodleversion;
echo $OUTPUT->render($select);
echo '</div>';
// Get current Moodle version
$current_version = $CFG->release;
/// End of main box
echo $OUTPUT->box_end();
// Calculate list of versions
$versions = array();
if ($contents = load_environment_xml()) {
if ($env_versions = get_list_of_environment_versions($contents)) {
// Set the current version at the beginning
$env_version = normalize_version($current_version); //We need this later (for the upwards)
$versions[$env_version] = $current_version;
// If no version has been previously selected, default to $current_version
if (empty($version)) {
$version = $env_version;
}
//Iterate over each version, adding bigger than current
foreach ($env_versions as $env_version) {
if (version_compare(normalize_version($current_version), $env_version, '<')) {
$versions[$env_version] = $env_version;
}
}
// Add 'upwards' to the last element
$versions[$env_version] = $env_version.' '.get_string('upwards', 'admin');
} else {
$versions = array('error' => get_string('error'));
}
}
/// Gather and show results
$status = check_moodle_environment($version, $environment_results);
/// Print footer
echo $OUTPUT->footer();
// Get the results of the environment check.
list($envstatus, $environment_results) = check_moodle_environment($version);
// Display the page.
$output = $PAGE->get_renderer('core', 'admin');
echo $output->environment_check_page($versions, $version, $envstatus, $environment_results);
+344 -10
View File
@@ -214,11 +214,7 @@
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mysql" version="5.0.25">
<FEEDBACK>
<ON_ERROR message="mysql416required" />
</FEEDBACK>
</VENDOR>
<VENDOR name="mysql" version="5.0.25" />
<VENDOR name="postgres" version="8.3" />
<VENDOR name="mssql" version="9.0" />
<VENDOR name="odbc_mssql" version="9.0" />
@@ -335,11 +331,7 @@
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mysql" version="5.0.25">
<FEEDBACK>
<ON_ERROR message="mysql416required" />
</FEEDBACK>
</VENDOR>
<VENDOR name="mysql" version="5.0.25" />
<VENDOR name="postgres" version="8.3" />
<VENDOR name="mssql" version="9.0" />
<VENDOR name="odbc_mssql" version="9.0" />
@@ -442,4 +434,346 @@
</PHP_SETTING>
</PHP_SETTINGS>
</MOODLE>
<MOODLE version="2.2" requires="1.9">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mysql" version="5.0.25" />
<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>
<MOODLE version="2.3" requires="2.2">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mysql" version="5.1.33" />
<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>
<PCREUNICODE level="optional">
<FEEDBACK>
<ON_CHECK message="pcreunicodewarning" />
</FEEDBACK>
</PCREUNICODE>
<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_EXTENSION name="hash" level="required"/>
</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>
<MOODLE version="2.4" requires="2.2">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mysql" version="5.1.33" />
<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>
<PCREUNICODE level="optional">
<FEEDBACK>
<ON_CHECK message="pcreunicodewarning" />
</FEEDBACK>
</PCREUNICODE>
<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_EXTENSION name="hash" level="required"/>
</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>
+2
View File
@@ -242,6 +242,7 @@ function get_table_row($filterinfo, $isfirstrow, $islastactive, $applytostrings)
// Disable/off/on
$select = new single_select(filters_action_url($filter, 'setstate'), 'newstate', $activechoices, $filterinfo->active, null, 'active' . basename($filter));
$select->set_label(get_string('isactive', 'filters'), array('class' => 'accesshide'));
$row[] = $OUTPUT->render($select);
// Re-order
@@ -263,6 +264,7 @@ function get_table_row($filterinfo, $isfirstrow, $islastactive, $applytostrings)
// Apply to strings.
$select = new single_select(filters_action_url($filter, 'setapplyto'), 'stringstoo', $applytochoices, $applytostrings, null, 'applyto' . basename($filter));
$select->set_label(get_string('applyto', 'filters'), array('class' => 'accesshide'));
$select->disabled = $filterinfo->active == TEXTFILTER_DISABLED;
$row[] = $OUTPUT->render($select);
-1336
View File
File diff suppressed because it is too large Load Diff
+6 -2
View File
@@ -39,13 +39,17 @@ while(!feof($fd)) {
$action = clam_handle_infected_file($file,$log->userid,true);
clam_replace_infected_file($file);
list($ctxselect, $ctxjoin) = context_instance_preload_sql('c.id', CONTEXT_COURSE, 'ctx');
$sql = "SELECT c.id, c.fullname $ctxselect FROM {course} c $ctxjoin WHERE c.id = :courseid";
$course = $DB->get_record_sql($sql, array('courseid' => $log->course));
context_instance_preload($course);
$user = $DB->get_record("user", array("id"=>$log->userid));
$course = $DB->get_record("course", array("id"=>$log->course));
$subject = get_string('virusfoundsubject','moodle',format_string($site->fullname));
$a->date = userdate($log->time);
$a->action = $action;
$a->course = $course->fullname;
$a->course = format_string($course->fullname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id)));
$a->user = fullname($user);
notify_user($user,$subject,$a);
-790
View File
@@ -1,790 +0,0 @@
<?php
ob_start(); //for whitespace test
require_once('../config.php');
// extra whitespace test - intentionally breaks cookieless mode
$extraws = '';
while (ob_get_level()) {
$extraws .= ob_get_contents();
ob_end_clean();
}
require_once($CFG->libdir.'/adminlib.php');
admin_externalpage_setup('healthcenter');
define('SEVERITY_NOTICE', 'notice');
define('SEVERITY_ANNOYANCE', 'annoyance');
define('SEVERITY_SIGNIFICANT', 'significant');
define('SEVERITY_CRITICAL', 'critical');
$solution = optional_param('solution', 0, PARAM_SAFEDIR); //in fact it is class name alhanumeric and _
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
$site = get_site();
echo $OUTPUT->header();
echo <<<STYLES
<style type="text/css">
div#healthnoproblemsfound {
width: 60%;
margin: auto;
padding: 1em;
border: 1px black solid;
-moz-border-radius: 6px;
}
dl.healthissues {
width: 60%;
margin: auto;
}
dl.critical dt, dl.critical dd {
background-color: #a71501;
}
dl.significant dt, dl.significant dd {
background-color: #d36707;
}
dl.annoyance dt, dl.annoyance dd {
background-color: #dba707;
}
dl.notice dt, dl.notice dd {
background-color: #e5db36;
}
dt.solution, dd.solution, div#healthnoproblemsfound {
background-color: #5BB83E !important;
}
dl.healthissues dt, dl.healthissues dd {
margin: 0px;
padding: 1em;
border: 1px black solid;
}
dl.healthissues dt {
font-weight: bold;
border-bottom: none;
padding-bottom: 0.5em;
}
dl.healthissues dd {
border-top: none;
padding-top: 0.5em;
margin-bottom: 10px;
}
dl.healthissues dd form {
margin-top: 0.5em;
text-align: right;
}
form#healthformreturn {
text-align: center;
margin: 2em;
}
dd.solution p {
padding: 0px;
margin: 1em 0px;
}
dd.solution li {
margin-top: 1em;
}
</style>
STYLES;
if(strpos($solution, 'problem_') === 0 && class_exists($solution)) {
health_print_solution($solution);
}
else {
health_find_problems();
}
echo $OUTPUT->footer();
function health_find_problems() {
global $OUTPUT;
echo $OUTPUT->heading(get_string('healthcenter'));
$issues = array(
SEVERITY_CRITICAL => array(),
SEVERITY_SIGNIFICANT => array(),
SEVERITY_ANNOYANCE => array(),
SEVERITY_NOTICE => array(),
);
$problems = 0;
for($i = 1; $i < 1000000; ++$i) {
$classname = sprintf('problem_%06d', $i);
if(!class_exists($classname)) {
break;
}
$problem = new $classname;
if($problem->exists()) {
$severity = $problem->severity();
$issues[$severity][$classname] = array(
'severity' => $severity,
'description' => $problem->description(),
'title' => $problem->title()
);
++$problems;
}
unset($problem);
}
if($problems == 0) {
echo '<div id="healthnoproblemsfound">';
echo get_string('healthnoproblemsfound');
echo '</div>';
}
else {
echo $OUTPUT->heading(get_string('healthproblemsdetected'));
$severities = array(SEVERITY_CRITICAL, SEVERITY_SIGNIFICANT, SEVERITY_ANNOYANCE, SEVERITY_NOTICE);
foreach($severities as $severity) {
if(!empty($issues[$severity])) {
echo '<dl class="healthissues '.$severity.'">';
foreach($issues[$severity] as $classname => $data) {
echo '<dt id="'.$classname.'">'.$data['title'].'</dt>';
echo '<dd>'.$data['description'];
echo '<form action="health.php#solution" method="get">';
echo '<input type="hidden" name="solution" value="'.$classname.'" /><input type="submit" value="'.get_string('viewsolution').'" />';
echo '</form></dd>';
}
echo '</dl>';
}
}
}
}
function health_print_solution($classname) {
global $OUTPUT;
$problem = new $classname;
$data = array(
'title' => $problem->title(),
'severity' => $problem->severity(),
'description' => $problem->description(),
'solution' => $problem->solution()
);
echo $OUTPUT->heading(get_string('healthcenter'));
echo $OUTPUT->heading(get_string('healthproblemsolution'));
echo '<dl class="healthissues '.$data['severity'].'">';
echo '<dt>'.$data['title'].'</dt>';
echo '<dd>'.$data['description'].'</dd>';
echo '<dt id="solution" class="solution">'.get_string('healthsolution').'</dt>';
echo '<dd class="solution">'.$data['solution'].'</dd></dl>';
echo '<form id="healthformreturn" action="health.php#'.$classname.'" method="get">';
echo '<input type="submit" value="'.get_string('healthreturntomain').'" />';
echo '</form>';
}
class problem_base {
function exists() {
return false;
}
function title() {
return '???';
}
function severity() {
return SEVERITY_NOTICE;
}
function description() {
return '';
}
function solution() {
return '';
}
}
class problem_000002 extends problem_base {
function title() {
return 'Extra characters at the end of config.php or other library function';
}
function exists() {
global $extraws;
if($extraws === '') {
return false;
}
return true;
}
function severity() {
return SEVERITY_SIGNIFICANT;
}
function description() {
return 'Your Moodle configuration file config.php or another library file, contains some characters after the closing PHP tag (?>). This causes Moodle to exhibit several kinds of problems (such as broken downloaded files) and must be fixed.';
}
function solution() {
global $CFG;
return 'You need to edit <strong>'.$CFG->dirroot.'/config.php</strong> and remove all characters (including spaces and returns) after the ending ?> tag. These two characters should be the very last in that file. The extra trailing whitespace may be also present in other PHP files that are included from lib/setup.php.';
}
}
class problem_000003 extends problem_base {
function title() {
return '$CFG->dataroot does not exist or does not have write permissions';
}
function exists() {
global $CFG;
if(!is_dir($CFG->dataroot) || !is_writable($CFG->dataroot)) {
return true;
}
return false;
}
function severity() {
return SEVERITY_SIGNIFICANT;
}
function description() {
global $CFG;
return 'Your <strong>config.php</strong> says that your "data root" directory is <strong>'.$CFG->dataroot.'</strong>. However, this directory either does not exist or cannot be written to by Moodle. This means that a variety of problems will be present, such as users not being able to log in and not being able to upload any files. It is imperative that you address this problem for Moodle to work correctly.';
}
function solution() {
global $CFG;
return 'First of all, make sure that the directory <strong>'.$CFG->dataroot.'</strong> exists. If the directory does exist, then you must make sure that Moodle is able to write to it. Contact your web server administrator and request that he gives write permissions for that directory to the user that the web server process is running as.';
}
}
class problem_000004 extends problem_base {
function title() {
return 'cron.php is not set up to run automatically';
}
function exists() {
global $DB;
$lastcron = $DB->get_field_sql('SELECT max(lastcron) FROM {modules}');
return (time() - $lastcron > 3600 * 24);
}
function severity() {
return SEVERITY_SIGNIFICANT;
}
function description() {
return 'The cron.php mainenance script has not been run in the past 24 hours. This probably means that your server is not configured to automatically run this script in regular time intervals. If this is the case, then Moodle will mostly work as it should but some operations (notably sending email to users) will not be carried out at all.';
}
function solution() {
global $CFG;
return 'For detailed instructions on how to enable cron, see <a href="'.$CFG->wwwroot.'/doc/?file=install.html#cron">this section</a> of the installation manual.';
}
}
class problem_000005 extends problem_base {
function title() {
return 'PHP: session.auto_start is enabled';
}
function exists() {
return ini_get_bool('session.auto_start');
}
function severity() {
return SEVERITY_CRITICAL;
}
function description() {
return 'Your PHP configuration includes an enabled setting, session.auto_start, that <strong>must be disabled</strong> in order for Moodle to work correctly. Notable symptoms arising from this misconfiguration include fatal errors and/or blank pages when trying to log in.';
}
function solution() {
global $CFG;
return '<p>There are two ways you can solve this problem:</p><ol><li>If you have access to your main <strong>php.ini</strong> file, then find the line that looks like this: <pre>session.auto_start = 1</pre> and change it to <pre>session.auto_start = 0</pre> and then restart your web server. Be warned that this, as any other PHP setting change, might affect other web applications running on the server.</li><li>Finally, you may be able to change this setting just for your site by creating or editing the file <strong>'.$CFG->dirroot.'/.htaccess</strong> to contain this line: <pre>php_value session.auto_start "0"</pre></li></ol>';
}
}
class problem_000006 extends problem_base {
function title() {
return 'PHP: magic_quotes_runtime is enabled';
}
function exists() {
return (ini_get_bool('magic_quotes_runtime'));
}
function severity() {
return SEVERITY_SIGNIFICANT;
}
function description() {
return 'Your PHP configuration includes an enabled setting, magic_quotes_runtime, that <strong>must be disabled</strong> in order for Moodle to work correctly. Notable symptoms arising from this misconfiguration include strange display errors whenever a text field that includes single or double quotes is processed.';
}
function solution() {
global $CFG;
return '<p>There are two ways you can solve this problem:</p><ol><li>If you have access to your main <strong>php.ini</strong> file, then find the line that looks like this: <pre>magic_quotes_runtime = On</pre> and change it to <pre>magic_quotes_runtime = Off</pre> and then restart your web server. Be warned that this, as any other PHP setting change, might affect other web applications running on the server.</li><li>Finally, you may be able to change this setting just for your site by creating or editing the file <strong>'.$CFG->dirroot.'/.htaccess</strong> to contain this line: <pre>php_value magic_quotes_runtime "Off"</pre></li></ol>';
}
}
class problem_000007 extends problem_base {
function title() {
return 'PHP: file_uploads is disabled';
}
function exists() {
return !ini_get_bool('file_uploads');
}
function severity() {
return SEVERITY_SIGNIFICANT;
}
function description() {
return 'Your PHP configuration includes a disabled setting, file_uploads, that <strong>must be enabled</strong> to let Moodle offer its full functionality. Until this setting is enabled, it will not be possible to upload any files into Moodle. This includes, for example, course content and user pictures.';
}
function solution() {
global $CFG;
return '<p>There are two ways you can solve this problem:</p><ol><li>If you have access to your main <strong>php.ini</strong> file, then find the line that looks like this: <pre>file_uploads = Off</pre> and change it to <pre>file_uploads = On</pre> and then restart your web server. Be warned that this, as any other PHP setting change, might affect other web applications running on the server.</li><li>Finally, you may be able to change this setting just for your site by creating or editing the file <strong>'.$CFG->dirroot.'/.htaccess</strong> to contain this line: <pre>php_value file_uploads "On"</pre></li></ol>';
}
}
class problem_000008 extends problem_base {
function title() {
return 'PHP: memory_limit cannot be controlled by Moodle';
}
function exists() {
global $CFG;
$oldmemlimit = @ini_get('memory_limit');
if (empty($oldmemlimit)) {
// PHP not compiled with memory limits, this means that it's
// probably limited to 8M or in case of Windows not at all.
// We can ignore it for now - there is not much to test anyway
// TODO: add manual test that fills memory??
return false;
}
$oldmemlimit = get_real_size($oldmemlimit);
//now lets change the memory limit to something higher
$newmemlimit = ($oldmemlimit + 1024*1024*5);
raise_memory_limit($newmemlimit);
$testmemlimit = get_real_size(@ini_get('memory_limit'));
//verify the change had any effect at all
if ($oldmemlimit == $testmemlimit) {
//memory limit can not be changed - is it big enough then?
if ($oldmemlimit < get_real_size('128M')) {
return true;
} else {
return false;
}
}
reduce_memory_limit($oldmemlimit);
return false;
}
function severity() {
return SEVERITY_NOTICE;
}
function description() {
return 'The settings for PHP on your server do not allow a script to request more memory during its execution. '.
'This means that there is a hard limit of '.@ini_get('memory_limit').' for each script. '.
'It is possible that certain operations within Moodle will require more than this amount in order '.
'to complete successfully, especially if there are lots of data to be processed.';
}
function solution() {
return 'It is recommended that you contact your web server administrator to address this issue.';
}
}
class problem_000009 extends problem_base {
function title() {
return 'SQL: using account without password';
}
function exists() {
global $CFG;
return empty($CFG->dbpass);
}
function severity() {
return SEVERITY_CRITICAL;
}
function description() {
global $CFG;
return 'The user account your are connecting to the database server with is set up without a password. This is a very big security risk and is only somewhat lessened if your database is configured to not accept connections from any hosts other than the server Moodle is running on. Unless you use a strong password to connect to the database, you risk unauthorized access to and manipulation of your data.'.($CFG->dbuser != 'root'?'':' <strong>This is especially alarming because such access to the database would be as the superuser (root)!</strong>');
}
function solution() {
global $CFG;
return 'You should change the password of the user <strong>'.$CFG->dbuser.'</strong> both in your database and in your Moodle <strong>config.php</strong> immediately!'.($CFG->dbuser != 'root'?'':' It would also be a good idea to change the user account from root to something else, because this would lessen the impact in the event that your database is compromised anyway.');
}
}
/* // not implemented in 2.0 yet
class problem_000010 extends problem_base {
function title() {
return 'Uploaded files: slasharguments disabled or not working';
}
function exists() {
if (!$this->is_enabled()) {
return true;
}
if ($this->status() < 1) {
return true;
}
return false;
}
function severity() {
if ($this->is_enabled() and $this->status() == 0) {
return SEVERITY_SIGNIFICANT;
} else {
return SEVERITY_ANNOYANCE;
}
}
function description() {
global $CFG;
$desc = 'Slasharguments are needed for relative linking in uploaded resources:<ul>';
if (!$this->is_enabled()) {
$desc .= '<li>slasharguments are <strong>disabled</strong> in Moodle configuration</li>';
} else {
$desc .= '<li>slasharguments are enabled in Moodle configuration</li>';
}
if ($this->status() == -1) {
$desc .= '<li>can not run automatic test, you can verify it <a href="'.$CFG->wwwroot.'/file.php/testslasharguments" target="_blank">here</a> manually</li>';
} else if ($this->status() == 0) {
$desc .= '<li>slashargument test <strong>failed</strong>, please check server configuration</li>';
} else {
$desc .= '<li>slashargument test passed</li>';
}
$desc .= '</ul>';
return $desc;
}
function solution() {
global $CFG;
$enabled = $this->is_enabled();
$status = $this->status();
$solution = '';
if ($enabled and ($status == 0)) {
$solution .= 'Slasharguments are enabled, but the test failed. Please disable slasharguments in Moodle configuration or fix the server configuration.<hr />';
} else if ((!$enabled) and ($status == 0)) {
$solution .= 'Slasharguments are disabled and the test failed. You may try to fix the server configuration.<hr />';
} else if ($enabled and ($status == -1)) {
$solution .= 'Slasharguments are enabled, <a href="'.$CFG->wwwroot.'/file.php/testslasharguments">automatic testing</a> not possible.<hr />';
} else if ((!$enabled) and ($status == -1)) {
$solution .= 'Slasharguments are disabled, <a href="'.$CFG->wwwroot.'/file.php/testslasharguments">automatic testing</a> not possible.<hr />';
} else if ((!$enabled) and ($status > 0)) {
$solution .= 'Slasharguments are disabled though the iternal test is OK. You should enable slasharguments in Moodle configuration.';
} else if ($enabled and ($status > 0)) {
$solution .= 'Congratulations - everything seems OK now :-D';
}
if ($status < 1) {
$solution .= '<p>IIS:<ul><li>try to add <code>cgi.fix_pathinfo=1</code> to php.ini</li><li>do NOT enable AllowPathInfoForScriptMappings !!!</li><li>slasharguments may not work when using ISAPI and PHP 4.3.10 and older</li></ul></p>';
$solution .= '<p>Apache 1:<ul><li>try to add <code>cgi.fix_pathinfo=1</code> to php.ini</li></ul></p>';
$solution .= '<p>Apache 2:<ul><li>you must add <code>AcceptPathInfo on</code> to php.ini or .htaccess</li><li>try to add <code>cgi.fix_pathinfo=1</code> to php.ini</li></ul></p>';
}
return $solution;
}
function is_enabled() {
global $CFG;
return !empty($CFG->slasharguments);
}
function status() {
global $CFG;
$handle = @fopen($CFG->wwwroot.'/file.php?file=/testslasharguments', "r");
$contents = @trim(fread($handle, 10));
@fclose($handle);
if ($contents != 'test -1') {
return -1;
}
$handle = @fopen($CFG->wwwroot.'/file.php/testslasharguments', "r");
$contents = trim(@fread($handle, 10));
@fclose($handle);
switch ($contents) {
case 'test 1': return 1;
case 'test 2': return 2;
default: return 0;
}
}
}*/
class problem_000012 extends problem_base {
function title() {
return 'Random questions data consistency';
}
function exists() {
global $DB;
return $DB->record_exists_select('question', "qtype = 'random' AND parent <> id", array());
}
function severity() {
return SEVERITY_ANNOYANCE;
}
function description() {
return '<p>For random questions, question.parent should equal question.id. ' .
'There are some questions in your database for which this is not true. ' .
'One way that this could have happened is for random questions restored from backup before ' .
'<a href="http://tracker.moodle.org/browse/MDL-5482">MDL-5482</a> was fixed.</p>';
}
function solution() {
global $CFG;
return '<p>Upgrade to Moodle 1.9.1 or later, or manually execute the SQL</p>' .
'<pre>UPDATE ' . $CFG->prefix . 'question SET parent = id WHERE qtype = \'random\' and parent &lt;> id;</pre>';
}
}
class problem_000013 extends problem_base {
function title() {
return 'Multi-answer questions data consistency';
}
function exists() {
global $DB;
$positionexpr = $DB->sql_position($DB->sql_concat("','", "q.id", "','"),
$DB->sql_concat("','", "qma.sequence", "','"));
return $DB->record_exists_sql("
SELECT * FROM {question} q
JOIN {question_multianswer} qma ON $positionexpr > 0
WHERE qma.question <> q.parent") ||
$DB->record_exists_sql("
SELECT * FROM {question} q
JOIN {question} parent_q ON parent_q.id = q.parent
WHERE q.category <> parent_q.category");
}
function severity() {
return SEVERITY_ANNOYANCE;
}
function description() {
return '<p>For each sub-question whose id is listed in ' .
'question_multianswer.sequence, its question.parent field should equal ' .
'question_multianswer.question; and each sub-question should be in the same ' .
'category as its parent. There are questions in your database for ' .
'which this is not the case. One way that this could have happened is ' .
'for multi-answer questions restored from backup before ' .
'<a href="http://tracker.moodle.org/browse/MDL-14750">MDL-14750</a> was fixed.</p>';
}
function solution() {
return '<p>Upgrade to Moodle 1.9.1 or later, or manually execute the ' .
'code in question_multianswer_fix_subquestion_parents_and_categories in ' .
'<a href="http://cvs.moodle.org/moodle/question/type/multianswer/db/upgrade.php?revision=1.1.10.2&amp;view=markup">/question/type/multianswer/db/upgrade.php' .
'from the 1.9 stable branch</a>.</p>';
}
}
class problem_000014 extends problem_base {
function title() {
return 'Only multianswer and random questions should be the parent of another question';
}
function exists() {
global $DB;
return $DB->record_exists_sql("
SELECT * FROM {question} q
JOIN {question} parent_q ON parent_q.id = q.parent
WHERE parent_q.qtype NOT IN ('random', 'multianswer')");
}
function severity() {
return SEVERITY_ANNOYANCE;
}
function description() {
return '<p>You have questions that violate this in your databse. ' .
'You will need to investigate to determine how this happened.</p>';
}
function solution() {
return '<p>It is impossible to give a solution without knowing more about ' .
' how the problem was caused. You may be able to get help from the ' .
'<a href="http://moodle.org/mod/forum/view.php?f=121">Quiz forum</a>.</p>';
}
}
class problem_000015 extends problem_base {
function title() {
return 'Question categories should belong to a valid context';
}
function exists() {
global $DB;
return $DB->record_exists_sql("
SELECT qc.*, (SELECT COUNT(1) FROM {question} q WHERE q.category = qc.id) AS numquestions
FROM {question_categories} qc
LEFT JOIN {context} con ON qc.contextid = con.id
WHERE con.id IS NULL");
}
function severity() {
return SEVERITY_ANNOYANCE;
}
function description() {
global $DB;
$problemcategories = $DB->get_records_sql("
SELECT qc.id, qc.name, qc.contextid, (SELECT COUNT(1) FROM {question} q WHERE q.category = qc.id) AS numquestions
FROM {question_categories} qc
LEFT JOIN {context} con ON qc.contextid = con.id
WHERE con.id IS NULL
ORDER BY numquestions DESC, qc.name");
$table = '<table><thead><tr><th>Cat id</th><th>Category name</th>' .
"<th>Context id</th><th>Num Questions</th></tr></thead><tbody>\n";
foreach ($problemcategories as $cat) {
$table .= "<tr><td>$cat->id</td><td>" . s($cat->name) . "</td><td>" .
$cat->contextid ."</td><td>$cat->numquestions</td></tr>\n";
}
$table .= '</tbody></table>';
return '<p>All question categories are linked to a context id, and, ' .
'the context they are linked to must exist. The following categories ' .
'belong to a non-existant category:</p>' . $table . '<p>Any of these ' .
'categories that contain no questions can just be deleted form the database. ' .
'Other categories will require more thought.</p>';
}
function solution() {
global $CFG;
return '<p>You can delete the empty categories by executing the following SQL:</p><pre>
DELETE FROM ' . $CFG->prefix . 'question_categories
WHERE
NOT EXISTS (SELECT * FROM ' . $CFG->prefix . 'question q WHERE q.category = ' . $CFG->prefix . 'question_categories.id)
AND NOT EXISTS (SELECT * FROM ' . $CFG->prefix . 'context con WHERE contextid = con.id)
</pre><p>Any remaining categories that contain questions will require more thought. ' .
'People in the <a href="http://moodle.org/mod/forum/view.php?f=121">Quiz forum</a> may be able to help.</p>';
}
}
class problem_000016 extends problem_base {
function title() {
return 'Question categories should belong to the same context as their parent';
}
function exists() {
global $DB;
return $DB->record_exists_sql("
SELECT parent_qc.id AS parent, child_qc.id AS child, child_qc.contextid
FROM {question_categories} child_qc
JOIN {question_categories} parent_qc ON child_qc.parent = parent_qc.id
WHERE child_qc.contextid <> parent_qc.contextid");
}
function severity() {
return SEVERITY_ANNOYANCE;
}
function description() {
global $DB;
$problemcategories = $DB->get_records_sql("
SELECT
parent_qc.id AS parentid, parent_qc.name AS parentname, parent_qc.contextid AS parentcon,
child_qc.id AS childid, child_qc.name AS childname, child_qc.contextid AS childcon
FROM {question_categories} child_qc
JOIN {question_categories} parent_qc ON child_qc.parent = parent_qc.id
WHERE child_qc.contextid <> parent_qc.contextid");
$table = '<table><thead><tr><th colspan="3">Child category</th><th colspan="3">Parent category</th></tr><tr>' .
'<th>Id</th><th>Name</th><th>Context id</th>' .
'<th>Id</th><th>Name</th><th>Context id</th>' .
"</tr></thead><tbody>\n";
foreach ($problemcategories as $cat) {
$table .= "<tr><td>$cat->childid</td><td>" . s($cat->childname) .
"</td><td>$cat->childcon</td><td>$cat->parentid</td><td>" . s($cat->parentname) .
"</td><td>$cat->parentcon</td></tr>\n";
}
$table .= '</tbody></table>';
return '<p>When one question category is the parent of another, then they ' .
'should both belong to the same context. This is not true for the following categories:</p>' .
$table;
}
function solution() {
return '<p>An automated solution is difficult. It depends whether the ' .
'parent or child category is in the wrong pace.' .
'People in the <a href="http://moodle.org/mod/forum/view.php?f=121">Quiz forum</a> may be able to help.</p>';
}
}
class problem_000017 extends problem_base {
function title() {
return 'Question categories tree structure';
}
function find_problems() {
global $DB;
static $answer = null;
if (is_null($answer)) {
$categories = $DB->get_records('question_categories', array(), 'id');
// Look for missing parents.
$missingparent = array();
foreach ($categories as $category) {
if ($category->parent != 0 && !array_key_exists($category->parent, $categories)) {
$missingparent[$category->id] = $category;
}
}
// Look for loops.
$loops = array();
while (!empty($categories)) {
$current = array_pop($categories);
$thisloop = array($current->id => $current);
while (true) {
if (isset($thisloop[$current->parent])) {
// Loop detected
$loops[$current->id] = $thisloop;
break;
} else if (!isset($categories[$current->parent])) {
// Got to the top level, or a category we already know is OK.
break;
} else {
// Continue following the path.
$current = $categories[$current->parent];
$thisloop[$current->id] = $current;
unset($categories[$current->id]);
}
}
}
$answer = array($missingparent, $loops);
}
return $answer;
}
function exists() {
list($missingparent, $loops) = $this->find_problems();
return !empty($missingparent) || !empty($loops);
}
function severity() {
return SEVERITY_ANNOYANCE;
}
function description() {
list($missingparent, $loops) = $this->find_problems();
$description = '<p>The question categories should be arranged into tree ' .
' structures by the question_categories.parent field. Sometimes ' .
' this tree structure gets messed up.</p>';
if (!empty($missingparent)) {
$description .= '<p>The following categories are missing their parents:</p><ul>';
foreach ($missingparent as $cat) {
$description .= "<li>Category $cat->id: " . s($cat->name) . "</li>\n";
}
$description .= "</ul>\n";
}
if (!empty($loops)) {
$description .= '<p>The following categories form a loop of parents:</p><ul>';
foreach ($loops as $loop) {
$description .= "<li><ul>\n";
foreach ($loop as $cat) {
$description .= "<li>Category $cat->id: " . s($cat->name) . " has parent $cat->parent</li>\n";
}
$description .= "</ul></li>\n";
}
$description .= "</ul>\n";
}
return $description;
}
function solution() {
global $CFG;
list($missingparent, $loops) = $this->find_problems();
$solution = '<p>Consider executing the following SQL queries. These fix ' .
'the problem by moving some categories to the top level.</p>';
if (!empty($missingparent)) {
$solution .= "<pre>UPDATE " . $CFG->prefix . "question_categories\n" .
" SET parent = 0\n" .
" WHERE id IN (" . implode(',', array_keys($missingparent)) . ");</pre>\n";
}
if (!empty($loops)) {
$solution .= "<pre>UPDATE " . $CFG->prefix . "question_categories\n" .
" SET parent = 0\n" .
" WHERE id IN (" . implode(',', array_keys($loops)) . ");</pre>\n";
}
return $solution;
}
}
class problem_00000x extends problem_base {
function title() {
return '';
}
function exists() {
return false;
}
function severity() {
return SEVERITY_SIGNIFICANT;
}
function description() {
return '';
}
function solution() {
global $CFG;
return '';
}
}
/*
TODO:
session.save_path -- it doesn't really matter because we are already IN a session, right?
detect unsupported characters in $CFG->wwwroot - see bug Bug #6091 - relative vs absolute path during backup/restore process
*/
+153 -173
View File
@@ -26,16 +26,23 @@
// Check that config.php exists, if not then call the install script
if (!file_exists('../config.php')) {
header('Location: ../install.php');
die;
die();
}
// Check that PHP is of a sufficient version as soon as possible
if (version_compare(phpversion(), '5.2.0') < 0) {
if (version_compare(phpversion(), '5.3.2') < 0) {
$phpversion = phpversion();
// do NOT localise - lang strings would not work here and we CAN NOT move it to later place
echo "Sorry, Moodle 2.0 requires PHP 5.2.8 or later (currently using version $phpversion). ";
echo "Please upgrade your server software or use latest Moodle 1.9.x instead.";
die;
echo "Moodle 2.1 or later requires at least PHP 5.3.2 (currently using version $phpversion).<br />";
echo "Please upgrade your server software or install older Moodle version.";
die();
}
// make sure iconv is available and actually works
if (!function_exists('iconv')) {
// this should not happen, this must be very borked install
echo 'Moodle requires the iconv PHP extension. Please install or enable the iconv extension.';
die();
}
define('NO_OUTPUT_BUFFERING', true);
@@ -43,6 +50,7 @@ define('NO_OUTPUT_BUFFERING', true);
require('../config.php');
require_once($CFG->libdir.'/adminlib.php'); // various admin-only functions
require_once($CFG->libdir.'/upgradelib.php'); // general upgrade/install related functions
require_once($CFG->libdir.'/pluginlib.php'); // available updates notifications
$id = optional_param('id', '', PARAM_TEXT);
$confirmupgrade = optional_param('confirmupgrade', 0, PARAM_BOOL);
@@ -50,6 +58,7 @@ $confirmrelease = optional_param('confirmrelease', 0, PARAM_BOOL);
$confirmplugins = optional_param('confirmplugincheck', 0, PARAM_BOOL);
$showallplugins = optional_param('showallplugins', 0, PARAM_BOOL);
$agreelicense = optional_param('agreelicense', 0, PARAM_BOOL);
$fetchupdates = optional_param('fetchupdates', 0, PARAM_BOOL);
// Check some PHP server settings
@@ -75,19 +84,20 @@ if (is_float_problem()) {
}
// Set some necessary variables during set-up to avoid PHP warnings later on this page
if (!isset($CFG->framename)) {
$CFG->framename = '_top';
}
if (!isset($CFG->release)) {
$CFG->release = '';
}
if (!isset($CFG->version)) {
$CFG->version = '';
}
if (!isset($CFG->branch)) {
$CFG->branch = '';
}
$version = null;
$release = null;
require("$CFG->dirroot/version.php"); // defines $version, $release and $maturity
$branch = null;
require("$CFG->dirroot/version.php"); // defines $version, $release, $branch and $maturity
$CFG->target_release = $release; // used during installation and upgrades
if (!$version or !$release) {
@@ -112,65 +122,57 @@ if (!core_tables_exist()) {
if (empty($agreelicense)) {
$strlicense = get_string('license');
$PAGE->navbar->add($strlicense);
$PAGE->set_title($strinstallation.' - Moodle '.$CFG->target_release);
$PAGE->set_heading($strinstallation);
$PAGE->set_cacheable(false);
echo $OUTPUT->header();
echo $OUTPUT->heading('<a href="http://moodle.org">Moodle</a> - Modular Object-Oriented Dynamic Learning Environment');
echo $OUTPUT->heading(get_string('copyrightnotice'));
$copyrightnotice = text_to_html(get_string('gpl3'));
$copyrightnotice = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $copyrightnotice); // extremely ugly validation hack
echo $OUTPUT->box($copyrightnotice, 'copyrightnotice');
echo '<br />';
$continue = new single_button(new moodle_url('/admin/index.php', array('lang'=>$CFG->lang, 'agreelicense'=>1)), get_string('continue'), 'get');
echo $OUTPUT->confirm(get_string('doyouagree'), $continue, "http://docs.moodle.org/en/License");
echo $OUTPUT->footer();
die;
$output = $PAGE->get_renderer('core', 'admin');
echo $output->install_licence_page();
die();
}
if (empty($confirmrelease)) {
require_once($CFG->libdir.'/environmentlib.php');
list($envstatus, $environment_results) = check_moodle_environment(normalize_version($release), ENV_SELECT_RELEASE);
$strcurrentrelease = get_string('currentrelease');
$PAGE->navbar->add($strcurrentrelease);
$PAGE->set_title($strinstallation);
$PAGE->set_heading($strinstallation . ' - Moodle ' . $CFG->target_release);
$PAGE->set_cacheable(false);
echo $OUTPUT->header();
echo $OUTPUT->heading("Moodle $release");
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/en/Release_Notes');
$releasenoteslink = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $releasenoteslink); // extremely ugly validation hack
echo $OUTPUT->box($releasenoteslink, 'generalbox releasenoteslink');
require_once($CFG->libdir.'/environmentlib.php');
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');
echo $OUTPUT->continue_button(new moodle_url('/admin/index.php', array('agreelicense'=>1, 'confirmrelease'=>1, 'lang'=>$CFG->lang)));
}
echo $OUTPUT->footer();
die;
$output = $PAGE->get_renderer('core', 'admin');
echo $output->install_environment_page($maturity, $envstatus, $environment_results, $release);
die();
}
// check plugin dependencies
$failed = array();
if (!plugin_manager::instance()->all_plugins_ok($version, $failed)) {
$PAGE->navbar->add(get_string('pluginscheck', 'admin'));
$PAGE->set_title($strinstallation);
$PAGE->set_heading($strinstallation . ' - Moodle ' . $CFG->target_release);
$output = $PAGE->get_renderer('core', 'admin');
$url = new moodle_url('/admin/index.php', array('agreelicense' => 1, 'confirmrelease' => 1, 'lang' => $CFG->lang));
echo $output->unsatisfied_dependencies_page($version, $failed, $url);
die();
}
unset($failed);
//TODO: add a page with list of non-standard plugins here
$strdatabasesetup = get_string('databasesetup');
upgrade_init_javascript();
$PAGE->navbar->add($strdatabasesetup);
$PAGE->set_title($strinstallation.' - Moodle '.$CFG->target_release);
$PAGE->set_heading($strinstallation);
$PAGE->set_cacheable(false);
echo $OUTPUT->header();
$output = $PAGE->get_renderer('core', 'admin');
echo $output->header();
if (!$DB->setup_is_unicodedb()) {
if (!$DB->change_db_encoding()) {
@@ -198,78 +200,74 @@ if ($version > $CFG->version) { // upgrade
$PAGE->set_pagelayout('maintenance');
$PAGE->set_popup_notification_allowed(false);
$a->oldversion = "$CFG->release ($CFG->version)";
$a->newversion = "$release ($version)";
$strdatabasechecking = get_string('databasechecking', '', $a);
if (upgrade_stale_php_files_present()) {
$PAGE->set_title($stradministration);
$PAGE->set_cacheable(false);
$output = $PAGE->get_renderer('core', 'admin');
echo $output->upgrade_stale_php_files_page();
die();
}
if (empty($confirmupgrade)) {
$a = new stdClass();
$a->oldversion = "$CFG->release ($CFG->version)";
$a->newversion = "$release ($version)";
$strdatabasechecking = get_string('databasechecking', '', $a);
$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);
echo $OUTPUT->footer();
exit;
$output = $PAGE->get_renderer('core', 'admin');
echo $output->upgrade_confirm_page($a->newversion, $maturity);
die();
} else if (empty($confirmrelease)){
require_once($CFG->libdir.'/environmentlib.php');
list($envstatus, $environment_results) = check_moodle_environment($release, ENV_SELECT_RELEASE);
$strcurrentrelease = get_string('currentrelease');
$PAGE->navbar->add($strcurrentrelease);
$PAGE->set_title($strcurrentrelease);
$PAGE->set_heading($strcurrentrelease);
$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 = str_replace('target="_blank"', 'onclick="this.target=\'_blank\'"', $releasenoteslink); // extremely ugly validation hack
echo $OUTPUT->box($releasenoteslink);
require_once($CFG->libdir.'/environmentlib.php');
if (!check_moodle_environment($release, $environment_results, true, ENV_SELECT_RELEASE)) {
print_upgrade_reload('index.php?confirmupgrade=1');
} else {
echo $OUTPUT->notification(get_string('environmentok', 'admin'), 'notifysuccess');
if (empty($CFG->skiplangupgrade)) {
echo $OUTPUT->box_start('generalbox', 'notice');
print_string('langpackwillbeupdated', 'admin');
echo $OUTPUT->box_end();
}
echo $OUTPUT->continue_button('index.php?confirmupgrade=1&confirmrelease=1');
}
$output = $PAGE->get_renderer('core', 'admin');
echo $output->upgrade_environment_page($release, $envstatus, $environment_results);
die();
echo $OUTPUT->footer();
die;
} elseif (empty($confirmplugins)) {
} else if (empty($confirmplugins)) {
$strplugincheck = get_string('plugincheck');
$PAGE->navbar->add($strplugincheck);
$PAGE->set_title($strplugincheck);
$PAGE->set_heading($strplugincheck);
$PAGE->set_cacheable(false);
$output = $PAGE->get_renderer('core', 'admin');
$pluginman = plugin_manager::instance();
echo $output->header();
echo $output->box_start('generalbox');
echo $output->container(get_string('pluginchecknotice', 'core_plugin'), 'generalbox', 'notice');
echo $output->plugins_check($pluginman->get_plugins(), array('full' => $showallplugins));
echo $output->box_end();
print_upgrade_reload('index.php?confirmupgrade=1&amp;confirmrelease=1');
$button = new single_button(new moodle_url('index.php', array('confirmupgrade'=>1, 'confirmrelease'=>1, 'confirmplugincheck'=>1)), get_string('upgradestart', 'admin'), 'get');
$button->class = 'continuebutton';
echo $output->render($button);
echo $output->footer();
$reloadurl = new moodle_url('/admin/index.php', array('confirmupgrade' => 1, 'confirmrelease' => 1));
// check plugin dependencies first
$failed = array();
if (!plugin_manager::instance()->all_plugins_ok($version, $failed)) {
$output = $PAGE->get_renderer('core', 'admin');
echo $output->unsatisfied_dependencies_page($version, $failed, $reloadurl);
die();
}
unset($failed);
if ($fetchupdates) {
// no sesskey support guaranteed here
if (empty($CFG->disableupdatenotifications)) {
available_update_checker::instance()->fetch();
}
redirect($reloadurl);
}
$output = $PAGE->get_renderer('core', 'admin');
echo $output->upgrade_plugin_check_page(plugin_manager::instance(), available_update_checker::instance(),
$version, $showallplugins, $reloadurl,
new moodle_url('/admin/index.php', array('confirmupgrade'=>1, 'confirmrelease'=>1, 'confirmplugincheck'=>1)));
die();
} else {
@@ -286,30 +284,44 @@ if ($release <> $CFG->release) { // Update the release version
set_config('release', $release);
}
if ($branch <> $CFG->branch) { // Update the branch
set_config('branch', $branch);
}
if (moodle_needs_upgrading()) {
if (!$PAGE->headerprinted) {
// means core upgrade or installation was not already done
if (!$confirmplugins) {
$strplugincheck = get_string('plugincheck');
$PAGE->set_pagelayout('maintenance');
$PAGE->set_popup_notification_allowed(false);
$strplugincheck = get_string('plugincheck');
$PAGE->navbar->add($strplugincheck);
$PAGE->set_title($strplugincheck);
$PAGE->set_heading($strplugincheck);
$PAGE->set_cacheable(false);
$output = $PAGE->get_renderer('core', 'admin');
$pluginman = plugin_manager::instance();
echo $output->header();
echo $output->box_start('generalbox');
echo $output->container(get_string('pluginchecknotice', 'core_plugin'), 'generalbox', 'notice');
echo $output->plugins_check($pluginman->get_plugins(), array('full' => $showallplugins));
echo $output->box_end();
print_upgrade_reload('index.php');
$button = new single_button(new moodle_url('index.php', array('confirmplugincheck'=>1)), get_string('upgradestart', 'admin'), 'get');
$button->class = 'continuebutton';
echo $output->render($button);
echo $output->footer();
if ($fetchupdates) {
// no sesskey support guaranteed here
available_update_checker::instance()->fetch();
redirect($PAGE->url);
}
$output = $PAGE->get_renderer('core', 'admin');
// check plugin dependencies first
$failed = array();
if (!plugin_manager::instance()->all_plugins_ok($version, $failed)) {
echo $output->unsatisfied_dependencies_page($version, $failed, $PAGE->url);
die();
}
unset($failed);
// dependencies check passed, let's rock!
echo $output->upgrade_plugin_check_page(plugin_manager::instance(), available_update_checker::instance(),
$version, $showallplugins,
new moodle_url($PAGE->url),
new moodle_url('/admin/index.php', array('confirmplugincheck'=>1)));
die();
}
}
@@ -345,8 +357,9 @@ if (during_initial_install()) {
}
}
// at this stage there can be only one admin - users may change username, so do not rely on that
$adminuser = get_complete_user_data('id', $CFG->siteadmins);
// at this stage there can be only one admin unless more were added by install - users may change username, so do not rely on that
$adminids = explode(',', $CFG->siteadmins);
$adminuser = get_complete_user_data('id', reset($adminids));
if ($adminuser->password === 'adminsetuppending') {
// prevent installation hijacking
@@ -355,7 +368,7 @@ if (during_initial_install()) {
}
// login user and let him set password and admin details
$adminuser->newadminuser = 1;
complete_user_login($adminuser, false);
complete_user_login($adminuser);
redirect("$CFG->wwwroot/user/editadvanced.php?id=$adminuser->id"); // Edit thyself
} else {
@@ -404,64 +417,31 @@ if (any_new_admin_settings($adminroot)){
// Everything should now be set up, and the user is an admin
// Print default admin page with notifications.
admin_externalpage_setup('adminnotifications');
echo $OUTPUT->header();
$errorsdisplayed = defined('WARN_DISPLAY_ERRORS_ENABLED');
// Unstable code warning
if (isset($maturity)) {
if ($maturity < MATURITY_STABLE) {
$maturitylevel = get_string('maturity'.$maturity, 'admin');
echo $OUTPUT->box(
get_string('maturitycoreinfo', 'admin', $maturitylevel) . ' ' .
$OUTPUT->doc_link('admin/versions', get_string('morehelp')),
'generalbox adminwarning maturityinfo');
}
}
if ($insecuredataroot == INSECURE_DATAROOT_WARNING) {
echo $OUTPUT->box(get_string('datarootsecuritywarning', 'admin', $CFG->dataroot), 'generalbox adminwarning');
} else if ($insecuredataroot == INSECURE_DATAROOT_ERROR) {
echo $OUTPUT->box(get_string('datarootsecurityerror', 'admin', $CFG->dataroot), 'generalbox adminerror');
}
if (defined('WARN_DISPLAY_ERRORS_ENABLED')) {
echo $OUTPUT->box(get_string('displayerrorswarning', 'admin'), 'generalbox adminwarning');
}
// If no recently cron run
$lastcron = $DB->get_field_sql('SELECT MAX(lastcron) FROM {modules}');
if (time() - $lastcron > 3600 * 24) {
$helpbutton = $OUTPUT->help_icon('cron', 'admin');
echo $OUTPUT->box(get_string('cronwarning', 'admin').'&nbsp;'.$helpbutton, 'generalbox adminwarning');
$cronoverdue = ($lastcron < time() - 3600 * 24);
$dbproblems = $DB->diagnose();
$maintenancemode = !empty($CFG->maintenance_enabled);
$updateschecker = available_update_checker::instance();
$availableupdates = $updateschecker->get_update_info('core',
array('minmaturity' => $CFG->updateminmaturity, 'notifybuilds' => $CFG->updatenotifybuilds));
$availableupdatesfetch = $updateschecker->get_last_timefetched();
$buggyiconvnomb = (!function_exists('mb_convert_encoding') and @iconv('UTF-8', 'UTF-8//IGNORE', '100'.chr(130).'€') !== '100€');
//check if the site is registered on Moodle.org
$registered = $DB->count_records('registration_hubs', array('huburl' => HUB_MOODLEORGHUBURL, 'confirmed' => 1));
admin_externalpage_setup('adminnotifications');
if ($fetchupdates) {
require_sesskey();
$updateschecker->fetch();
redirect($PAGE->url);
}
// Hidden bloglevel upgrade
$showbloglevelupgrade = ($CFG->bloglevel == BLOG_COURSE_LEVEL || $CFG->bloglevel == BLOG_GROUP_LEVEL) && empty($CFG->bloglevel_upgrade_complete);
if ($showbloglevelupgrade) {
echo $OUTPUT->box(get_string('bloglevelupgradenotice', 'admin'), 'generalbox adminwarning');
}
// diagnose DB, especially the sloppy MyISAM tables
$diagnose = $DB->diagnose();
if ($diagnose !== NULL) {
echo $OUTPUT->box($diagnose, 'generalbox adminwarning');
}
// Alert if we are currently in maintenance mode
if (!empty($CFG->maintenance_enabled)) {
echo $OUTPUT->box(get_string('sitemaintenancewarning2', 'admin', "$CFG->wwwroot/$CFG->admin/settings.php?section=maintenancemode"), 'generalbox adminwarning');
}
//////////////////////////////////////////////////////////////////////////////////////////////////
//// 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 />'.
'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>';
echo $OUTPUT->box($copyrighttext, 'copyright');
//////////////////////////////////////////////////////////////////////////////////////////////////
echo $OUTPUT->footer();
$output = $PAGE->get_renderer('core', 'admin');
echo $output->admin_notifications_page($maturity, $insecuredataroot, $errorsdisplayed,
$cronoverdue, $dbproblems, $maintenancemode, $availableupdates, $availableupdatesfetch, $buggyiconvnomb,
$registered);
-45
View File
@@ -1,45 +0,0 @@
<?php
require_once('../config.php');
require_once($CFG->libdir.'/adminlib.php');
admin_externalpage_setup('toinodb');
$confirm = optional_param('confirm', 0, PARAM_BOOL);
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
echo $OUTPUT->header();
echo $OUTPUT->heading('Convert all MySQL tables from MYISAM to InnoDB');
if ($DB->get_dbfamily() != 'mysql') {
notice('This function is for MySQL databases only!', 'index.php');
}
if (data_submitted() and $confirm and confirm_sesskey()) {
echo $OUTPUT->notification('Please be patient and wait for this to complete...', 'notifysuccess');
if ($tables = $DB->get_tables()) {
$DB->set_debug(true);
foreach ($tables as $table) {
$fulltable = $DB->get_prefix().$table;
$DB->change_database_structure("ALTER TABLE $fulltable TYPE=INNODB");
}
$DB->set_debug(false);
}
echo $OUTPUT->notification('... done.', 'notifysuccess');
echo $OUTPUT->continue_button('index.php');
echo $OUTPUT->footer();
} else {
$optionsyes = array('confirm'=>'1', 'sesskey'=>sesskey());
$formcontinue = new single_button(new moodle_url('/admin/innodb.php', $optionsyes), get_string('yes'));
$formcancel = new single_button(new moodle_url('/admin/index.php'), get_string('no'), 'get');
echo $OUTPUT->confirm('Are you sure you want convert all your tables to the InnoDB format?', $formcontinue, $formcancel);
echo $OUTPUT->footer();
}
-341
View File
@@ -1,341 +0,0 @@
<?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/>.
/**
* Fetches language packages from download.moodle.org server
*
* Language packages are available at http://download.moodle.org/langpack/
* in ZIP format together with a file languages.md5 containing their hashes
* and meta info.
* Locally, language packs are saved into $CFG->dataroot/lang/
*
* @package core
* @copyright 2005 Yu Zhang
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(dirname(__FILE__)).'/config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/filelib.php');
require_once($CFG->libdir.'/componentlib.class.php');
admin_externalpage_setup('langimport');
if (!empty($CFG->skiplangupgrade)) {
echo $OUTPUT->header();
echo $OUTPUT->box(get_string('langimportdisabled', 'admin'));
echo $OUTPUT->footer();
die;
}
$mode = optional_param('mode', 0, PARAM_INT); // action
$pack = optional_param('pack', array(), PARAM_SAFEDIR); // pack to install
$uninstalllang = optional_param('uninstalllang', '', PARAM_LANG); // installed pack to uninstall
$confirm = optional_param('confirm', 0, PARAM_BOOL); // uninstallation confirmation
define('INSTALLATION_OF_SELECTED_LANG', 2);
define('DELETION_OF_SELECTED_LANG', 4);
define('UPDATE_ALL_LANG', 5);
get_string_manager()->reset_caches();
$notice_ok = array();
$notice_error = array();
if (($mode == INSTALLATION_OF_SELECTED_LANG) and confirm_sesskey() and !empty($pack)) {
set_time_limit(0);
make_upload_directory('temp');
make_upload_directory('lang');
$installer = new lang_installer($pack);
$results = $installer->run();
foreach ($results as $langcode => $langstatus) {
switch ($langstatus) {
case lang_installer::RESULT_DOWNLOADERROR:
$a = new stdClass();
$a->url = $installer->lang_pack_url($langcode);
$a->dest = $CFG->dataroot.'/lang';
print_error('remotedownloaderror', 'error', 'langimport.php', $a);
break;
case lang_installer::RESULT_INSTALLED:
$notice_ok[] = get_string('langpackinstalled', 'admin', $langcode);
break;
case lang_installer::RESULT_UPTODATE:
$notice_ok[] = get_string('langpackuptodate', 'admin', $langcode);
break;
}
}
}
if ($mode == DELETION_OF_SELECTED_LANG and !empty($uninstalllang)) {
if ($uninstalllang == 'en') {
$notice_error[] = 'English language pack can not be uninstalled';
} else if (!$confirm and confirm_sesskey()) {
echo $OUTPUT->header();
echo $OUTPUT->confirm(get_string('uninstallconfirm', 'admin', $uninstalllang),
'langimport.php?mode='.DELETION_OF_SELECTED_LANG.'&uninstalllang='.$uninstalllang.'&confirm=1',
'langimport.php');
echo $OUTPUT->footer();
die;
} else if (confirm_sesskey()) {
$dest1 = $CFG->dataroot.'/lang/'.$uninstalllang;
$dest2 = $CFG->dirroot.'/lang/'.$uninstalllang;
$rm1 = false;
$rm2 = false;
if (file_exists($dest1)){
$rm1 = remove_dir($dest1);
}
if (file_exists($dest2)){
$rm2 = remove_dir($dest2);
}
if ($rm1 or $rm2) {
$notice_ok[] = get_string('langpackremoved','admin');
} else { //nothing deleted, possibly due to permission error
$notice_error[] = 'An error has occurred, language pack is not completely uninstalled, please check file permissions';
}
}
}
if ($mode == UPDATE_ALL_LANG) {
set_time_limit(0);
$installer = new lang_installer();
if (!$availablelangs = $installer->get_remote_list_of_languages()) {
print_error('cannotdownloadlanguageupdatelist', 'error');
}
$md5array = array(); // (string)langcode => (string)md5
foreach ($availablelangs as $alang) {
$md5array[$alang[0]] = $alang[1];
}
// filter out unofficial packs
$currentlangs = array_keys(get_string_manager()->get_list_of_translations(true));
$updateablelangs = array();
foreach ($currentlangs as $clang) {
if (!array_key_exists($clang, $md5array)) {
$notice_ok[] = get_string('langpackupdateskipped', 'admin', $clang);
continue;
}
$dest1 = $CFG->dataroot.'/lang/'.$clang;
$dest2 = $CFG->dirroot.'/lang/'.$clang;
if (file_exists($dest1.'/langconfig.php') || file_exists($dest2.'/langconfig.php')){
$updateablelangs[] = $clang;
}
}
// then filter out packs that have the same md5 key
$neededlangs = array(); // all the packs that needs updating
foreach ($updateablelangs as $ulang) {
if (!is_installed_lang($ulang, $md5array[$ulang])) {
$neededlangs[] = $ulang;
}
}
make_upload_directory('temp');
make_upload_directory('lang');
// clean-up currently installed versions of the packs
foreach ($neededlangs as $packindex => $pack) {
if ($pack == 'en') {
continue;
}
// delete old directories
$dest1 = $CFG->dataroot.'/lang/'.$pack;
$dest2 = $CFG->dirroot.'/lang/'.$pack;
$rm1 = false;
$rm2 = false;
if (file_exists($dest1)) {
if (!remove_dir($dest1)) {
$notice_error[] = 'Could not delete old directory '.$dest1.', update of '.$pack.' failed, please check permissions.';
unset($neededlangs[$packindex]);
continue;
}
}
if (file_exists($dest2)) {
if (!remove_dir($dest2)) {
$notice_error[] = 'Could not delete old directory '.$dest2.', update of '.$pack.' failed, please check permissions.';
unset($neededlangs[$packindex]);
continue;
}
}
}
// install all needed language packs
$installer->set_queue($neededlangs);
$results = $installer->run();
$updated = false; // any packs updated?
foreach ($results as $langcode => $langstatus) {
switch ($langstatus) {
case lang_installer::RESULT_DOWNLOADERROR:
$a = new stdClass();
$a->url = $installer->lang_pack_url($langcode);
$a->dest = $CFG->dataroot.'/lang';
print_error('remotedownloaderror', 'error', 'langimport.php', $a);
break;
case lang_installer::RESULT_INSTALLED:
$updated = true;
$notice_ok[] = get_string('langpackinstalled', 'admin', $langcode);
break;
case lang_installer::RESULT_UPTODATE:
$notice_ok[] = get_string('langpackuptodate', 'admin', $langcode);
break;
}
}
if ($updated) {
$notice_ok[] = get_string('langupdatecomplete','admin');
} else {
$notice_ok[] = get_string('nolangupdateneeded','admin');
}
unset($installer);
}
get_string_manager()->reset_caches();
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('langimport', 'admin'));
$installedlangs = get_string_manager()->get_list_of_translations(true);
$missingparents = array();
foreach ($installedlangs as $installedlang => $unused) {
$parent = get_parent_language($installedlang);
if (empty($parent)) {
continue;
}
if (!isset($installedlangs[$parent])) {
$missingparents[$installedlang] = $parent;
}
}
$installer = new lang_installer();
if ($availablelangs = $installer->get_remote_list_of_languages()) {
$remote = true;
} else {
$remote = false;
$availablelangs = array();
echo $OUTPUT->box_start();
print_string('remotelangnotavailable', 'admin', $CFG->dataroot.'/lang/');
echo $OUTPUT->box_end();
}
if ($notice_ok) {
$info = implode('<br />', $notice_ok);
echo $OUTPUT->notification($info, 'notifysuccess');
}
if ($notice_error) {
$info = implode('<br />', $notice_error);
echo $OUTPUT->notification($info, 'notifyproblem');
}
if ($missingparents) {
foreach ($missingparents as $l=>$parent) {
$a = new stdClass();
$a->lang = $installedlangs[$l];
$a->parent = $parent;
foreach ($availablelangs as $alang) {
if ($alang[0] == $parent) {
$shortlang = $alang[0];
$a->parent = $alang[2].' ('.$shortlang.')';
}
}
$info = get_string('missinglangparent', 'admin', $a);
echo $OUTPUT->notification($info, 'notifyproblem');
}
}
echo $OUTPUT->box_start();
echo html_writer::start_tag('table');
echo html_writer::start_tag('tr');
// list of installed languages
$url = new moodle_url('/admin/langimport.php', array('mode' => DELETION_OF_SELECTED_LANG));
echo html_writer::start_tag('td', array('valign' => 'top'));
echo html_writer::start_tag('form', array('id' => 'uninstallform', 'action' => $url->out(), 'method' => 'post'));
echo html_writer::start_tag('fieldset');
echo html_writer::label(get_string('installedlangs','admin'), 'uninstalllang');
echo html_writer::empty_tag('br');
echo html_writer::select($installedlangs, 'uninstalllang', '', false, array('size' => 15));
echo html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'sesskey', 'value' => sesskey()));
echo html_writer::empty_tag('br');
echo html_writer::empty_tag('input', array('type' => 'submit', 'value' => get_string('uninstall','admin')));
echo html_writer::end_tag('fieldset');
echo html_writer::end_tag('form');
if ($remote) {
$url = new moodle_url('/admin/langimport.php', array('mode' => UPDATE_ALL_LANG));
echo html_writer::start_tag('form', array('id' => 'updateform', 'action' => $url->out(), 'method' => 'post'));
echo html_writer::tag('fieldset', html_writer::empty_tag('input', array('type' => 'submit', 'value' => get_string('updatelangs','admin'))));
echo html_writer::end_tag('form');
}
echo html_writer::end_tag('td');
// list of available languages
$options = array();
foreach ($availablelangs as $alang) {
if (!empty($alang[0]) and trim($alang[0]) !== 'en' and !is_installed_lang($alang[0], $alang[1])) {
$options[$alang[0]] = $alang[2].' ('.$alang[0].')';
}
}
if (!empty($options)) {
echo html_writer::start_tag('td', array('valign' => 'top'));
$url = new moodle_url('/admin/langimport.php', array('mode' => INSTALLATION_OF_SELECTED_LANG));
echo html_writer::start_tag('form', array('id' => 'installform', 'action' => $url->out(), 'method' => 'post'));
echo html_writer::start_tag('fieldset');
echo html_writer::label(get_string('availablelangs','install'), 'pack');
echo html_writer::empty_tag('br');
echo html_writer::select($options, 'pack[]', '', false, array('size' => 15, 'multiple' => 'multiple'));
echo html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'sesskey', 'value' => sesskey()));
echo html_writer::empty_tag('br');
echo html_writer::empty_tag('input', array('type' => 'submit', 'value' => get_string('install','admin')));
echo html_writer::end_tag('fieldset');
echo html_writer::end_tag('form');
echo html_writer::end_tag('td');
}
echo html_writer::end_tag('tr');
echo html_writer::end_tag('table');
echo $OUTPUT->box_end();
echo $OUTPUT->footer();
die();
////////////////////////////////////////////////////////////////////////////////
// Local functions /////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/**
* checks the md5 of the zip file, grabbed from download.moodle.org,
* against the md5 of the local language file from last update
* @param string $lang
* @param string $md5check
* @return bool
*/
function is_installed_lang($lang, $md5check) {
global $CFG;
$md5file = $CFG->dataroot.'/lang/'.$lang.'/'.$lang.'.md5';
if (file_exists($md5file)){
return (file_get_contents($md5file) == $md5check);
}
return false;
}
+12 -1
View File
@@ -35,5 +35,16 @@ function admin_page_type_list($pagetype, $parentcontext, $currentcontext) {
'admin-*' => get_string('page-admin-x', 'pagetype'),
$pagetype => get_string('page-admin-current', 'pagetype')
);
// Add the missing * (any page) option for them. MDL-30340
// TODO: These pages are really 'pagetype-varying' - MDL-30564 -
// and some day we should stop behaving that way, so proper pagetypes
// can be specified for it (like course-category-* or so).
// Luckly... the option we are introducing '*' is independent
// of that varying behavior, so will work.
if ($pagetype == 'admin-course-category') {
$array += array(
'*' => get_string('page-x', 'pagetype')
);
}
return $array;
}
}
+3 -3
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
@@ -33,7 +33,7 @@ require_once($CFG->libdir.'/tablelib.php');
admin_externalpage_setup('managelocalplugins');
$delete = optional_param('delete', '', PARAM_SAFEDIR);
$delete = optional_param('delete', '', PARAM_PLUGIN);
$confirm = optional_param('confirm', '', PARAM_BOOL);
/// If data submitted, then process and store.
@@ -89,7 +89,7 @@ foreach (get_plugin_list('local') as $plugin => $plugindir) {
}
$plugins[$plugin] = $strpluginname;
}
textlib_get_instance()->asort($plugins);
collatorlib::asort($plugins);
foreach ($plugins as $plugin => $name) {
$delete = new moodle_url($PAGE->url, array('delete' => $plugin, 'sesskey' => sesskey()));
+31 -3
View File
@@ -34,6 +34,10 @@ require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
// Get the submitted params
$disable = optional_param('disable', 0, PARAM_INT);
$enable = optional_param('enable', 0, PARAM_INT);
$uninstall = optional_param('uninstall', 0, PARAM_INT);
$confirm = optional_param('confirm', false, PARAM_BOOL);
$headingtitle = get_string('managemessageoutputs', 'message');
if (!empty($disable) && confirm_sesskey()) {
if (!$processor = $DB->get_record('message_processors', array('id'=>$disable))) {
@@ -42,14 +46,38 @@ if (!empty($disable) && confirm_sesskey()) {
$DB->set_field('message_processors', 'enabled', '0', array('id'=>$processor->id)); // Disable output
}
if (!empty($enable) && confirm_sesskey() ) {
if (!empty($enable) && confirm_sesskey()) {
if (!$processor = $DB->get_record('message_processors', array('id'=>$enable))) {
print_error('outputdoesnotexist', 'message');
}
$DB->set_field('message_processors', 'enabled', '1', array('id'=>$processor->id)); // Enable output
}
if ($disable || $enable) {
if (!empty($uninstall) && confirm_sesskey()) {
echo $OUTPUT->header();
echo $OUTPUT->heading($headingtitle);
if (!$processor = $DB->get_record('message_processors', array('id'=>$uninstall))) {
print_error('outputdoesnotexist', 'message');
}
$processorname = get_string('pluginname', 'message_'.$processor->name);
if (!$confirm) {
echo $OUTPUT->confirm(get_string('processordeleteconfirm', 'message', $processorname), 'message.php?uninstall='.$processor->id.'&confirm=1', 'message.php');
echo $OUTPUT->footer();
exit;
} else {
message_processor_uninstall($processor->name);
$a = new stdClass();
$a->processor = $processorname;
$a->directory = $CFG->dirroot.'/message/output/'.$processor->name;
notice(get_string('processordeletefiles', 'message', $a), 'message.php');
}
}
if ($disable || $enable || $uninstall) {
$url = new moodle_url('message.php');
redirect($url);
}
@@ -65,6 +93,6 @@ $messageoutputs = $renderer->manage_messageoutputs($processors);
// Display the page
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('managemessageoutputs', 'message'));
echo $OUTPUT->heading($headingtitle);
echo $messageoutputs;
echo $OUTPUT->footer();
+5 -4
View File
@@ -103,7 +103,7 @@ if ($form = data_submitted() and confirm_sesskey()) {
$usernames = explode(',', $form->username);
foreach ($usernames as $username) {
$username = trim(moodle_strtolower($username));
$username = trim(textlib::strtolower($username));
if (!empty($username)) {
if (mnet_update_sso_access_control($username, $form->mnet_host_id, $form->accessctrl)) {
if ($form->accessctrl == 'allow') {
@@ -203,17 +203,18 @@ echo get_string('username') . ":\n";
if (!empty($formerror['username'])) {
echo '<span class="error"> * </span>';
}
echo '<input type="text" name="username" size="20" maxlength="100" />';
echo html_writer::label(get_string('username'), 'menuusername', false, array('class' => 'accesshide'));
echo '<input id="menuusername" type="text" name="username" size="20" maxlength="100" />';
// choose a remote host
echo " " . get_string('remotehost', 'mnet') . ":\n";
echo " " . html_writer::label(get_string('remotehost', 'mnet'), 'menumnet_host_id') . ":\n";
if (!empty($formerror['mnet_host_id'])) {
echo '<span class="error"> * </span>';
}
echo html_writer::select($mnethosts, 'mnet_host_id');
// choose an access level
echo " " . get_string('accesslevel', 'mnet') . ":\n";
echo " " . html_writer::label(get_string('accesslevel', 'mnet'), 'menuaccessctrl') . ":\n";
if (!empty($formerror['accessctrl'])) {
echo '<span class="error"> * </span>';
}
+25 -16
View File
@@ -38,9 +38,10 @@ class mnet_simple_host_form extends moodleform {
$mform = $this->_form;
$mform->addElement('text', 'wwwroot', get_string('hostname', 'mnet'));
$mform->addElement('text', 'wwwroot', get_string('hostname', 'mnet'), array('maxlength' => 255, 'size' => 50));
$mform->setType('wwwroot', PARAM_URL);
$mform->addRule('wwwroot', null, 'required', null, 'client');
$mform->addRule('wwwroot', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$mform->addElement('select', 'applicationid', get_string('applicationtype', 'mnet'),
$DB->get_records_menu('mnet_application', array(), 'id,display_name'));
@@ -49,7 +50,7 @@ class mnet_simple_host_form extends moodleform {
$this->add_action_buttons(false, get_string('addhost', 'mnet'));
}
function validation($data) {
function validation($data, $files) {
global $DB;
$wwwroot = $data['wwwroot'];
@@ -81,11 +82,13 @@ class mnet_review_host_form extends moodleform {
$mform->addElement('hidden', 'applicationid');
$mform->addElement('hidden', 'oldpublickey');
$mform->addElement('text', 'name', get_string('site'));
$mform->addElement('text', 'name', get_string('site'), array('maxlength' => 80, 'size' => 50));
$mform->setType('name', PARAM_NOTAGS);
$mform->addRule('name', get_string('maximumchars', '', 80), 'maxlength', 80, 'client');
$mform->addElement('text', 'wwwroot', get_string('hostname', 'mnet'));
$mform->addElement('text', 'wwwroot', get_string('hostname', 'mnet'), array('maxlength' => 255, 'size' => 50));
$mform->setType('wwwroot', PARAM_URL);
$mform->addRule('wwwroot', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$themes = array('' => get_string('forceno'));
foreach (array_keys(get_plugin_list('theme')) as $themename) {
@@ -95,15 +98,7 @@ class mnet_review_host_form extends moodleform {
$mform->addElement('textarea', 'public_key', get_string('publickey', 'mnet'), array('rows' => 17, 'cols' => 100, 'class' => 'smalltext'));
$mform->setType('public_key', PARAM_PEM);
if ($mnet_peer && !empty($mnet_peer->deleted)) {
$radioarray = array();
$radioarray[] = MoodleQuickForm::createElement('radio', 'deleted', '', get_string('yes'), 1);
$radioarray[] = MoodleQuickForm::createElement('radio', 'deleted', '', get_string('no'), 0);
$mform->addGroup($radioarray, 'radioar', get_string('deleted'), array(' '), false);
} else {
$mform->addElement('hidden', 'deleted');
}
$mform->addRule('public_key', get_string('required'), 'required');
// finished with form controls, now the static informational stuff
if ($mnet_peer && !empty($mnet_peer->bootstrapped)) {
@@ -140,21 +135,35 @@ class mnet_review_host_form extends moodleform {
}
}
$mform->addElement('static', 'certdetails', get_string('certdetails', 'mnet'), $OUTPUT->box('<pre>' . $credstr . '</pre>'));
$mform->addElement('static', 'certdetails', get_string('certdetails', 'mnet'),
$OUTPUT->box('<pre>' . $credstr . '</pre>', 'generalbox certdetails'));
}
if ($mnet_peer && !empty($mnet_peer->deleted)) {
$radioarray = array();
$radioarray[] = $mform->createElement('static', 'deletedinfo', '',
$OUTPUT->container(get_string('deletedhostinfo', 'mnet'), 'deletedhostinfo'));
$radioarray[] = $mform->createElement('radio', 'deleted', '', get_string('yes'), 1);
$radioarray[] = $mform->createElement('radio', 'deleted', '', get_string('no'), 0);
$mform->addGroup($radioarray, 'radioar', get_string('deleted'), array(' ', ' '), false);
} else {
$mform->addElement('hidden', 'deleted');
}
// finished with static stuff, print save button
$this->add_action_buttons(false);
}
function validation($data) {
function validation($data, $files) {
$errors = array();
if ($data['oldpublickey'] == $data['public_key']) {
return;
}
$mnet_peer = new mnet_peer(); // idiotic api
$mnet_peer->wwwroot = $data['wwwroot']; // just hard-set this rather than bootstrap the object
if (!$credentials = $mnet_peer->check_credentials($data['public_key'])) {
if (empty($data['public_key'])) {
$errors['public_key'] = get_string('publickeyrequired', 'mnet');
} else if (!$credentials = $mnet_peer->check_credentials($data['public_key'])) {
$errmsg = '';
foreach ($mnet_peer->error as $err) {
$errmsg .= $err['code'] . ': ' . $err['text'].'<br />';
+20 -5
View File
@@ -30,7 +30,7 @@
require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->dirroot.'/mnet/lib.php');
require_once($CFG->dirroot.'/admin/mnet/peer_forms.php');
require_once($CFG->dirroot.'/'.$CFG->admin.'/mnet/peer_forms.php');
require_login();
@@ -190,7 +190,7 @@ if ($formdata = $reviewform->get_data()) {
// normal flow - just display all hosts with links
echo $OUTPUT->header();
$hosts = mnet_get_hosts();
$hosts = mnet_get_hosts(true);
// print the table to display the register all hosts setting
$table = new html_table();
@@ -231,28 +231,43 @@ $table->head = array(
);
$table->wrap = array('nowrap', 'nowrap', 'nowrap', 'nowrap');
$baseurl = new moodle_url('/admin/mnet/peers.php');
$deleted = array();
foreach($hosts as $host) {
$hosturl = new moodle_url($baseurl, array('hostid' => $host->id));
if (trim($host->name) === '') {
// should not happen but...
$host->name = '???';
}
// process all hosts first since it's the easiest
if ($host->id == $CFG->mnet_all_hosts_id) {
$table->data[] = array(html_writer::tag('a', $host->name, array('href'=>$hosturl)), '', '', '');
$table->data[] = array(html_writer::link($hosturl, get_string('allhosts', 'core_mnet')), '*', '', '');
continue;
}
// populate the list of deleted hosts
if ($host->deleted) {
$deleted[] = html_writer::link($hosturl, $host->name);
continue;
}
if ($host->last_connect_time == 0) {
$last_connect = get_string('never');
} else {
$last_connect = date('H:i:s d/m/Y', $host->last_connect_time);
$last_connect = userdate($host->last_connect_time, get_string('strftimedatetime', 'core_langconfig'));
}
$table->data[] = array(
html_writer::link($hosturl, $host->name),
html_writer::link($hosturl, $host->wwwroot),
html_writer::link($host->wwwroot, $host->wwwroot),
$last_connect,
$OUTPUT->single_button(new moodle_url('/admin/mnet/delete.php', array('hostid' => $host->id)), get_string('delete'))
);
}
echo html_writer::table($table);
if ($deleted) {
echo $OUTPUT->box(get_string('deletedhosts', 'core_mnet', join(', ', $deleted)), 'deletedhosts');
}
// finally, print the initial form to add a new host
echo $OUTPUT->box_start();
echo $OUTPUT->heading(get_string('addnewhost', 'mnet'), 3);
+11 -2
View File
@@ -39,6 +39,15 @@ class mnet_profile_form extends moodleform {
global $CFG;
$mform =& $this->_form;
$mnetprofileimportfields = '';
if (isset($CFG->mnetprofileimportfields)) {
$mnetprofileimportfields = str_replace(',', ', ', $CFG->mnetprofileimportfields);
}
$mnetprofileexportfields = '';
if (isset($CFG->mnetprofileexportfields)) {
$mnetprofileexportfields = str_replace(',', ', ', $CFG->mnetprofileexportfields);
}
$mform->addElement('hidden', 'hostid', $this->_customdata['hostid']);
$fields = mnet_profile_field_options();
@@ -49,7 +58,7 @@ class mnet_profile_form extends moodleform {
$select = $mform->addElement('select', 'importfields', get_string('importfields', 'mnet'), $fields['optional']);
$select->setMultiple(true);
$mform->addElement('checkbox', 'importdefault', get_string('leavedefault', 'mnet'), str_replace(',', ', ', $CFG->mnetprofileimportfields));
$mform->addElement('checkbox', 'importdefault', get_string('leavedefault', 'mnet'), $mnetprofileimportfields);
// Fields to export ----------------------------------------------------
$mform->addElement('header', 'export', get_string('exportfields', 'mnet'));
@@ -57,7 +66,7 @@ class mnet_profile_form extends moodleform {
$select = $mform->addElement('select', 'exportfields', get_string('exportfields', 'mnet'), $fields['optional']);
$select->setMultiple(true);
$mform->addElement('checkbox', 'exportdefault', get_string('leavedefault', 'mnet'), str_replace(',', ', ', $CFG->mnetprofileexportfields));
$mform->addElement('checkbox', 'exportdefault', get_string('leavedefault', 'mnet'), $mnetprofileexportfields);
$this->add_action_buttons();
}
+1 -1
View File
@@ -36,7 +36,7 @@ class mnet_services_form extends moodleform {
function definition() {
$mform =& $this->_form;
$mnet_peer =& $this->_customdata['peer'];
$myservices =& mnet_get_service_info($mnet_peer);
$myservices = mnet_get_service_info($mnet_peer);
$mform->addElement('hidden', 'hostid', $mnet_peer->id);
+1 -1
View File
@@ -38,7 +38,7 @@ $strmnetlog = get_string('mnetlog', 'mnet');
$strmnetedithost = get_string('reviewhostdetails', 'mnet');
$logurl = $CFG->wwwroot.
'/course/report/log/index.php?chooselog=1&amp;showusers=1&amp;showcourses=1&amp;host_course='.$mnet_peer->id.
'/report/log/index.php?chooselog=1&amp;showusers=1&amp;showcourses=1&amp;host_course='.$mnet_peer->id.
'%2F1&amp;user='.'0'.
'&amp;date=0'.
'&amp;modid=&amp;modaction=0&amp;logformat=showashtml';
+4 -3
View File
@@ -11,9 +11,9 @@
admin_externalpage_setup('managemodules');
$show = optional_param('show', '', PARAM_SAFEDIR);
$hide = optional_param('hide', '', PARAM_SAFEDIR);
$delete = optional_param('delete', '', PARAM_SAFEDIR);
$show = optional_param('show', '', PARAM_PLUGIN);
$hide = optional_param('hide', '', PARAM_PLUGIN);
$delete = optional_param('delete', '', PARAM_PLUGIN);
$confirm = optional_param('confirm', '', PARAM_BOOL);
@@ -92,6 +92,7 @@
}
uninstall_plugin('mod', $delete);
$a = new stdClass();
$a->module = $strmodulename;
$a->directory = "$CFG->dirroot/mod/$delete";
echo $OUTPUT->notification(get_string("moduledeletefiles", "", $a), 'notifysuccess');
-117
View File
@@ -1,117 +0,0 @@
<?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');
admin_externalpage_setup('multilangupgrade');
$go = optional_param('go', 0, PARAM_BOOL);
###################################################################
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('multilangupgrade', 'admin'));
$strmultilangupgrade = get_String('multilangupgradeinfo', 'admin');
if (!$go or !data_submitted() or !confirm_sesskey()) { /// Print a form
$optionsyes = array('go'=>1, 'sesskey'=>sesskey());
echo $OUTPUT->confirm($strmultilangupgrade, new moodle_url('multilangupgrade.php', $optionsyes), 'index.php');
echo $OUTPUT->footer();
die;
}
if (!$tables = $DB->get_tables() ) { // No tables yet at all.
print_error('notables', 'debug');
}
echo $OUTPUT->box_start();
/// Turn off time limits, sometimes upgrades can be slow.
@set_time_limit(0);
echo '<strong>Progress:</strong>';
$i = 0;
$skiptables = array('config', 'user_students', 'user_teachers');
foreach ($tables as $table) {
if (strpos($table,'pma') === 0) { // Not our tables
continue;
}
if (in_array($table, $skiptables)) { // Don't process these
continue;
}
$fulltable = $DB->get_prefix().$table;
if ($columns = $DB->get_columns($table)) {
if (!array_key_exists('id', $columns)) {
continue; // moodle tables have id
}
foreach ($columns as $column => $data) {
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=%'";
$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();
}
}
}
}
// set conversion flag - switches to new plugin automatically
set_config('filter_multilang_converted', 1);
echo $OUTPUT->box_end();
/// Rebuild course cache which might be incorrect now
echo $OUTPUT->notification('Rebuilding course cache...', 'notifysuccess');
rebuild_course_cache();
echo $OUTPUT->notification('...finished', 'notifysuccess');
echo $OUTPUT->continue_button('index.php');
echo $OUTPUT->footer();
die;
function multilangupgrade_impl($langblock) {
$searchtosplit = '/<(?:lang|span) lang="([a-zA-Z0-9_-]*)".*?>(.+?)<\/(?:lang|span)>/is';
preg_match_all($searchtosplit, $langblock[0], $rawlanglist);
$return = '';
foreach ($rawlanglist[1] as $index=>$lang) {
$return .= '<span lang="'.$lang.'" class="multilang">'.$rawlanglist[2][$index].'</span>';
}
return $return;
}
+14 -4
View File
@@ -42,12 +42,20 @@ function online_assignment_cleanup($output=false) {
/// get a list of all courses on this site
$courses = $DB->get_records('course');
list($ctxselect, $ctxjoin) = context_instance_preload_sql('c.id', CONTEXT_COURSE, 'ctx');
$sql = "SELECT c.* $ctxselect FROM {course} c $ctxjoin";
$courses = $DB->get_records_sql($sql);
/// cycle through each course
foreach ($courses as $course) {
context_instance_preload($course);
$context = get_context_instance(CONTEXT_COURSE, $course->id);
$fullname = empty($course->fullname) ? 'Course: '.$course->id : $course->fullname;
if (empty($course->fullname)) {
$fullname = get_string('course').': '.$course->id;
} else {
$fullname = format_string($course->fullname, true, array('context' => $context));
}
if ($output) echo $OUTPUT->heading($fullname);
/// retrieve a list of sections beyond what is currently being shown
@@ -96,7 +104,9 @@ function online_assignment_cleanup($output=false) {
/// grab the section record
if (!($section = $DB->get_record('course_sections', array('id'=>$newsection)))) {
if ($output) echo 'Serious error: Cannot retrieve section: '.$newsection.' for course: '. format_string($course->fullname) .'<br />';
if ($output) {
echo 'Serious error: Cannot retrieve section: '.$newsection.' for course: '. $fullname .'<br />';
}
continue;
}
@@ -117,7 +127,7 @@ function online_assignment_cleanup($output=false) {
/// grab the old section record
if (!($section = $DB->get_record('course_sections', array('id'=>$xsection->id)))) {
if ($output) echo 'Serious error: Cannot retrieve old section: '.$xsection->id.' for course: '.$course->fullname.'<br />';
if ($output) echo 'Serious error: Cannot retrieve old section: '.$xsection->id.' for course: '.$fullname.'<br />';
continue;
}
+46
View File
@@ -0,0 +1,46 @@
<?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/>.
/**
* An oauth2 redirection endpoint which can be used for an application:
* http://tools.ietf.org/html/draft-ietf-oauth-v2-26#section-3.1.2
*
* This is used because some oauth servers will not allow a redirect urls
* with get params (like repository callback) and that needs to be called
* using the state param.
*
* @package core
* @copyright 2012 Dan Poltawski
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(dirname(__FILE__)).'/config.php');
// The authorization code generated by the authorization server.
$code = required_param('code', PARAM_RAW);
// The state parameter we've given (used in moodle as a redirect url).
$state = required_param('state', PARAM_LOCALURL);
$redirecturl = new moodle_url($state);
$params = $redirecturl->params();
if (isset($params['sesskey']) and confirm_sesskey($params['sesskey'])) {
$redirecturl->param('oauth2code', $code);
redirect($redirecturl);
} else {
print_error('invalidsesskey');
}
+13 -8
View File
@@ -30,12 +30,17 @@ require_once($CFG->libdir . '/pluginlib.php');
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
admin_externalpage_setup('pluginsoverview');
$output = $PAGE->get_renderer('core', 'admin');
$pluginman = plugin_manager::instance();
echo $output->header();
echo $output->heading(get_string('pluginsoverview', 'core_admin'));
echo $output->box_start('generalbox');
echo $output->plugins_control_panel($pluginman->get_plugins());
echo $output->box_end();
echo $output->footer();
$fetchremote = optional_param('fetchremote', false, PARAM_BOOL);
$pluginman = plugin_manager::instance();
$checker = available_update_checker::instance();
if ($fetchremote) {
require_sesskey();
$checker->fetch();
redirect($PAGE->url);
}
$output = $PAGE->get_renderer('core', 'admin');
echo $output->plugin_management_page($pluginman, $checker);
+2
View File
@@ -197,6 +197,7 @@ if (($action == 'edit') || ($action == 'new')) {
$currentaction = 'hide';
}
$select = new single_select(portfolio_action_url($pluginid, 'pf'), 'action', $actionchoicesforexisting, $currentaction, null, 'applyto' . $pluginid);
$select->set_label(get_string('action'), array('class' => 'accesshide'));
$table->data[] = array($pluginname, $OUTPUT->render($select), $settings);
}
if (!in_array($plugin, $usedplugins)) {
@@ -218,6 +219,7 @@ if (($action == 'edit') || ($action == 'new')) {
$insaneplugins[] = $p;
} else {
$select = new single_select(portfolio_action_url($p, 'pf'), 'action', $actionchoicesfornew, 'delete', null, 'applyto' . $p);
$select->set_label(get_string('action'), array('class' => 'accesshide'));
$table->data[] = array(portfolio_static_function($p, 'get_name'), $OUTPUT->render($select), '');
}
}
+21 -21
View File
@@ -28,6 +28,7 @@
require_once(dirname(__FILE__) . '/../config.php');
require_once($CFG->libdir . '/questionlib.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->libdir . '/pluginlib.php');
require_once($CFG->libdir . '/tablelib.php');
// Check permissions.
@@ -39,6 +40,7 @@ admin_externalpage_setup('manageqbehaviours');
$thispageurl = new moodle_url('/admin/qbehaviours.php');
$behaviours = get_plugin_list('qbehaviour');
$pluginmanager = plugin_manager::instance();
// Get some data we will need - question counts and which types are needed.
$counts = $DB->get_records_sql_menu("
@@ -50,20 +52,16 @@ foreach ($behaviours as $behaviour => $notused) {
if (!array_key_exists($behaviour, $counts)) {
$counts[$behaviour] = 0;
}
$needed[$behaviour] = $counts[$behaviour] > 0;
$needed[$behaviour] = ($counts[$behaviour] > 0) ||
$pluginmanager->other_plugins_that_require('qbehaviour_' . $behaviour);
$archetypal[$behaviour] = question_engine::is_behaviour_archetypal($behaviour);
}
foreach ($behaviours as $behaviour => $notused) {
foreach (question_engine::get_behaviour_required_behaviours($behaviour) as $reqbehaviour) {
$needed[$reqbehaviour] = true;
}
}
foreach ($counts as $behaviour => $count) {
if (!array_key_exists($behaviour, $behaviours)) {
$counts['missingtype'] += $count;
$counts['missing'] += $count;
}
}
$needed['missing'] = true;
// Work of the correct sort order.
$config = get_config('question');
@@ -85,7 +83,7 @@ if (!empty($config->disabledbehaviours)) {
// Process actions ============================================================
// Disable.
if (($disable = optional_param('disable', '', PARAM_SAFEDIR)) && confirm_sesskey()) {
if (($disable = optional_param('disable', '', PARAM_PLUGIN)) && confirm_sesskey()) {
if (!isset($behaviours[$disable])) {
print_error('unknownbehaviour', 'question', $thispageurl, $disable);
}
@@ -98,7 +96,7 @@ if (($disable = optional_param('disable', '', PARAM_SAFEDIR)) && confirm_sesskey
}
// Enable.
if (($enable = optional_param('enable', '', PARAM_SAFEDIR)) && confirm_sesskey()) {
if (($enable = optional_param('enable', '', PARAM_PLUGIN)) && confirm_sesskey()) {
if (!isset($behaviours[$enable])) {
print_error('unknownbehaviour', 'question', $thispageurl, $enable);
}
@@ -115,7 +113,7 @@ if (($enable = optional_param('enable', '', PARAM_SAFEDIR)) && confirm_sesskey()
}
// Move up in order.
if (($up = optional_param('up', '', PARAM_SAFEDIR)) && confirm_sesskey()) {
if (($up = optional_param('up', '', PARAM_PLUGIN)) && confirm_sesskey()) {
if (!isset($behaviours[$up])) {
print_error('unknownbehaviour', 'question', $thispageurl, $up);
}
@@ -127,7 +125,7 @@ if (($up = optional_param('up', '', PARAM_SAFEDIR)) && confirm_sesskey()) {
}
// Move down in order.
if (($down = optional_param('down', '', PARAM_SAFEDIR)) && confirm_sesskey()) {
if (($down = optional_param('down', '', PARAM_PLUGIN)) && confirm_sesskey()) {
if (!isset($behaviours[$down])) {
print_error('unknownbehaviour', 'question', $thispageurl, $down);
}
@@ -139,7 +137,7 @@ if (($down = optional_param('down', '', PARAM_SAFEDIR)) && confirm_sesskey()) {
}
// Delete.
if (($delete = optional_param('delete', '', PARAM_SAFEDIR)) && confirm_sesskey()) {
if (($delete = optional_param('delete', '', PARAM_PLUGIN)) && confirm_sesskey()) {
// Check it is OK to delete this question type.
if ($delete == 'missing') {
print_error('cannotdeletemissingbehaviour', 'question', $thispageurl);
@@ -181,7 +179,7 @@ if (($delete = optional_param('delete', '', PARAM_SAFEDIR)) && confirm_sesskey()
unset($disabledbehaviours[$key]);
set_config('disabledbehaviours', implode(',', $disabledbehaviours), 'question');
}
$behaviourorder = explode(',', $config->behavioursortorder);
$behaviourorder = array_keys($sortedbehaviours);
if (($key = array_search($delete, $behaviourorder)) !== false) {
unset($behaviourorder[$key]);
set_config('behavioursortorder', implode(',', $behaviourorder), 'question');
@@ -193,6 +191,7 @@ if (($delete = optional_param('delete', '', PARAM_SAFEDIR)) && confirm_sesskey()
// Remove event handlers and dequeue pending events
events_uninstall('qbehaviour_' . $delete);
$a = new stdClass();
$a->behaviour = $behaviourname;
$a->directory = get_plugin_directory('qbehaviour', $delete);
echo $OUTPUT->box(get_string('qbehaviourdeletefiles', 'question', $a), 'generalbox', 'notice');
@@ -238,18 +237,19 @@ foreach ($sortedbehaviours as $behaviour => $behaviourname) {
}
// Other question types required by this one.
$requiredbehaviours = question_engine::get_behaviour_required_behaviours($behaviour);
if (!empty($requiredbehaviours)) {
$strrequiredbehaviours = array();
foreach ($requiredbehaviours as $required) {
$strrequiredbehaviours[] = $sortedbehaviours[$required];
$plugin = $pluginmanager->get_plugin_info('qbehaviour_' . $behaviour);
$required = $plugin->get_other_required_plugins();
if (!empty($required)) {
$strrequired = array();
foreach ($required as $component => $notused) {
$strrequired[] = $pluginmanager->plugin_name($component);
}
$row[] = implode(', ', $strrequiredbehaviours);
$row[] = implode(', ', $strrequired);
} else {
$row[] = '';
}
// Are people allowed to create new questions of this type?
// Are people allowed to select this behaviour?
$rowclass = '';
if ($archetypal[$behaviour]) {
$enabled = array_search($behaviour, $disabledbehaviours) === false;
+15 -15
View File
@@ -28,6 +28,7 @@
require_once(dirname(__FILE__) . '/../config.php');
require_once($CFG->libdir . '/questionlib.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->libdir . '/pluginlib.php');
require_once($CFG->libdir . '/tablelib.php');
// Check permissions.
@@ -40,6 +41,7 @@ admin_externalpage_setup('manageqtypes');
$thispageurl = new moodle_url('/admin/qtypes.php');
$qtypes = question_bank::get_all_qtypes();
$pluginmanager = plugin_manager::instance();
// Get some data we will need - question counts and which types are needed.
$counts = $DB->get_records_sql("
@@ -52,15 +54,11 @@ foreach ($qtypes as $qtypename => $qtype) {
$counts[$qtypename]->numquestions = 0;
$counts[$qtypename]->numhidden = 0;
}
$needed[$qtypename] = $counts[$qtypename]->numquestions > 0;
$needed[$qtypename] = $counts[$qtypename]->numquestions > 0 ||
$pluginmanager->other_plugins_that_require($qtype->plugin_name());
$counts[$qtypename]->numquestions -= $counts[$qtypename]->numhidden;
}
$needed['missingtype'] = true; // The system needs the missing question type.
foreach ($qtypes as $qtypename => $qtype) {
foreach ($qtype->requires_qtypes() as $reqtype) {
$needed[$reqtype] = true;
}
}
foreach ($counts as $qtypename => $count) {
if (!isset($qtypes[$qtypename])) {
$counts['missingtype']->numquestions += $count->numquestions - $count->numhidden;
@@ -79,7 +77,7 @@ $sortedqtypes = question_bank::sort_qtype_array($sortedqtypes, $config);
// Process actions ============================================================
// Disable.
if (($disable = optional_param('disable', '', PARAM_SAFEDIR)) && confirm_sesskey()) {
if (($disable = optional_param('disable', '', PARAM_PLUGIN)) && confirm_sesskey()) {
if (!isset($qtypes[$disable])) {
print_error('unknownquestiontype', 'question', $thispageurl, $disable);
}
@@ -89,7 +87,7 @@ if (($disable = optional_param('disable', '', PARAM_SAFEDIR)) && confirm_sesskey
}
// Enable.
if (($enable = optional_param('enable', '', PARAM_SAFEDIR)) && confirm_sesskey()) {
if (($enable = optional_param('enable', '', PARAM_PLUGIN)) && confirm_sesskey()) {
if (!isset($qtypes[$enable])) {
print_error('unknownquestiontype', 'question', $thispageurl, $enable);
}
@@ -103,7 +101,7 @@ if (($enable = optional_param('enable', '', PARAM_SAFEDIR)) && confirm_sesskey()
}
// Move up in order.
if (($up = optional_param('up', '', PARAM_SAFEDIR)) && confirm_sesskey()) {
if (($up = optional_param('up', '', PARAM_PLUGIN)) && confirm_sesskey()) {
if (!isset($qtypes[$up])) {
print_error('unknownquestiontype', 'question', $thispageurl, $up);
}
@@ -114,7 +112,7 @@ if (($up = optional_param('up', '', PARAM_SAFEDIR)) && confirm_sesskey()) {
}
// Move down in order.
if (($down = optional_param('down', '', PARAM_SAFEDIR)) && confirm_sesskey()) {
if (($down = optional_param('down', '', PARAM_PLUGIN)) && confirm_sesskey()) {
if (!isset($qtypes[$down])) {
print_error('unknownquestiontype', 'question', $thispageurl, $down);
}
@@ -125,7 +123,7 @@ if (($down = optional_param('down', '', PARAM_SAFEDIR)) && confirm_sesskey()) {
}
// Delete.
if (($delete = optional_param('delete', '', PARAM_SAFEDIR)) && confirm_sesskey()) {
if (($delete = optional_param('delete', '', PARAM_PLUGIN)) && confirm_sesskey()) {
// Check it is OK to delete this question type.
if ($delete == 'missingtype') {
print_error('cannotdeletemissingqtype', 'question', $thispageurl);
@@ -173,6 +171,7 @@ if (($delete = optional_param('delete', '', PARAM_SAFEDIR)) && confirm_sesskey()
// Remove event handlers and dequeue pending events
events_uninstall('qtype_' . $delete);
$a = new stdClass();
$a->qtype = $qtypename;
$a->directory = $qtypes[$delete]->plugin_dir();
echo $OUTPUT->box(get_string('qtypedeletefiles', 'question', $a), 'generalbox', 'notice');
@@ -219,7 +218,7 @@ foreach ($sortedqtypes as $qtypename => $localname) {
$strcount = $counts[$qtypename]->numquestions;
}
if ($canviewreports) {
$row[] = html_writer::link(new moodle_url('/admin/report/questioninstances/index.php',
$row[] = html_writer::link(new moodle_url('/report/questioninstances/index.php',
array('qtype' => $qtypename)), $strcount, array('title' => get_string('showdetails', 'admin')));
} else {
$strcount;
@@ -237,11 +236,12 @@ foreach ($sortedqtypes as $qtypename => $localname) {
}
// Other question types required by this one.
$requiredtypes = $qtype->requires_qtypes();
$plugin = $pluginmanager->get_plugin_info($qtype->plugin_name());
$requiredtypes = $plugin->get_other_required_plugins();
$strtypes = array();
if (!empty($requiredtypes)) {
foreach ($requiredtypes as $required) {
$strtypes[] = $qtypes[$required]->local_name();
foreach ($requiredtypes as $required => $notused) {
$strtypes[] = $pluginmanager->plugin_name($required);
}
$row[] = implode(', ', $strtypes);
} else {
+1 -1
View File
@@ -44,7 +44,7 @@ $hubname = optional_param('hubname', '', PARAM_TEXT);
$token = optional_param('token', '', PARAM_TEXT);
$error = optional_param('error', '', PARAM_ALPHANUM);
admin_externalpage_setup('registrationindex');
admin_externalpage_setup('registrationhubs');
if (!empty($error) and $error == 'urlalreadyexist') {
throw new moodle_exception('urlalreadyregistered', 'hub',
+19 -17
View File
@@ -136,8 +136,8 @@ class hub_selector_form extends moodleform {
$options = array();
foreach ($hubs as $hub) {
//to not display a name longer than 100 character (too big)
if (strlen($hub['name']) > 100) {
$hubname = substr($hub['name'], 0, 100);
if (textlib::strlen($hub['name']) > 100) {
$hubname = textlib::substr($hub['name'], 0, 100);
$hubname = $hubname . "...";
} else {
$hubname = $hub['name'];
@@ -203,7 +203,7 @@ class site_registration_form extends moodleform {
$cleanhuburl = clean_param($huburl, PARAM_ALPHANUMEXT);
$sitename = get_config('hub', 'site_name_' . $cleanhuburl);
if ($sitename === false) {
$sitename = $site->fullname;
$sitename = format_string($site->fullname, true, array('context' => get_context_instance(CONTEXT_COURSE, SITEID)));
}
$sitedescription = get_config('hub', 'site_description_' . $cleanhuburl);
if ($sitedescription === false) {
@@ -236,6 +236,7 @@ class site_registration_form extends moodleform {
$geolocation = get_config('hub', 'site_geolocation_' . $cleanhuburl);
$contactable = get_config('hub', 'site_contactable_' . $cleanhuburl);
$emailalert = get_config('hub', 'site_emailalert_' . $cleanhuburl);
$emailalert = ($emailalert === 0) ? 0 : 1;
$coursesnumber = get_config('hub', 'site_coursesnumber_' . $cleanhuburl);
$usersnumber = get_config('hub', 'site_usersnumber_' . $cleanhuburl);
$roleassignmentsnumber = get_config('hub', 'site_roleassignmentsnumber_' . $cleanhuburl);
@@ -279,27 +280,14 @@ class site_registration_form extends moodleform {
$mform->setType('description', PARAM_TEXT);
$mform->addHelpButton('description', 'sitedesc', 'hub');
$mform->addElement('static', 'urlstring', get_string('siteurl', 'hub'), $CFG->wwwroot);
$mform->addHelpButton('urlstring', 'siteurl', 'hub');
$languages = get_string_manager()->get_list_of_languages();
textlib_get_instance()->asort($languages);
collatorlib::asort($languages);
$mform->addElement('select', 'language', get_string('sitelang', 'hub'),
$languages);
$mform->setType('language', PARAM_ALPHANUMEXT);
$mform->addHelpButton('language', 'sitelang', 'hub');
$mform->setDefault('language', $language);
$mform->addElement('static', 'versionstring', get_string('siteversion', 'hub'), $CFG->version);
$mform->addElement('hidden', 'moodleversion', $CFG->version);
$mform->setType('moodleversion', PARAM_INT);
$mform->addHelpButton('versionstring', 'siteversion', 'hub');
$mform->addElement('static', 'releasestring', get_string('siterelease', 'hub'), $CFG->release);
$mform->addElement('hidden', 'moodlerelease', $CFG->release);
$mform->setType('moodlerelease', PARAM_TEXT);
$mform->addHelpButton('releasestring', 'siterelease', 'hub');
$mform->addElement('textarea', 'address', get_string('postaladdress', 'hub'),
array('rows' => 4, 'cols' => 41));
$mform->setType('address', PARAM_TEXT);
@@ -360,6 +348,20 @@ class site_registration_form extends moodleform {
//TODO site logo
$mform->addElement('hidden', 'imageurl', ''); //TODO: temporary
$mform->setType('imageurl', PARAM_URL);
$mform->addElement('static', 'urlstring', get_string('siteurl', 'hub'), $CFG->wwwroot);
$mform->addHelpButton('urlstring', 'siteurl', 'hub');
$mform->addElement('static', 'versionstring', get_string('siteversion', 'hub'), $CFG->version);
$mform->addElement('hidden', 'moodleversion', $CFG->version);
$mform->setType('moodleversion', PARAM_INT);
$mform->addHelpButton('versionstring', 'siteversion', 'hub');
$mform->addElement('static', 'releasestring', get_string('siterelease', 'hub'), $CFG->release);
$mform->addElement('hidden', 'moodlerelease', $CFG->release);
$mform->setType('moodlerelease', PARAM_TEXT);
$mform->addHelpButton('releasestring', 'siterelease', 'hub');
/// Display statistic that are going to be retrieve by the hub
$coursecount = $DB->count_records('course') - 1;
$usercount = $DB->count_records('user', array('deleted' => 0));
-68
View File
@@ -1,68 +0,0 @@
<?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 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
*
* Thsi page displays a hub selector or a hub URL + password. Then it will redirect to
* the site registration form (with the selected hub as parameter)
*/
require('../../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->dirroot.'/' . $CFG->admin . '/registration/forms.php');
admin_externalpage_setup('registrationselector');
$hubselectorform = new hub_selector_form();
$fromform = $hubselectorform->get_data();
//// Redirect to the registration form if an URL has been choosen ////
$selectedhuburl = optional_param('publichub', false, PARAM_URL);
$unlistedhuburl = optional_param('unlistedurl', false, PARAM_TEXT);
$password = optional_param('password', '', PARAM_RAW);
if (!empty($unlistedhuburl)) {
if (clean_param($unlistedhuburl, PARAM_URL) !== '') {
$huburl = $unlistedhuburl;
}
} else if (!empty($selectedhuburl)) {
$huburl = $selectedhuburl;
}
//redirect
if (!empty($huburl) and confirm_sesskey()) {
$hubname = optional_param(clean_param($huburl, PARAM_ALPHANUMEXT), '', PARAM_TEXT);
$params = array('sesskey' => sesskey(), 'huburl' => $huburl,
'password' => $password, 'hubname' => $hubname);
redirect(new moodle_url($CFG->wwwroot."/" . $CFG->admin . "/registration/register.php",
$params));
}
//// OUTPUT ////
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('registeron', 'hub'), 3, 'main');
$hubselectorform->display();
echo $OUTPUT->footer();
+56 -11
View File
@@ -22,8 +22,9 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com
*
* On this page the administrator select if he wants to register on Moodle.org or
* a specific hub
* On this page the administrator selects which hub he wants to register,
* except for MOOCH. Admins can register with MOOCH with the top admin menu "Registration" link.
* On this page the administrator can also unregister from any hubs, including MOOCH.
*/
require('../../config.php');
@@ -34,7 +35,7 @@ require_once($CFG->dirroot . '/' . $CFG->admin . '/registration/forms.php');
require_once($CFG->dirroot . '/course/publish/lib.php');
require_once($CFG->dirroot . "/webservice/xmlrpc/lib.php");
admin_externalpage_setup('registrationindex');
admin_externalpage_setup('registrationhubs');
$renderer = $PAGE->get_renderer('core', 'register');
@@ -126,13 +127,15 @@ if (empty($cancel) and $unregistration and $confirm and confirm_sesskey()) {
}
}
echo $OUTPUT->header();
//do not check sesskey if confirm = false because this script is linked into email message
if (!empty($errormessage)) {
echo $OUTPUT->notification(get_string('unregistrationerror', 'hub', $errormessage));
}
if (empty($cancel) and $unregistration and !$confirm) {
echo $OUTPUT->header();
//do not check sesskey if confirm = false because this script is linked into email message
if (!empty($errormessage)) {
echo $OUTPUT->notification(get_string('unregistrationerror', 'hub', $errormessage));
}
$hub = $registrationmanager->get_registeredhub($huburl);
echo $OUTPUT->heading(get_string('unregisterfrom', 'hub', $hub->hubname), 3, 'main');
if ($cleanregdata) {
@@ -142,6 +145,7 @@ if (empty($cancel) and $unregistration and !$confirm) {
$siteunregistrationform = new site_unregistration_form('',
array('huburl' => $huburl, 'hubname' => $hub->hubname));
}
$siteunregistrationform->display();
} else {
$registeredonmoodleorg = false;
@@ -150,8 +154,49 @@ if (empty($cancel) and $unregistration and !$confirm) {
$registeredonmoodleorg = true;
}
echo $OUTPUT->heading(get_string('registeron', 'hub'), 3, 'main');
echo $renderer->registrationselector($registeredonmoodleorg);
// load the hub selector form
$hubselectorform = new hub_selector_form();
$fromform = $hubselectorform->get_data();
$selectedhuburl = optional_param('publichub', false, PARAM_URL);
$unlistedhuburl = optional_param('unlistedurl', false, PARAM_TEXT);
$password = optional_param('password', '', PARAM_RAW);
$registeringhuburl = null;
if (!empty($unlistedhuburl)) {
if (clean_param($unlistedhuburl, PARAM_URL) !== '') {
$registeringhuburl = $unlistedhuburl;
}
} else if (!empty($selectedhuburl)) {
$registeringhuburl = $selectedhuburl;
}
// a hub has been selected, redirect to the hub registration page
if (empty($cancel) and !empty($registeringhuburl) and confirm_sesskey()) {
$hubname = optional_param(clean_param($registeringhuburl, PARAM_ALPHANUMEXT), '', PARAM_TEXT);
$params = array('sesskey' => sesskey(), 'huburl' => $registeringhuburl,
'password' => $password, 'hubname' => $hubname);
redirect(new moodle_url($CFG->wwwroot . "/" . $CFG->admin . "/registration/register.php",
$params));
}
echo $OUTPUT->header();
//check if the site is registered on Moodle.org and display a message about registering on MOOCH
$registered = $DB->count_records('registration_hubs', array('huburl' => HUB_MOODLEORGHUBURL, 'confirmed' => 1));
if (empty($registered)) {
$warningmsg = get_string('registermoochtips', 'hub');
$warningmsg .= $renderer->single_button(new moodle_url('register.php', array('huburl' => HUB_MOODLEORGHUBURL
, 'hubname' => 'Moodle.org')), get_string('register', 'admin'));
echo $renderer->box($warningmsg, 'buttons mdl-align generalbox adminwarning');
}
//do not check sesskey if confirm = false because this script is linked into email message
if (!empty($errormessage)) {
echo $OUTPUT->notification(get_string('unregistrationerror', 'hub', $errormessage));
}
echo $OUTPUT->heading(get_string('registerwith', 'hub'));
$hubselectorform->display();
if (extension_loaded('xmlrpc')) {
$hubs = $registrationmanager->get_registered_on_hubs();
+15 -6
View File
@@ -27,7 +27,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
* @copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com
*
* This page displays the site registration form.
* This page displays the site registration form for Moodle.org/MOOCH or for a different hub.
* It handles redirection to the hub to continue the registration workflow process.
* It also handles update operation by web service.
*/
@@ -39,15 +39,17 @@ require_once($CFG->dirroot . '/' . $CFG->admin . '/registration/forms.php');
require_once($CFG->dirroot . '/webservice/lib.php');
require_once($CFG->dirroot . '/' . $CFG->admin . '/registration/lib.php');
admin_externalpage_setup('registrationindex');
$huburl = required_param('huburl', PARAM_URL);
$huburl = rtrim($huburl, "/");
if ($huburl == HUB_MOODLEORGHUBURL) { // register to Moodle.org
admin_externalpage_setup('registrationmoodleorg');
} else { //register to a hub
admin_externalpage_setup('registrationhub');
}
$password = optional_param('password', '', PARAM_TEXT);
$hubname = optional_param('hubname', '', PARAM_TEXT);
if (!confirm_sesskey()) {
throw new moodle_exception('missingparameter');
}
$registrationmanager = new registration_manager();
@@ -145,5 +147,12 @@ if (!empty($error)) {
echo $error;
}
//some Moodle.org resitration explanation
if ($huburl == HUB_MOODLEORGHUBURL) {
echo $OUTPUT->heading(get_string('registerwithmoodleorg', 'admin'));
$renderer = $PAGE->get_renderer('core', 'register');
echo $renderer->moodleorg_registration_message();
}
$siteregistrationform->display();
echo $OUTPUT->footer();
+17 -51
View File
@@ -30,6 +30,23 @@
*/
class core_register_renderer extends plugin_renderer_base {
/**
* Display Moodle.org registration message about benefit to register on Moodle.org
*
* @return string
*/
public function moodleorg_registration_message() {
$moodleorgurl = html_writer::link('http://moodle.org', 'Moodle.org');
$moodleorgstatsurl = html_writer::link('http://moodle.org/stats', get_string('statsmoodleorg', 'admin'));
$moochurl = html_writer::link(HUB_MOODLEORGHUBURL, 'MOOCH');
$moodleorgregmsg = get_string('registermoodleorg', 'admin', $moodleorgurl);
$items = array(get_string('registermoodleorgli1', 'admin'),
get_string('registermoodleorgli2', 'admin', $moodleorgstatsurl),
get_string('registermoodleorgli3', 'admin', $moochurl));
$moodleorgregmsg .= html_writer::alist($items);
return $moodleorgregmsg;
}
/**
* Display a box message confirming a site registration (add or update)
* @param string $confirmationmessage
@@ -42,57 +59,6 @@ class core_register_renderer extends plugin_renderer_base {
return $this->output->box($message);
}
/**
* Display the page to register on Moodle.org or on a specific hub
*/
public function registrationselector($updatemoodleorg = false) {
global $CFG;
$table = new html_table();
$table->head = array(get_string('moodleorg', 'hub'), get_string('specifichub', 'hub'));
$table->size = array('50%', '50%');
//$table->attributes['class'] = 'registerindextable';
//Moodle.org information cell
$moodleorgcell = get_string('moodleorgregistrationdetail', 'hub');
$moodleorgcell .= html_writer::empty_tag('br') . html_writer::empty_tag('br');
$moodleorgcell = html_writer::tag('div', $moodleorgcell, array('class' => 'justifytext'));
//Specific hub information cell
$specifichubcell = get_string('specifichubregistrationdetail', 'hub');
$specifichubcell .= html_writer::empty_tag('br') . html_writer::empty_tag('br');
$specifichubcell = html_writer::tag('div', $specifichubcell, array('class' => 'justifytext'));
//add information cells
$cells = array($moodleorgcell, $specifichubcell);
$row = new html_table_row($cells);
$table->data[] = $row;
//Moodle.org button cell
$registeronmoodleorgurl = new moodle_url("/" . $CFG->admin . "/registration/register.php",
array('sesskey' => sesskey(), 'huburl' => HUB_MOODLEORGHUBURL
, 'hubname' => 'Moodle.org'));
$registeronmoodleorgbutton = new single_button($registeronmoodleorgurl,
$updatemoodleorg ? get_string('updatesite', 'hub', 'Moodle.org') : get_string('registeronmoodleorg', 'hub'));
$registeronmoodleorgbutton->class = 'centeredbutton';
$registeronmoodleorgbuttonhtml = $this->output->render($registeronmoodleorgbutton);
$moodleorgcell = $registeronmoodleorgbuttonhtml;
//Specific hub button cell
$registeronspecifichuburl = new moodle_url("/" . $CFG->admin . "/registration/hubselector.php",
array('sesskey' => sesskey()));
$registeronspecifichubbutton = new single_button($registeronspecifichuburl,
get_string('registeronspecifichub', 'hub'));
$registeronspecifichubbutton->class = 'centeredbutton';
$registeronspecifichubbuttonhtml = $this->output->render($registeronspecifichubbutton);
$specifichubcell = $registeronspecifichubbuttonhtml;
//add button cells
$cells = array($moodleorgcell, $specifichubcell);
$row = new html_table_row($cells);
$table->data[] = $row;
return html_writer::table($table);
}
/**
* Display the listing of registered on hub
*/
+1 -1
View File
@@ -39,7 +39,7 @@ $url = optional_param('url', '', PARAM_URL);
$hubname = optional_param('hubname', '', PARAM_TEXT);
$token = optional_param('token', '', PARAM_TEXT);
admin_externalpage_setup('registrationindex');
admin_externalpage_setup('registrationhubs');
//check that we are waiting a confirmation from this hub, and check that the token is correct
$registrationmanager = new registration_manager();
+987 -39
View File
File diff suppressed because it is too large Load Diff
-59
View File
@@ -1,59 +0,0 @@
<?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');
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() 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"><div>';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
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();
die;
}
echo $OUTPUT->box_start();
db_replace($search, $replace);
echo $OUTPUT->box_end();
/// Rebuild course cache which might be incorrect now
echo $OUTPUT->notification('Rebuilding course cache...', 'notifysuccess');
rebuild_course_cache();
echo $OUTPUT->notification('...finished', 'notifysuccess');
echo $OUTPUT->continue_button('index.php');
echo $OUTPUT->footer();
-128
View File
@@ -1,128 +0,0 @@
<?php
// index.php - scheduled backup logs
require_once('../../../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->dirroot.'/backup/lib.php');
$courseid = optional_param('courseid', 0, PARAM_INT);
admin_externalpage_setup('reportbackups');
echo $OUTPUT->header();
/// Automated backups aren't active by the site admin
$backup_config = backup_get_config();
if (empty($backup_config->backup_auto_active)) {
echo $OUTPUT->notification(get_string('automatedbackupsinactive', 'backup'));
}
/// Get needed strings
$backuploglaststatus = get_string("backuploglaststatus");
$backuplogdetailed = get_string("backuplogdetailed");
$stradmin = get_string("administration");
$strconfiguration = get_string("configuration");
$strbackup = get_string("backup");
$strbackupdetails = get_string("backupdetails");
$strlogs = get_string("logs");
$strftimedatetime = get_string("strftimerecent");
$strftimetime = get_string("strftimetime").":%S";
$strerror = get_string("error");
$strok = get_string("ok");
$strunfinished = get_string("unfinished");
$strskipped = get_string("skipped");
$strcourse = get_string("course");
$strtimetaken = get_string("timetaken","quiz");
$strstatus = get_string("status");
$strnext = get_string("backupnext");
/// Decide when to show last execution logs or detailed logs
/// Lastlog view
if (!$courseid) {
echo $OUTPUT->heading($backuploglaststatus);
echo $OUTPUT->box_start();
/// Now, get every record from backup_courses
$courses = $DB->get_records("backup_courses");
if (!$courses) {
echo $OUTPUT->notification(get_string('nologsfound'));
} else {
echo "<table border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"3\">";
//Print table header
echo "<tr>";
echo "<td nowrap=\"nowrap\" align=\"center\"><font size=\"3\">$strcourse</font></td>";
echo "<td nowrap=\"nowrap\" align=\"center\" colspan=\"3\"><font size=\"3\">$strtimetaken</font></td>";
echo "<td nowrap=\"nowrap\" align=\"center\"><font size=\"3\">$strstatus</font></td>";
echo "<td nowrap=\"nowrap\" align=\"center\"><font size=\"3\">$strnext</font></td></tr>";
foreach ($courses as $course) {
/// Get the course shortname
$coursename = $DB->get_field ("course", "fullname", array("id"=>$course->courseid));
if ($coursename) {
echo "<tr>";
echo "<td nowrap=\"nowrap\"><font size=\"2\"><a href=\"index.php?courseid=$course->courseid\">".$coursename."</a></font></td>";
echo "<td nowrap=\"nowrap\"><font size=\"2\">".userdate($course->laststarttime,$strftimedatetime)."</font></td>";
echo "<td nowrap=\"nowrap\"><font size=\"2\"> - </font></td>";
echo "<td nowrap=\"nowrap\"><font size=\"2\">".userdate($course->lastendtime,$strftimedatetime)."</font></td>";
if ($course->laststatus == 1) {
echo "<td nowrap=\"nowrap\" align=\"center\"><font size=\"2\" color=\"green\">".$strok."</font></td>";
} else if ($course->laststatus == 2) {
echo "<td nowrap=\"nowrap\" align=\"center\"><font size=\"2\" color=\"red\">".$strunfinished."</font></td>";
} else if ($course->laststatus == 3) {
echo "<td nowrap=\"nowrap\" align=\"center\"><font size=\"2\" color=\"green\">".$strskipped."</font></td>";
} else {
echo "<td nowrap=\"nowrap\" align=\"center\"><font size=\"2\" color=\"red\">".$strerror."</font></td>";
}
echo "<td nowrap=\"nowrap\"><font size=\"2\">".userdate($course->nextstarttime,$strftimedatetime)."</font></td>";
echo "</tr>";
}
}
echo "</table>";
}
echo $OUTPUT->box_end();
/// Detailed View !!
} else {
echo $OUTPUT->heading($backuplogdetailed);
$coursename = $DB->get_field("course", "fullname", array("id"=>"$courseid"));
echo $OUTPUT->heading("$strcourse: $coursename");
echo $OUTPUT->box_start();
/// First, me get all the distinct backups for that course in backup_log
$executions = $DB->get_records_sql("SELECT DISTINCT laststarttime
FROM {backup_log}
WHERE courseid = ? AND backuptype = ?
ORDER BY laststarttime DESC", array($courseid,'scheduledbackup'));
/// Iterate over backup executions
if (!$executions) {
echo $OUTPUT->notification(get_string('nologsfound'));
} else {
echo "<table border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"3\">";
foreach($executions as $execution) {
echo "<tr>";
echo "<td nowrap=\"nowrap\" align=\"center\" colspan=\"3\">";
echo $OUTPUT->box(userdate($execution->laststarttime));
echo "</td>";
echo "</tr>";
$logs = $DB->get_records_sql("SELECT *
FROM {backup_log}
WHERE courseid = ? AND laststarttime = ? AND backuptype = ?
ORDER BY id", array($courseid, $execution->laststarttime,'scheduledbackup'));
if ($logs) {
foreach ($logs as $log) {
echo "<tr>";
echo "<td nowrap=\"nowrap\"><font size=\"2\">".userdate($log->time,$strftimetime)."</font></td>";
$log->info = str_replace("- ERROR!!","- <font color=\"red\">ERROR!!</font>",$log->info);
$log->info = str_replace("- OK","- <font color=\"green\">OK</font>",$log->info);
echo "<td nowrap=\"nowrap\"><font size=\"2\">".str_replace(" ","&nbsp;&nbsp;&nbsp;&nbsp;",$log->info)."</font></td>";
echo "</tr>";
}
}
}
echo "</table>";
}
echo $OUTPUT->box_end();
}
echo $OUTPUT->footer();
-5
View File
@@ -1,5 +0,0 @@
<?php
defined('MOODLE_INTERNAL') || die;
$ADMIN->add('reports', new admin_externalpage('reportbackups', get_string('backups', 'admin'), "$CFG->wwwroot/$CFG->admin/report/backups/index.php",'moodle/backup:backupcourse'));
-214
View File
@@ -1,214 +0,0 @@
<?php
/**
* For a given capability, show what permission it has for every role, and
* everywhere that it is overridden.
*
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @package roles
*/
/** */
require_once(dirname(__FILE__).'/../../../config.php');
require_once($CFG->libdir.'/adminlib.php');
// Check permissions.
require_login();
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
require_capability('moodle/role:manage', $systemcontext);
// Get URL parameters.
$capability = optional_param('capability', '', PARAM_CAPABILITY);
$roleids = optional_param('roles', array('0'), PARAM_INTEGER);
// Clean the passed in list of role ids. If 'All' selected as an option, or
// if none were selected, do all roles.
$allroles = get_all_roles();
$cleanedroleids = array();
foreach ($roleids as $roleid) {
if ($roleid == 0) {
$cleanedroleids = array_keys($allroles);
break;
}
if (array_key_exists($roleid, $allroles)) {
$cleanedroleids[] = $roleid;
}
}
if (empty($cleanedroleids)) {
$cleanedroleids = array_keys($allroles);
}
// Include the required JavaScript.
$PAGE->requires->js_init_call('M.report_capability.init', array(get_string('search')));
// Log.
add_to_log(SITEID, "admin", "report capability", "report/capability/index.php?capability=$capability", $capability);
// Print the header.
admin_externalpage_setup('reportcapability');
echo $OUTPUT->header();
// Prepare the list of capabilities to choose from
$allcapabilities = fetch_context_capabilities($systemcontext);
$capabilitychoices = array();
foreach ($allcapabilities as $cap) {
$capabilitychoices[$cap->name] = $cap->name . ': ' . get_capability_string($cap->name);
}
// Prepare the list of roles to choose from
$rolechoices = array('0' => get_string('all'));
foreach ($allroles as $role) {
$rolechoices[$role->id] = $role->name;
}
if (count($cleanedroleids) == count($allroles)) {
// Select 'All', rather than each role individually.
$selectedroleids = array('0');
} else {
$selectedroleids = $cleanedroleids;
}
// Print the settings form.
echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter');
echo '<form method="get" action="." id="settingsform"><div>';
echo $OUTPUT->heading(get_string('reportsettings', 'report_capability'));
echo '<p id="intro">', get_string('intro', 'report_capability') , '</p>';
echo '<p><label for="menucapability"> ' . get_string('capabilitylabel', 'report_capability') . '</label></p>';
echo html_writer::select($capabilitychoices, 'capability', $capability, array(''=>'choose'), array('size'=>10));
echo '<p><label for="menuroles"> ' . get_string('roleslabel', 'report_capability') . '</label></p>';
echo html_writer::select($rolechoices, 'roles[]', $selectedroleids, false, array('size'=>10, 'multiple'=>'multiple'));
echo '<p><input type="submit" id="settingssubmit" value="' . get_string('getreport', 'report_capability') . '" /></p>';
echo '</div></form>';
echo $OUTPUT->box_end();
// If we have a capability, generate the report.
if ($capability) {
// Work out the bits needed for the SQL WHERE clauses.
$params = array($capability);
$sqlroletest = '';
if (count($cleanedroleids) != count($allroles)) {
list($sqlroletest, $roleparams) = $DB->get_in_or_equal($cleanedroleids);
$params = array_merge($params, $roleparams);
$sqlroletest = 'AND roleid ' . $sqlroletest;
}
// Get all the role_capabilities rows for this capability - that is, all
// role definitions, and all role overrides.
$rolecaps = $DB->get_records_sql("
SELECT id, roleid, contextid, permission
FROM {role_capabilities}
WHERE capability = ? $sqlroletest", $params);
// In order to display a nice tree of contexts, we need to get all the
// ancestors of all the contexts in the query we just did.
$relevantpaths = $DB->get_records_sql_menu("
SELECT DISTINCT con.path, 1
FROM {context} con JOIN {role_capabilities} rc ON rc.contextid = con.id
WHERE capability = ? $sqlroletest", $params);
$requiredcontexts = array($systemcontext->id);
foreach ($relevantpaths as $path => $notused) {
$requiredcontexts = array_merge($requiredcontexts, explode('/', trim($path, '/')));
}
$requiredcontexts = array_unique($requiredcontexts);
// Now load those contexts.
list($sqlcontexttest, $contextparams) = $DB->get_in_or_equal($requiredcontexts);
$contexts = get_sorted_contexts('ctx.id ' . $sqlcontexttest, $contextparams);
// Prepare some empty arrays to hold the data we are about to compute.
foreach ($contexts as $conid => $con) {
$contexts[$conid]->children = array();
$contexts[$conid]->rolecapabilities = array();
}
// Put the contexts into a tree structure.
foreach ($contexts as $conid => $con) {
$parentcontextid = get_parent_contextid($con);
if ($parentcontextid) {
$contexts[$parentcontextid]->children[] = $conid;
}
}
// Put the role capabilities into the context tree.
foreach ($rolecaps as $rolecap) {
$contexts[$rolecap->contextid]->rolecapabilities[$rolecap->roleid] = $rolecap->permission;
}
// Fill in any missing rolecaps for the system context.
foreach ($cleanedroleids as $roleid) {
if (!isset($contexts[$systemcontext->id]->rolecapabilities[$roleid])) {
$contexts[$systemcontext->id]->rolecapabilities[$roleid] = CAP_INHERIT;
}
}
// Print the report heading.
echo $OUTPUT->heading(get_string('reportforcapability', 'report_capability', get_capability_string($capability)), 2, 'main', 'report');
if (count($cleanedroleids) != count($allroles)) {
$rolenames = array();
foreach ($cleanedroleids as $roleid) {
$rolenames[] = $allroles[$roleid]->name;
}
echo '<p>', get_string('forroles', 'report_capability', implode(', ', $rolenames)), '</p>';
}
// Now, recursively print the contexts, and the role information.
print_report_tree($systemcontext->id, $contexts, $allroles);
}
// Footer.
echo $OUTPUT->footer();
function print_report_tree($contextid, $contexts, $allroles) {
global $CFG;
// Array for holding lang strings.
static $strpermissions = null;
if (is_null($strpermissions)) {
$strpermissions = array(
CAP_INHERIT => get_string('notset','role'),
CAP_ALLOW => get_string('allow','role'),
CAP_PREVENT => get_string('prevent','role'),
CAP_PROHIBIT => get_string('prohibit','role')
);
}
// Start the list item, and print the context name as a link to the place to
// make changes.
if ($contextid == get_system_context()->id) {
$url = "$CFG->wwwroot/$CFG->admin/roles/manage.php";
$title = get_string('changeroles', 'report_capability');
} else {
$url = "$CFG->wwwroot/$CFG->admin/roles/override.php?contextid=$contextid";
$title = get_string('changeoverrides', 'report_capability');
}
echo '<h3><a href="' . $url . '" title="' . $title . '">', print_context_name($contexts[$contextid]), '</a></h3>';
// If there are any role overrides here, print them.
if (!empty($contexts[$contextid]->rolecapabilities)) {
$rowcounter = 0;
echo '<table class="generaltable rolecaps"><tbody>';
foreach ($allroles as $role) {
if (isset($contexts[$contextid]->rolecapabilities[$role->id])) {
$permission = $contexts[$contextid]->rolecapabilities[$role->id];
echo '<tr class="r' . ($rowcounter % 2) . '"><th class="cell">', $role->name,
'</th><td class="cell">' . $strpermissions[$permission] . '</td></tr>';
$rowcounter++;
}
}
echo '</tbody></table>';
}
// After we have done the site context, change the string for CAP_INHERIT
// from 'notset' to 'inherit'.
$strpermissions[CAP_INHERIT] = get_string('inherit','role');
// If there are any child contexts, print them recursively.
if (!empty($contexts[$contextid]->children)) {
echo '<ul>';
foreach ($contexts[$contextid]->children as $childcontextid) {
echo '<li>';
print_report_tree($childcontextid, $contexts, $allroles);
echo '</li>';
}
echo '</ul>';
}
}
@@ -1,36 +0,0 @@
<?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_capability', language 'en', branch 'MOODLE_20_STABLE'
*
* @package report_capability
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['capabilitylabel'] = 'Capability:';
$string['capabilityreport'] = 'Capability report';
$string['forroles'] = 'For roles {$a}';
$string['getreport'] = 'Get the report';
$string['changeoverrides'] = 'Change overrides in this context';
$string['changeroles'] = 'Change role definitions';
$string['intro'] = 'This report shows, for a particular capability, what permission that capability has in the definition of every role (or a selection of roles), and everywhere in the site where that capability is overridden.';
$string['pluginname'] = 'Capability report';
$string['reportforcapability'] = 'Report for capability \'{$a}\'';
$string['reportsettings'] = 'Report settings';
$string['roleslabel'] = 'Roles:';
-75
View File
@@ -1,75 +0,0 @@
M.report_capability = {
select: null,
input: null,
button: null,
init: function(Y, strsearch) {
var context = M.report_capability;
// Find the form controls.
context.select = document.getElementById('menucapability');
context.button = document.getElementById('settingssubmit');
// Create a div to hold the search UI.
var div = document.createElement('div');
div.id = 'capabilitysearchui';
// Find the capability search input.
var input = document.createElement('input');
input.type = 'text';
input.id = 'capabilitysearch';
context.input = input;
// Create a label for the search input.
var label = document.createElement('label');
label.htmlFor = input.id;
label.appendChild(document.createTextNode(strsearch + ' '));
// Tie it all together
div.appendChild(label);
div.appendChild(input);
context.select.parentNode.insertBefore(div, context.select);
Y.on('keyup', context.typed, input);
Y.on('change', context.validate, context.select);
context.select.options[0].style.display = 'none';
context.validate();
},
typed: function() {
var context = M.report_capability;
var filtertext = context.input.value;
var options = context.select.options;
var onlycapability = -1;
for (var i = 1; i < options.length; i++) {
if (options[i].text.indexOf(filtertext) >= 0) {
options[i].disabled = false;
options[i].style.display = 'block';
if (onlycapability == -1) {
onlycapability = i;
} else {
onlycapability = -2;
}
} else {
options[i].disabled = true;
options[i].selected = false;
options[i].style.display = 'none';
}
}
if (onlycapability >= 0) {
options[onlycapability].selected = true;
}
if (onlycapability == -1) {
context.input.className = "error";
} else {
context.input.className = "";
}
context.validate();
},
validate: function() {
var context = M.report_capability;
context.button.disabled = (context.select.value == '');
}
}
-5
View File
@@ -1,5 +0,0 @@
<?php
defined('MOODLE_INTERNAL') || die;
$ADMIN->add('roles', new admin_externalpage('reportcapability', get_string('pluginname', 'report_capability'), "$CFG->wwwroot/$CFG->admin/report/capability/index.php",'moodle/role:manage'));
-110
View File
@@ -1,110 +0,0 @@
<?php
require_once(dirname(__FILE__).'/../../../config.php');
require_once($CFG->libdir.'/adminlib.php');
// page parameters
$page = optional_param('page', 0, PARAM_INT);
$perpage = optional_param('perpage', 30, PARAM_INT); // how many per page
$sort = optional_param('sort', 'timemodified', PARAM_ALPHA);
$dir = optional_param('dir', 'DESC', PARAM_ALPHA);
admin_externalpage_setup('reportconfiglog');
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('configlog', 'report_configlog'));
$changescount = $DB->count_records('config_log');
$columns = array('firstname' => get_string('firstname'),
'lastname' => get_string('lastname'),
'timemodified' => get_string('timemodified', 'report_configlog'),
'plugin' => get_string('plugin', 'report_configlog'),
'name' => get_string('setting', 'report_configlog'),
'value' => get_string('value', 'report_configlog'),
'oldvalue' => get_string('oldvalue', 'report_configlog'),
);
$hcolumns = array();
if (!isset($columns[$sort])) {
$sort = 'lastname';
}
foreach ($columns as $column=>$strcolumn) {
if ($sort != $column) {
$columnicon = '';
if ($column == 'lastaccess') {
$columndir = 'DESC';
} else {
$columndir = 'ASC';
}
} else {
$columndir = $dir == 'ASC' ? 'DESC':'ASC';
if ($column == 'lastaccess') {
$columnicon = $dir == 'ASC' ? 'up':'down';
} else {
$columnicon = $dir == 'ASC' ? 'down':'up';
}
$columnicon = " <img src=\"" . $OUTPUT->pix_url('t/' . $columnicon) . "\" alt=\"\" />";
}
$hcolumns[$column] = "<a href=\"index.php?sort=$column&amp;dir=$columndir&amp;page=$page&amp;perpage=$perpage\">".$strcolumn."</a>$columnicon";
}
$baseurl = new moodle_url('index.php', array('sort' => $sort, 'dir' => $dir, 'perpage' => $perpage));
echo $OUTPUT->paging_bar($changescount, $page, $perpage, $baseurl);
$override = new stdClass();
$override->firstname = 'firstname';
$override->lastname = 'lastname';
$fullnamelanguage = get_string('fullnamedisplay', '', $override);
if (($CFG->fullnamedisplay == 'firstname lastname') or
($CFG->fullnamedisplay == 'firstname') or
($CFG->fullnamedisplay == 'language' and $fullnamelanguage == 'firstname lastname' )) {
$fullnamedisplay = $hcolumns['firstname'].' / '.$hcolumns['lastname'];
} else { // ($CFG->fullnamedisplay == 'language' and $fullnamelanguage == 'lastname firstname')
$fullnamedisplay = $hcolumns['lastname'].' / '.$hcolumns['firstname'];
}
$table = new html_table();
$table->head = array($hcolumns['timemodified'], $fullnamedisplay, $hcolumns['plugin'], $hcolumns['name'], $hcolumns['value'], $hcolumns['oldvalue']);
$table->align = array('left', 'left', 'left', 'left', 'left', 'left');
$table->size = array('30%', '10%', '10%', '10%', '20%', '20%');
$table->width = '95%';
$table->data = array();
if ($sort == 'firstname' or $sort == 'lastname') {
$orderby = "u.$sort $dir";
} else {
$orderby = "cl.$sort $dir";
}
$ufields = user_picture::fields('u');
$sql = "SELECT $ufields,
cl.timemodified, cl.plugin, cl.name, cl.value, cl.oldvalue
FROM {config_log} cl
JOIN {user} u ON u.id = cl.userid
ORDER BY $orderby";
$rs = $DB->get_recordset_sql($sql, array(), $page*$perpage, $perpage);
foreach ($rs as $log) {
$row = array();
$row[] = userdate($log->timemodified);
$row[] = fullname($log);
if (is_null($log->plugin)) {
$row[] = 'core';
} else {
$row[] = $log->plugin;
}
$row[] = $log->name;
$row[] = s($log->value);
$row[] = s($log->oldvalue);
$table->data[] = $row;
}
$rs->close();
echo html_writer::table($table);
echo $OUTPUT->footer();
-5
View File
@@ -1,5 +0,0 @@
<?php
defined('MOODLE_INTERNAL') || die;
$ADMIN->add('reports', new admin_externalpage('reportconfiglog', get_string('configlog', 'report_configlog'), "$CFG->wwwroot/$CFG->admin/report/configlog/index.php"));
-40
View File
@@ -1,40 +0,0 @@
<?php
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.com //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
// //
// This program 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 2 of the License, or //
// (at your option) any later version. //
// //
// This program 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: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
$capabilities = array(
'report/courseoverview:view' => array(
'riskbitmask' => RISK_PERSONAL,
'captype' => 'read',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/site:viewreports',
)
);
-123
View File
@@ -1,123 +0,0 @@
<?php
require_once('../../../config.php');
require_once($CFG->dirroot.'/lib/statslib.php');
require_once($CFG->libdir.'/adminlib.php');
$report = optional_param('report', STATS_REPORT_ACTIVE_COURSES, PARAM_INT);
$time = optional_param('time', 0, PARAM_INT);
$numcourses = optional_param('numcourses', 20, PARAM_INT);
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);
} else {
print_error('statsdisable');
}
}
admin_externalpage_setup('reportcourseoverview');
echo $OUTPUT->header();
$course = get_site();
stats_check_uptodate($course->id);
$strreports = get_string('reports');
$strcourseoverview = get_string('courseoverview');
$reportoptions = stats_get_report_options($course->id,STATS_MODE_RANKED);
$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();
if (empty($earliestmonth)) $earliestmonth = time();
$now = stats_get_base_daily();
$lastweekend = stats_get_base_weekly();
$lastmonthend = stats_get_base_monthly();
$timeoptions = stats_get_time_options($now,$lastweekend,$lastmonthend,$earliestday,$earliestweek,$earliestmonth);
if (empty($timeoptions)) {
print_error('nostatstodisplay', 'error', $CFG->wwwroot.'/course/view.php?id='.$course->id);
}
echo '<form action="index.php" method="post">'."\n";
echo '<div>';
$table = new html_table();
$table->width = '*';
$table->align = array('left','left','left','left','left','left');
$reporttypemenu = html_writer::select($reportoptions,'report',$report, false);
$timeoptionsmenu = html_writer::select($timeoptions,'time',$time, false);
$table->data[] = array(get_string('statsreporttype'),$reporttypemenu,
get_string('statstimeperiod'),$timeoptionsmenu,
'<input type="text" name="numcourses" size="3" maxlength="2" value="'.$numcourses.'" />',
'<input type="submit" value="'.get_string('view').'" />') ;
echo html_writer::table($table);
echo '</div>';
echo '</form>';
echo $OUTPUT->heading($reportoptions[$report]);
if (!empty($report) && !empty($time)) {
$param = stats_get_parameters($time,$report,SITEID,STATS_MODE_RANKED);
if (!empty($param->sql)) {
$sql = $param->sql;
} else {
$sql = "SELECT courseid,".$param->fields."
FROM {".'stats_'.$param->table."}
WHERE timeend >= $param->timeafter AND stattype = 'activity' AND roleid = 0
GROUP BY courseid
$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>';
} else {
if (empty($CFG->gdversion)) {
echo '<div class="graph">(' . get_string("gdneed") .')</div>';
} else {
echo '<div class="graph"><img alt="'.get_string('courseoverviewgraph').'" src="'.$CFG->wwwroot.'/'.$CFG->admin.'/report/courseoverview/reportsgraph.php?time='.$time.'&report='.$report.'&numcourses='.$numcourses.'" /></div>';
}
$table = new html_table();
$table->align = array('left','center','center','center');
$table->head = array(get_string('course'),$param->line1);
if (!empty($param->line2)) {
$table->head[] = $param->line2;
}
if (!empty($param->line3)) {
$table->head[] = $param->line3;
}
foreach ($courses as $c) {
$a = array();
$a[] = '<a href="'.$CFG->wwwroot.'/course/view.php?id='.$c->courseid.'">'.$DB->get_field('course', 'shortname', array('id'=>$c->courseid)).'</a>';
$a[] = $c->line1;
if (isset($c->line2)) {
$a[] = $c->line2;
}
if (isset($c->line3)) {
$a[] = round($c->line3,2);
}
$table->data[] = $a;
}
echo html_writer::table($table);
}
}
echo $OUTPUT->footer();
@@ -1,27 +0,0 @@
<?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_courseoverview', language 'en', branch 'MOODLE_20_STABLE'
*
* @package report_courseoverview
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['courseoverview:view'] = 'View course overview report';
$string['pluginname'] = 'Course overview';
@@ -1,57 +0,0 @@
<?php
require_once('../../../config.php');
require_once($CFG->dirroot.'/lib/statslib.php');
require_once($CFG->dirroot.'/lib/graphlib.php');
$report = required_param('report', PARAM_INT);
$time = required_param('time', PARAM_INT);
$numcourses = required_param('numcourses', PARAM_INT);
require_login();
require_capability('report/courseoverview:view', get_context_instance(CONTEXT_SYSTEM));
stats_check_uptodate();
$param = stats_get_parameters($time,$report,SITEID,STATS_MODE_RANKED);
if (!empty($param->sql)) {
$sql = $param->sql;
} else {
$sql = "SELECT courseid, $param->fields
FROM {".'stats_'.$param->table."}
WHERE timeend >= $param->timeafter AND stattype = 'activity' AND roleid = 0
GROUP BY courseid
$param->extras
ORDER BY $param->orderby";
}
$courses = $DB->get_records_sql($sql, $param->params, 0, $numcourses);
if (empty($courses)) {
$PAGE->set_url('/admin/report/courseoverview/index.php');
print_error('statsnodata', 'error', $PAGE->url->out());
}
$graph = new graph(750,400);
$graph->parameter['legend'] = 'outside-right';
$graph->parameter['legend_size'] = 10;
$graph->parameter['x_axis_angle'] = 90;
$graph->parameter['title'] = false; // moodle will do a nicer job.
$graph->y_tick_labels = null;
$graph->offset_relation = null;
if ($report != STATS_REPORT_ACTIVE_COURSES) {
$graph->parameter['y_decimal_left'] = 2;
}
foreach ($courses as $c) {
$graph->x_data[] = $DB->get_field('course', 'shortname', array('id'=>$c->courseid));
$graph->y_data['bar1'][] = $c->{$param->graphline};
}
$graph->y_order = array('bar1');
$graph->y_format['bar1'] = array('colour' => 'blue','bar' => 'fill','legend' => $param->{$param->graphline});
$graph->draw_stack();
-5
View File
@@ -1,5 +0,0 @@
<?php
defined('MOODLE_INTERNAL') || die;
$ADMIN->add('reports', new admin_externalpage('reportcourseoverview', get_string('pluginname', 'report_courseoverview'), "$CFG->wwwroot/$CFG->admin/report/courseoverview/index.php",'report/courseoverview:view'));
-27
View File
@@ -1,27 +0,0 @@
<?PHP
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.com //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
// //
// This program 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 2 of the License, or //
// (at your option) any later version. //
// //
// This program 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: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
$plugin->version = 2010090501;
$plugin->requires = 2010090501;
-51
View File
@@ -1,51 +0,0 @@
<?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/>.
/**
* Defines the capabilities used by the Language customization admin report
*
* @package report
* @subpackage customlang
* @copyright 2010 David Mudrak <david@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$capabilities = array(
/* allows the user to view the current language customization */
'report/customlang:view' => array(
'riskbitmask' => RISK_CONFIG,
'captype' => 'read',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'manager' => CAP_ALLOW
),
),
/* allows the user to edit the current language customization */
'report/customlang:edit' => array(
'riskbitmask' => RISK_CONFIG | RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'manager' => CAP_ALLOW
),
),
);
-40
View File
@@ -1,40 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<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"
>
<TABLES>
<TABLE NAME="report_customlang" COMMENT="Contains the working checkout of all strings and their customization" NEXT="report_customlang_components">
<FIELDS>
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" NEXT="lang"/>
<FIELD NAME="lang" TYPE="char" LENGTH="20" NOTNULL="true" SEQUENCE="false" COMMENT="The code of the language this string belongs to. Like en, cs or es" PREVIOUS="id" NEXT="componentid"/>
<FIELD NAME="componentid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" COMMENT="The id of the component" PREVIOUS="lang" NEXT="stringid"/>
<FIELD NAME="stringid" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" COMMENT="The identifier of the string" PREVIOUS="componentid" NEXT="original"/>
<FIELD NAME="original" TYPE="text" LENGTH="big" NOTNULL="true" SEQUENCE="false" COMMENT="English original of the string" PREVIOUS="stringid" NEXT="master"/>
<FIELD NAME="master" TYPE="text" LENGTH="big" NOTNULL="false" SEQUENCE="false" COMMENT="Master translation of the string as is distributed in the official lang pack, null if not translated" PREVIOUS="original" NEXT="local"/>
<FIELD NAME="local" TYPE="text" LENGTH="big" NOTNULL="false" SEQUENCE="false" COMMENT="Local customization of the string, null if not customized" PREVIOUS="master" NEXT="timemodified"/>
<FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" COMMENT="The timestamp of when the original or master was recently modified" PREVIOUS="local" NEXT="timecustomized"/>
<FIELD NAME="timecustomized" TYPE="int" LENGTH="10" NOTNULL="false" UNSIGNED="true" SEQUENCE="false" COMMENT="The timestamp of when the value of the local translation was recently modified, null if not customized yet" PREVIOUS="timemodified" NEXT="outdated"/>
<FIELD NAME="outdated" TYPE="int" LENGTH="3" NOTNULL="false" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" COMMENT="Either the English original or the master translation changed and the customization may be outdated" PREVIOUS="timecustomized" NEXT="modified"/>
<FIELD NAME="modified" TYPE="int" LENGTH="3" NOTNULL="false" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" COMMENT="Has the string been modified via the translator?" PREVIOUS="outdated"/>
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="fk_component"/>
<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">
<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="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"/>
</KEYS>
</TABLE>
</TABLES>
</XMLDB>
-74
View File
@@ -1,74 +0,0 @@
<?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/>.
/**
* Language customization report upgrades
*
* @package report
* @subpackage customlang
* @copyright 2010 David Mudrak <david.mudrak@gmail.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
function xmldb_report_customlang_upgrade($oldversion) {
global $CFG, $DB, $OUTPUT;
$dbman = $DB->get_manager();
$result = true;
/**
* Use proper plugin prefix for tables
*/
if ($oldversion < 2010111200) {
if ($dbman->table_exists('customlang')) {
$dbman->rename_table(new xmldb_table('customlang'), 'report_customlang');
}
if ($dbman->table_exists('customlang_components')) {
$dbman->rename_table(new xmldb_table('customlang_components'), 'report_customlang_components');
}
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;
}
-126
View File
@@ -1,126 +0,0 @@
<?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 report
* @subpackage customlang
* @copyright 2010 David Mudrak <david@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require(dirname(dirname(dirname(dirname(__FILE__)))).'/config.php');
require_once($CFG->dirroot.'/'.$CFG->admin.'/report/customlang/locallib.php');
require_once($CFG->dirroot.'/'.$CFG->admin.'/report/customlang/filter_form.php');
require_login(SITEID, false);
require_capability('report/customlang:edit', get_system_context());
$lng = required_param('lng', PARAM_LANG);
$currentpage = optional_param('p', 0, PARAM_INT);
$translatorsubmitted = optional_param('translatorsubmitted', 0, PARAM_BOOL);
$PAGE->set_pagelayout('standard');
$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_editor', array(), true);
if (empty($lng)) {
// PARAM_LANG validation failed
print_error('missingparameter');
}
// pre-output processing
$filter = new report_customlang_filter_form($PAGE->url, null, 'post', '', array('class'=>'filterform'));
$filterdata = report_customlang_utils::load_filter($USER);
$filter->set_data($filterdata);
if ($filter->is_cancelled()) {
redirect($PAGE->url);
} elseif ($submitted = $filter->get_data()) {
report_customlang_utils::save_filter($submitted, $USER);
redirect(new moodle_url($PAGE->url, array('p'=>0)));
}
if ($translatorsubmitted) {
$strings = optional_param('cust', array(), PARAM_RAW);
$updates = optional_param('updates', array(), PARAM_INT);
$checkin = optional_param('savecheckin', false, PARAM_RAW);
if ($checkin === false) {
$nexturl = $PAGE->url;
} else {
$nexturl = new moodle_url('/admin/report/customlang/index.php', array('action'=>'checkin', 'lng' => $lng, 'sesskey'=>sesskey()));
}
if (!is_array($strings)) {
$strings = array();
}
$current = $DB->get_records_list('report_customlang', 'id', array_keys($strings));
$now = time();
foreach ($strings as $recordid => $customization) {
$customization = trim($customization);
if (empty($customization) and !is_null($current[$recordid]->local)) {
$current[$recordid]->local = null;
$current[$recordid]->modified = 1;
$current[$recordid]->outdated = 0;
$current[$recordid]->timecustomized = null;
$DB->update_record('report_customlang', $current[$recordid]);
continue;
}
if (empty($customization)) {
continue;
}
if ($customization !== $current[$recordid]->local) {
$current[$recordid]->local = $customization;
$current[$recordid]->modified = 1;
$current[$recordid]->outdated = 0;
$current[$recordid]->timecustomized = $now;
$DB->update_record('report_customlang', $current[$recordid]);
continue;
}
}
if (!is_array($updates)) {
$updates = array();
}
if (!empty($updates)) {
list($sql, $params) = $DB->get_in_or_equal($updates);
$DB->set_field_select('report_customlang', 'outdated', 0, "local IS NOT NULL AND id $sql", $params);
}
redirect($nexturl);
}
$translator = new report_customlang_translator($PAGE->url, $lng, $filterdata, $currentpage);
// output starts here
$output = $PAGE->get_renderer('report_customlang');
$paginator = $output->paging_bar($translator->numofrows, $currentpage, report_customlang_translator::PERPAGE, $PAGE->url, 'p');
echo $output->header();
$filter->display();
echo $paginator;
echo $output->render($translator);
echo $paginator;
echo $output->footer();
-139
View File
@@ -1,139 +0,0 @@
<?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/>.
/**
* Performs checkout of the strings into the translation table
*
* @package report
* @subpackage customlang
* @copyright 2010 David Mudrak <david@moodle.com>
* @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');
require_login(SITEID, false);
require_capability('report/customlang:view', get_system_context());
$action = optional_param('action', '', PARAM_ALPHA);
$confirm = optional_param('confirm', false, PARAM_BOOL);
$lng = optional_param('lng', '', PARAM_LANG);
admin_externalpage_setup('reportcustomlang');
$langs = get_string_manager()->get_list_of_translations();
// pre-output actions
if ($action === 'checkout') {
require_sesskey();
require_capability('report/customlang:edit', get_system_context());
if (empty($lng)) {
print_error('missingparameter');
}
$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') {
require_sesskey();
require_capability('report/customlang:edit', get_system_context());
if (empty($lng)) {
print_error('missingparameter');
}
if (!$confirm) {
$output = $PAGE->get_renderer('report_customlang');
echo $output->header();
echo $output->heading(get_string('pluginname', 'report_customlang'));
echo $output->heading($langs[$lng], 3);
$numofmodified = report_customlang_utils::get_count_of_modified($lng);
if ($numofmodified != 0) {
echo $output->heading(get_string('modifiednum', 'report_customlang', $numofmodified), 3);
echo $output->confirm(get_string('confirmcheckin', 'report_customlang'),
new moodle_url($PAGE->url, array('action'=>'checkin', 'lng'=>$lng, 'confirm'=>1)),
new moodle_url($PAGE->url, array('lng'=>$lng)));
} else {
echo $output->heading(get_string('modifiedno', 'report_customlang', $numofmodified), 3);
echo $output->continue_button(new moodle_url($PAGE->url, array('lng' => $lng)));
}
echo $output->footer();
die();
} else {
report_customlang_utils::checkin($lng);
redirect($PAGE->url);
}
}
$output = $PAGE->get_renderer('report_customlang');
// output starts here
echo $output->header();
echo $output->heading(get_string('pluginname', 'report_customlang'));
if (empty($lng)) {
$s = new single_select($PAGE->url, 'lng', $langs);
$s->label = get_accesshide(get_string('language'));
$s->class = 'langselector';
echo $output->box($OUTPUT->render($s), 'langselectorbox');
echo $OUTPUT->footer();
exit;
}
echo $output->heading($langs[$lng], 3);
$numofmodified = report_customlang_utils::get_count_of_modified($lng);
if ($numofmodified != 0) {
echo $output->heading(get_string('modifiednum', 'report_customlang', $numofmodified), 3);
}
$menu = array();
if (has_capability('report/customlang:edit', get_system_context())) {
$menu['checkout'] = array(
'title' => get_string('checkout', 'report_customlang'),
'url' => new moodle_url($PAGE->url, array('action' => 'checkout', 'lng' => $lng)),
'method' => 'post',
);
if ($numofmodified != 0) {
$menu['checkin'] = array(
'title' => get_string('checkin', 'report_customlang'),
'url' => new moodle_url($PAGE->url, array('action' => 'checkin', 'lng' => $lng)),
'method' => 'post',
);
}
}
echo $output->render(new report_customlang_menu($menu));
echo $output->footer();
@@ -1,61 +0,0 @@
<?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 Language customization admin report
*
* @package report
* @subpackage customlang
* @copyright 2010 David Mudrak <david@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$string['checkin'] = 'Check in strings into disk';
$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';
$string['filter'] = 'Filter strings';
$string['filtercomponent'] = 'Show strings of these components';
$string['filtercustomized'] = 'Customized only';
$string['filtermodified'] = 'Modified only';
$string['filteronlyhelps'] = 'Help only';
$string['filtershowstrings'] = 'Show strings';
$string['filterstringid'] = 'String identifier';
$string['filtersubstring'] = 'Only strings containing';
$string['headingcomponent'] = 'Component';
$string['headinglocal'] = 'Local customization';
$string['headingstandard'] = 'Standard text';
$string['headingstringid'] = 'String';
$string['markinguptodate'] = 'Marking the customization as up-to-date';
$string['markinguptodate_help'] = 'The customized translation may get outdated if either the English original or the master translation has modified since the string was customized on your site. Review the customized translation. If you find it up-to-date, click the checkbox. Edit it otherwise.';
$string['markuptodate'] = 'mark as up-to-date';
$string['modifiedno'] = 'There are no modified strings to check in.';
$string['modifiednum'] = 'There are {$a} modified strings. You must check in them into disk to store them permanently.';
$string['nostringsfound'] = 'No strings found, please modify the filter settings';
$string['placeholder'] = 'Placeholders';
$string['placeholder_help'] = 'Placeholders are special statements like `{$a}` or `{$a->something}` within the string. They are replaced with a value when the string is actually printed.
It is important to copy them exactly as they are in the original string. Do not translate them nor change their left-to-right orientation.';
$string['placeholderwarning'] = 'string contains a placeholder';
$string['pluginname'] = 'Language customization';
$string['savecheckin'] = 'Save and check in strings into files';
$string['savecontinue'] = 'Save and continue editing';
-25
View File
@@ -1,25 +0,0 @@
<?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 report
* @subpackage customlang
* @copyright 2010 David Mudrak <david@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
-535
View File
@@ -1,535 +0,0 @@
<?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/>.
/**
* Definition of classes used by language customization admin report
*
* @package report
* @subpackage customlang
* @copyright 2010 David Mudrak <david@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
/**
* Provides various utilities to be used by the plugin
*
* All the public methods here are static ones, this class can not be instantiated
*/
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;
/**
* This class can not be instantiated
*/
private function __construct() {
}
/**
* Returns a list of all components installed on the server
*
* @return array (string)legacyname => (string)frankenstylename
*/
public static function list_components() {
$list['moodle'] = 'core';
$coresubsystems = get_core_subsystems();
ksort($coresubsystems); // should be but just in case
foreach ($coresubsystems as $name => $location) {
if ($name != 'moodle.org') {
$list[$name] = 'core_'.$name;
}
}
$plugintypes = get_plugin_types();
foreach ($plugintypes as $type => $location) {
$pluginlist = get_plugin_list($type);
foreach ($pluginlist as $name => $ununsed) {
if ($type == 'mod') {
if (array_key_exists($name, $list)) {
throw new Exception('Activity module and core subsystem name collision');
}
$list[$name] = $type.'_'.$name;
} else {
$list[$type.'_'.$name] = $type.'_'.$name;
}
}
}
return $list;
}
/**
* Updates the translator database with the strings from files
*
* 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, progress_bar $progressbar = null) {
global $DB;
// make sure that all components are registered
$current = $DB->get_records('report_customlang_components', null, 'name', 'name,version,id');
foreach (self::list_components() as $component) {
if (empty($current[$component])) {
$record = new stdclass();
$record->name = $component;
if (!$version = get_component_version($component)) {
$record->version = null;
} else {
$record->version = $version;
}
$DB->insert_record('report_customlang_components', $record);
} elseif ($version = get_component_version($component)) {
if (is_null($current[$component]->version) or ($version > $current[$component]->version)) {
$DB->set_field('report_customlang_components', 'version', $version, array('id' => $current[$component]->id));
}
}
}
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');
foreach ($components as $component) {
$sql = "SELECT stringid, id, lang, componentid, original, master, local, timemodified, timecustomized, outdated, modified
FROM {report_customlang} s
WHERE lang = ? AND componentid = ?
ORDER BY stringid";
$current = $DB->get_records_sql($sql, array($lang, $component->id));
$english = $stringman->load_component_strings($component->name, 'en', true, true);
if ($lang == 'en') {
$master =& $english;
} else {
$master = $stringman->load_component_strings($component->name, $lang, true, true);
}
$local = $stringman->load_component_strings($component->name, $lang, true, false);
foreach ($english as $stringid => $stringoriginal) {
$stringmaster = isset($master[$stringid]) ? $master[$stringid] : null;
$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;
$currentmaster = $current[$stringid]->master;
$currentlocal = $current[$stringid]->local;
if ($currentoriginal !== $stringoriginal or $currentmaster !== $stringmaster) {
$needsupdate = true;
$current[$stringid]->original = $stringoriginal;
$current[$stringid]->master = $stringmaster;
$current[$stringid]->timemodified = $now;
$current[$stringid]->outdated = 1;
}
if ($stringmaster !== $stringlocal) {
$needsupdate = true;
$current[$stringid]->local = $stringlocal;
$current[$stringid]->timecustomized = $now;
}
if ($needsupdate) {
$DB->update_record('report_customlang', $current[$stringid]);
continue;
}
} else {
$record = new stdclass();
$record->lang = $lang;
$record->componentid = $component->id;
$record->stringid = $stringid;
$record->original = $stringoriginal;
$record->master = $stringmaster;
$record->timemodified = $now;
$record->outdated = 0;
if ($stringmaster !== $stringlocal) {
$record->local = $stringlocal;
$record->timecustomized = $now;
} else {
$record->local = null;
$record->timecustomized = null;
}
$DB->insert_record('report_customlang', $record);
}
}
}
if (!is_null($progressbar)) {
$progressbar->update_full(100, get_string('checkoutdone', 'report_customlang'));
}
}
/**
* Exports the translator database into disk files
*
* @param mixed $lang language code
*/
public static function checkin($lang) {
global $DB, $USER, $CFG;
require_once($CFG->libdir.'/filelib.php');
if ($lang !== clean_param($lang, PARAM_LANG)) {
return false;
}
// get all customized strings from updated components
$sql = "SELECT s.*, c.name AS component
FROM {report_customlang} s
JOIN {report_customlang_components} c ON s.componentid = c.id
WHERE s.lang = ?
AND (s.local IS NOT NULL OR s.modified = 1)
ORDER BY componentid, stringid";
$strings = $DB->get_records_sql($sql, array($lang));
$files = array();
foreach ($strings as $string) {
if (!is_null($string->local)) {
$files[$string->component][$string->stringid] = $string->local;
}
}
fulldelete(self::get_localpack_location($lang));
foreach ($files as $component => $strings) {
self::dump_strings($lang, $component, $strings);
}
$DB->set_field_select('report_customlang', 'modified', 0, 'lang = ?', array($lang));
$sm = get_string_manager();
$sm->reset_caches();
}
/**
* Returns full path to the directory where local packs are dumped into
*
* @param string $lang language code
* @return string full path
*/
protected static function get_localpack_location($lang) {
global $CFG;
return $CFG->langlocalroot.'/'.$lang.'_local';
}
/**
* Writes strings into a local language pack file
*
* @param string $component the name of the component
* @param array $strings
*/
protected static function dump_strings($lang, $component, $strings) {
global $CFG;
if ($lang !== clean_param($lang, PARAM_LANG)) {
debugging('Unable to dump local strings for non-installed language pack .'.s($lang));
return false;
}
if ($component !== clean_param($component, PARAM_SAFEDIR)) {
throw new coding_exception('Incorrect component name');
}
if (!$filename = self::get_component_filename($component)) {
debugging('Unable to find the filename for the component '.s($component));
return false;
}
if ($filename !== clean_param($filename, PARAM_FILE)) {
throw new coding_exception('Incorrect file name '.s($filename));
}
list($package, $subpackage) = normalize_component($component);
$packageinfo = " * @package $package";
if (!is_null($subpackage)) {
$packageinfo .= "\n * @subpackage $subpackage";
}
$filepath = self::get_localpack_location($lang);
$filepath = $filepath.'/'.$filename;
if (!is_dir(dirname($filepath))) {
check_dir_exists(dirname($filepath));
}
if (!$f = fopen($filepath, 'w')) {
debugging('Unable to write '.s($filepath));
return false;
}
fwrite($f, <<<EOF
<?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/>.
/**
* Local language pack from $CFG->wwwroot
*
$packageinfo
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
EOF
);
foreach ($strings as $stringid => $text) {
if ($stringid !== clean_param($stringid, PARAM_STRINGID)) {
debugging('Invalid string identifier '.s($stringid));
continue;
}
fwrite($f, '$string[\'' . $stringid . '\'] = ');
fwrite($f, var_export($text, true));
fwrite($f, ";\n");
}
fclose($f);
}
/**
* Returns the name of the file where the component's local strings should be exported into
*
* @param string $component normalized name of the component, eg 'core' or 'mod_workshop'
* @return string|boolean filename eg 'moodle.php' or 'workshop.php', false if not found
*/
protected static function get_component_filename($component) {
if (is_null(self::$components)) {
self::$components = self::list_components();
}
$return = false;
foreach (self::$components as $legacy => $normalized) {
if ($component === $normalized) {
$return = $legacy.'.php';
break;
}
}
return $return;
}
/**
* Returns the number of modified strings checked out in the translator
*
* @param string $lang language code
* @return int
*/
public static function get_count_of_modified($lang) {
global $DB;
return $DB->count_records('report_customlang', array('lang'=>$lang, 'modified'=>1));
}
/**
* Saves filter data into a persistant storage such as user session
*
* @see self::load_filter()
* @param stdclass $data filter values
* @param stdclass $persistant storage object
*/
public static function save_filter(stdclass $data, stdclass $persistant) {
if (!isset($persistant->report_customlang_filter)) {
$persistant->report_customlang_filter = array();
}
foreach ($data as $key => $value) {
if ($key !== 'submit') {
$persistant->report_customlang_filter[$key] = serialize($value);
}
}
}
/**
* Loads the previously saved filter settings from a persistent storage
*
* @see self::save_filter()
* @param stdclass $persistant storage object
* @return stdclass filter data
*/
public static function load_filter(stdclass $persistant) {
$data = new stdclass();
if (isset($persistant->report_customlang_filter)) {
foreach ($persistant->report_customlang_filter as $key => $value) {
$data->{$key} = unserialize($value);
}
}
return $data;
}
}
/**
* Represents the action menu of the report
*/
class report_customlang_menu implements renderable {
/** @var menu items */
protected $items = array();
public function __construct(array $items = array()) {
global $CFG;
foreach ($items as $itemkey => $item) {
$this->add_item($itemkey, $item['title'], $item['url'], empty($item['method']) ? 'post' : $item['method']);
}
}
/**
* Returns the menu items
*
* @return array (string)key => (object)[->(string)title ->(moodle_url)url ->(string)method]
*/
public function get_items() {
return $this->items;
}
/**
* Adds item into the menu
*
* @param string $key item identifier
* @param string $title localized action title
* @param moodle_url $url action handler
* @param string $method form method
*/
public function add_item($key, $title, moodle_url $url, $method) {
if (isset($this->items[$key])) {
throw new coding_exception('Menu item already exists');
}
if (empty($title) or empty($key)) {
throw new coding_exception('Empty title or item key not allowed');
}
$item = new stdclass();
$item->title = $title;
$item->url = $url;
$item->method = $method;
$this->items[$key] = $item;
}
}
/**
* Represents the translation tool
*/
class report_customlang_translator implements renderable {
/** @const int number of rows per page */
const PERPAGE = 100;
/** @var int total number of the rows int the table */
public $numofrows = 0;
/** @var moodle_url */
public $handler;
/** @var string language code */
public $lang;
/** @var int page to display, starting with page 0 */
public $currentpage = 0;
/** @var array of stdclass strings to display */
public $strings = array();
/** @var stdclass */
protected $filter;
public function __construct(moodle_url $handler, $lang, $filter, $currentpage = 0) {
global $DB;
$this->handler = $handler;
$this->lang = $lang;
$this->filter = $filter;
$this->currentpage = $currentpage;
if (empty($filter) or empty($filter->component)) {
// nothing to do
$this->currentpage = 1;
return;
}
list($insql, $inparams) = $DB->get_in_or_equal($filter->component, SQL_PARAMS_NAMED);
$csql = "SELECT COUNT(*)";
$fsql = "SELECT s.id, s.*, c.name AS component";
$sql = " FROM {report_customlang_components} c
JOIN {report_customlang} s ON s.componentid = c.id
WHERE s.lang = :lang
AND c.name $insql";
$params = array_merge(array('lang' => $lang), $inparams);
if (!empty($filter->customized)) {
$sql .= " AND s.local IS NOT NULL";
}
if (!empty($filter->modified)) {
$sql .= " AND s.modified = 1";
}
if (!empty($filter->stringid)) {
$sql .= " AND s.stringid = :stringid";
$params['stringid'] = $filter->stringid;
}
if (!empty($filter->substring)) {
$sql .= " AND (".$DB->sql_like('s.original', ':substringoriginal', false)." OR
".$DB->sql_like('s.master', ':substringmaster', false)." OR
".$DB->sql_like('s.local', ':substringlocal', false).")";
$params['substringoriginal'] = '%'.$filter->substring.'%';
$params['substringmaster'] = '%'.$filter->substring.'%';
$params['substringlocal'] = '%'.$filter->substring.'%';
}
if (!empty($filter->helps)) {
$sql .= " AND ".$DB->sql_like('s.stringid', ':help', false); //ILIKE
$params['help'] = '%\_help';
} else {
$sql .= " AND ".$DB->sql_like('s.stringid', ':link', false, true, true); //NOT ILIKE
$params['link'] = '%\_link';
}
$osql = " ORDER BY c.name, s.stringid";
$this->numofrows = $DB->count_records_sql($csql.$sql, $params);
$this->strings = $DB->get_records_sql($fsql.$sql.$osql, $params, ($this->currentpage) * self::PERPAGE, self::PERPAGE);
}
}
-45
View File
@@ -1,45 +0,0 @@
// 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'));
});
}
-147
View File
@@ -1,147 +0,0 @@
<?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/>.
/**
* Output rendering of Language customization admin report
*
* @package report
* @subpackage customlang
* @copyright 2010 David Mudrak <david@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
/**
* Rendering methods for the report widgets
*/
class report_customlang_renderer extends plugin_renderer_base {
/**
* Renders customlang report menu
*
* @return string HTML
*/
protected function render_report_customlang_menu(report_customlang_menu $menu) {
$output = '';
foreach ($menu->get_items() as $item) {
$output .= $this->single_button($item->url, $item->title, $item->method);
}
return $this->box($output, 'menu');
}
/**
* Renders customlang translation table
*
* @param report_customlang_translator $translator
* @return string HTML
*/
protected function render_report_customlang_translator(report_customlang_translator $translator) {
$output = '';
if (empty($translator->strings)) {
return $this->heading(get_string('nostringsfound', 'report_customlang'), 3);
}
$table = new html_table();
$table->id = 'translator';
$table->head = array(
get_string('headingcomponent', 'report_customlang'),
get_string('headingstringid', 'report_customlang'),
get_string('headingstandard', 'report_customlang'),
get_string('headinglocal', 'report_customlang'),
);
foreach ($translator->strings as $string) {
$cells = array();
// component name
$cells[0] = new html_table_cell($string->component);
$cells[0]->attributes['class'] = 'component';
// string identification code
$cells[1] = new html_table_cell(html_writer::tag('div', s($string->stringid), array('class' => 'stringid')));
$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'));
}
$cells[2] = new html_table_cell($master);
$cells[2]->attributes['class'] = 'standard master';
// local customization of the string
$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,
'name' => 'updates[]', 'value' => $string->id));
$help = $this->help_icon('markinguptodate', 'report_customlang');
$mark .= html_writer::tag('label', get_string('markuptodate', 'report_customlang') . $help,
array('for' => 'update_' . $string->id));
$mark = html_writer::tag('div', $mark, array('class' => 'uptodatewrapper'));
} else {
$mark = '';
}
$cells[3] = new html_table_cell($textarea."\n".$mark);
$cells[3]->attributes['class'] = 'local';
$cells[3]->id = 'id_'.$string->id;
if (!is_null($string->local)) {
$cells[3]->attributes['class'] .= ' customized';
}
if ($string->outdated) {
$cells[3]->attributes['class'] .= ' outdated';
}
if ($string->modified) {
$cells[3]->attributes['class'] .= ' modified';
}
if ($string->original !== $string->master) {
$cells[0]->rowspan = $cells[1]->rowspan = $cells[3]->rowspan = 2;
}
$row = new html_table_row($cells);
$table->data[] = $row;
if ($string->original !== $string->master) {
$cells = array();
// original of the string
$cells[2] = new html_table_cell(html_writer::tag('div', s($string->original), array('class' => 'preformatted')));
$cells[2]->attributes['class'] = 'standard original';
$row = new html_table_row($cells);
$table->data[] = $row;
}
}
$output .= html_writer::start_tag('form', array('method'=>'post', 'action'=>$translator->handler->out()));
$output .= html_writer::start_tag('div');
$output .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'translatorsubmitted', 'value'=>1));
$output .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'sesskey', 'value'=>sesskey()));
$save1 = html_writer::empty_tag('input', array('type'=>'submit', 'name'=>'savecontinue', 'value'=>get_string('savecontinue', 'report_customlang')));
$save2 = html_writer::empty_tag('input', array('type'=>'submit', 'name'=>'savecheckin', 'value'=>get_string('savecheckin', 'report_customlang')));
$output .= html_writer::tag('fieldset', $save1.$save2, array('class'=>'buttonsbar'));
$output .= html_writer::table($table);
$output .= html_writer::tag('fieldset', $save1.$save2, array('class'=>'buttonsbar'));
$output .= html_writer::end_tag('div');
$output .= html_writer::end_tag('form');
return $output;
}
}
-27
View File
@@ -1,27 +0,0 @@
<?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 report
* @subpackage customlang
* @copyright 2010 David Mudrak <david@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$ADMIN->add('language', new admin_externalpage('reportcustomlang', get_string('pluginname', 'report_customlang'), "$CFG->wwwroot/$CFG->admin/report/customlang/index.php", 'report/customlang:view'));
-69
View File
@@ -1,69 +0,0 @@
.path-admin-report-customlang .langselectorbox,
.path-admin-report-customlang fieldset.buttonsbar,
.path-admin-report-customlang .menu {
margin: 5px auto;
text-align: center;
}
.path-admin-report-customlang .menu .singlebutton,
.path-admin-report-customlang .menu .singlebutton form,
.path-admin-report-customlang .menu .singlebutton form div {
display: inline;
}
.path-admin-report-customlang .mform.filterform {
width: 70%;
margin-left: auto;
margin-right: auto;
}
.path-admin-report-customlang .mform.filterform .fitem .fitemtitle {
width: 30%;
}
.path-admin-report-customlang .mform.filterform .fitem .felement {
width: 60%;
margin-left: 31%;
}
.path-admin-report-customlang #translator {
width: 100%;
}
.path-admin-report-customlang #translator .standard,
.path-admin-report-customlang #translator .local {
min-width: 35%;
}
.path-admin-report-customlang #translator .customized {
background-color: #e7f1c3;
}
.path-admin-report-customlang #translator .customized.outdated {
background-color: #f3f2aa;
}
.path-admin-report-customlang #translator .modified {
background-color: #ffd3d9;
}
.path-admin-report-customlang #translator .customized.modified {
background-color: #d2ebff;
}
.path-admin-report-customlang #translator textarea {
width: 100%;
min-height: 4em;
}
.path-admin-report-customlang #translator .placeholderinfo {
text-align: center;
border: 1px dotted #ddd;
background-color: #f6f6f6;
margin-top: 0.5em;
}
#page-admin-report-customlang-index .continuebutton {
margin-top: 1em;
}
-28
View File
@@ -1,28 +0,0 @@
<?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 report
* @subpackage customlang
* @copyright 2010 David Mudrak <david@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011041900;
$plugin->requires = 2010120700;
-7
View File
@@ -1,7 +0,0 @@
<?php
defined('MOODLE_INTERNAL') || die;
// just a link to course report
$ADMIN->add('reports', new admin_externalpage('reportlog', get_string('log', 'admin'), "$CFG->wwwroot/course/report/log/index.php?id=".SITEID, 'coursereport/log:view'));
$ADMIN->add('reports', new admin_externalpage('reportloglive', get_string('loglive', 'coursereport_log'), "$CFG->wwwroot/course/report/log/indexlive.php?id=".SITEID, 'coursereport/log:viewlive'));
-186
View File
@@ -1,186 +0,0 @@
<?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();
@@ -1,45 +0,0 @@
<?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
@@ -1,8 +0,0 @@
<?php
defined('MOODLE_INTERNAL') || die;
// profiling report, added to development
if (extension_loaded('xhprof') && function_exists('xhprof_enable') && (!empty($CFG->profilingenabled) || !empty($CFG->earlyprofilingenabled))) {
$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
@@ -1,25 +0,0 @@
/* 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
}
@@ -1,37 +0,0 @@
<?php
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.com //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
// //
// This program 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 2 of the License, or //
// (at your option) any later version. //
// //
// This program 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: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
$capabilities = array(
'report/questioninstances:view' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'manager' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/site:config',
)
);
-131
View File
@@ -1,131 +0,0 @@
<?php
/**
* For a given question type, list the number of
*
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @package roles
*/
/** */
require_once(dirname(__FILE__).'/../../../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->libdir.'/questionlib.php');
// Get URL parameters.
$requestedqtype = optional_param('qtype', '', PARAM_SAFEDIR);
// Print the header & check permissions.
admin_externalpage_setup('reportquestioninstances');
echo $OUTPUT->header();
// Log.
add_to_log(SITEID, "admin", "report questioninstances", "report/questioninstances/index.php?qtype=$requestedqtype", $requestedqtype);
// Prepare the list of capabilities to choose from
$qtypes = question_bank::get_all_qtypes();
$qtypechoices = array();
foreach ($qtypes as $qtype) {
$qtypechoices[$qtype->name()] = $qtype->local_name();
}
// Print the settings form.
echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter centerpara');
echo '<form method="get" action="." id="settingsform"><div>';
echo $OUTPUT->heading(get_string('reportsettings', 'report_questioninstances'));
echo '<p id="intro">', get_string('intro', 'report_questioninstances') , '</p>';
echo '<p><label for="menuqtype"> ' . get_string('questiontype', 'admin') . '</label> ';
echo html_writer::select($qtypechoices, 'qtype', $requestedqtype, array('_all_'=>get_string('all')));
echo '</p>';
echo '<p><input type="submit" id="settingssubmit" value="' .
get_string('getreport', 'report_questioninstances') . '" /></p>';
echo '</div></form>';
echo $OUTPUT->box_end();
// If we have a qtype to report on, generate the report.
if ($requestedqtype) {
// Work out the bits needed for the SQL WHERE clauses.
if ($requestedqtype == 'missingtype') {
$othertypes = array_keys($qtypes);
$key = array_search('missingtype', $othertypes);
unset($othertypes[$key]);
list($sqlqtypetest, $params) = $DB->get_in_or_equal($othertypes, SQL_PARAMS_QM, '', false);
$sqlqtypetest = 'WHERE qtype ' . $sqlqtypetest;
$title = get_string('reportformissingqtypes', 'report_questioninstances');
} else if ($requestedqtype == '_all_') {
$sqlqtypetest = '';
$params = array();
$title = get_string('reportforallqtypes', 'report_questioninstances');
} else {
$sqlqtypetest = 'WHERE qtype = ?';
$params = array($requestedqtype);
$title = get_string('reportforqtype', 'report_questioninstances',
question_bank::get_qtype($requestedqtype)->local_name());
}
// Get the question counts, and all the context information, for each
// context. That is, rows of these results can be used as $context objects.
$counts = $DB->get_records_sql("
SELECT qc.contextid, count(1) as numquestions, sum(hidden) as numhidden, con.id, con.contextlevel, con.instanceid, con.path, con.depth
FROM {question} q
JOIN {question_categories} qc ON q.category = qc.id
JOIN {context} con ON con.id = qc.contextid
$sqlqtypetest
GROUP BY contextid, con.id, con.contextlevel, con.instanceid, con.path, con.depth
ORDER BY numquestions DESC, numhidden ASC, con.contextlevel ASC, con.id ASC", $params);
// Print the report heading.
echo $OUTPUT->heading($title);
// Initialise the table.
$table = new html_table();
$table->head = array(
get_string('context', 'role'),
get_string('totalquestions', 'report_questioninstances'),
get_string('visiblequestions', 'report_questioninstances'),
get_string('hiddenquestions', 'report_questioninstances'));
$table->data = array();
$table->class = '';
$table->id = '';
// Add the data for each row.
$totalquestions = 0;
$totalvisible = 0;
$totalhidden = 0;
foreach ($counts as $count) {
// Work out a link for editing questions in this context.
$contextname = print_context_name($count);
$url = question_edit_url($count);
if ($url) {
$contextname = '<a href="' . $url . '" title="' .
get_string('editquestionshere', 'report_questioninstances') .
'">' . $contextname . '</a>';
}
// Put the scores in the table.
$numvisible = $count->numquestions - $count->numhidden;
$table->data[] = array(
$contextname,
$count->numquestions,
$numvisible,
$count->numhidden);
// Update the totals.
$totalquestions += $count->numquestions;
$totalvisible += $numvisible;
$totalhidden += $count->numhidden;
}
// Add a totals row.
$table->data[] = array(
'<b>' . get_string('total') . '</b>',
$totalquestions,
$totalvisible,
$totalhidden);
// Print it.
echo html_writer::table($table);
}
// Footer.
echo $OUTPUT->footer();
@@ -1,5 +0,0 @@
<?php
defined('MOODLE_INTERNAL') || die;
$ADMIN->add('reports', new admin_externalpage('reportquestioninstances', get_string('pluginname', 'report_questioninstances'), "$CFG->wwwroot/$CFG->admin/report/questioninstances/index.php", 'report/questioninstances:view'));
@@ -1,27 +0,0 @@
<?PHP
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.com //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
// //
// This program 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 2 of the License, or //
// (at your option) any later version. //
// //
// This program 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: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
$plugin->version = 2010090501;
$plugin->requires = 2010090501;
-36
View File
@@ -1,36 +0,0 @@
<?php
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.com //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
// //
// This program 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 2 of the License, or //
// (at your option) any later version. //
// //
// This program 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: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
$capabilities = array(
'report/security:view' => array(
'riskbitmask' => RISK_CONFIG,
'captype' => 'read',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'manager' => CAP_ALLOW
),
)
);
-127
View File
@@ -1,127 +0,0 @@
<?php
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.org //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com //
// //
// This program 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 2 of the License, or //
// (at your option) any later version. //
// //
// This program 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: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
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');
require_login();
$issue = optional_param('issue', '', PARAM_ALPHANUMEXT); // show detailed info about one issue only
$issues = report_security_get_issue_list();
// test if issue valid string
if (array_search($issue, $issues, true) === false) {
$issue = '';
}
// we may need a bit more memory and this may take a long time to process
raise_memory_limit(MEMORY_EXTRA);
@set_time_limit(0);
// Print the header.
admin_externalpage_setup('reportsecurity');
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('pluginname', 'report_security'));
echo '<div id="timewarning">'.get_string('timewarning', 'report_security').'</div>';
$strok = '<span class="statusok">'.get_string('statusok', 'report_security').'</span>';
$strinfo = '<span class="statusinfo">'.get_string('statusinfo', 'report_security').'</span>';
$strwarning = '<span class="statuswarning">'.get_string('statuswarning', 'report_security').'</span>';
$strserious = '<span class="statusserious">'.get_string('statusserious', 'report_security').'</span>';
$strcritical = '<span class="statuscritical">'.get_string('statuscritical', 'report_security').'</span>';
$strissue = get_string('issue', 'report_security');
$strstatus = get_string('status', 'report_security');
$strdesc = get_string('description', 'report_security');
$strconfig = get_string('configuration', 'report_security');
$statusarr = array(REPORT_SECURITY_OK => $strok,
REPORT_SECURITY_INFO => $strinfo,
REPORT_SECURITY_WARNING => $strwarning,
REPORT_SECURITY_SERIOUS => $strserious,
REPORT_SECURITY_CRITICAL => $strcritical);
$url = "$CFG->wwwroot/$CFG->admin/report/security/index.php";
if ($issue and ($result = $issue(true))) {
report_security_hide_timearning();
$table = new html_table();
$table->head = array($strissue, $strstatus, $strdesc, $strconfig);
$table->size = array('30%', '10%', '50%', '10%' );
$table->align = array('left', 'left', 'left', 'left');
$table->attributes = array('class'=>'scurityreporttable generaltable');
$table->data = array();
// print detail of one issue only
$row = array();
$row[0] = report_security_doc_link($issue, $result->name);
$row[1] = $statusarr[$result->status];
$row[2] = $result->info;
$row[3] = is_null($result->link) ? '&nbsp;' : $result->link;
$PAGE->set_docs_path('admin/report/security/' . $issue);
$table->data[] = $row;
echo html_writer::table($table);
echo $OUTPUT->box($result->details, 'generalbox boxwidthnormal boxaligncenter'); // TODO: add proper css
echo $OUTPUT->continue_button($url);
} else {
report_security_hide_timearning();
$table = new html_table();
$table->head = array($strissue, $strstatus, $strdesc);
$table->size = array('30%', '10%', '60%' );
$table->align = array('left', 'left', 'left');
$table->attributes = array('class'=>'scurityreporttable generaltable');
$table->data = array();
foreach ($issues as $issue) {
$result = $issue(false);
if (!$result) {
// ignore this test
continue;
}
$row = array();
$row[0] = "<a href='$url?issue=$result->issue'>$result->name</a>";
$row[1] = $statusarr[$result->status];
$row[2] = $result->info;
$table->data[] = $row;
}
echo html_writer::table($table);
}
echo $OUTPUT->footer();
-883
View File
@@ -1,883 +0,0 @@
<?php
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.org //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com //
// //
// This program 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 2 of the License, or //
// (at your option) any later version. //
// //
// This program 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: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
require_once("$CFG->libdir/adminlib.php");
define('REPORT_SECURITY_OK', 'ok');
define('REPORT_SECURITY_INFO', 'info');
define('REPORT_SECURITY_WARNING', 'warning');
define('REPORT_SECURITY_SERIOUS', 'serious');
define('REPORT_SECURITY_CRITICAL', 'critical');
function report_security_hide_timearning() {
global $PAGE;
$PAGE->requires->js_init_code("Y.one('#timewarning').addClass('timewarninghidden')");
}
function report_security_get_issue_list() {
return array(
'report_security_check_globals',
'report_security_check_unsecuredataroot',
'report_security_check_displayerrors',
'report_security_check_noauth',
'report_security_check_embed',
'report_security_check_mediafilterswf',
'report_security_check_openprofiles',
'report_security_check_google',
'report_security_check_passwordpolicy',
'report_security_check_passwordsaltmain',
'report_security_check_emailchangeconfirmation',
'report_security_check_cookiesecure',
'report_security_check_configrw',
'report_security_check_riskxss',
'report_security_check_riskadmin',
'report_security_check_riskbackup',
'report_security_check_defaultuserrole',
'report_security_check_guestrole',
'report_security_check_frontpagerole',
);
}
function report_security_doc_link($issue, $name) {
global $CFG, $OUTPUT;
if (empty($CFG->docroot)) {
return $name;
}
return $OUTPUT->doc_link('report/security/'.$issue, $name);
}
///=============================================
/// Issue checks
///=============================================
/**
* Verifies register globals PHP setting.
* @param bool $detailed
* @return object result
*/
function report_security_check_globals($detailed=false) {
$result = new stdClass();
$result->issue = 'report_security_check_globals';
$result->name = get_string('check_globals_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = null;
if (ini_get_bool('register_globals')) {
$result->status = REPORT_SECURITY_CRITICAL;
$result->info = get_string('check_globals_error', 'report_security');
} else {
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_globals_ok', 'report_security');
}
if ($detailed) {
$result->details = get_string('check_globals_details', 'report_security');
}
return $result;
}
/**
* Verifies unsupported noauth setting
* @param bool $detailed
* @return object result
*/
function report_security_check_noauth($detailed=false) {
global $CFG;
$result = new stdClass();
$result->issue = 'report_security_check_noauth';
$result->name = get_string('check_noauth_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = null;
$result->link = "<a href=\"$CFG->wwwroot/$CFG->admin/settings.php?section=manageauths\">".get_string('authsettings', 'admin').'</a>';
if (is_enabled_auth('none')) {
$result->status = REPORT_SECURITY_CRITICAL;
$result->info = get_string('check_noauth_error', 'report_security');
} else {
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_noauth_ok', 'report_security');
}
if ($detailed) {
$result->details = get_string('check_noauth_details', 'report_security');
}
return $result;
}
/**
* Verifies if password policy set
* @param bool $detailed
* @return object result
*/
function report_security_check_passwordpolicy($detailed=false) {
global $CFG;
$result = new stdClass();
$result->issue = 'report_security_check_passwordpolicy';
$result->name = get_string('check_passwordpolicy_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = "<a href=\"$CFG->wwwroot/$CFG->admin/settings.php?section=sitepolicies\">".get_string('sitepolicies', 'admin').'</a>';
if (empty($CFG->passwordpolicy)) {
$result->status = REPORT_SECURITY_WARNING;
$result->info = get_string('check_passwordpolicy_error', 'report_security');
} else {
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_passwordpolicy_ok', 'report_security');
}
if ($detailed) {
$result->details = get_string('check_passwordpolicy_details', 'report_security');
}
return $result;
}
/**
* Verifies sloppy embedding - this should have been removed long ago!!
* @param bool $detailed
* @return object result
*/
function report_security_check_embed($detailed=false) {
global $CFG;
$result = new stdClass();
$result->issue = 'report_security_check_embed';
$result->name = get_string('check_embed_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = "<a href=\"$CFG->wwwroot/$CFG->admin/settings.php?section=sitepolicies\">".get_string('sitepolicies', 'admin').'</a>';
if (!empty($CFG->allowobjectembed)) {
$result->status = REPORT_SECURITY_CRITICAL;
$result->info = get_string('check_embed_error', 'report_security');
} else {
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_embed_ok', 'report_security');
}
if ($detailed) {
$result->details = get_string('check_embed_details', 'report_security');
}
return $result;
}
/**
* Verifies sloppy swf embedding - this should have been removed long ago!!
* @param bool $detailed
* @return object result
*/
function report_security_check_mediafilterswf($detailed=false) {
global $CFG;
$result = new stdClass();
$result->issue = 'report_security_check_mediafilterswf';
$result->name = get_string('check_mediafilterswf_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = "<a href=\"$CFG->wwwroot/$CFG->admin/settings.php?section=filtersettingfiltermediaplugin\">".get_string('filtersettings', 'admin').'</a>';
$activefilters = filter_get_globally_enabled();
if (array_search('filter/mediaplugin', $activefilters) !== false and !empty($CFG->filter_mediaplugin_enable_swf)) {
$result->status = REPORT_SECURITY_CRITICAL;
$result->info = get_string('check_mediafilterswf_error', 'report_security');
} else {
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_mediafilterswf_ok', 'report_security');
}
if ($detailed) {
$result->details = get_string('check_mediafilterswf_details', 'report_security');
}
return $result;
}
/**
* Verifies fatal misconfiguration of dataroot
* @param bool $detailed
* @return object result
*/
function report_security_check_unsecuredataroot($detailed=false) {
global $CFG;
$result = new stdClass();
$result->issue = 'report_security_check_unsecuredataroot';
$result->name = get_string('check_unsecuredataroot_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = null;
$insecuredataroot = is_dataroot_insecure(true);
if ($insecuredataroot == INSECURE_DATAROOT_WARNING) {
$result->status = REPORT_SECURITY_SERIOUS;
$result->info = get_string('check_unsecuredataroot_warning', 'report_security', $CFG->dataroot);
} else if ($insecuredataroot == INSECURE_DATAROOT_ERROR) {
$result->status = REPORT_SECURITY_CRITICAL;
$result->info = get_string('check_unsecuredataroot_error', 'report_security', $CFG->dataroot);
} else {
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_unsecuredataroot_ok', 'report_security');
}
if ($detailed) {
$result->details = get_string('check_unsecuredataroot_details', 'report_security');
}
return $result;
}
/**
* Verifies displaying of errors - problem for lib files and 3rd party code
* because we can not disable debugging in these scripts (they do not include config.php)
* @param bool $detailed
* @return object result
*/
function report_security_check_displayerrors($detailed=false) {
$result = new stdClass();
$result->issue = 'report_security_check_displayerrors';
$result->name = get_string('check_displayerrors_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = null;
if (defined('WARN_DISPLAY_ERRORS_ENABLED')) {
$result->status = REPORT_SECURITY_WARNING;
$result->info = get_string('check_displayerrors_error', 'report_security');
} else {
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_displayerrors_ok', 'report_security');
}
if ($detailed) {
$result->details = get_string('check_displayerrors_details', 'report_security');
}
return $result;
}
/**
* Verifies open profiles - originally open by default, not anymore because spammer abused it a lot
* @param bool $detailed
* @return object result
*/
function report_security_check_openprofiles($detailed=false) {
global $CFG;
$result = new stdClass();
$result->issue = 'report_security_check_openprofiles';
$result->name = get_string('check_openprofiles_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = "<a href=\"$CFG->wwwroot/$CFG->admin/settings.php?section=sitepolicies\">".get_string('sitepolicies', 'admin').'</a>';
if (empty($CFG->forcelogin) and empty($CFG->forceloginforprofiles)) {
$result->status = REPORT_SECURITY_WARNING;
$result->info = get_string('check_openprofiles_error', 'report_security');
} else {
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_openprofiles_ok', 'report_security');
}
if ($detailed) {
$result->details = get_string('check_openprofiles_details', 'report_security');
}
return $result;
}
/**
* Verifies google access not combined with disabled guest access
* because attackers might gain guest access by modifying browser signature.
* @param bool $detailed
* @return object result
*/
function report_security_check_google($detailed=false) {
global $CFG;
$result = new stdClass();
$result->issue = 'report_security_check_google';
$result->name = get_string('check_google_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = "<a href=\"$CFG->wwwroot/$CFG->admin/settings.php?section=sitepolicies\">".get_string('sitepolicies', 'admin').'</a>';
if (empty($CFG->opentogoogle)) {
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_google_ok', 'report_security');
} else if (!empty($CFG->guestloginbutton)) {
$result->status = REPORT_SECURITY_INFO;
$result->info = get_string('check_google_info', 'report_security');
} else {
$result->status = REPORT_SECURITY_SERIOUS;
$result->info = get_string('check_google_error', 'report_security');
}
if ($detailed) {
$result->details = get_string('check_google_details', 'report_security');
}
return $result;
}
/**
* Verifies email confirmation - spammers were changing mails very often
* @param bool $detailed
* @return object result
*/
function report_security_check_emailchangeconfirmation($detailed=false) {
global $CFG;
$result = new stdClass();
$result->issue = 'report_security_check_emailchangeconfirmation';
$result->name = get_string('check_emailchangeconfirmation_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = "<a href=\"$CFG->wwwroot/$CFG->admin/settings.php?section=sitepolicies\">".get_string('sitepolicies', 'admin').'</a>';
if (empty($CFG->emailchangeconfirmation)) {
if (empty($CFG->allowemailaddresses)) {
$result->status = REPORT_SECURITY_WARNING;
$result->info = get_string('check_emailchangeconfirmation_error', 'report_security');
} else {
$result->status = REPORT_SECURITY_INFO;
$result->info = get_string('check_emailchangeconfirmation_info', 'report_security');
}
} else {
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_emailchangeconfirmation_ok', 'report_security');
}
if ($detailed) {
$result->details = get_string('check_emailchangeconfirmation_details', 'report_security');
}
return $result;
}
/**
* Verifies if https enabled only secure cookies allowed,
* this prevents redirections and sending of cookies to unsecure port.
* @param bool $detailed
* @return object result
*/
function report_security_check_cookiesecure($detailed=false) {
global $CFG;
if (strpos($CFG->wwwroot, 'https://') !== 0) {
return null;
}
$result = new stdClass();
$result->issue = 'report_security_check_cookiesecure';
$result->name = get_string('check_cookiesecure_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = "<a href=\"$CFG->wwwroot/$CFG->admin/settings.php?section=httpsecurity\">".get_string('httpsecurity', 'admin').'</a>';
if (empty($CFG->cookiesecure)) {
$result->status = REPORT_SECURITY_SERIOUS;
$result->info = get_string('check_cookiesecure_error', 'report_security');
} else {
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_cookiesecure_ok', 'report_security');
}
if ($detailed) {
$result->details = get_string('check_cookiesecure_details', 'report_security');
}
return $result;
}
/**
* Verifies config.php is not writable anymore after installation,
* config files were changed on several outdated server.
* @param bool $detailed
* @return object result
*/
function report_security_check_configrw($detailed=false) {
global $CFG;
$result = new stdClass();
$result->issue = 'report_security_check_configrw';
$result->name = get_string('check_configrw_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = null;
if (is_writable($CFG->dirroot.'/config.php')) {
$result->status = REPORT_SECURITY_WARNING;
$result->info = get_string('check_configrw_warning', 'report_security');
} else {
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_configrw_ok', 'report_security');
}
if ($detailed) {
$result->details = get_string('check_configrw_details', 'report_security');
}
return $result;
}
function report_security_check_passwordsaltmain($detailed=false) {
global $CFG;
$result = new stdClass();
$result->issue = 'report_security_check_passwordsaltmain';
$result->name = get_string('check_passwordsaltmain_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = null;
if (empty($CFG->passwordsaltmain)) {
$result->status = REPORT_SECURITY_WARNING;
$result->info = get_string('check_passwordsaltmain_warning', 'report_security');
} else if ($CFG->passwordsaltmain === 'some long random string here with lots of characters'
|| trim($CFG->passwordsaltmain) === '' || preg_match('/^([a-z0-9]{0,10})$/i', $CFG->passwordsaltmain)) {
$result->status = REPORT_SECURITY_WARNING;
$result->info = get_string('check_passwordsaltmain_weak', 'report_security');
} else {
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_passwordsaltmain_ok', 'report_security');
}
if ($detailed) {
$result->details = get_string('check_passwordsaltmain_details', 'report_security', get_docs_url('report/security/report_security_check_passwordsaltmain'));
}
return $result;
}
/**
* Lists all users with XSS risk, it would be great to combine this with risk trusts in user table,
* unfortunately nobody implemented user trust UI yet :-(
* @param bool $detailed
* @return object result
*/
function report_security_check_riskxss($detailed=false) {
global $DB;
$result = new stdClass();
$result->issue = 'report_security_check_riskxss';
$result->name = get_string('check_riskxss_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = REPORT_SECURITY_WARNING;
$result->link = null;
$params = array('capallow'=>CAP_ALLOW);
$sqlfrom = "FROM (SELECT rcx.*
FROM {role_capabilities} rcx
JOIN {capabilities} cap ON (cap.name = rcx.capability AND ".$DB->sql_bitand('cap.riskbitmask', RISK_XSS)." <> 0)
WHERE rcx.permission = :capallow) rc,
{context} c,
{context} sc,
{role_assignments} ra,
{user} u
WHERE c.id = rc.contextid
AND (sc.path = c.path OR sc.path LIKE ".$DB->sql_concat('c.path', "'/%'")." OR c.path LIKE ".$DB->sql_concat('sc.path', "'/%'").")
AND u.id = ra.userid AND u.deleted = 0
AND ra.contextid = sc.id AND ra.roleid = rc.roleid";
$count = $DB->count_records_sql("SELECT COUNT(DISTINCT u.id) $sqlfrom", $params);
$result->info = get_string('check_riskxss_warning', 'report_security', $count);
if ($detailed) {
$users = $DB->get_records_sql("SELECT DISTINCT u.id, u.firstname, u.lastname, u.picture, u.imagealt $sqlfrom", $params);
foreach ($users as $uid=>$user) {
$users[$uid] = fullname($user);
}
$users = implode(', ', $users);
$result->details = get_string('check_riskxss_details', 'report_security', $users);
}
return $result;
}
/**
* Verifies sanity of default user role.
* @param bool $detailed
* @return object result
*/
function report_security_check_defaultuserrole($detailed=false) {
global $DB, $CFG;
$result = new stdClass();
$result->issue = 'report_security_check_defaultuserrole';
$result->name = get_string('check_defaultuserrole_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = "<a href=\"$CFG->wwwroot/$CFG->admin/settings.php?section=userpolicies\">".get_string('userpolicies', 'admin').'</a>';;
if (!$default_role = $DB->get_record('role', array('id'=>$CFG->defaultuserroleid))) {
$result->status = REPORT_SECURITY_WARNING;
$result->info = get_string('check_defaultuserrole_notset', 'report_security');
$result->details = $result->info;
return $result;
}
// risky caps - usually very dangerous
$params = array('capallow'=>CAP_ALLOW, 'roleid'=>$default_role->id);
$sql = "SELECT COUNT(DISTINCT rc.contextid)
FROM {role_capabilities} rc
JOIN {capabilities} cap ON cap.name = rc.capability
WHERE ".$DB->sql_bitand('cap.riskbitmask', (RISK_XSS | RISK_CONFIG | RISK_DATALOSS))." <> 0
AND rc.permission = :capallow
AND rc.roleid = :roleid";
$riskycount = $DB->count_records_sql($sql, $params);
// it may have either none or 'user' archetype - nothing else, or else it would break during upgrades badly
if ($default_role->archetype === '' or $default_role->archetype === 'user') {
$legacyok = true;
} else {
$legacyok = false;
}
if ($riskycount or !$legacyok) {
$result->status = REPORT_SECURITY_CRITICAL;
$result->info = get_string('check_defaultuserrole_error', 'report_security', format_string($default_role->name));
} else {
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_defaultuserrole_ok', 'report_security');
}
if ($detailed) {
$result->details = get_string('check_defaultuserrole_details', 'report_security');
}
return $result;
}
/**
* Verifies sanity of guest role
* @param bool $detailed
* @return object result
*/
function report_security_check_guestrole($detailed=false) {
global $DB, $CFG;
$result = new stdClass();
$result->issue = 'report_security_check_guestrole';
$result->name = get_string('check_guestrole_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = "<a href=\"$CFG->wwwroot/$CFG->admin/settings.php?section=userpolicies\">".get_string('userpolicies', 'admin').'</a>';;
if (!$guest_role = $DB->get_record('role', array('id'=>$CFG->guestroleid))) {
$result->status = REPORT_SECURITY_WARNING;
$result->info = get_string('check_guestrole_notset', 'report_security');
$result->details = $result->info;
return $result;
}
// risky caps - usually very dangerous
$params = array('capallow'=>CAP_ALLOW, 'roleid'=>$guest_role->id);
$sql = "SELECT COUNT(DISTINCT rc.contextid)
FROM {role_capabilities} rc
JOIN {capabilities} cap ON cap.name = rc.capability
WHERE ".$DB->sql_bitand('cap.riskbitmask', (RISK_XSS | RISK_CONFIG | RISK_DATALOSS))." <> 0
AND rc.permission = :capallow
AND rc.roleid = :roleid";
$riskycount = $DB->count_records_sql($sql, $params);
// it may have either no or 'guest' archetype - nothing else, or else it would break during upgrades badly
if ($guest_role->archetype === '' or $guest_role->archetype === 'guest') {
$legacyok = true;
} else {
$legacyok = false;
}
if ($riskycount or !$legacyok) {
$result->status = REPORT_SECURITY_CRITICAL;
$result->info = get_string('check_guestrole_error', 'report_security', format_string($guest_role->name));
} else {
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_guestrole_ok', 'report_security');
}
if ($detailed) {
$result->details = get_string('check_guestrole_details', 'report_security');
}
return $result;
}
/**
* Verifies sanity of frontpage role
* @param bool $detailed
* @return object result
*/
function report_security_check_frontpagerole($detailed=false) {
global $DB, $CFG;
$result = new stdClass();
$result->issue = 'report_security_check_frontpagerole';
$result->name = get_string('check_frontpagerole_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = "<a href=\"$CFG->wwwroot/$CFG->admin/settings.php?section=frontpagesettings\">".get_string('frontpagesettings','admin').'</a>';;
if (!$frontpage_role = $DB->get_record('role', array('id'=>$CFG->defaultfrontpageroleid))) {
$result->status = REPORT_SECURITY_INFO;
$result->info = get_string('check_frontpagerole_notset', 'report_security');
$result->details = get_string('check_frontpagerole_details', 'report_security');
return $result;
}
// risky caps - usually very dangerous
$params = array('capallow'=>CAP_ALLOW, 'roleid'=>$frontpage_role->id);
$sql = "SELECT COUNT(DISTINCT rc.contextid)
FROM {role_capabilities} rc
JOIN {capabilities} cap ON cap.name = rc.capability
WHERE ".$DB->sql_bitand('cap.riskbitmask', (RISK_XSS | RISK_CONFIG | RISK_DATALOSS))." <> 0
AND rc.permission = :capallow
AND rc.roleid = :roleid";
$riskycount = $DB->count_records_sql($sql, $params);
// there is no legacy role type for frontpage yet - anyway we can not allow teachers or admins there!
if ($frontpage_role->archetype === 'teacher' or $frontpage_role->archetype === 'editingteacher'
or $frontpage_role->archetype === 'coursecreator' or $frontpage_role->archetype === 'manager') {
$legacyok = false;
} else {
$legacyok = true;
}
if ($riskycount or !$legacyok) {
$result->status = REPORT_SECURITY_CRITICAL;
$result->info = get_string('check_frontpagerole_error', 'report_security', format_string($frontpage_role->name));
} else {
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_frontpagerole_ok', 'report_security');
}
if ($detailed) {
$result->details = get_string('check_frontpagerole_details', 'report_security');
}
return $result;
}
/**
* Lists all admins.
* @param bool $detailed
* @return object result
*/
function report_security_check_riskadmin($detailed=false) {
global $DB, $CFG;
$result = new stdClass();
$result->issue = 'report_security_check_riskadmin';
$result->name = get_string('check_riskadmin_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = null;
$sql = "SELECT u.id, u.firstname, u.lastname, u.picture, u.imagealt, u.email
FROM {user} u
WHERE u.id IN ($CFG->siteadmins)";
$admins = $DB->get_records_sql($sql);
$admincount = count($admins);
if ($detailed) {
foreach ($admins as $uid=>$user) {
$url = "$CFG->wwwroot/user/view.php?id=$user->id";
$admins[$uid] = '<li><a href="'.$url.'">'.fullname($user).' ('.$user->email.')</a></li>';
}
$admins = '<ul>'.implode($admins).'</ul>';
}
$result->status = REPORT_SECURITY_OK;
$result->info = get_string('check_riskadmin_ok', 'report_security', $admincount);
if ($detailed) {
$result->details = get_string('check_riskadmin_detailsok', 'report_security', $admins);
}
return $result;
}
/**
* Lists all roles that have the ability to backup user data, as well as users
* @param bool $detailed
* @return object result
*/
function report_security_check_riskbackup($detailed=false) {
global $CFG, $DB;
$result = new stdClass();
$result->issue = 'report_security_check_riskbackup';
$result->name = get_string('check_riskbackup_name', 'report_security');
$result->info = null;
$result->details = null;
$result->status = null;
$result->link = null;
$syscontext = get_context_instance(CONTEXT_SYSTEM);
$params = array('capability'=>'moodle/backup:userinfo', 'permission'=>CAP_ALLOW, 'contextid'=>$syscontext->id);
$sql = "SELECT DISTINCT r.id, r.name, r.shortname, r.sortorder, r.archetype
FROM {role} r
JOIN {role_capabilities} rc ON rc.roleid = r.id
WHERE rc.capability = :capability
AND rc.contextid = :contextid
AND rc.permission = :permission";
$systemroles = $DB->get_records_sql($sql, $params);
$params = array('capability'=>'moodle/backup:userinfo', 'permission'=>CAP_ALLOW, 'contextid'=>$syscontext->id);
$sql = "SELECT DISTINCT r.id, r.name, r.shortname, r.sortorder, r.archetype, rc.contextid
FROM {role} r
JOIN {role_capabilities} rc ON rc.roleid = r.id
WHERE rc.capability = :capability
AND rc.contextid <> :contextid
AND rc.permission = :permission";
$overriddenroles = $DB->get_records_sql($sql, $params);
// list of users that are able to backup personal info
// note: "sc" is context where is role assigned,
// "c" is context where is role overridden or system context if in role definition
$params = array('capability'=>'moodle/backup:userinfo', 'permission'=>CAP_ALLOW, 'context1'=>CONTEXT_COURSE, 'context2'=>CONTEXT_COURSE);
$sqluserinfo = "
FROM (SELECT rcx.*
FROM {role_capabilities} rcx
WHERE rcx.permission = :permission AND rcx.capability = :capability) rc,
{context} c,
{context} sc,
{role_assignments} ra,
{user} u
WHERE c.id = rc.contextid
AND (sc.path = c.path OR sc.path LIKE ".$DB->sql_concat('c.path', "'/%'")." OR c.path LIKE ".$DB->sql_concat('sc.path', "'/%'").")
AND u.id = ra.userid AND u.deleted = 0
AND ra.contextid = sc.id AND ra.roleid = rc.roleid
AND sc.contextlevel <= :context1 AND c.contextlevel <= :context2";
$usercount = $DB->count_records_sql("SELECT COUNT('x') FROM (SELECT DISTINCT u.id $sqluserinfo) userinfo", $params);
$systemrolecount = empty($systemroles) ? 0 : count($systemroles);
$overriddenrolecount = empty($overriddenroles) ? 0 : count($overriddenroles);
$result->status = REPORT_SECURITY_WARNING; // there is always at least one admin
$a = (object)array('rolecount'=>$systemrolecount,'overridecount'=>$overriddenrolecount,'usercount'=>$usercount);
$result->info = get_string('check_riskbackup_warning', 'report_security', $a);
if ($detailed) {
$result->details = ''; // Will be added to later
// Make a list of roles
if ($systemroles) {
$links = array();
foreach ($systemroles as $role) {
$role->url = "$CFG->wwwroot/$CFG->admin/roles/manage.php?action=edit&amp;roleid=$role->id";
$links[] = '<li>'.get_string('check_riskbackup_editrole', 'report_security', $role).'</li>';
}
$links = '<ul>'.implode($links).'</ul>';
$result->details .= get_string('check_riskbackup_details_systemroles', 'report_security', $links);
}
// Make a list of overrides to roles
$rolelinks2 = array();
if ($overriddenroles) {
$links = array();
foreach ($overriddenroles as $role) {
$context = get_context_instance_by_id($role->contextid);
if ($context->contextlevel == CONTEXT_COURSE) {
$role->name = role_get_name($role, $context);
}
$role->contextname = print_context_name($context);
$role->url = "$CFG->wwwroot/$CFG->admin/roles/override.php?contextid=$role->contextid&amp;roleid=$role->id";
$links[] = '<li>'.get_string('check_riskbackup_editoverride', 'report_security', $role).'</li>';
}
$links = '<ul>'.implode($links).'</ul>';
$result->details .= get_string('check_riskbackup_details_overriddenroles', 'report_security', $links);
}
// Get a list of affected users as well
$users = array();
$rs = $DB->get_recordset_sql("SELECT DISTINCT u.id, u.firstname, u.lastname, u.picture, u.imagealt, u.email, ra.contextid, ra.roleid
$sqluserinfo ORDER BY u.lastname, u.firstname", $params);
foreach ($rs as $user) {
$context = get_context_instance_by_id($user->contextid);
$url = "$CFG->wwwroot/$CFG->admin/roles/assign.php?contextid=$user->contextid&amp;roleid=$user->roleid";
$a = (object)array('fullname'=>fullname($user), 'url'=>$url, 'email'=>$user->email,
'contextname'=>print_context_name($context));
$users[] = '<li>'.get_string('check_riskbackup_unassign', 'report_security', $a).'</li>';
}
if (!empty($users)) {
$users = '<ul>'.implode($users).'</ul>';
$result->details .= get_string('check_riskbackup_details_users', 'report_security', $users);
}
}
return $result;
}
-5
View File
@@ -1,5 +0,0 @@
<?php
defined('MOODLE_INTERNAL') || die;
$ADMIN->add('reports', new admin_externalpage('reportsecurity', get_string('pluginname', 'report_security'), "$CFG->wwwroot/$CFG->admin/report/security/index.php",'report/security:view'));
-27
View File
@@ -1,27 +0,0 @@
<?PHP
///////////////////////////////////////////////////////////////////////////
// //
// NOTICE OF COPYRIGHT //
// //
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
// http://moodle.com //
// //
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
// //
// This program 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 2 of the License, or //
// (at your option) any later version. //
// //
// This program 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: //
// //
// http://www.gnu.org/copyleft/gpl.html //
// //
///////////////////////////////////////////////////////////////////////////
$plugin->version = 2010090501;
$plugin->requires = 2010090501;
-286
View File
@@ -1,286 +0,0 @@
<?php
/**
* Spam Cleaner
*
* Helps an admin to clean up spam in Moodle
*
* @authors Dongsheng Cai, Martin Dougiamas, Amr Hourani
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
*/
// List of known spammy keywords, please add more here
/////////////////////////////////////////////////////////////////////////////////
require_once('../../../config.php');
require_once($CFG->libdir.'/adminlib.php');
// Configuration
$autokeywords = array(
"<img",
"fuck",
"casino",
"porn",
"xxx",
"cialis",
"viagra",
"poker",
"warcraft"
);
$keyword = optional_param('keyword', '', PARAM_RAW);
$autodetect = optional_param('autodetect', '', PARAM_RAW);
$del = optional_param('del', '', PARAM_RAW);
$delall = optional_param('delall', '', PARAM_RAW);
$ignore = optional_param('ignore', '', PARAM_RAW);
$reset = optional_param('reset', '', PARAM_RAW);
$id = optional_param('id', '', PARAM_INT);
require_login();
admin_externalpage_setup('reportspamcleaner');
// Delete one user
if (!empty($del) && confirm_sesskey() && ($id != $USER->id)) {
if (isset($SESSION->users_result[$id])) {
$user = $SESSION->users_result[$id];
if (delete_user($user)) {
unset($SESSION->users_result[$id]);
echo json_encode(true);
} else {
echo json_encode(false);
}
} else {
echo json_encode(false);
}
exit;
}
// Delete lots of users
if (!empty($delall) && confirm_sesskey()) {
if (!empty($SESSION->users_result)) {
foreach ($SESSION->users_result as $userid => $user) {
if ($userid != $USER->id) {
if (delete_user($user)) {
unset($SESSION->users_result[$userid]);
}
}
}
}
echo json_encode(true);
exit;
}
if (!empty($ignore)) {
unset($SESSION->users_result[$id]);
echo json_encode(true);
exit;
}
$PAGE->requires->js_init_call('M.report_spamcleaner.init', array(me()), true);
$strings = Array('spaminvalidresult','spamdeleteallconfirm','spamcannotdelete','spamdeleteconfirm');
$PAGE->requires->strings_for_js($strings, 'report_spamcleaner');
echo $OUTPUT->header();
// Print headers and things
echo $OUTPUT->box(get_string('spamcleanerintro', 'report_spamcleaner'));
echo $OUTPUT->box_start(); // The forms section at the top
?>
<div class="mdl-align">
<form method="post" action="index.php">
<div>
<input type="text" name="keyword" id="keyword_el" value="<?php p($keyword) ?>" />
<input type="hidden" name="sesskey" value="<?php echo sesskey();?>" />
<input type="submit" value="<?php echo get_string('spamsearch', 'report_spamcleaner')?>" />
</div>
</form>
<p><?php echo get_string('spameg', 'report_spamcleaner');?></p>
<hr />
<form method="post" action="index.php">
<div>
<input type="submit" name="autodetect" value="<?php echo get_string('spamauto', 'report_spamcleaner');?>" />
</div>
</form>
</div>
<?php
echo $OUTPUT->box_end();
echo '<div id="result" class="mdl-align">';
// Print list of resulting profiles
if (!empty($keyword)) { // Use the keyword(s) supplied by the user
$keywords = explode(',', $keyword);
foreach ($keywords as $key => $keyword) {
$keywords[$key] = trim($keyword);
}
search_spammers($keywords);
} else if (!empty($autodetect)) { // Use the inbuilt keyword list to detect users
search_spammers($autokeywords);
}
echo '</div>';
/////////////////////////////////////////////////////////////////////////////////
/// Functions
function search_spammers($keywords) {
global $CFG, $USER, $DB, $OUTPUT;
if (!is_array($keywords)) {
$keywords = array($keywords); // Make it into an array
}
$params = array('userid'=>$USER->id);
$keywordfull = array();
$i = 0;
foreach ($keywords as $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, $params);
$spamusers_blog = $DB->get_recordset_sql($sql2, $params);
$keywordlist = implode(', ', $keywords);
echo $OUTPUT->box(get_string('spamresult', 'report_spamcleaner').s($keywordlist)).' ...';
print_user_list(array($spamusers_desc, $spamusers_blog), $keywords);
}
function print_user_list($users_rs, $keywords) {
global $CFG, $SESSION;
// reset session everytime this function is called
$SESSION->users_result = array();
$count = 0;
foreach ($users_rs as $rs){
foreach ($rs as $user) {
if (!$count) {
echo '<table border="1" width="100%" id="data-grid"><tr><th>&nbsp;</th><th>'.get_string('user','admin').'</th><th>'.get_string('spamdesc', 'report_spamcleaner').'</th><th>'.get_string('spamoperation', 'report_spamcleaner').'</th></tr>';
}
$count++;
filter_user($user, $keywords, $count);
}
}
if (!$count) {
echo get_string('spamcannotfinduser', 'report_spamcleaner');
} else {
echo '</table>';
echo '<div class="mld-align">
<button id="removeall_btn">'.get_string('spamdeleteall', 'report_spamcleaner').'</button>
</div>';
}
}
function filter_user($user, $keywords, $count) {
global $CFG;
$image_search = false;
if (in_array('<img', $keywords)) {
$image_search = true;
}
if (isset($user->summary)) {
$user->description = '<h3>'.get_string('spamfromblog', 'report_spamcleaner').'</h3>'.$user->summary;
unset($user->summary);
}
if (preg_match('#<img.*src=[\"\']('.$CFG->wwwroot.')#', $user->description, $matches)
&& $image_search) {
$result = false;
foreach ($keywords as $keyword) {
if (preg_match('#'.$keyword.'#', $user->description)
&& ($keyword != '<img')) {
$result = true;
}
}
if ($result) {
echo print_user_entry($user, $keywords, $count);
} else {
unset($user);
}
} else {
echo print_user_entry($user, $keywords, $count);
}
}
function print_user_entry($user, $keywords, $count) {
global $SESSION, $CFG;
$smalluserobject = new stdClass(); // All we need to delete them later
$smalluserobject->id = $user->id;
$smalluserobject->email = $user->email;
$smalluserobject->auth = $user->auth;
$smalluserobject->firstname = $user->firstname;
$smalluserobject->lastname = $user->lastname;
$smalluserobject->username = $user->username;
if (empty($SESSION->users_result[$user->id])) {
$SESSION->users_result[$user->id] = $smalluserobject;
$html = '<tr valign="top" id="row-'.$user->id.'" class="result-row">';
$html .= '<td width="10">'.$count.'</td>';
$html .= '<td width="30%" align="left"><a href="'.$CFG->wwwroot."/user/view.php?course=1&amp;id=".$user->id.'" title="'.s($user->username).'">'.fullname($user).'</a>';
$html .= "<ul>";
$profile_set = array('city'=>true, 'country'=>true, 'email'=>true);
foreach ($profile_set as $key=>$value) {
if (isset($user->$key)){
$html .= '<li>'.$user->$key.'</li>';
}
}
$html .= "</ul>";
$html .= '</td>';
foreach ($keywords as $keyword) {
$user->description = highlight($keyword, $user->description);
}
if (!isset($user->descriptionformat)) {
$user->descriptionformat = FORMAT_MOODLE;
}
$html .= '<td align="left">'.format_text($user->description, $user->descriptionformat, array('overflowdiv'=>true)).'</td>';
$html .= '<td width="100px" align="center">';
$html .= '<button onclick="M.report_spamcleaner.del_user(this,'.$user->id.')">'.get_string('deleteuser', 'admin').'</button><br />';
$html .= '<button onclick="M.report_spamcleaner.ignore_user(this,'.$user->id.')">'.get_string('ignore', 'admin').'</button>';
$html .= '</td>';
$html .= '</tr>';
return $html;
} else {
return null;
}
}
echo $OUTPUT->footer();
@@ -1,40 +0,0 @@
<?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_spamcleaner', language 'en', branch 'MOODLE_20_STABLE'
*
* @package report_spamcleaner
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['pluginname'] = 'Spam cleaner';
$string['spamauto'] = 'Autodetect common spam patterns';
$string['spamcannotdelete'] = 'Cannot delete this user';
$string['spamcannotfinduser'] = 'No users matching your search';
$string['spamcleanerintro'] = 'This script allows you to search all user profiles for certain strings and then delete those accounts which are obviously created by spammers. You can search for multiple keywords using commas (eg casino, porn)<br /><br />Moodle docs has more information about <a href="http://docs.moodle.org/en/Reducing_spam_in_Moodle">Reducing spam in Moodle</a>.';
$string['spamdeleteall'] = 'Delete all these user accounts';
$string['spamdeleteallconfirm'] = 'Are you sure you want to delete all these user accounts? You can not undo this.';
$string['spamdeleteconfirm'] = 'Are you sure you want to delete this entry? You can not undo this.';
$string['spamdesc'] = 'Description';
$string['spameg'] = 'eg: casino, porn, xxx';
$string['spamfromblog'] = 'From blog post:';
$string['spaminvalidresult'] = 'Unknown but invalid result';
$string['spamoperation'] = 'Operation';
$string['spamresult'] = 'Results of searching user profiles containing:';
$string['spamsearch'] = 'Search for these keywords';

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