X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fnl.inc.php;h=2c17f2bb0cab3a3a6bd1b534963ebe55743558f8;hb=b8bcbe021ba5e7464897a0701a5f78fb8a6d3c0f;hp=25067a4fd5ba8b27f1df3b112eeee4b804b8925d;hpb=93d42b4fcc6f055a428c9b63e386ac62c918d08a;p=platal.git diff --git a/include/validations/nl.inc.php b/include/validations/nl.inc.php index 25067a4..2c17f2b 100644 --- a/include/validations/nl.inc.php +++ b/include/validations/nl.inc.php @@ -1,6 +1,6 @@ art->_body = Env::v('nl_body'); - $this->art->_title = Env::v('nl_title'); - $this->art->_append = Env::v('nl_append'); + $this->art->body = Env::v('nl_body'); + $this->art->title = Env::v('nl_title'); + $this->art->append = Env::v('nl_append'); return true; } @@ -106,7 +106,7 @@ class NLReq extends Validate public function commit() { - $nl = new NewsLetter(); + $nl = NewsLetter::forGroup(NewsLetter::GROUP_XORG)->getPendingIssue(true); $nl->saveArticle($this->art); return true; }