tidying up

This commit is contained in:
2019-09-23 14:12:52 +02:00
parent 0a9430490c
commit d07692af94
4 changed files with 3 additions and 38 deletions

View File

@@ -8,7 +8,7 @@ class MVCController{
private $timesOverridden = 0;
private static $mvcController;
public static $viewData = [];
function MVCController(){
function __construct(){
self::$mvcController = $this;
//prepare current view and view model
if(isset($_GET['p']) && $_GET['p'] != ''){

View File

@@ -5,7 +5,7 @@ Class UserSession{
public $token = "undefined";
public $expires;
public static $session;
public function UserSession($uid, $token = "undefined"){
public function __construct($uid, $token = "undefined"){
$this->uid = $uid;
$this->token = $token;
$this->setExpiry();