308 Commits

Author SHA1 Message Date
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
Helen Foster
b0ccfc5ce8 config settings: MDL-16658 small rewording 2010-01-05 22:18:03 +00:00
Eloy Lafuente
5e934890c9 MDL-16658 restore - new restore:createuser cap + pre-check users before restoring; merged from 19_STABLE 2009-12-30 17:35:36 +00:00
Petr Skoda
73e504bca9 MDL-20799 renewed support for alternative theme dir location 2009-12-23 18:52:42 +00:00
Petr Skoda
5cc1e1eb75 MDL-18006 MDL-18807 MDL-20853 suggest some longer and better salt 2009-11-17 16:30:39 +00:00
Petr Skoda
9d975de438 MDL-18006 MDL-18807 MDL-20853 adding salt info into config-dist.php 2009-11-17 15:55:13 +00:00
Martin Dougiamas
29ba20ac04 backup/nopasswords MDL-20383 Backups are now never saved with user passwords unless the admin has defined $CFG->includeuserbackupsinpasswords in config.php (Merged from 1.9) Credits to Eloy 2009-11-17 05:58:24 +00:00
Petr Skoda
dfede59d62 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 13:10:07 +00:00
skodak
f1064cca78 MDL-19039 improved default frontpage role capability evealuation, needs to be manually enabled in config.php 2009-10-05 17:08:16 +00:00
samhemelryk
5afbd0e783 blocklib MDL-20207 Added $CFG->undeletableblocktypes and documented in config-dist 2009-09-11 06:00:32 +00:00
skodak
9c733e8621 MDL-19417 added timezone settings info 2009-08-17 08:10:13 +00:00
tjhunt
b70094743a themes: MDL-19077 change how the theme is initialised and CSS is served.
This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

$THEME is now initialised at the same time as $OUTPUT. Old functions like
theme_setup are deprecated in favour of methods on $PAGE. There is a new
theme_config class in outputlib.php that deals with loading the theme config.php file.

CSS used to be served by themes styles.php files calling a function in weblib.php.
Now it works by each theme's styles.php file doing
$themename = basename(dirname(__FILE__));
require_once(dirname(__FILE__) . '/../../theme/styles.php');
which is less code to be copied into each theme. (Old-style styles.php files still
work thanks to some code in deprecatedlib.php.)

Admin UI for choosing a theme cleaned up.

A couple of theme-specific hard-coded hacks like $THEME->cssconstants and
$THEME->CSSEdit have been replaced by a more generic $THEME->customcssoutputfunction
hook. See examples at the end of outputlib.php

Also:
* Fix setting the theme in the URL, which seems to have been broken since 1.9.
* Fix up errors on a few pages caused by the new initialisation order.
* MDL-19097 moodle_page::set_course should not set $COURSE unless it is $PAGE.
* httpsrequired() from moodlelib.php moved to $PAGE->https_required().
* Move has_started() method to the renderer base class.
* Further fixes to display of early errors.
* Remove print_header/footer_old from weblib. I did not mean to commit them before.
2009-07-01 05:54:26 +00:00
wildgirl
6f6b8f3f0f small fix: MDL-19268 thanks to Emanuel Delgado 2009-05-31 17:33:45 +00:00
tjhunt
86b5ea0f85 blocklib: MDL-19010 start of block_manager - get and set regions 2009-05-06 09:14:01 +00:00
skodak
fa4556c54f MDL-17458 prevent trailing whitespace problems in config.php 2009-03-28 15:15:22 +00:00
skodak
27d41812c3 MDL-17942 $CFG->respectsessionsettings obsoleted by db sessions - can not be used anymore 2009-01-18 17:37:56 +00:00
skodak
1045a0074c MDL-17849 sql queries not printed by default during upgrade anymore, there is a new config.php only setting $CFG->upgradeshowsql instead 2009-01-12 16:52:53 +00:00
skodak
84ebf08dcc MDL-16483 $CFG->unittestprefix not required anymore to run unit tests that do not need fake db; it should be saer to let admins modify the prefix in config.php instead of modifying it from php 2009-01-10 16:06:53 +00:00
skodak
11e7b506ce MDL-17754, MDL-11061, MDL-9276, MDL-17777, MDL-17787 - various url handling improvemetns; rewritten $FULLME and added $ME, $SCRIPT and $FULLSCRIPT; improved slashargument handling especially for IIS; removed legacy slasharguments functions obsoleted since 1.6; some other refactoring; reverse procy support, ssl appliance support 2009-01-05 21:37:20 +00:00
nicolasconnault
d27a349bfe MDL-16486 Improved interface, added permission warning and other minor fixes 2008-09-23 06:42:18 +00:00
skodak
c57e90153a MDL-15267 PHP5 strict object warning, whitespace fixes 2008-08-31 22:23:53 +00:00