Commit graph

573 commits

Author SHA1 Message Date
Petr Skoda
dd1a9e4cd4 completion is trying to modify current db, it should use test prefix, but no idea if it really works; at least this change should help prevent damage on production sites 2010-08-26 10:01:39 +00:00
Tim Hunt
a194c2187b weblib MDL-22664 html_to_text should not strip images, it should replace them by their alt text.
Also, an new optional argument to html_to_text to control word-wrapping.
2010-08-04 17:40:01 +00:00
Jonathan Harker
355593f123 MDL-19418 Fix up a couple of stray deprecated ereg and eregi_replace calls. 2010-07-20 06:13:18 +00:00
Andrew Davis
c791bb4dfa gradebook MDL-23267 fixed 2 broken unit tests in lib/grade/simpletest 2010-07-14 08:42:14 +00:00
Petr Skoda
50a8bd6c1d MDL-14589 file api cleanup 2010-07-11 13:30:33 +00:00
Dongsheng Cai
e35194bec4 MDL-22982
1. rename repository.class to lib.php
2. fixed repository_callback.php
3. repository_ajax use moodle default exception handler
4. improve file_get_user_used_space performance
2010-07-05 07:27:49 +00:00
jerome mouneyrac
277c7a4033 file MDL-23075 fix format_postdata_for_curlcall when the params is an array of array of array 2010-07-05 02:56:04 +00:00
Petr Skoda
64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
Petr Skoda
df997f841f MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
AMOS START
    MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
    MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
    MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
    MOV [enrolenddate,core],[enrolenddate,enrol_self]
    CPY [welcometocourse,core],[welcometocourse,enrol_self]
    CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
    MOV [notenrollable,core],[notenrollable,core_enrol]
    MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
    MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
    MOV [coursemanager,core_admin],[coursecontact,core_admin]
    MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
    MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
    MOV [enrolme,core],[enrolme,core_enrol]
    MOV [unenrol,core],[unenrol,core_enrol]
    MOV [unenrolme,core],[unenrolme,core_enrol]
    MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
    MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
    MOV [enrolments,core],[enrolments,core_enrol]
    MOV [enrolperiod,core],[enrolperiod,core_enrol]
    MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00
Tim Hunt
14f3ad159d moodlelib MDL-19418 fix bugs introduced when converting clean_param to preg.
Aumusingly, one of the bugs was detected by a unit test that was in Moodle 1.9, but
which for some reason was not in HEAD. I have tidied up the clean_param unit tests
and added a few more.
2010-05-12 12:05:59 +00:00
David Mudrak
fe6a248f5a MDL-22015 String identifiers are now validated, coding exception thrown otherwise 2010-04-28 00:06:43 +00:00
Tim Hunt
836c47d7fe MDL-22155 useful new method html_writer::nonempty_tag.
It outputs a tag only if the contents you pass is non-empty.

Also, unit tests for the basic parts of html_writer.
2010-04-23 10:34:07 +00:00
Sam Hemelryk
3406acdef9 navigation MDL-22044 Major navigation structure changes.
Navigation has now been re-ordered in accordance with http://docs.moodle.org/en/Development:Navigation_2.0_structure.
This has led to several changes in the way in which navigation is generated included API changes, most notably using the
navigation_nodes add method now returns the newly added node rather than the key.
At the same time the global_navigation_tree block has been renamed to navigation and settings_navigation_tree to settings.
2010-04-19 06:30:30 +00:00
Andrew Davis
11cca21ec3 unit tests MDL-22017 made test_usergetdate() work on machines in different timezones 2010-04-16 07:47:39 +00:00
Petr Skoda
cae07b1cdc MDL-22052 pruning pre-amos string related code 2010-04-10 19:28:34 +00:00
Petr Skoda
98da60215e MDL-22033 groupings now enabled unconditionally, groupmembersonly kept as experimental - this simplifies groups code logic a bit, user interface changes should not be significant because the groupings are not visible much until at least one created; hopefully the new description of groupmembersonly will have to preventsome gradebook complaints 2010-04-07 07:37:12 +00:00
Petr Skoda
ef330d9533 MDL-22015 AMOS - making room for new string manager 2010-04-01 18:50:28 +00:00
Petr Skoda
4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00
David Mudrak
e6cf48d42a MDL-21694 re-enabling all get_string() performance tests 2010-03-29 15:20:40 +00:00
David Mudrak
e16f75bde3 Unit test did not preserve session 2010-03-21 19:44:57 +00:00
Eloy Lafuente
d294000348 MDL-21666 backup & restore caps - moving to new naming schema. More to come. 2010-02-19 17:50:14 +00:00
Petr Skoda
3e4735f459 MDL-21361 removed invalid unit tests for features that were removed or significantly redesigned 2010-02-18 18:24:26 +00:00
Sam Hemelryk
a3bbac8b76 navigation MDL-21604 Corrected simpletests after recent modifications 2010-02-18 06:42:29 +00:00
Petr Skoda
5be262b66f MDL-20204 converting html_list 2010-02-17 17:56:26 +00:00
Petr Skoda
929d7a8362 MDL-20204 converted paging_bar to new coding style + fixed regressions from recent commits 2010-02-17 16:59:41 +00:00
Petr Skoda
3ea5951efb MDL-20204 converting some more html_links 2010-02-16 15:27:16 +00:00
jerome mouneyrac
5a18a8fa74 file API MDL-20616 remove bad php doc comment 2010-02-16 09:17:39 +00:00
jerome mouneyrac
5db608f435 file API MDL-20616 added support for multiple array POST parameters in the function download_file_content(). Also added unit tests. 2010-02-16 09:04:55 +00:00
Petr Skoda
75015e5fc1 MDL-20204 converting link to html_writer or action_link 2010-02-11 16:27:53 +00:00
Petr Skoda
4ed857901a MDL-20204 fianl cleanup - removing obsolete renderer stuff 2010-02-11 10:32:39 +00:00
Petr Skoda
2849ddc667 MDL-21577 removing tests for removed features 2010-02-10 16:27:49 +00:00
Petr Skoda
78bdac6449 MDL-20204 converting yes_no selects 2010-02-10 14:05:07 +00:00
Petr Skoda
5509254c25 MDL-21233 prepare_url obsoleted by new html_writer and changes in moodle_url 2010-01-17 10:59:07 +00:00
Petr Skoda
eb7880654f MDL-21233 finally removed the omitquerystring parameters from the out method because: 1/ the least used parameter should nto be first, 2/ it is colliding with the other two paramters, now we have separate funtion for that instead 2010-01-17 09:37:30 +00:00
Petr Skoda
a685593466 MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions 2010-01-16 15:39:56 +00:00
Rossiani Wijaya
34d2b19a15 MDL-16919 - Convert uppercase to lowercase for param_username and updating test result in testmoodlelib. 2010-01-14 07:18:06 +00:00
Andrew Davis
0ae98120ae weblib MDL-21183 Commented out some unreasonable unit tests 2010-01-14 02:17:24 +00:00
Rossiani Wijaya
07ed083e4e MDL-16919 - Allow username to contain alphanumeric lowercase characters, underscore (_), hyphen (-), period (.) or at symbol (@) 2010-01-13 06:23:54 +00:00
Petr Skoda
5f0baa43a5 MDL-21149 preparation for renaming of old standard to standardold 2010-01-12 17:21:52 +00:00
Eloy Lafuente
ecbeab1a95 MDL-21296 - Adding timing info to test in order to compare results ; merged from 19_STABLE 2010-01-12 14:08:50 +00:00
Eloy Lafuente
9dd05f1db7 MDL-21168 - Added test for URLs with encoded paths and queries and fixed some onew. Merged from 19_STABLE 2010-01-12 13:33:25 +00:00
Andrew Davis
330cc667b0 weblib MDL-21168 Added some more unit tests 2010-01-11 06:26:59 +00:00
Eloy Lafuente
fd81d5bd37 MDL-21168 avoid http://www.whatever to be linked twice ; merged from 19_STABLE 2010-01-08 22:25:13 +00:00
Eloy Lafuente
0559076a3c MDL-21168 convert_urls_into_links() - minor changes to tests (code formatting,
utf_decode() out and properly escape % chars. Merged from 19_STABLE
2010-01-08 16:44:11 +00:00
Andrew Davis
24d38a6e6d moodlelib MDL-20918 usergetdate was returning an array in a different order depending on whether or not timezone was set 2010-01-08 06:56:29 +00:00
Petr Skoda
5c2ed7e215 MDL-21198 $OUTPUT->single_button() resurrection, hopefully much easier to use than $OUTPUT->button(); fixed some regressions and code style improvements 2010-01-03 15:46:14 +00:00
Petr Skoda
4bcc51185c MDL-21217, MDL-21198 simplified/improved outputlib help icon related apis + several fixed regresions 2009-12-30 15:19:55 +00:00
Petr Skoda
812dbaf7d5 MDL-21198 improved/simplified $OUTPUT->user_picture() + regression fixes, performance fixes and detected performance problems when printing user avatars 2009-12-27 19:47:21 +00:00
Andrew Davis
c013b31695 weblib MDL-21168 improved convert_urls_into_links 2009-12-24 06:44:51 +00:00
Andrew Davis
53ad47f22b weblib MDL-20826 made convert_urls_into_links() produce xhtml compliant links 2009-12-18 04:13:35 +00:00