10940 Commits

Author SHA1 Message Date
Petr Skoda
6bd8d7e737 NOBUG fixed infinite loop when zlib compression enabled revisited 2010-11-05 08:44:51 +00:00
Sam Hemelryk
e0be5f1f34 NOBUG: Fixed minor navigation issue 2010-11-05 08:40:45 +00:00
Petr Skoda
2cadd443df NOBUG fixed infinite loop when zlib compression enabled 2010-11-05 08:32:36 +00:00
Andrew Davis
46505ee75e message MDL-24694 removed references to user->emailstop. the column itself will be removed in a later version 2010-11-05 08:04:40 +00:00
Sam Hemelryk
4c066ce7da NOBUG: Turned off zlib compression when serving javascript files. 2010-11-05 07:03:05 +00:00
jerome mouneyrac
6d153e67b4 webservice MDL-18655 add new capability moodle/user:viewalldetails allowing to see all user information. This capability is set up copying the current moodle/user:update assignations 2010-11-05 06:55:43 +00:00
Dongsheng Cai
cde2709a88 MDL-15573, question export rewrite 2010-11-05 06:34:00 +00:00
Sam Hemelryk
66f6369763 output MDL-24895 Removed debugging notice when setting an unchangeable pagelayout 2010-11-05 04:19:08 +00:00
Sam Hemelryk
bf2b43dfe1 blocks MDL-25074 When adding pretend blocks if the requested region doesn't exist it now uses the default region. 2010-11-05 03:45:32 +00:00
Sam Hemelryk
367a75fae4 themes lib MDL-24895 Multiple fixes to better handle overflow.
Major tasks undertaken in this patch:
* New format_text argument, overflowdiv.
* New page layout Report.
* Review of all format_text calls.
* Added support for the report layout to all themes.
* Changed forum post display from tables to divs.
2010-11-05 02:53:47 +00:00
Andrew Davis
a46c9a2ab4 message MDL-24763 altered a debugging() call to have a unique message 2010-11-04 06:36:56 +00:00
David Mudrak
c883a74f6f MDL-24896 Do not access PHPMailer's private properties but use public API only
There was a problem with properties $to, $ReplyTo and $error_count that
are now private. $error_count is accessible via public IsError() method.
For the other two, we needed them just because of post-processing charset
conversion. So I just made sure that the charset is converted before
the recipent and reply-to names are added to the PHPMailer.

Also, I do not instantiate Typo3 during every email if it is not needed
and I pass the character set to it in lower case now as stated in
textlib documentation.
2010-11-03 20:44:35 +00:00
David Mudrak
d2e3d259fa MDL-24896 Removed hmm-note - PHPMailer's LE property is part of public API 2010-11-03 20:44:23 +00:00
David Mudrak
beee71f2e7 MDL-21276 removed forgotten MNet global variable declaration and unused static cache 2010-11-03 20:44:10 +00:00
David Mudrak
f180f99a6d MDL-24896 MDL-12596 RFCDate declared explicitly as public as it is in the parent class
The method used to be set as private in PHPdocs @access property in the
versions for PHP4. But apparenty upstream considers the function public.
Also, if the function did not declare visibility explicitly, it was
considered public anyway.
2010-11-03 20:43:58 +00:00
David Mudrak
d21616ecb1 MDL-24896 no more returning explicit reference by get_mailer
PHP5 passes and returns reference to objects automatically, no need for
reference operator any more.
2010-11-03 20:43:46 +00:00
David Mudrak
e83b7a2023 MDL-24896 MDL-23240 class.phpmailer.php reverted to the vanilla upstream version 2010-11-03 20:43:34 +00:00
Tim Hunt
6cb034c9d2 MDL-25018 stop html_to_text from breaking utf-8 multibyte characters. 2010-11-02 20:03:48 +00:00
Tim Hunt
29946ad595 quiz 'secure' mode MDL-21085 remove popup-blocker check.
It was unnecessary on modern browsers, since they let thought a pop-up if you just clicked on a link, so this check was just causing an annoying and misleading alert.

Since the popupchecker was only used here, and since it was implemented in a way that does not work on all browsers, I just deleted the function. If anyone ever finds that they acutally need this functionality, they can re-implement it in a way that works.
2010-11-02 19:49:09 +00:00
Tim Hunt
20d891228f MDL-24256 question category editing was messed up.
The unerlying problem seemed to be too many uses of pass-by-reference in listlib, where it was not necessary.
In investigating this code, I ended up doing a fair bit of cleaning up. Apologies that it leads to an unclear changeset.
2010-11-02 18:38:50 +00:00
Sam Marshall
72d021a927 Unit tests MDL-24976 Fixed conditionlib unit test (also added thing to ensure that debug warning in conditionlib is shown in unit test if applicable) 2010-11-02 15:04:21 +00:00
David Mudrak
7f91ba532b MDL-25015 documenting the usage of M.util.get_string() 2010-11-02 14:59:32 +00:00
David Mudrak
b532be2d53 MDL-25015 get_string() logic implementation in javascript
The new function allows to substitute {$a} placeholders on client side.
Version bump needed to clear javascript caches.
2010-11-02 14:24:19 +00:00
Sam Marshall
31fe61a22f Unit tests MDL-24975 Completion unit tests fix 2010-11-02 14:14:00 +00:00
Andrew Davis
4ffa1463ec message MDL-24972 made sure all strings in messages are in the message recipient's language 2010-11-02 07:37:25 +00:00
David Mudrak
8179c167e4 MDL-24932 moodlemedia tinymce: fixed JavaScript syntax to make IE7 happy
Credit goes to Mauno Korpelainen for spotting this.
2010-11-02 06:44:08 +00:00
Dongsheng Cai
f776e221e5 MDL-24888, fixed tags itemtype in lib/db/upgrade.php 2010-11-02 03:26:10 +00:00
Dongsheng Cai
d0da42d1b7 MDL-24917, display activity backup area in restore-pre ui 2010-11-02 02:29:21 +00:00
David Mudrak
1cf2faab39 MDL-24932 moodleemoticon tinymce: use restoreSelection() instead of custom bookmark hack
Credit goes to Mauno Korpelainen for the tip on how to sort out this IE
behaviour. Also, I moved compressed dialog.js to the revision directory to prevent
browser caching issues.
2010-11-01 19:53:53 +00:00
Sam Marshall
bf81b16824 Unit tests MDL-24981 Fixed portfolio unit test so it at least runs (albeit with 23 exceptions and only 2 passes) 2010-11-01 18:00:57 +00:00
Tim Hunt
157434a522 quiz/question javascript MDL-24170 Enter in a shortanswer question preview should not flag the question.
That bit of JavaScript from mod/quiz/attempt.php is needed in question preview too, so refactor a bit.

