mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
10 lines
261 B
PHP
10 lines
261 B
PHP
<?php
|
|
if (empty($CFG->journal_initialdisable)) {
|
|
if (!count_records('journal')) {
|
|
set_field('modules', 'visible', 0, 'name', 'journal'); // Disable it by default
|
|
set_config('journal_initialdisable', 1);
|
|
}
|
|
}
|
|
|
|
?>
|