Commit graph

35864 commits

Author SHA1 Message Date
dongsheng
09bff8e8f1 "MDL-17475, fix bad sql when add repository instances" 2009-04-03 07:31:43 +00:00
tjhunt
d09ef2a0ef Fix XHTML strict problems in XMLDB. 2009-04-03 05:47:59 +00:00
dongsheng
8af334cd22 "MDL-17261, add language string, see details on tracker" 2009-04-03 02:26:43 +00:00
fmarier
c65ab2be95 Password policy: MDL-17602 new "max consecutive identical characters" setting 2009-04-03 02:22:52 +00:00
dongsheng
7f728551de "MDL-17475, if webdav_server is empty, return null" 2009-04-03 02:16:48 +00:00
fmarier
c93dae38f0 mod/resource: MDL-18641 ability for resource type plugins to specify their own icon 2009-04-03 01:13:42 +00:00
moodlerobot
6dfa4f19a5 Updated the HEAD build version to 20090403 2009-04-03 00:34:34 +00:00
sam_marshall
48f9c073ca MDL-18094: course/viewhiddenactivities didn't work (in some parts of the code) at module level 2009-04-02 16:32:12 +00:00
nicolasconnault
fbd68266a3 MDL-17273 Preventing import of corrupted csv files. Merged from MOODLE_19_STABLE 2009-04-02 12:53:04 +00:00
nicolasconnault
4c2a920872 MDL-13501 Removing stats and visual reports from HEAD 2009-04-02 12:51:14 +00:00
sam_marshall
d030fa7b12 MDL-17810: Fix to stop you making activities depend on themselves 2009-04-02 12:00:09 +00:00
tjhunt
d8413bf3d2 lang editing: MDL-18776 fix regression from MDL-18669. 2009-04-02 09:37:29 +00:00
tjhunt
677f62b67a Update a comment as a test of committing via git. 2009-04-02 07:50:33 +00:00
jerome
a0c30e1b00 web service MDL-12886 merged Pigui's Team work on course external file + some refactoring 2009-04-02 06:59:14 +00:00
dongsheng
03a46b90d9 "MDL-18520, change block_list into a static member of class" 2009-04-02 06:21:05 +00:00
dongsheng
f54217e0c5 "MDL-13224, language string for mymoodle options" 2009-04-02 03:32:10 +00:00
dongsheng
8b8ff6ff4c "MDL-13224, convert type of courses limit, everything coming from database is string, merged from 1.9" 2009-04-02 02:49:54 +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
moodlerobot
04f07636b4 Updated the HEAD build version to 20090402 2009-04-02 00:33:24 +00:00
stronk7
c66158102e MDL-18766 Towards improved translation 2009-04-01 09:04:21 +00:00
dongsheng
497bad9012 "MDL-13224, select how many courses can be shown in mymoodle page" 2009-04-01 07:38:32 +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
edc0c49332 file api: MDL-18754 improve the names of some functions.
The new names are documented on
http://docs.moodle.org/en/Development:Convert_Draftarea_Files
2009-04-01 04:34:58 +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
moodlerobot
c1b8a99430 Updated the HEAD build version to 20090401 2009-04-01 00:33:21 +00:00
skodak
c94985efb1 MDL-18552 different TeX trouble fix 2009-03-31 10:03:10 +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
tjhunt
214f5850d1 MDL-15484 Avoid JavaScript errors after a popup has been blocked.
Also clean up coding style of some nearby functions.
2009-03-31 03:24:21 +00:00
moodlerobot
8af809df9d Updated the HEAD build version to 20090331 2009-03-31 00:35:40 +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
tjhunt
832e13f144 editor formslib element: symbolic constant EDITOR_UNLIMITED_FILES instead of hard-coded -1. 2009-03-30 10:01:39 +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
50da63ebd9 qtypes: MDL-18711 Allow qtype plugins to have custom CSS and JavaScript on the editing page. 2009-03-30 09:15:46 +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
gbateson
d6cbe5f546 MDL-18409: new message required for "Remove grade item" form element 2009-03-30 07:09:56 +00:00
tjhunt
240be1d71c DB unit tests: improve the class so it is easier to use. 2009-03-30 07:05:29 +00:00
gbateson
08b8e025fb when search for media players, remove requirment for <object> tag to contain a space, and make closing </A> tag lowercase 2009-03-30 07:03:55 +00:00
tjhunt
e7b818807c get_string: MDL-13816 allow third-partly modules to register sub-plugin types that have their own lang files.
I suppose to be really useful we should deal with database, capabiltities, etc. too in due course. Still, this is a start.
2009-03-30 06:13:35 +00:00
tjhunt
e79079deae help.php: related to MDL-13816. Clean up the URLs used for help files by removing unused parameters. 2009-03-30 06:11:32 +00:00
dongsheng
c3935adbe7 "MDL-18540, fixed default value of memorylimit" 2009-03-30 04:42:55 +00:00
tjhunt
bb45fe62c4 get_string: Refactoring, performance improvements, bug fixes and unit tests
MDL-18669 get_string refactored to elimiate duplicate code and make it easier to understand.
MDL-17763 parent language not processed correctly when getting a plugin string.
MDL-16181 more intelligent caching to avoid repeated file_exists checks.
MDL-12434 move values to array keys to improve lookup times.

The main part of the refactoring is to create a singleton string_manager class to encapsulate the cached data and the processing, while breaking the code up into more smaller methods.

Other performance improvements include:
* Cache results of plugin name -> locations to search array.
* Cache parent lang lookup.
* Skip eval if the string does not contain $ \ or %.
* Remove the unnecessary sprintf from the eval.

There is a performance testing script in lib/simpletest/getstringperformancetester.php. For now this script has the old get_string implementation copied and pasted to the end, and renamed to old_get_string to allow for comparitive timings.

There are now some unit tests for get_string in lib/simpletest/teststringmanager.php. I think I have managed to cover most of the tricky cases.
2009-03-30 02:21:27 +00:00
tjhunt
edbc93a7e4 Remove failing unit tests. (We are going to remove enum support from the database layer anyway.) 2009-03-30 01:57:47 +00:00
moodlerobot
2f084ba12c Updated the HEAD build version to 20090330 2009-03-30 00:40:05 +00:00
agrabs
c65e59bae9 MDL-18716 - ALL Notification E-Mails are sent to System Admins 2009-03-29 01:30:38 +00:00
moodlerobot
a7b10bdfea Updated the HEAD build version to 20090329 2009-03-29 00:35:19 +00:00
skodak
b7bad38b37 DML fix 2009-03-28 22:18:53 +00:00