X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b2d342589a7889a3b096e7192453d53bd28eed7d..8885fd14f5f040eb3aa69f1d705856f99a1fa572:/src/wolnelektury/context_processors.py diff --git a/src/wolnelektury/context_processors.py b/src/wolnelektury/context_processors.py index fb5584e4d..badd6621d 100644 --- a/src/wolnelektury/context_processors.py +++ b/src/wolnelektury/context_processors.py @@ -1,6 +1,5 @@ -# -*- coding: utf-8 -*- -# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. # from django.conf import settings @@ -8,5 +7,7 @@ from django.conf import settings def extra_settings(request): return { 'STATIC_URL': settings.STATIC_URL, - 'FULL_STATIC_URL': request.build_absolute_uri(settings.STATIC_URL) + 'FULL_STATIC_URL': request.build_absolute_uri(settings.STATIC_URL), + 'USE_OPENID': getattr(settings, 'USE_OPENID', False), + 'VARIANT': settings.VARIANTS.get(request.get_host()), }