rework css a bit, temporary.
[platal.git] / plugins / insert.getName.php
index 4ebbd65..78a1285 100644 (file)
 
 function smarty_insert_getName()
 {
-    global $globals;
     $uid = Cookie::get('ORGuid', -1);
     if ($uid < 0) {
         return "";
     }
-    $res = $globals->xdb->query("SELECT prenom FROM auth_user_md5 WHERE user_id={?}", $uid);
+    $res = XDB::query("SELECT prenom FROM auth_user_md5 WHERE user_id={?}", $uid);
     return $res->fetchOneCell();
 }