autocomplete improvements: can find pierre-yves when looking for yves
[platal.git] / modules / profile.php
index 63102d6..c47b3e6 100644 (file)
@@ -37,7 +37,6 @@ class ProfileModule extends PLModule
             'referent'         => $this->make_hook('referent',   AUTH_COOKIE),
             'referent/search'  => $this->make_hook('ref_search', AUTH_COOKIE),
 
-            'trombi'  => $this->make_hook('trombi', AUTH_COOKIE),
             'groupes-x'        => $this->make_hook('xnet',      AUTH_COOKIE),
 
             'vcard'   => $this->make_hook('vcard',  AUTH_COOKIE),
@@ -265,7 +264,7 @@ class ProfileModule extends PLModule
         $page->addCssLink('profil.css');
         $page->assign('xorg_title', 'Polytechnique.org - Mon Profil');
 
-        require_once 'tabs.inc.php';
+        require_once dirname(__FILE__) . '/profile/tabs.inc.php';
         require_once 'profil.func.inc.php';
         require_once 'synchro_ax.inc.php';
 
@@ -664,29 +663,6 @@ class ProfileModule extends PLModule
         }
     }
 
-    function handler_trombi(&$page, $promo = null)
-    {
-        $page->changeTpl('profile/trombipromo.tpl');
-        $page->assign('xorg_title', 'Polytechnique.org - Trombi Promo');
-
-        if (is_null($promo)) {
-            return;
-        }
-
-        $this->promo = $promo = intval($promo);
-
-        if ($promo >= 1900 && ($promo < intval(date('Y')) || ($promo == intval(date('Y')) && intval(date('m')) >= 9))
-        || ($promo == -1 && S::has_perms()))
-        {
-            $trombi = new Trombi(array($this, '_trombi_getlist'));
-            $trombi->hidePromo();
-            $trombi->setAdmin();
-            $page->assign_by_ref('trombi', $trombi);
-        } else {
-            $page->trig('Promotion incorrecte (saisir au format YYYY). Recommence.');
-        }
-    }
-
     function handler_xnet(&$page)
     {
         $page->changeTpl('profile/groupesx.tpl');