remove smarty {version} function, we have {#globals.version#} for it !!!
[platal.git] / include / validations / evts.inc.php
index 6714ab7..3d7f5fc 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  Copyright (C) 2003-2006 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -37,7 +37,6 @@ class EvtReq extends Validate
     // {{{ constructor
 
     function EvtReq($_titre, $_texte, $_pmin, $_pmax, $_peremption, $_comment, $_uid) {
-        global $globals;
         $this->Validate($_uid, false, 'evts');
         $this->titre      = $_titre;
         $this->texte      = $_texte;
@@ -78,8 +77,7 @@ class EvtReq extends Validate
 
     function commit()
     {
-        global $globals;
-        return $globals->xdb->execute(
+        return XDB::execute(
                 "INSERT INTO  evenements
                          SET  user_id = {?}, creation_date=NOW(), titre={?}, texte={?},
                               peremption={?}, promo_min={?}, promo_max={?}, flags=CONCAT(flags,',valide')",