Tab completion suxx
[platal.git] / include / validations / nomusage.inc.php
index b53d868..f189d6b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2006 Polytechnique.org                              *
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -46,7 +46,6 @@ class UsageReq extends Validate
 
     function UsageReq($_uid, $_usage, $_reason)
     {
-        global $globals;
         $this->Validate($_uid, true, 'usage');
         $this->nom_usage  = $_usage;
         $this->reason = $_reason;
@@ -63,14 +62,6 @@ class UsageReq extends Validate
     }
 
     // }}}
-    // {{{ function get_request()
-
-    function get_request($uid)
-    {
-        return parent::get_request($uid,'usage');
-    }
-
-    // }}}
     // {{{ function formu()
 
     function formu()
@@ -109,7 +100,7 @@ class UsageReq extends Validate
 
     function commit()
     {
-        require_once('nomusage.inc.php');
+        require_once('user.func.inc.php');
         set_new_usage($this->uid, $this->nom_usage, $this->alias);
         return true;
     }