Commit graph

13844 commits

Author SHA1 Message Date
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
Ruslan Kabalin
5683815612 MDL-31263 Rewrite block drag/drop using YUI3 2012-04-24 13:25:43 +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
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
Ruslan Kabalin
d8feba6ce7 MDL-31052 Add generic lightbox spinner to indicate progress to user 2012-04-23 21:17:50 +01: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
Dan Poltawski
b68eef5e0b Merge branch 'MDL-32462' of git://github.com/timhunt/moodle 2012-04-23 12:54:01 +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
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
f488088109 Merge branch 'w17_MDL-32569_m23_phpunit5' of git://github.com/skodak/moodle 2012-04-23 11:21:06 +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
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
Aaron Barnes
412cecc32b MDL-32249 completion: Round course grades and remove hardcoded string 2012-04-23 12:18:44 +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)
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
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
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
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
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
b38d2ce7f8 MDL-32569 move other test related files to new tests directory 2012-04-21 16:11:36 +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
c8bd9402ea MDL-32449 import latest version of TinyMCE 3.5dev 2012-04-21 11:04:54 +02:00
Petr Skoda
6e9f0fd15d MDL-32569 improve SimpleTest emulation 2012-04-20 22:20:43 +02: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
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
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
Petr Skoda
9a251f1884 MDL-32477 tests for cloning of permissions 2012-04-19 22:09:32 +02:00