mirror of
https://github.com/danpros/htmly.git
synced 2026-04-23 05:56:22 +05:30
replaced All
$_SESSION['user']
$_SESSION[config("site.url")]['user']
to prevent login Bug on multiple Installations
This commit is contained in:
parent
c7441b84f6
commit
a257c1c2ea
5 changed files with 17 additions and 17 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
if(isset($_SESSION['user'])) {
|
||||
$user = $_SESSION['user'];
|
||||
if(isset($_SESSION[config("site.url")]['user'])) {
|
||||
$user = $_SESSION[config("site.url")]['user'];
|
||||
}
|
||||
|
||||
$filename = 'content/' . $user . '/author.md';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue