Migrates the validation architecture to an User-based model, instead of the deprecate...
[platal.git] / modules / newsletter.php
index cb7b60c..8390eed 100644 (file)
@@ -87,7 +87,7 @@ class NewsletterModule extends PLModule
             $page->assign('art', $art);
         } elseif (Post::has('valid')) {
             require_once('validations.inc.php');
-            $art = new NLReq(S::v('uid'), Post::v('title'),
+            $art = new NLReq(S::user(), Post::v('title'),
                              Post::v('body'), Post::v('append'));
             $art->submit();
             $page->assign('submited', true);