I was disappointed to find that the
$PAGE->requires->js_module('core_question_engine');
line was needed in quiz_get_js_module, but it seems to be.

Also change non-Moodle-y string "End test..." to "Finish attempt..."
2010-11-01 17:44:59 +00:00
Petr Skoda
0ed7146b02 MDL-22584 fixed non standard space char breaking file upgrades 2010-11-01 16:00:47 +00:00
Sam Marshall
6b1cba1a12 Unit tests MDL-24982 testrepositorylib uses old test class 2010-11-01 15:20:16 +00:00
Sam Marshall
cf617be64e Unit tests MDL-24909 Unit tests used 5 minute time limit per test class; this is insufficient for gradebook tests on slow server. Changed to use 60 second limit per test function instead. Added constant and comment defining this behaviour. 2010-11-01 15:14:37 +00:00
Sam Marshall
d854dff9ef xmldb MDL-24979 Made xmldb (a) not hide libxml errors permanently, (b) not incorrectly report previous errors with a later, working file 2010-11-01 13:35:27 +00:00
Tim Hunt
bfb82da3e4 get_config / unit tests MDL-24977 get_config('a_plugin'); should return something false when there is no config.
It was always casting the result to an object, even when it was an empty array. I changed it to return null in this case. So that if (get_config('a_plugin')) { /* Do something relying on the pugin having config */ ) works.
2010-11-01 12:20:39 +00:00
Sam Marshall
c3097e1333 Unit tests MDL-24978 Fixed locale dependency 2010-11-01 12:11:41 +00:00
Sam Marshall
ca79c36843 Unit tests MDL-24842: Fixed error in previous UnitTestCaseDatabase change 2010-11-01 11:14:34 +00:00
Sam Marshall
473792550d MDL-24914: Navigationlib unit test fails due to 'temporary' commenting of function in forum module which was used as example; changing example to data module 2010-11-01 10:46:42 +00:00
David Mudrak
f8392c810c MDL-24960 emoticon admin settings: fixed a bug in the upgrade path
I forgot to unset the $CFG->emoticon from the memory so the upgrade
process still had the old emoticons format loaded in the memory which
led to coding exception.
2010-11-01 09:35:57 +00:00
Sam Hemelryk
65e52192d5 NOBUG: Removed duplicate call to set pagelayout within adminlib 2010-11-01 02:10:31 +00:00
David Mudrak
2bd56a246f MDL-24932 Fixed regression caused by the previous commit
To reproduce it, I just added a smiley via the popup and inserted some
character directly afterwards. While the smiley img was saved, the text
was not 8-o (it even did not appear in the HTML source view of the
editor before the save).
2010-10-29 22:51:51 +00:00
David Mudrak
d504aeba97 MDL-24932 way around for bloody IE8 loosing caret position in moodleemoticon
Credit goes to Jan Sindberg for the idea published at
http://tinymce.moxiecode.com/punbb/viewtopic.php?pid=59653#p59653
2010-10-29 22:01:07 +00:00
David Mudrak
9d16a85707 MDL-24932 fixed IE related bugs in moodleemoticon plugin 2010-10-29 21:22:11 +00:00
Andrew Davis
388025cbeb message MDL-24713 added code to mark messages/notifications read if messaging is disabled to prevent the new message table getting huge 2010-10-29 08:02:42 +00:00
Rossiani Wijaya
b2b204b764 MDL-20044: fixed ajax functionality when using bullet points (<ul>) in topic summary. 2010-10-29 03:38:59 +00:00
Eloy Lafuente
5d31799af8 MDL-24397 dml - added some tests for limits with subqueries 2010-10-28 10:53:55 +00:00
Andrew Davis
f5b9b38cc9 message MDL-18977 altered messaging defaults generation 2010-10-28 08:25:36 +00:00
Rossiani Wijaya
4756795bf7 MDL-22528: fixed AJAX Course editing in Chrome and Safari. 2010-10-28 07:13:56 +00:00
Andrew Davis
6c4e8db081 message MDL-24894 now correctly setting timeread for notifications when there are no processors selected 2010-10-28 07:12:39 +00:00