178 Commits

Author SHA1 Message Date
Petr Škoda
3edc37cb13 MDL-34740 add class file option to $CFG->moodlepageclass and $CFG->blockmanagerclass 2012-08-18 10:02:46 +02:00
Petr Skoda
7953149e01 MDL-33204 disable yui_combo slasharguments by default for now 2012-06-12 10:13:17 +02:00
Sam Hemelryk
1220843c02 Merge branch 'MDL-32610-hide-updates' of git://github.com/mudrd8mz/moodle 2012-05-17 12:30:44 +12:00
David Mudrak
5aab24ef17 MDL-32610 config-dist.php has info about $CFG->disableupdatenotifications flag 2012-05-15 11:37:59 +02:00
Petr Skoda
246c8d497c MDL-26553 add sqlsrv to list of available db types in config-dist.php 2012-05-13 14:28:25 +02:00
Petr Skoda
f7d26a0545 MDL-26028 implement Nginx X-Sendfile directory aliases setting 2012-04-30 15:52:42 +02:00
Petr Skoda
d5dd0540c2 MDL-26028 send_file performance improvements
Includes X-Sendfile support, ETags for stored_files and general cleanup.
2012-04-29 18:27:23 +02:00
Petr Skoda
d88b0f9c29 MDL-32569 remove unittestprefix from config-dist.php, do not link other pages from old UI 2012-04-21 17:50:40 +02:00
Petr Skoda
c06563c845 MDL-32323 do not pollution config-dist.php with settings that only DML driver devs use 2012-04-10 15:27:10 +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
d9d61fa340 MDL-32251 use standard PHP debug levels instead of original 38911 2012-03-30 19:19:06 +02:00
Petr Skoda
f0bf9ffeaa MDL-31685 new setting for prevention of file based locking
Please note that this setting can not be stored in database because some scripts use ABORT_AFTER_CONFIG.
2012-03-24 11:37:13 +01: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
Michael Aherne
d8a30af8be MDL-31979 Typo in config-dist.php 2012-03-12 09:43:31 +00:00
Sam Hemelryk
ff8e5d47f8 MDL-29941 csslib: Improved PHPdocs and fixed up 4 and 5 char colour handling plus unittests 2012-01-20 11:05:38 +08:00
Sam Hemelryk
6bbd4858b7 MDL-29941 csslib: Last minute cleanup before integration review
* Fixed reversed border styles.
* Added support for out of order background styles.
* Added more CSS tests again.
* Added better validation of CSS widths
2012-01-20 11:02:06 +08:00
Sam Hemelryk
1d1d807ea6 MDL-29941 csslib: Made optimisation an experimental option 2012-01-20 11:02:05 +08:00
Petr Skoda
9574c2ef0d MDL-30950 remove references to removed admin block
Credit goes to Ralf Hilgenstock.
2011-12-30 12:04:41 +01:00
Petr Skoda
32db0f0d83 MDL-28701 add old cache and temp creation debug message and improve docs a bit 2011-09-10 11:24:46 +02:00
Tom Lanyon
365bec4c06 MDL-28701 Change all uses of $CFG->dataroot/cache to $CFG->cachedir 2011-09-10 10:35:46 +02:00
Marina Glancy
28e63a9d8c MDL-27122 Allow admin to change CFG->undeletableblocktypes on 'Manage blocks' settings page. Instances of protected block types will be undeletable only from site context 2011-07-29 13:51:40 +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
David Mudrak
a9cbd19bff MDL-26804 core_string_manager::get_list_of_translations() can use a cache again
This patch reimplements the internal cache that was used to store the
list of available translations in Moodle 1.x. By default, the method
get_list_of_translations() still uses the file
moodledata/cache/languages to store the list of available translations.
The location of that file can be redefined in config.php. The internal
format of the cache file is JSON now (used to be a plain text list).

