UTF-8 fixes
[platal.git] / plugins / insert.getName.php
index 81058cc..7ca815b 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   *
@@ -21,8 +21,7 @@
 
 function smarty_insert_getName()
 {
-    global $globals;
-    $uid = Cookie::get('ORGuid', -1);
+    $uid = Cookie::v('ORGuid', -1);
     if ($uid < 0) {
         return "";
     }
@@ -30,4 +29,5 @@ function smarty_insert_getName()
     return $res->fetchOneCell();
 }
 
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
 ?>