# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.
-use strict;
-# use warnings; FIXME - Bug 2505
+use Modern::Perl;
use CGI qw ( -utf8 );
use C4::Auth;
use C4::Koha;
my $id = $cgi->param('id');
my $title = $cgi->param('title');
-my $new = $cgi->param('new');
+my $content = $cgi->param('content');
my $expirationdate;
if ( $cgi->param('expirationdate') ) {
$expirationdate = output_pref({ dt => dt_from_string( scalar $cgi->param('expirationdate') ), dateformat => 'iso', dateonly => 1 });
add_opac_new(
{
title => $title,
- new => $new,
+ content => $content,
lang => $lang,
expirationdate => $expirationdate,
timestamp => $timestamp,
{
idnew => $id,
title => $title,
- new => $new,
+ content => $content,
lang => $lang,
expirationdate => $expirationdate,
timestamp => $timestamp,