Commit 180a7cdf authored by Hugh Davenport's avatar Hugh Davenport Committed by Gerrit Code Review
Browse files

Merge "Changed default 'Display Shared pages?' to Yes (bug #783826)"

parents c3b4dbc0 fc8cb197
......@@ -60,6 +60,9 @@ class PluginBlocktypeGroupViews extends SystemBlocktype {
// If not set, use default
$configdata['showgroupviews'] = 1;
}
if (!isset($configdata['showsharedviews'])) {
$configdata['showsharedviews'] = 1;
}
$groupid = $instance->get_view()->get('group');
if (!$groupid) {
return '';
......@@ -116,7 +119,7 @@ class PluginBlocktypeGroupViews extends SystemBlocktype {
0 => get_string('no'),
),
'separator' => '<br>',
'defaultvalue' => isset($configdata['showsharedviews']) ? $configdata['showsharedviews'] : 0,
'defaultvalue' => isset($configdata['showsharedviews']) ? $configdata['showsharedviews'] : 1,
),
);
}
......
......@@ -1742,7 +1742,7 @@ function install_system_grouphomepage_view() {
'blocktype' => 'groupviews',
'title' => '',
'column' => 1,
'config' => null,
'config' => array('showgroupviews' => 1, 'showsharedviews' => 1),
),
array(
'blocktype' => 'groupmembers',
......
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