projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use hruid as openid identifier
[platal.git]
/
include
/
rss.inc.php
diff --git
a/include/rss.inc.php
b/include/rss.inc.php
index
9d38d31
..
e45a822
100644
(file)
--- a/
include/rss.inc.php
+++ b/
include/rss.inc.php
@@
-23,12
+23,12
@@
function init_rss($template, $alias, $hash, $require_uid = true)
{
$page =& Platal::page();
$page->changeTpl($template, NO_SKIN);
{
$page =& Platal::page();
$page->changeTpl($template, NO_SKIN);
- $u
id
= Platal::session()->tokenAuth($alias, $hash);
- if (
empty($uid
)) {
+ $u
ser
= Platal::session()->tokenAuth($alias, $hash);
+ if (
is_null($user
)) {
if ($require_uid) {
exit;
} else {
if ($require_uid) {
exit;
} else {
- $u
id
= null;
+ $u
ser
= null;
}
}
}
}
@@
-36,7
+36,7
@@
function init_rss($template, $alias, $hash, $require_uid = true)
$page->assign('rss_hash', $hash);
header('Content-Type: application/rss+xml; charset=utf8');
}
$page->assign('rss_hash', $hash);
header('Content-Type: application/rss+xml; charset=utf8');
}
- return
$uid
;
+ return
is_null($user) ? null : $user->id()
;
}
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
}
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: