2430 Commits

Author SHA1 Message Date
tjhunt
0e329b2a43 fix variable name typo 2009-04-07 05:20:16 +00:00
tjhunt
df244bbc3f qtype admin: operator precedence bug when deleting qtypes 2009-04-07 05:17:04 +00:00
mudrd8mz
4c0e52f0d6 MDL-18797 string_manager::instance()->get_registered_plugin_types() does not return "__exceptions" as places_to_search_for_lang_strings() used to do. 2009-04-06 13:06:04 +00:00
fmarier
b3a3a552ac password policy: MDL-17602 disable consecutive identical characters check by default 2009-04-05 23:46:32 +00:00
nicolasconnault
da2f44111a MDL-17272 merged from MOODLE_19_STABLE 2009-04-03 08:14:01 +00:00
tjhunt
d09ef2a0ef Fix XHTML strict problems in XMLDB. 2009-04-03 05:47:59 +00:00
fmarier
c65ab2be95 Password policy: MDL-17602 new "max consecutive identical characters" setting 2009-04-03 02:22:52 +00:00
tjhunt
d8413bf3d2 lang editing: MDL-18776 fix regression from MDL-18669. 2009-04-02 09:37:29 +00:00
tjhunt
0c34c7eb50 translation: MDL-18766 reverting. I guess it was not yet ready for prime-time.
I'll commit the patch to contrib in case anyone wishes to experiment further.
2009-04-02 02:42:11 +00:00
dongsheng
ebb1a1e847 "MDL-13224, select how many courses can be shown in mymoodle page" 2009-04-01 07:32:57 +00:00
dongsheng
8ef19a1ede "REPOSITORY/MDL-17466, display which plugin is valid" 2009-04-01 05:47:14 +00:00
dongsheng
3a90e17e41 "REPOSITORY/MDL-17466, display which plugin is valid" 2009-04-01 05:40:37 +00:00
tjhunt
b4cf937102 translation: MDL-18766 Prototype automatic translation system for Moodle.
If Google can do something like http://translate.google.com/, surely we
can do something just as good in Moodle. Here is a first attempt. It is
a bit rough around the edges, and only a couple of target lananguages
have been implemented so far. (More and better attempts welcome!)

In order to ensure that this gets adequate testing, I have made sure that
it gets turn on by default. However, if you really don't like it, you can
turn it off under Administration > Development -> Experimental settings.
2009-04-01 00:39:17 +00:00
jerome
f7631e7397 web service MDL-12886 administration: implement settings for servers (add amf debug option) 2009-03-31 03:29:01 +00:00
skodak
c6e1d6af3f MDL-18540 fixing "extra" memory strings 2009-03-30 17:09:39 +00:00
dongsheng
1ed8e660fd "MDL-18540, change the uses of option" 2009-03-30 10:07:24 +00:00
dongsheng
5977e635a1 "MDL-18540, change option name to extramemorylimit" 2009-03-30 09:42:28 +00:00
dongsheng
408278ba12 "MDL-18540, use admin_setting_configselect to set option" 2009-03-30 09:17:44 +00:00
tjhunt
b810a4d3c9 filters: MDL-17684 Look for the filter name in filter_myfilter.php first.
This makes filters more plugginable, becuase with this lang file name, get_string will look for the filter name in filter/myfilter/lang/en_utf8/filter_myfilter.php.

To do this, there is a new function filter_get_name in filterlib that contains the logic.

Also, a new function filter_get_all_installed to replace the logic for getting all filters that was duplicated in three places.

filter_get_name no longer does such a nice fall-back if the name is missing, to encourage people to supply the right string. The fallback now looks like '[[filtername]] (filter/tidy)'.
2009-03-30 08:33:13 +00:00
dongsheng
c3935adbe7 "MDL-18540, fixed default value of memorylimit" 2009-03-30 04:42:55 +00:00
skodak
1619d1098f MDL-18676 auth plugins should run before enrol because it may create new users - proposed by Jason Hardin 2009-03-26 19:56:11 +00:00
poltawski
ffeadcd485 course overview report: MDL-18286 - verson number bump wasn't merged properly
Grrrrrrrrrrrrrrrrr Petr! ;-)
2009-03-26 10:57:18 +00:00
dongsheng
7022dd3930 "MEMORY/MDL-18540,remove hard-coded php memory limit, added system setting for it, create a function reduce_memory_limit to reduce memroy limit and respect php.ini setting in the meanwhile, merged from 1.9" 2009-03-26 02:09:28 +00:00
tjhunt
c468795ce9 switch roles: MDL-18132 New Role allow switches page finished.
I also set up a reasonable set of default allows, including setting up some sensible allow_overrides, whatever the rant in MDL-15841 says.
2009-03-25 04:20:57 +00:00
tjhunt
91eb445ca0 switch roles: MDL-18132 Convert allow override page to use the shared code. 2009-03-25 02:17:14 +00:00
tjhunt
9654643e88 switch roles: MDL-18132 Refactor role allow assign page
This is ready to eliminate the duplication between this and role allow override, and the soon-to-be-written role allow switch page.
2009-03-25 01:50:55 +00:00
tjhunt
ffdd703a99 MDL-18637 fix Moodle 1.9-style {$CFG->prefix}tablename in HEAD, and a few missing $DB->s.
I did not fix all the DB problems in search, there are too many there for me to be prepared to clean up other people's mess.

