Don't access protected data directly
authorDuck (Jakob Munih) <duck@obala.net>
Thu, 1 Oct 2009 07:33:14 +0000 (09:33 +0200)
committerDuck (Jakob Munih) <duck@obala.net>
Thu, 1 Oct 2009 07:33:14 +0000 (09:33 +0200)
news/add.php

index cc6ea23..2b6076f 100644 (file)
@@ -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