function __construct(&$output, &$article, &$title, &$user, &$request) { parent::__construct($output, $article, $title, $user, $request); $t = Threads::withRoot($this->article); $this->thread = $t; if (!$t) { return; } $this->article = $t->article(); }
function __construct(&$output, &$article, &$title, &$user, &$request) { parent::__construct($output, $article, $title, $user, $request); $this->talkpage = $article; }
function __construct(&$output, &$article, &$title, &$user, &$request) { parent::__construct($output, $article, $title, $user, $request); $t = Threads::withRoot($this->article); $this->thread = $t; if (!$t) { return; } // $this->article gets saved to thread_article, so we want it to point to the // subject page associated with the talkpage, always, not the permalink url. $this->article = $t->article(); # for creating reply threads. }