projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes the hruid generation when mass-importing a new promotion.
[platal.git]
/
modules
/
openid
/
openid.inc.php
diff --git
a/modules/openid/openid.inc.php
b/modules/openid/openid.inc.php
index
6a749ab
..
4a55439
100644
(file)
--- a/
modules/openid/openid.inc.php
+++ b/
modules/openid/openid.inc.php
@@
-119,5
+119,12
@@
function is_trusted_site($user, $url)
return $res->fetchOneCell() > 0;
}
return $res->fetchOneCell() > 0;
}
+function add_trusted_site($user, $url)
+{
+ XDB::execute("INSERT IGNORE INTO openid_trusted
+ SET user_id={?}, url={?}",
+ $user->id(), $url);
+}
+
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>
\ No newline at end of file
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>
\ No newline at end of file