Skip to content

Commit

Permalink
Fix for #54
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-vandenberg committed Aug 25, 2022
1 parent 9a5304c commit 22dd22d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,11 @@
require_once "helpers.php";
//Get current URL and parameters for correct pagination
$protocol = $_SERVER['SERVER_PROTOCOL'];
$domain = $_SERVER['HTTP_HOST'];
$domain = $_SERVER['HTTP_HOST'];
$script = $_SERVER['SCRIPT_NAME'];
$parameters = $_GET ? $_SERVER['QUERY_STRING'] : "" ;
$protocol=strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https')
=== FALSE ? 'http' : 'https';
$protocol=($_SERVER['HTTPS'] == "on" ? "https" : "http");
$currenturl = $protocol . '://' . $domain. $script . '?' . $parameters;
//Pagination
Expand Down

0 comments on commit 22dd22d

Please sign in to comment.