From 384f2649b714d310b385a59cc34d11fff1d85ef2 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 21 Oct 2018 23:28:08 -0400 Subject: Revert "mesg: Update function makeIssue()" This reverts commit 62872702dc413b7abab94d8a5a7bd21770b5d241. --- app/class/mesg.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'app') diff --git a/app/class/mesg.class.php b/app/class/mesg.class.php index d40028c..2e5c9d6 100644 --- a/app/class/mesg.class.php +++ b/app/class/mesg.class.php @@ -266,14 +266,13 @@ class mesg extends obj * object is created and this message object will be destroyed. If * this is not an eligible message for promotion, NULL is returned. */ - public function makeIssue(user $owner, stage $parent) : ?issue + public function makeIssue(stage $parent) : ?issue { if ($this->getParent()->objtype != "pad") return NULL; - $issue = issue::initNew($this->name, $owner, $parent); - $issue->author = $this->author; - $issue->authored = $this->created; + $issue = issue::initNew($this->name, $this->getOwner(), $parent); + $issue->created = $this->created; $issue->description = $this->mesg; $issue->saveObj(); -- cgit v1.2.3