Commit 8f6cb348 authored by Dries's avatar Dries

Issue #2112233 by alexpott, amateescu: Remove unnecessary ternaries in around config()->get().

parent 4a7a8b3c
......@@ -177,7 +177,7 @@ function testHideBlockTitle() {
$title = $this->randomName(8);
$id = strtolower($this->randomName(8));
// Enable a standard block.
$default_theme = \Drupal::config('system.theme')->get('default') ?: 'stark';
$default_theme = \Drupal::config('system.theme')->get('default');
$edit = array(
'id' => $id,
'region' => 'sidebar_first',
......
......@@ -394,7 +394,7 @@ function testSystemMenuRename() {
$this->drupalPostForm('admin/structure/menu/manage/main', $edit, t('Save'));
// Make sure menu shows up with new name in block addition.
$default_theme = \Drupal::config('system.theme')->get('default') ?: 'stark';
$default_theme = \Drupal::config('system.theme')->get('default');
$this->drupalget('admin/structure/block/list/' . $default_theme);
$this->assertText($edit['label']);
}
......
......@@ -222,7 +222,7 @@ function system_permission() {
),
'view the administration theme' => array(
'title' => t('View the administration theme'),
'description' => \Drupal::config('system.theme')->get('admin') ?: t('This is only used when the site is configured to use a separate administration theme on the <a href="@appearance-url">Appearance</a> page.', array('@appearance-url' => url('admin/appearance'))),
'description' => t('This is only used when the site is configured to use a separate administration theme on the <a href="@appearance-url">Appearance</a> page.', array('@appearance-url' => url('admin/appearance'))),
),
'access site reports' => array(
'title' => t('View site reports'),
......
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