Commit f6db0180 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Site option to disable AJAX block-loading"

parents f06a1991 2d5d611c
......@@ -895,7 +895,7 @@ class BlockInstance {
return;
}
$classname = generate_class_name('blocktype', $this->get('blocktype'));
if (call_static_method($classname, 'should_ajaxify')) {
if (get_config('ajaxifyblocks') && call_static_method($classname, 'should_ajaxify')) {
$content = '';
}
else {
......
......@@ -620,3 +620,10 @@ $cfg->probationstartingpoints = 2;
* Whether to show the login sideblock
*/
$cfg->showloginsideblock = true;
/**
* @global string $cfg->ajaxifyblocks Whether or not to use AJAX to load the content of blocktypes.
* If the network connection to your users is quite slow, then disabling this may improve the user
* experience.
*/
$cfg->ajaxifyblocks = true;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment