Skip to content

Commit

Permalink
MDL-45104 logging: Check if legacy log is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
John Okely committed Feb 25, 2016
1 parent 3f195ab commit a285d56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions admin/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1963,6 +1963,9 @@ public function upgradekey_form_page($url) {
*/
protected function legacy_log_store_writing_error() {
$enabled = get_config('logstore_legacy', 'loglegacy');
$plugins = explode(',', get_config('tool_log', 'enabled_stores'));
$enabled = $enabled && in_array('logstore_legacy', $plugins);

if ($enabled) {
return $this->warning(get_string('legacylogginginuse'));
}
Expand Down

0 comments on commit a285d56

Please sign in to comment.