The patch also fixes a usage of the global $CFG in translation_exists()
methods where the internal property should be used instead.
2011-03-24 21:51:30 +01:00
David Mudrak
c198593b0e MDL-22478 Allow alternative location of strings disk cache
Administrators can now specify $CFG->langcacheroot in their config.php for
alternative location of strings disk cache. If the alternative location is
not set, Moodle uses default $CFG->dataroot/cache/lang
2011-03-11 12:34:52 +01:00
Petr Skoda
38d93cb0ff MDL-26046 prevent jabber messages wehn noemailever active
Standardise also the debug when emailing message.
2011-01-30 11:01:27 +01:00
Petr Skoda
3c1293fe97 MDL-25910 custom socket location for postgresql driver, improved config-dist.php info 2011-01-14 12:11:49 +01:00
Eloy Lafuente (stronk7)
94aff78e40 NOBUG: Some more testing of integration server 2010-12-20 12:05:16 +01:00
Sam Hemelryk
d1b0cfa85e NOBUG: Testing the setup of the integration server 2010-12-20 18:23:53 +08:00
Sam Hemelryk
49084fe104 NOBUG: Fixed up docs 2010-11-17 07:04:02 +00:00
Sam Hemelryk
e99033b059 NOBUG: Documenting CFG->extramemorylimit within config-dist 2010-11-17 06:57:22 +00:00
Petr Skoda
ddd11b6c78 MDL-25123 description of more hidden debug settings
credit goes to Matteo Scaramuccia
2010-11-15 08:05:02 +00:00
Petr Skoda
0ed26d1288 MDL-25150 new debugusers setting 2010-11-11 05:27:34 +00:00
Sam Hemelryk
bac233d326 backup MDL-22184 Scheduled backups are now possible again through cron.
AMOS BEGIN
 MOV [move scheduledsetup,core_backup],[automatedsetup,core_backup]
 MOV [scheduledsettings,core_backup],[automatedsettings,core_backup]
 MOV [scheduledstorage,core_backup],[automatedstorage,core_backup]
 MOV [scheduledstoragehelp,core_backup],[automatedstoragehelp,core_backup]
 MOV [scheduledbackupsinactive,core],[automatedbackupsinactive,core_backup]
 MOV [scheduledbackupstatus,core],[automatedbackupstatus,core_backup]
 CPY [schedule,core],[automatedbackupschedule,core_backup]
 MOV [backupschedulehelp,core],[automatedbackupschedulehelp,core_backup]
AMOS END
2010-11-10 06:07:43 +00:00
David Mudrak
56fb6963c1 MDL-24203 Fixed coding style and added more explanation of the reason to put the value $CFG->lang into config.php 2010-09-17 13:41:59 +00:00
Helen Foster
876790639f MDL-24203 moving config setting from lang string 2010-09-17 12:01:10 +00:00
Petr Skoda
b30fa33538 MDL-23948 we should make CFG global before assigning value to it, you could not include our config.php from non-global scope before which was breaking external stuff 2010-08-26 15:31:18 +00:00
Petr Skoda
f11f8ba27b MDL-23118 improved proxy forwarding setting docs 2010-07-07 15:44:51 +00:00
Eloy Lafuente
d440bcfa28 NOBUG fix typo causing problems using config-dist.php as base 2010-05-26 16:06:17 +00:00
Petr Skoda
554a3c4c4c fixed gnu version 2010-05-21 17:48:57 +00:00
Petr Skoda
b646340f0b fixed typo 2010-05-21 17:36:48 +00:00
Petr Skoda
3b5ff37f24 MDL-22546 removing dirroot from the config.php - this should finally solve the symbolic links issues because we know 100% what should be in $CFG->dirroot once we get into lib/setup.php, it is being initialised there automatically instead + more robust handling of dataroot + simplified config-dist.php and installer; the $CFG->admin is now visible only if admin directory can not be found; please note the old config.php's are still going to work, if admins remove the dirroot they have to add the __FILE__ into require_once lib/setup.php at the end of old config 2010-05-21 17:32:15 +00:00
Petr Skoda
12bb0c3ef5 MDL-22515 plugin settings can be forced now too + minor CFG init refactoring + get_config() cleanup 2010-05-19 13:30:13 +00:00
David Mudrak
e799e8192f Forgot to rename the string cache setting in config-dist.php 2010-05-18 06:07:05 +00:00
David Mudrak
f53fde9f47 MDL-22015 core_string_manager cache can be disabled by setting $CFG->disablelangdiskcache 2010-05-16 19:58:47 +00:00
Eloy Lafuente
2de3539b43 MDL-21432 backup - clean temps after execution 2010-04-29 18:30:17 +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
David Mudrak
91ee8a67d6 config-dist.php: adding more settings and warnings for developers 2010-03-25 12:05:55 +00:00
David Mudrak
d0bf00e064 config-dist.php: new template for DB connection settings 2010-03-25 11:55:09 +00:00
David Mudrak
49da4a5fa8 MDL-18903 All outgoing emails can be diverted into a single address
This is highly useful when developing or debugging any emailing feature.
I am going to backport this after the end of the current Ice Age.
2010-03-25 01:29:02 +00:00
Petr Skoda
01a2ce80ec MDL-21710, MDL-21711 new permissions evaluation and overriding UI 2010-03-07 09:28:54 +00:00