Included private rss in index.php and fixed bug in profile.php on call to updateUser()
This commit is contained in:
parent
8f64c0acb4
commit
38fde526eb
@ -40,9 +40,19 @@ if (GET_ACTION == "logout") {
|
||||
// Header variables
|
||||
$tplVars['loadjs'] = true;
|
||||
$tplVars['rsschannels'] = array(
|
||||
array(sprintf(T_('%s: Recent bookmarks'), $sitename), createURL('rss').'?sort='.getSortOrder())
|
||||
array(sprintf(T_('%s: Recent bookmarks'), $sitename), createURL('rss').'?sort='.getSortOrder())
|
||||
);
|
||||
|
||||
if ($userservice->isLoggedOn()) {
|
||||
if ($currentUser->getPrivateKey() <> null) {
|
||||
array_push(
|
||||
$tplVars['rsschannels'],
|
||||
array(
|
||||
filter($sitename . sprintf(T_(': (private) ')) . $pagetitle),
|
||||
createURL('rss', filter($user, 'url') . $rssCat.'?sort='.getSortOrder().'&privatekey='.$currentUser->getPrivateKey())
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
if ($usecache) {
|
||||
// Generate hash for caching on
|
||||
$hashtext = $_SERVER['REQUEST_URI'];
|
||||
|
@ -102,7 +102,7 @@ if (POST_SUBMITTED!='' && $currentUser->getId() == $userid) {
|
||||
$tplVars['error'] = T_('E-mail address is not valid.');
|
||||
}
|
||||
if (!$error) {
|
||||
if (!$userservice->updateUser($userid, $detPass, $detName, $detPrivateKey, $detMail, $detPage, $detDesc)) {
|
||||
if (!$userservice->updateUser($userid, $detPass, $detName, $detMail, $detPage, $detDesc, $detPrivateKey)) {
|
||||
$tplvars['error'] = T_('An error occurred while saving your changes.');
|
||||
} else {
|
||||
$tplVars['msg'] = T_('Changes saved.');
|
||||
|
Loading…
Reference in New Issue
Block a user