1737 Commits

Author SHA1 Message Date
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
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)
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
Aparup Banerjee
7585ac89bd Merge branch 'MDL-32988-master' of git://github.com/sammarshallou/moodle 2012-05-16 14:03:56 +08: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
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
Petr Skoda
db990d3a47 MDL-32830 add new hidden yuidebug setting for module backtraces 2012-05-12 17:06:45 +02: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
Dan Poltawski
b9bcdb54da MDL-32505 course: drop course_display table and settings 2012-05-04 10:52:56 +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
Eloy Lafuente (stronk7)
150166d371 Merge branch 'wip-mdl-32234' of git://github.com/rajeshtaneja/moodle 2012-05-03 00:35:34 +02: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
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
Petr Skoda
faa328c385 MDL-32628 fix user_picture performance 2012-04-27 13:56:08 +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
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
Dan Poltawski
f488088109 Merge branch 'w17_MDL-32569_m23_phpunit5' of git://github.com/skodak/moodle 2012-04-23 11:21:06 +08: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
4ca04fb58b MDL-32569 remove remaining references to simpletest and improve events test 2012-04-21 17:08:30 +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
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
Dan Poltawski
a973d320f1 Merge branch 'MDL-20438-update-notification' of git://github.com/mudrd8mz/moodle 2012-04-04 11:17:43 +08: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
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
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
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
Eloy Lafuente (stronk7)
39b90b5152 MDL-30981 Upgrade API: Added related phpdocs 2012-04-02 00:40:13 +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
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
dd57a4de08 MDL-32265 moodlelib: Improved performance of moodle_needs_upgrading 2012-03-30 10:19:12 +13: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
Ankit Agarwal
af572078cf MDL-22510 libraries: Set wantsurl only when $setwantsurltome is set in
require_login
2012-03-23 14:40:35 +08:00
Ruslan Kabalin
70ad827c6c MDL-11378 Add SMTP security protocol setting to email configuration 2012-03-22 15:29:17 +00: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
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
Petr Skoda
2e15b12b81 MDL-32045 allow unenrolment of users without role via course reset 2012-03-16 10:55:30 +01: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)
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
Petr Skoda
e235f2a36e MDL-31718 utf-8 support in shorten_text() 2012-03-11 21:31:33 +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
3d951178fc MDL-31815 encode dots in confirm url which helps email clients with url highlighting 2012-03-10 10:46:36 +01: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