Commit 2b561629 authored by catch's avatar catch

Issue #1824920 by cam8001, justafish: Convert variable 'theme_link()' to config system.

parent 79c34ed5
......@@ -2237,7 +2237,7 @@ function l($text, $path, array $options = array()) {
if (!isset($use_theme) && function_exists('theme')) {
// Allow edge cases to prevent theme initialization and force inline link
// rendering.
if (variable_get('theme_link', TRUE)) {
if (config('system.performance')->get('theme_link')) {
drupal_theme_initialize();
$registry = theme_get_registry(FALSE);
// We don't want to duplicate functionality that's in theme(), so any
......
......@@ -11,3 +11,5 @@ js:
response:
gzip: '0'
stale_file_threshold: '2592000'
theme_link: '1'
......@@ -2337,6 +2337,17 @@ function system_update_8042() {
update_module_enable(array('entity'));
}
/**
* Moves system theme settings from variable to config.
*
* @ingroup config_upgrade
*/
function system_update_8042() {
update_variables_to_config('system.performance', array(
'theme_link' => 'theme_link',
));
}
/**
* @} End of "defgroup updates-7.x-to-8.x".
* The next series of updates should start at 9000.
......
......@@ -29,6 +29,11 @@ public static function getInfo() {
);
}
public function setup() {
parent::setup();
$this->enableModules(array('system'));
}
function viewsData() {
$data = parent::viewsData();
$data['views_test_data']['name']['field']['id'] = 'url';
......
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