Commit graph

11453 commits

Author SHA1 Message Date
Petr Skoda
b2f806cd92 Merge branch 'MDL-25886-user_picture_fields' of git://github.com/mudrd8mz/moodle 2011-01-10 13:43:00 +01:00
Sam Hemelryk
9e41043ca4 Merge branch 'MDL-23224' of git://github.com/mouneyrac/moodle 2011-01-10 13:33:48 +08:00
Sam Hemelryk
0d2d7a6553 Merge branch 'MDL-25709-2' of git://git.luns.net.uk/moodle 2011-01-10 12:08:10 +08:00
Dongsheng Cai
3acbe663af MDL-25669, fix_course_sortorder should check MAX_COURSE_CATEGORIES limit, and print debugging message when the number of courses in a category reach the limit 2011-01-10 09:57:15 +08:00
David Mudrak
5c0d03ea1c MDL-25886 method to convert aliased fields returned by user_picture::fields() back to unaliased form
The new public static method user_picture::unalias() picks the user
picture fields from the given record and maps the properties back to
unaliased form so that the result can be rendered.
Also fixes a forgotten bug in previous commit and adds a unit test for
both aliasing and unaliasing.
2011-01-07 14:05:25 +01:00
David Mudrak
9958e561d8 MDL-25886 allow user_picture::fields() to be used multiple times within a single query
When user table is joined twice or more within a single query, it is
important to be able to provide aliases to all returned files. This
patch adds optional parameter that, if provided, is used as a prefix
for columns aliases. Does not apply to the 'id' column, use $idalias for
that.
2011-01-07 02:12:43 +01:00
Andrew Robert Nicols
218a465980 lib/ajax/ MDL-25675 Use className instead of classList.toString()
Signed-off-by: Andrew Robert Nicols <andrew.nicols@luns.net.uk>
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2011-01-05 23:26:28 +00:00
jeromemoodle
1ede3cb37f javascript lib MDL-23224 dropdown onclick event is not trigger in Chrome 2011-01-05 16:12:52 +08:00
Sam Hemelryk
712b55e1ba javascript MDL-24521 Fixed confirm dialog bug. Kudos to John Anderson for his work on the patch and James Brisland for help testing. 2011-01-05 14:02:42 +08:00
andyjdavis
a170818189 course MDL-25831 made course request notifications work 2011-01-04 13:35:08 +08:00
Dan Poltawski
047c3b6cd3 lib/accesslib.php MDL-25709 - fix docs 2011-01-03 23:41:10 +00:00
Dan Poltawski
f9c2702ece statistics MDL-25822 Fix get_records_sql returning non-unique first column 2010-12-30 12:42:41 +00:00
Dan Poltawski
5b903967de statistics MDL-25822 multiple values in get_field_sql
A variety of get_field_sql calls returning multiple values, switched
to using MIN/MAX selects.
2010-12-30 10:30:07 +00:00
Eloy Lafuente (stronk7)
a3b474ffa0 Merge branch 'wip-MDL-25370' of git://github.com/sammarshallou/moodle 2010-12-27 17:55:35 +01:00
Eloy Lafuente (stronk7)
1ac3e1f208 Merge branch 'MDL-25720' of git://github.com/timhunt/moodle 2010-12-27 16:36:17 +01:00
Petr Skoda
bf97304ac3 Merge branch 'MDL-25596' of git://github.com/samhemelryk/moodle 2010-12-27 13:51:25 +01:00
Petr Skoda
1310964bb3 Merge branch 'MDL-24860_messaging_providers' of git://github.com/andyjdavis/moodle
Conflicts:
	mod/lesson/version.php
2010-12-27 13:39:20 +01:00
Petr Skoda
8729e5999f Merge branch 'MDL-25321-R1' of git://github.com/samhemelryk/moodle 2010-12-27 12:46:01 +01:00
Petr Skoda
82517e2b78 Merge branch 'MDL-25749' of git://github.com/stronk7/moodle 2010-12-27 12:41:29 +01:00
Petr Skoda
e2bbe5ff7d Merge branch 'MDL-25682' of git://github.com/danpoltawski/moodle 2010-12-27 12:37:37 +01:00
Petr Skoda
c72077c4ed Merge branch 'MDL-25676' of git://github.com/danpoltawski/moodle 2010-12-27 12:31:19 +01:00
Petr Skoda
9bb5a6f037 Merge branch 'MDL-25186_m20a' of git://github.com/rwijaya/moodle 2010-12-27 12:25:06 +01:00
Petr Skoda
3b8929e84b Merge branch 'MDL-25713_m2_recordset' 2010-12-27 12:05:22 +01:00
Petr Skoda
c3b1c4f097 MDL-25713 fixing trailing whitespace 2010-12-27 12:04:26 +01:00
sam marshall
cd092eceee cron MDL-25370 Update to use simpler api to get component directory 2010-12-23 10:32:42 +00:00
Sam Hemelryk
8ad24c1a44 navigation MDL-25596 Fixed whitespace issue 2010-12-23 16:55:52 +08:00
Sam Hemelryk
48d8d09063 navigation MDL-25596 Improvements for the navigation blocks JS
The biggest change is that the navigation block has been converted to a proper YUI module.
The following are the other changes made at the same time:
 * A loading icon is displayed when a branch is being loaded by AJAX.
 * Fixed a bug where you could trigger multiple AJAX requests by rapidly clicking an unloaded branch.
 * Fixed a bug where empty branches weren't being marked as such after a successful AJAX load.
 * When docked the width of the blocks dock panel is now inspected an increased if required to try avoid horizontal scrolling.
 * Removed the no longer needed inclusion of the YUI2 dom library from the navigation and settings block.
 * Expandable nodes are now passed as JS data allowing the navigation JS to be initialised through block_navigation::get_required_javascript.
 * AJAX is now focused around the branch in question rather than the tree in general.
 * Expansion of branches is now delegated to the tree rather than being an individual event on all branches.
 * Tidied up the code in general removing unneeded-unused parameters.
2010-12-23 11:21:07 +08:00
Sam Hemelryk
875851a195 dml-sqlserver MDL-25321 Changed bigint-1 to a variable and used that instead of the int 2010-12-23 11:01:12 +08:00
andyjdavis
fc61acce12 gradebook MDL-25713 now closing the recordset even when theres a problem 2010-12-23 10:07:08 +08:00
Sam Hemelryk
35d19ea685 dml-sqlserver MDL-25321 Fixed limit_to_top_n function that was breaking badly. 2010-12-23 10:02:08 +08:00
Eloy Lafuente (stronk7)
4cf2e5d571 MDL-25749 dml - pgsql fix for integer-exclusive concats 2010-12-22 18:50:05 +01:00
Eloy Lafuente (stronk7)
e8615eaf0e MDL-25749 dml - added integer-exclusive concat tests 2010-12-22 18:48:45 +01:00
Andrew Robert Nicols
a8a44f2845 MDL-25682 Set the iconsmall class correctly on all section icons.
When using AJAX the icons are not styled correctly. I've taken out
all of the non-css style from the move icon since this is all covered
by the iconsmall and img classes anyway.

Signed-off-by: Andrew Robert Nicols <andrew.nicols@luns.net.uk>
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2010-12-22 15:23:07 +00:00
Andrew Robert Nicols
1a0d7bd785 MDL-25676 Add back missing test for editing_assign class
This had caused the assign roles button disappeared in AJAX view.

Note - this does not fix the issue with the cloned buttons being resized
(MDL-25682)

Signed-off-by: Andrew Robert Nicols <andrew.nicols@luns.net.uk>
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2010-12-22 14:51:03 +00:00
Tim Hunt
652599ecc3 MDL-25720 moodlelib new PARAM_RAW_TRIMMED.
Will be required by the new question engine.
2010-12-22 10:51:48 +00:00
Rossiani Wijaya
39f2bbf3fb MDL-25186: add environmental check to recommend PHP 5.3.3 2010-12-22 16:45:17 +08:00
andyjdavis
d8f1412819 message MDL-24860 fixed messaging code in mod_lesson and marked spots that are directly sending email 2010-12-22 12:05:49 +08:00
Eloy Lafuente (stronk7)
b739d51be6 MDL-25674 fix phpdocs 2010-12-21 19:19:35 +01:00
sam marshall
e4a626b983 cron MDL-25370 Update Petr's changes to fix bug regarding lastcron, add comments/doc 2010-12-21 16:37:22 +00:00
Petr Skoda
b554173562 MDL-25370 general cron support for nearly all plugin types 2010-12-21 15:18:29 +00:00
Petr Skoda
ab12793355 Merge branch 'xhprof' of git://github.com/stronk7/moodle 2010-12-20 22:59:20 +01:00
Eloy Lafuente (stronk7)
6af80cae01 MDL-24600 profiling - add xhprof integration 2010-12-20 21:41:45 +01:00
Tim Hunt
d9c26e2174 blocklib MDL-25654 fix API inconsistency be renaming add_pretend_block to add_fake_block.
I added a deprecated method add_pretend_block that forwards to add_fake_block, so old code should be break. However, I aslo updated all the callers in core code.
2010-12-20 18:22:37 +01:00
Tim Hunt
ccdd15962a MDL-25715 simpletestlib new expectations for testing renderer output.
With unit tests.
2010-12-20 16:24:23 +01:00
Tim Hunt
6cc09234be MDL-24060 text_to_html tests. Make sure alt text for LaTeX images doesn't break. 2010-12-20 15:01:43 +01:00
Petr Skoda
5d6ab05435 MDL-25674 prevent modification of cached admin record 2010-12-20 14:41:17 +01:00
Eloy Lafuente (stronk7)
011c956ba1 Merge branch 'm20_MDL-14934_excel_time' of github.com:dongsheng/moodle 2010-12-20 12:21:21 +01:00
Rossiani Wijaya
81284044d8 Fix course ajax to be compatible with language packs. 2010-12-20 12:15:16 +01:00
andyjdavis
2f9ea7d78e gradebook MDL-25713 switched grade_object fetch_all_helper() over to using a recordset 2010-12-20 16:39:46 +08:00
Dongsheng Cai
869bbb302b MDL-14934 fixed excel time in master branch, credits to Jonathon Fowler 2010-12-15 16:26:26 +08:00