446 Commits

Author SHA1 Message Date
Petr Škoda
6846f033a9 MDL-37125 import latest YUI 3.8.0 2012-12-20 22:31:51 +01:00
Sam Hemelryk
94ef67cf5f MDL-36466 cache: tidy up after review 2012-11-26 08:12:00 +13:00
Sam Hemelryk
c9f40e77b7 MDL-36466 cache: renamed define NO_CACHE_STORES to CACHE_DISABLE_STORES 2012-11-26 08:12:00 +13:00
Petr Škoda
0b37fe466a MDL-36682 remove old unused shared memory caching support 2012-11-18 14:46:31 +01:00
Petr Škoda
398862b92b MDL-36487 send IE standards compatibility http headers 2012-11-09 17:27:29 +01:00
Petr Škoda
6df2abcf1a MDL-36145 import latest YUI 3.7.3 2012-10-20 15:22:15 +08:00
Sam Hemelryk
6fec18203b MDL-25290 cache: Renamed plugin from cache => cachestore 2012-10-08 09:53:51 +13:00
Sam Hemelryk
d6a1f63bdd MDL-25290 cache: Cache API integration with core 2012-10-08 09:53:50 +13:00
Petr Škoda
7a9b6cb6f2 MDL-35616 import YUI 3.7.2 2012-09-27 14:41:32 +02:00
Petr Škoda
414e82b1df MDL-35515 import latest and greatest YUI 3.7.1 2012-09-20 10:23:31 +02:00
Petr Škoda
3edc37cb13 MDL-34740 add class file option to $CFG->moodlepageclass and $CFG->blockmanagerclass 2012-08-18 10:02:46 +02:00
Petr Škoda
af7879701b MDL-34701 import latest YUI 3.6.0 2012-08-02 16:49:19 +02:00
Petr Skoda
7cb76d1645 MDL-33595 fix recent initial PHPUnit init regression 2012-06-08 11:50:03 +02:00
Petr Skoda
17b60e9d98 MDL-33089 detect more problems when initialising PHPUnit test environment 2012-05-28 10:10:32 +02:00
sam marshall
ae3fbf7b06 MDL-24419 (2): Moved groupings cache to get_all_groupings function
There was a static cache inside course/lib.php. I need to access this
information in other places, so to avoid making two queries, I am
moving the cache into the groups_get_all_groupings function instead.
2012-05-14 11:15:15 +01:00
Petr Skoda
353efa008d MDL-32843 import YUI 3.5.1 2012-05-08 09:21:27 +02:00
Sam Hemelryk
fe9693df87 Merge branch 'w18_MDL-26028_m23_xsendfile' of git://github.com/skodak/moodle 2012-05-02 11:48:24 +12:00
Petr Skoda
99302c5e96 MDL-26028 cleanup all IE6 gzip hacks 2012-04-28 18:00:06 +02:00
Petr Skoda
463a9874ef MDL-32612 respect NO_DEBUG_DISPLAY in scripts that need only config.php 2012-04-28 17:14:37 +02:00
Eloy Lafuente (stronk7)
2a1f43a1db Merge branch 'w16_MDL-32448_m23_yui350' of git://github.com/skodak/moodle 2012-04-17 00:29:35 +02:00
Petr Skoda
36902e062e MDL-32448 import YUI 3.5.0 2012-04-16 11:59:43 +02:00
Petr Skoda
589376d385 MDL-32400 ignore outdated config settings in future upgrades 2012-04-15 12:23:41 +02:00
Petr Skoda
61d3013c8b MDL-32323 fix concurrent run collision caused by setup reset 2012-04-10 15:27:03 +02:00
Petr Skoda
a3d5830a0a MDL-32149 PHPUnit test support - part 2
Includes:
* constants refactoring
* reworked db table init
* support for $CFG->debug = -1
* functional DB tests
* fixed $DB->get_indexes() to not throw exceptions when table does not exist
* fix handling of user passwords in test db
* add debug info to exception messages
* removed unnecessary PHP debug errors from mathslib
* fixed @error suppression in get_string
* fixed PHPUnit error handler setup
* added timezone info to default install
2012-04-03 22:30:53 +02:00
Petr Skoda
5bd4040866 MDL-31857basic phpunit support
Thanks Eloy Lafuente, Tim Hunt and Sam Hemelryk for valuable feedback and ideas.
2012-03-21 10:31:37 +01:00
Petr Skoda
33dca15616 MDL-30613 use standard https checks 2011-12-09 21:28:04 +01:00
Rajesh Taneja
ade30ad3c4 MDL-29396 core: ip blocking will be bypassed for cli scripts - Thanks Petr 2011-11-22 16:02:02 +08:00
Eloy Lafuente (stronk7)
94da1daf40 Merge branch 'w42_MDL-29866_m22_setupinit' of git://github.com/skodak/moodle 2011-10-25 16:41:11 +02:00
Eloy Lafuente (stronk7)
dc83f5b006 Merge branch 'w42_MDL-28627_m22_kses' of git://github.com/skodak/moodle 2011-10-25 01:42:48 +02:00
Petr Skoda
73b309e6a3 MDL-28627 remove buggy and obsolete KSES cleaning 2011-10-22 09:25:06 +02:00
Petr Skoda
f0f8f9a796 MDL-29866 page setup improvements
incorrect PAGE init - it should be done at the very end; redirect() should not use OUTPUT before PAGE init; SITEID should be deprecated in favour of $SITE->id (this is going to cause troubles in tenant switching in CLI, cron and tests); missing "global $SITE"'; minor coding style issues; PHPDocs; it also helps with merging/testing of multitenant patch
2011-10-21 16:35:19 +02:00
Petr Skoda
d21149699c MDL-29862 incorrect wwwroot must be detected before session start 2011-10-21 09:52:18 +02:00
Petr Skoda
9e44f79f57 MDL-29555 import YUI 3.4.1
To be backported to 2.1 stable soon.
2011-09-29 09:38:40 +02:00
Eloy Lafuente (stronk7)
e135797586 Merge branch 'w38_MDL-29401_m22_frankenstyle' of git://github.com/skodak/moodle 2011-09-27 00:00:20 +02:00
Petr Skoda
363e0389ec MDL-29533 import new YUI 3.4.1pr1
We need to test this in master because we need to backport it into Moodle 2.1.x in order to resolve issues with latest browsers.
2011-09-26 21:54:31 +02:00
Petr Skoda
aff24313be MDL-29401 introduce new frankenstyle PARAM types
New PARAM_COMPONENT, PARAM_AREA and PARAM_PLUGIN + fixing of hopefully all current incorrect parameter types. This should help with diagnosing of incorrectly named 3rd party plugins too.
2011-09-25 09:59:55 +02:00
Tom Lanyon
383d388411 MDL-28701 Fixed broken $CFG->tempdir default and added $CFG->cachedir 2011-09-10 10:35:41 +02:00
Tom Lanyon
7aa06e6ded MDL-28701 Change all uses of $CFG->dataroot/temp to $CFG->tempdir 2011-09-10 10:35:39 +02:00
Tom Lanyon
3e93987142 MDL-28701 Added $CFG->tempdir setting 2011-09-10 10:35:37 +02:00
Eloy Lafuente (stronk7)
065399a11f Merge branch 'w33_MDL-28381_m22_cliphpver' of git://github.com/skodak/moodle 2011-08-23 11:03:19 +02:00
Petr Skoda
8de5d7b987 MDL-28381 always verify PHP version in CLI scripts
The problem is that people may use different php binary for web and CLI.
2011-08-21 12:21:29 +02:00
Petr Skoda
b13425c810 MDL-28554 import YUI 3.4.0 2011-08-19 10:20:21 +02:00
Petr Skoda
6fc17ca906 MDL-28554 import YUI 2.9.0 2011-08-19 07:49:06 +02:00
Sam Hemelryk
0ebb526f85 MDL-27899 Moved initialise_fullme during setup to after sam has been initialised 2011-06-20 17:40:03 +08:00
Eloy Lafuente (stronk7)
c646dd26ea MDL-26891 profiling - earlier runs
This allows profiling to be started earlier in the
setup.php execution, by configuring everything in
the config.php file. That way some interesting code
is also profiled, like DB connections, load of config records...

