summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries2013-11-17 18:24:50 (GMT)
committerDries2013-11-17 18:24:50 (GMT)
commit503284a99ad016039b9f7f208cc0a11ed579add7 (patch)
treefc806e145114b15468aa34b1dd147dabdabecb76
parent9107f06db39ca50759b37fa0c142a1e0b3c48911 (diff)
Issue #2137231 by aspilicious: Remove file_public_path() variable get usage.
-rw-r--r--core/modules/system/lib/Drupal/system/Tests/System/SettingsRewriteTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/system/lib/Drupal/system/Tests/System/SettingsRewriteTest.php b/core/modules/system/lib/Drupal/system/Tests/System/SettingsRewriteTest.php
index cd4af82..74c080d 100644
--- a/core/modules/system/lib/Drupal/system/Tests/System/SettingsRewriteTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/System/SettingsRewriteTest.php
@@ -104,7 +104,7 @@ EXPECTED
),
);
foreach ($tests as $test) {
- $filename = variable_get('file_public_path', conf_path() . '/files') . '/mock_settings.php';
+ $filename = settings()->get('file_public_path', conf_path() . '/files') . '/mock_settings.php';
file_put_contents(DRUPAL_ROOT . '/' . $filename, "<?php\n" . $test['original'] . "\n");
drupal_rewrite_settings($test['settings'], $filename);
$this->assertEqual(file_get_contents(DRUPAL_ROOT . '/' . $filename), "<?php\n" . $test['expected'] . "\n");