diff --git a/dev_mvc/index.php b/dev_mvc/index.php index 603a16f..e45f319 100644 --- a/dev_mvc/index.php +++ b/dev_mvc/index.php @@ -1,7 +1,7 @@ id = $id; $this->name = $name; $this->permLevel = $permLevel; diff --git a/dev_mvc/model/forum/Reply.php b/dev_mvc/model/forum/Reply.php index 87fe3a1..c7df286 100644 --- a/dev_mvc/model/forum/Reply.php +++ b/dev_mvc/model/forum/Reply.php @@ -7,7 +7,7 @@ class Reply { public $date; public $owner; - function Reply($id, $threadID, $userID, $content, $date = null){ + function __construct($id, $threadID, $userID, $content, $date = null){ $this->id = $id; $this->threadID = $threadID; $this->userID = $userID; diff --git a/dev_mvc/model/forum/Thread.php b/dev_mvc/model/forum/Thread.php index df3e049..492c013 100644 --- a/dev_mvc/model/forum/Thread.php +++ b/dev_mvc/model/forum/Thread.php @@ -1,5 +1,4 @@ id = $id; $this->title = $title; $this->boardID = $boardID; @@ -60,7 +59,7 @@ class Thread { $this->owner = $owner; } - public function getId():int { + public function getId() { return $this->id; } @@ -74,14 +73,14 @@ class Thread { /** * @return int $boardID */ - public function getBoardID():int { + public function getBoardID() { return $this->boardID; } /** * @return int $userID */ - public function getUserID():int { + public function getUserID() { return $this->userID; } diff --git a/dev_mvc/view/webcontent/content_boards.php b/dev_mvc/view/webcontent/content_boards.php index cc682b9..0e75d46 100644 --- a/dev_mvc/view/webcontent/content_boards.php +++ b/dev_mvc/view/webcontent/content_boards.php @@ -2,6 +2,6 @@ require_once ROOT_DIR.'/model/forum/Thread.php'; require_once ROOT_DIR.'/model/forum/User.php'; foreach (MVCController::$viewData['boards'] as $board){ - include '/view/webcontent/modules/modules_boards/module_boardtable.php'; + include ROOT_DIR.'/view/webcontent/modules/modules_boards/module_boardtable.php'; } ?> \ No newline at end of file diff --git a/dev_mvc/view/webcontent/modules/modules_boards/module_boardtable.php b/dev_mvc/view/webcontent/modules/modules_boards/module_boardtable.php index aeae4b4..02ed083 100644 --- a/dev_mvc/view/webcontent/modules/modules_boards/module_boardtable.php +++ b/dev_mvc/view/webcontent/modules/modules_boards/module_boardtable.php @@ -6,7 +6,7 @@ Started by Last reply -getBoardID() == $board->id){ $currentRow = [];