mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 13:45:02 +00:00
Fix $env->is_secure detection
This commit is contained in:
parent
5e3bde6cd9
commit
3652c20662
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue