From 70b6ce523ff3858e985793cecb56b5d044df507d Mon Sep 17 00:00:00 2001
From: Grzegorz Rola <grola@seostudio.pl>
Date: Wed, 11 May 2022 18:06:57 +0000
Subject: [PATCH] Update functions.php

---
 functions.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/functions.php b/functions.php
index 2b99659..e35e9bf 100644
--- a/functions.php
+++ b/functions.php
@@ -1,6 +1,7 @@
 <?php
 
 //include __DIR__. "/baselinker_functions.php";
+if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' === $_SERVER['HTTP_X_FORWARDED_PROTO'] ) { $_SERVER['HTTPS'] = 'on'; }
 
 if ( file_exists( __DIR__. '/functions_add.php' ) ) {
 	include __DIR__ . '/functions_add.php';
-- 
GitLab