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