From 38467013064039f5b5a333ab802c117d0780b5d4 Mon Sep 17 00:00:00 2001 From: "Duck (Jakob Munih)" Date: Thu, 1 Oct 2009 09:33:14 +0200 Subject: [PATCH] Don't access protected data directly --- news/add.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/news/add.php b/news/add.php index cc6ea2309..2b6076fc2 100644 --- a/news/add.php +++ b/news/add.php @@ -595,8 +595,7 @@ if ($form->validate()) { } } - $form->_submit = _("Update"); - $form->_reset = _("Reset"); + $form->setButtons(_("Update"), _("Reset")); } // Add editor now to avoud JS error notifications no redirect -- 2.11.0