35886 Commits

Author SHA1 Message Date
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
skodak
add560f300 MDL-14591 adding standard access control 2009-03-28 22:15:12 +00:00
skodak
98335b2da8 MDL-14591 adding standard access control 2009-03-28 22:02:00 +00:00
skodak
3283378835 MDL-18733 adding note - we need to use user keys instead of cookies here 2009-03-28 21:45:54 +00:00
skodak
76b7b5925d MDL-14679 fixed DML 2009-03-28 15:59:26 +00:00
skodak
1b3f759ae2 MDL-18163 removed bogus archive 2009-03-28 15:57:16 +00:00
skodak
e9a0ee701d MDL-18727 param types ARE required 2009-03-28 15:51:42 +00:00
skodak
08a09f54ed MDL-18729 param types ARE required 2009-03-28 15:46:34 +00:00
skodak
47d01e097b MDL-18728 dml cleanup 2009-03-28 15:45:41 +00:00
skodak
6d266ca3c9 MDL-18163 noting arrayview.php design is not acceptable in official moodle 2009-03-28 15:39:31 +00:00
skodak
24a88abd00 MDL-18726 dml cleanup 2009-03-28 15:18:38 +00:00
skodak
fa4556c54f MDL-17458 prevent trailing whitespace problems in config.php 2009-03-28 15:15:22 +00:00
skodak
05c0f5240c MDL-14589 removed obsoleted comments 2009-03-28 15:07:24 +00:00
moodlerobot
e96c386424 Updated the HEAD build version to 20090328 2009-03-27 23:33:47 +00:00
jerome
9c539ead6f web service MDL-12886 remove some old comments 2009-03-27 04:38:47 +00:00
fmarier
13ca1e06b8 mod/resource: MDL-18691 allow custom resource types to specify their name in their own lang directory
Before this change, the full name of the resource type had to be stored in the "resource" namespace (for example in /mod/resource/lang/en_utf8/resource.php).

Now it can be put in the "resource_foo" namespace:

e.g. in /mod/resource/type/foo/lang/en_utf8/resource_foo.php:

<?php
  $string['resourcetypefoo'] = 'Link to a Foo Bar document';
?>
2009-03-27 03:21:10 +00:00
danmarsden
66c7d3731f SCORM MDL-18626 - fix SCORM navigation breadcrumbs 2009-03-27 01:46:39 +00:00
moodlerobot
2fbb7bf843 Updated the HEAD build version to 20090327 2009-03-26 23:34:39 +00:00
stronk7
0c156fe05e MDL-18552 TeX filter - add string ; merged from 19_STABLE 2009-03-26 21:34:59 +00:00
danmarsden
4b5ee1bf34 Choice MDL-18600 fix sort to be sorted by surname,firstname - thanks to Mihai Sucan for the fix 2009-03-26 21:23:25 +00:00
skodak
342650a7aa MDL-18417 fixed DML conversion 2009-03-26 21:15:12 +00:00
skodak
fe772c2aa7 MDL-18472 fixed missing argument in deprecated function, thanks Gordon Bateson 2009-03-26 20:53:03 +00:00
danmarsden
0362f01320 AICC MDL-18702 Completion Logic incorrect - thanks to Martin Holden for the fix! 2009-03-26 20:22:43 +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
skodak
ece874b5d1 MDL-18686 removing ancient readme file 2009-03-26 19:46:15 +00:00
stronk7
e42398e409 MDL-18552 TeX filter - blacklist unsecure commands + protect texdebug ; merged from 19_STABLE 2009-03-26 19:17:25 +00:00
dongsheng
a774767903 "MDL-17966, fixed installation blocker, merged from 1.9" 2009-03-26 13:32:28 +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
b2bf016e1b "ADMINLIB/MDL-17966, overwrite write_setting to update settings instead execute sql execute in get_settings, this will not hurt performance, merged from 1.9" 2009-03-26 08:56:08 +00:00