Commit 7bcc86c1 authored by Kristof De Jaeger's avatar Kristof De Jaeger
Browse files

Issue #3288184: D10 support

parent 7b5b444a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
type: module
name: Localization quick links
description: 'On-page tool for faster interface and config translation.'
core_version_requirement: ^8.8 || ^9
core_version_requirement: ^8.8 || ^9 || ^10
dependencies:
  - drupal:locale
  - drupal:toolbar
+2 −2
Original line number Diff line number Diff line
@@ -15,10 +15,10 @@ class l10nQuickLinksController extends ControllerBase {

    $expire = time() + (86400 * 365);
    if (!isset($_COOKIE[L10N_COOKIE_NAME])) {
      setcookie('l10nQuickLinks', 1, $expire, '/');
      setcookie('l10nQuickLinks', 'show', $expire, '/');
    }
    else {
      setcookie('l10nQuickLinks', NULL, $expire, '/');
      setcookie('l10nQuickLinks', '', $expire, '/');
    }

    // Redirect to front, don't use <current> so we don't end up in an infinite