<?php
/***************************************************************************
- * Copyright (C) 2003-2010 Polytechnique.org *
+ * Copyright (C) 2003-2011 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
protected function handle_editor()
{
- $this->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;
}
public function commit()
{
- $nl = new NewsLetter();
+ $nl = NewsLetter::forGroup(NewsLetter::GROUP_XORG)->getPendingIssue();
$nl->saveArticle($this->art);
return true;
}