Rewrite form generation.
[platal.git] / modules / survey.php
index 7a34573..f40ce5b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2010 Polytechnique.org                              *
+ *  Copyright (C) 2003-2011 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -77,6 +77,7 @@ class SurveyModule extends PLModule
     function handler_vote(PlPage $page, $name)
     {
         $this->load('survey.inc.php');
+        $page->addJsLink('jquery.tmpl.js');
         $page->changeTpl('survey/vote.tpl');
         $survey = Survey::get($name);
         if (is_null($survey)) {