13529 Commits

Author SHA1 Message Date
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)
daf28d868b MDL-32117 equella: make it core plugin 2012-06-12 02:37:04 +02:00
Petr Skoda
7cb76d1645 MDL-33595 fix recent initial PHPUnit init regression 2012-06-08 11:50:03 +02: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
8ac226d23c Merge branch 'MDL-33587-delete-alias' of git://github.com/mudrd8mz/moodle 2012-06-08 11:40:56 +08: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)
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
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
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
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
Dan Poltawski
620ecd38d2 Merge branch 'wip-MDL-33482-master' of git://github.com/danpoltawski/moodle 2012-06-07 18:11:10 +08:00
Andrew Robert Nicols
255dd8d1e2 MDL-33482 Replaced modchooser with chooserdialogue 2012-06-07 18:09:14 +08: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
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
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
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
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
dcba513f4b Merge branch 'w23_MDL-32632_m23_windate' of git://github.com/skodak/moodle 2012-06-06 12:27:10 +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
Sam Hemelryk
4744851197 Merge branch 'MDL-30837-master' of https://github.com/FMCorz/moodle 2012-06-06 11:00:20 +12:00
Sam Hemelryk
238858e362 MDL-26277: Fixed whitespace post integration 2012-06-06 09:15:18 +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
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
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
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
29304b6c7d Merge branch 'MDL-33401-master' of git://github.com/ankitagarwal/moodle 2012-06-05 12:34:29 +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
7e5789c12c Merge branch 'wip-tablelib' of git://github.com/marinaglancy/moodle 2012-06-05 10:10:21 +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
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