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'));
        }
    }
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'));
        }
    }
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' ) ) ; } }
Check to see if writing to the deprecated legacy log store is enabled.

@return string An error message if writing to the legacy log store is enabled.
Check to see if writing to the deprecated legacy log store is enabled .