(For once, it was not me making this mistake ;-))
2009-03-23 05:19:53 +00:00
tjhunt
f68cb08bbe unit tests: MDL-18607 new way to do unit tests involving the database.
This is not as ambitious as the abortive FakeDBUnitTests scheme, but this one works for simple cases.

There is a new test case class UnitTestCaseUsingDatabase to inherit from. I hope it is sufficiently well documented in its PHPdocs.
* It users $CFG->unittestprefix.
* You can access that database using $this->testdb.
* That database is empty by default, you have to call create_test_table to create the ones you want, and drop_test_table to clean them up in the end. The table definitions are read from the XMLDB file.
* When you are ready to call real Moodle code that users $DB, call switch_to_test_db and then revert_to_real_db when you are done.
* If you forget to call drop_test_table or switch_to_test_db, the class will attempt to clean up after you, but will also print rude developer debug messages telling you not to be stupid.
* There is also a load_test_data method for populating a table from an array.

The is an example of its use in lib/simpletest/testunittestusingdb.php.
2009-03-23 04:12:37 +00:00
tjhunt
02193ad706 accesslib: MDL-18620 - followup - remove the one case of external code using one of the accesslib private globals. 2009-03-23 04:02:28 +00:00
stronk7
36fa17855f MDL-18541 replace script - now also replaces within well known html blocks. Merged from 19_STABLE 2009-03-12 19:04:53 +00:00
Francois Marier
200164446a Fix drift with CVS 2009-03-11 13:16:54 +00:00
stronk7
1263a0ff1d MDL-18518 user firstaccess - added suport to display user->firstaccess. Credit goes to Anthony Borrow!
Merged from 19_STABLE
2009-03-11 11:22:55 +00:00
tjhunt
cc3209769e Unit tests: Override xmlstrictheaders for unit tests, it causes unnecessary grief here. 2009-03-10 07:54:15 +00:00
jerome
9c000a991f web service MDL-12886 if the groupid doesn't exist, groups_remove_member and groups_add_member return now exception (not a boolean as before) 2009-03-09 04:49:50 +00:00
dongsheng
60c366e8a6 "REPOSITORY/MDL-13766, improve create function" 2009-03-05 05:40:56 +00:00
tjhunt
89f6a3544c XMLDB generated docs: XHTML strictify output, and strip trailing whitespace. 2009-03-05 03:09:33 +00:00
tjhunt
bb0e7937ec roles admin: Fix notice when creating a role with no legacy type. 2009-03-04 02:46:48 +00:00
tjhunt
af52eceef4 qtype admin: MDL-18425 also related to MDL-18355.
Allow question types  to be displayed in order that is better than random or alphabetical. Since we don't know all the qtypes there may be:
1. Store the order in the DB (config plugins).
2. Set up a good default order for the standard types. (Unknown types go at the end by default.)
3. Allow admins to edit the order on the qtype admin screen.
2009-03-03 07:47:32 +00:00
danmarsden
bc7ec91a0d MDL-12037 Backup Log - add new field to backup_log table to allow other backup related functions to save log data 2009-03-03 00:06:08 +00:00
tjhunt
a781921fd0 question bank: MDL-16412 Allow admins to enable/disable of each question type 2009-02-25 09:31:49 +00:00
tjhunt
b5f2275111 upgrade: Make the environment page a bit less rediculously long. I still can't make it fit on one screen. 2009-02-23 02:59:34 +00:00
skodak
b421371ed3 MDL-18039 fixed footer docs link 2009-02-19 07:32:23 +00:00
skodak
f2ceeea5a4 MDL-18041 improved hints - thanks helen; merged from MOODLE_19_STABLE 2009-02-18 20:32:54 +00:00
skodak
1e12b91217 MDL-18223 removed repeated format_text() - should be applied only once 2009-02-17 23:01:30 +00:00
skodak
6acb6a3dde MDL-18223 XHTML strrrict 2009-02-17 22:56:47 +00:00
skodak
209c122b65 MDL-18223 fixed theoretical XSS 2009-02-17 22:44:38 +00:00
skodak
2e3f66d728 MDL-18223 merged spam cleaner into head + removed legacy code + fixed report title 2009-02-17 22:37:48 +00:00
skodak
013376dec4 MDL-18293 exception and DML cleanup 2009-02-17 17:23:56 +00:00
skodak
5e2f308b91 MDL-18293 exception and DML cleanup 2009-02-17 16:50:36 +00:00
sam_marshall
54ab56b349 MDL-18208: Make xmldb give sensible error if you try to generate documentation without having xsl extension installed 2009-02-17 12:53:51 +00:00