1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-21 16:13:00 +00:00

Fix $env->is_secure detection

This commit is contained in:
Starbeamrainbowlabs 2020-07-28 19:51:56 +01:00
parent 5e3bde6cd9
commit 3652c20662
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -27,7 +27,7 @@ $env->is_logged_in = false;
/** Whether the user is an admin (moderator) @todo Refactor this to is_moderator, so that is_admin can be for the server owner. @var boolean */
$env->is_admin = false;
/** Whether the current request was made a secure connection or not. @var boolean */
$env->is_secure = !empty( $s['HTTPS'] ) && $s['HTTPS'] !== 'off';
$env->is_secure = !empty( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] !== 'off';
/** The currently logged in user's data. Please see $settings->users->username if you need to edit this - this is here for convenience :-) */
$env->user_data = new stdClass();
/** The data storage directory. Page filenames should be prefixed with this if you want their content. */