Fix UFBF_AdminArea
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sun, 26 Sep 2010 21:53:45 +0000 (23:53 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 27 Sep 2010 21:19:19 +0000 (23:19 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
include/ufbuilder.inc.php

index 55de5e5..3d50bff 100644 (file)
@@ -777,14 +777,14 @@ class UFBF_Country extends UFBF_Mixed
 // }}}
 
 // {{{ class UFBF_AdminArea
-class UFBF_AdminArea extends UFBF_Mixed
+class UFBF_AdminArea extends UFBF_Index
 {
     protected $direnum = DirEnum::ADMINAREAS;
     protected $onlycurrentfield;
 
-    public function __construct($envfieldtext, $envfieldindex, $formtext = '', $onlycurrentfield = 'only_current')
+    public function __construct($envfield, $formtext = '', $onlycurrentfield = 'only_current')
     {
-        parent::__construct($envfieldtext, $envfieldindex, $formtext);
+        parent::__construct($envfield, $formtext);
         $this->onlycurrentfield = $onlycurrentfield;
     }