mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-51399 report_outline: Hide blog column if blogs are disabled.
This commit is contained in:
parent
fd57d685c7
commit
fb57f15170
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ $outlinetable->cellpadding = 5;
|
|||
$outlinetable->id = 'outlinetable';
|
||||
$outlinetable->head = array($stractivity, $strviews);
|
||||
|
||||
if ($CFG->useblogassociations) {
|
||||
if (!empty($CFG->enableblogs) && $CFG->useblogassociations) {
|
||||
$outlinetable->head[] = $strrelatedblogentries;
|
||||
}
|
||||
|
||||
|
@ -222,7 +222,7 @@ foreach ($modinfo->sections as $sectionnum=>$section) {
|
|||
|
||||
$reportrow->cells[] = $numviewscell;
|
||||
|
||||
if ($CFG->useblogassociations) {
|
||||
if (!empty($CFG->enableblogs) && $CFG->useblogassociations) {
|
||||
require_once($CFG->dirroot.'/blog/lib.php');
|
||||
$blogcell = new html_table_cell();
|
||||
$blogcell->attributes['class'] = 'blog';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue