diff --git a/core/lib/Drupal.php b/core/lib/Drupal.php index b301cd9..4d3ea4e 100644 --- a/core/lib/Drupal.php +++ b/core/lib/Drupal.php @@ -81,7 +81,7 @@ class Drupal { /** * The current system version. */ - const VERSION = '8.4.0-dev'; + const VERSION = '8.3.0-dev'; /** * Core API compatibility. diff --git a/core/lib/Drupal/Core/Updater/Theme.php b/core/lib/Drupal/Core/Updater/Theme.php index 48f68c7..6ef9905 100644 --- a/core/lib/Drupal/Core/Updater/Theme.php +++ b/core/lib/Drupal/Core/Updater/Theme.php @@ -3,12 +3,14 @@ namespace Drupal\Core\Updater; use Drupal\Core\Url; +use Drupal\Core\StringTranslation\StringTranslationTrait; /** * Defines a class for updating themes using * Drupal\Core\FileTransfer\FileTransfer classes via authorize.php. */ class Theme extends Updater implements UpdaterInterface { + use StringTranslationTrait; /** * Returns the directory where a theme should be installed. @@ -87,7 +89,7 @@ public function postInstall() { * {@inheritdoc} */ public function postInstallTasks() { - // Since this is being called outsite of the primary front controller, + // Since this is being called outside of the primary front controller, // the base_url needs to be set explicitly to ensure that links are // relative to the site root. // @todo Simplify with https://www.drupal.org/node/2548095 @@ -98,14 +100,28 @@ public function postInstallTasks() { 'base_url' => $GLOBALS['base_url'], ], ]; + + $url = Url::fromRoute('system.themes_page'); + $link_options = [ + 'attributes' => [ + 'class' => [ + 'button', + ], + ], + ]; + return [ $default_options + [ - '#url' => Url::fromRoute('system.themes_page'), - '#title' => t('Install newly added themes'), + '#url' => $url->setOptions($link_options), + '#title' => $this->t('Enable theme'), + ], + $default_options + [ + '#url' => Url::fromRoute('update.theme_install'), + '#title' => $this->t('Install another theme'), ], $default_options + [ '#url' => Url::fromRoute('system.admin'), - '#title' => t('Administration pages'), + '#title' => $this->t('Administration pages'), ], ]; }