Skip to content

Commit

Permalink
Journal is disabled by default on new installations
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jul 12, 2005
1 parent e928936 commit f20d4d2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mod/journal/defaults.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?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);
}
}

?>

0 comments on commit f20d4d2

Please sign in to comment.