Commit graph

11064 commits

Author SHA1 Message Date
Petr Skoda
0ed26d1288 MDL-25150 new debugusers setting 2010-11-11 05:27:34 +00:00
Sam Hemelryk
ed1d72ea70 navigation MDL-25142 Fixed up differences in navigation between guest and normal user.
As part of this patch I also introduced a new method in accesslib can_access_course that can be used
to check a users access to a course.
I also fixed a minor issue with guest access flag caching in require_login
2010-11-11 03:37:56 +00:00
Sam Hemelryk
215d7cb84e NOBUG: Improved docs for concat functions within mysql_native_moodle_database.php 2010-11-11 01:57:35 +00:00
Petr Skoda
090b958641 no return necessary after exception thrown 2010-11-11 00:39:53 +00:00
David Mudrak
f4a2817ac5 MNet upgrade: missing required not null value
The column description in mnet_service table is set to not null and no
value is set for the insert_record(). We must explicitly provide the
empty string if the description is not defined in db/mnet.php file.
2010-11-10 16:01:23 +00:00
Sam Hemelryk
bac233d326 backup MDL-22184 Scheduled backups are now possible again through cron.
AMOS BEGIN
 MOV [move scheduledsetup,core_backup],[automatedsetup,core_backup]
 MOV [scheduledsettings,core_backup],[automatedsettings,core_backup]
 MOV [scheduledstorage,core_backup],[automatedstorage,core_backup]
 MOV [scheduledstoragehelp,core_backup],[automatedstoragehelp,core_backup]
 MOV [scheduledbackupsinactive,core],[automatedbackupsinactive,core_backup]
 MOV [scheduledbackupstatus,core],[automatedbackupstatus,core_backup]
 CPY [schedule,core],[automatedbackupschedule,core_backup]
 MOV [backupschedulehelp,core],[automatedbackupschedulehelp,core_backup]
AMOS END
2010-11-10 06:07:43 +00:00
Petr Skoda
45ff8a80d3 MDL-24955 improved detection of available self enrol plugins 2010-11-10 02:14:27 +00:00
Sam Marshall
3dfe69c927 Unit tests MDL-24980 Disable obsolete portfolio tests until such time as somebody can fix them 2010-11-09 17:10:34 +00:00
Sam Marshall
702a206cd3 Unit tests MDL-24993 Disable obsolete portfolio tests until such time as somebody can fix them 2010-11-09 17:09:13 +00:00
David Mudrak
9dbc2e7b4a MDL-25111 MNet: fixed typo in the callback function name
Credit goes to Hubert Chathi.
2010-11-09 13:11:28 +00:00
David Mudrak
03276af682 MDL-25072 reverted theme's disablecourseajax to enablecourseajax property 2010-11-09 11:55:37 +00:00
David Mudrak
b31b2d842d MDL-14790 ajax delete confirmation box now uses the same wording as the non-ajax confirmation page 2010-11-09 11:55:26 +00:00
David Mudrak
8b2918a425 MDL-25072 convert $CFG->disablecourseajax to $CFG->enablecourseajax 2010-11-09 11:55:11 +00:00
Andrew Davis
305adb1023 message MDL-25114 corrected some code doc 2010-11-09 06:47:53 +00:00
Andrew Davis
a6de5ed53a message MDL-25114 tried to make the message provider not found error info more helpful 2010-11-09 06:12:04 +00:00
Andrew Davis
60dd7688a8 message MDL-25114 tried to provide a more helpful error message for when code sending a message supplied an unknown component or event name 2010-11-09 06:01:20 +00:00
Petr Skoda
cdfb6ba850 MDL-25072 themes may disable ajax course edit 2010-11-09 01:28:43 +00:00
Sam Marshall
9d81733d4c Admin MDL-23244 Portfolio/repo admin pages use nested forms, which are illegal HTML and cause first dropdown on page to break 2010-11-08 17:12:03 +00:00
Tim Hunt
855f9c3930 question bank MDL-24312 problem when deleting a course with orphaned categories.
When there was a question category whose parent had somehow been deleted from the question bank, while the child category was still there, then that gave an error because a DB query was still referring to the question_categories.courese coloumn, that was changed to contextid in moodle 1.9.

Fix thanks to Mahmoud Kassaei.
2010-11-08 15:55:45 +00:00
Tim Hunt
4673212416 xml import/export MDL-25103 was not working due to out-of-memory errors when calling xmltidy, which broke XML wellformedness.
The solution is to not tidy the XML. The XML generated is already quite well laid out, and if we want it better, we should fix that, rather than trying to load the whole file into memory to reformat it.

Also, while investigating this, I found that we were not handling the mime-type of the exported file very elegantly, so I added a new mime_type method (defaults to getting the mime type of the file extension).
2010-11-08 15:51:10 +00:00
Tim Hunt
2284c694ee weblib NOBUG Add a comment to clarify that moodle_url deals with $CFG->admin for you. 2010-11-08 13:33:08 +00:00
Sam Marshall
fc2b6316f1 Unit tests MDL-24980 Initial fix (no fully working yet) for portfolioaddbutton test 2010-11-08 11:07:09 +00:00
Petr Skoda
b871436148 MDL-25031 ignore invalid block instances
pagetypepattern can not be null, so we ignore these until we find a way to fix them properly, sorry
2010-11-08 03:28:54 +00:00
Dongsheng Cai
a8e3b008ff MDL-25069 CHAT added event handler to handler user logout event. 2010-11-08 02:54:42 +00:00
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