Migrates the validation architecture to an User-based model, instead of the deprecate...
[platal.git] / modules / survey / survey.inc.php
index 89d674b..003bbcf 100644 (file)
@@ -407,7 +407,7 @@ class Survey
     public function proposeSurvey()
     {
         require_once 'validations.inc.php';
-        $surveyreq = new SurveyReq($this->title, $this->description, $this->end, $this->mode, $this->promos, $this->questions, S::v('uid'));
+        $surveyreq = new SurveyReq($this->title, $this->description, $this->end, $this->mode, $this->promos, $this->questions, S::user());
         return $surveyreq->submit();
     }
     // }}}