100% compatible with normal profiling and enabled via
special setting $CFG->earlyprofilingenabled

Example (to be put on config.php):

$CFG->earlyprofilingenabled = true;
$CFG->profilingautofrec = 3;
$CFG->profilingincluded = '/*';
$CFG->profilingallowme = true;

(to enable early profiling for 1/3 of any requests while also
allowing to use the PROFILEME PGC)
2011-03-30 18:08:38 +02:00
sam marshall
0d8b6a69ce lib MDL-25981 Improved modinfo
This commit:
a) moves modinfo code into new library modinfolib.php
b) uses classes instead of stdClass objects, allowing a huge amount of documentation (and IDE completion)
c) adds hooks so that plugins other than forum can display messages like forum's 'unread', and plugins other than label can display html (apart from/as well as their view.php link) on the course view page
d) removes current hacks for forum and label (mainly in print_section but also across the code), replacing with new 'content' and similar variables [this is the reason for the changes in blocks, etc]
e) reduces size of modinfo in database (only when rebuilt) by excluding empty fields

The change is intended to be backward compatible and does not affect the format of modinfo in database.
2011-01-26 10:29:16 +00:00
Petr Skoda
8a7703ce53 MDL-25973 add missing charset 2011-01-14 09:32:17 +01:00
Eloy Lafuente (stronk7)
6af80cae01 MDL-24600 profiling - add xhprof integration 2010-12-20 21:41:45 +01:00
Petr Skoda
871ed45870 MDL-25314 adding some header/session related notes 2010-11-20 03:49:20 +00:00
Petr Skoda
cbad562eee MDL-25314 improved prevention of output buffering + detection of misconfigured servers
Scripts that do not want buffered output just define NO_OUTPUT_BUFFERING before including config.php.
The fileserving code now checks if the headers are already sent which detects misconfigured servers.
2010-11-19 03:40:43 +00:00