Skip to content

Commit

Permalink
Fix PHP syntax error in generated -index.php pages (#56)
Browse files Browse the repository at this point in the history
The fix for #54 resulted in the following PHP parse error in the generated index.php page:
"PHP Parse error:  syntax error, unexpected '===' (T_IS_IDENTICAL), expecting end of file in /var/www/html/app/test-index.php on line 51"
nickmoeck authored Aug 29, 2022
1 parent 22dd22d commit 77ee155
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/templates.php
Original file line number Diff line number Diff line change
@@ -51,7 +51,6 @@
$domain = $_SERVER['HTTP_HOST'];
$script = $_SERVER['SCRIPT_NAME'];
$parameters = $_GET ? $_SERVER['QUERY_STRING'] : "" ;
=== FALSE ? 'http' : 'https';
$protocol=($_SERVER['HTTPS'] == "on" ? "https" : "http");
$currenturl = $protocol . '://' . $domain. $script . '?' . $parameters;

0 comments on commit 77ee155

Please sign in to comment.