Commit b0408d9d authored by webchick's avatar webchick

Issue #2102499 by swentel, ianmthomasuk: Convert DiffEngine to settings.

parent a339661b
......@@ -10,6 +10,8 @@
define('USE_ASSERTS', FALSE);
use Drupal\Component\Utility\Settings;
/**
* @todo document
* @private
......@@ -1096,8 +1098,8 @@ class DrupalDiffFormatter extends DiffFormatter {
);
function DrupalDiffFormatter() {
$this->leading_context_lines = variable_get('diff_context_lines_leading', 2);
$this->trailing_context_lines = variable_get('diff_context_lines_trailing', 2);
$this->leading_context_lines = Settings::getSingleton()->get('diff_context_lines_leading', 2);
$this->trailing_context_lines = Settings::getSingleton()->get('diff_context_lines_trailing', 2);
}
function _start_diff() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment