projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oops : sweep off commited junk
[platal.git]
/
plugins
/
insert.getName.php
diff --git
a/plugins/insert.getName.php
b/plugins/insert.getName.php
index
a1db78a
..
7ca815b
100644
(file)
--- a/
plugins/insert.getName.php
+++ b/
plugins/insert.getName.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
4
Polytechnique.org *
+ * Copyright (C) 2003-200
7
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-21,13
+21,13
@@
function smarty_insert_getName()
{
function smarty_insert_getName()
{
- global $globals;
- $uid = Cookie::get('ORGuid', -1);
+ $uid = Cookie::v('ORGuid', -1);
if ($uid < 0) {
return "";
}
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();
}
return $res->fetchOneCell();
}
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>
?>