Merge branch '0.8.x' into 0.9.x
This commit is contained in:
commit
bf1c662990
@ -85,9 +85,18 @@ class Session extends Memcached_DataObject
|
|||||||
|
|
||||||
return $session->insert();
|
return $session->insert();
|
||||||
} else {
|
} else {
|
||||||
$session->session_data = $session_data;
|
if (strcmp($session->session_data, $session_data) == 0) {
|
||||||
|
self::logdeb("Not writing session '$id'; unchanged");
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
self::logdeb("Session '$id' data changed; updating");
|
||||||
|
|
||||||
return $session->update();
|
$orig = clone($session);
|
||||||
|
|
||||||
|
$session->session_data = $session_data;
|
||||||
|
|
||||||
|
return $session->update($orig);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -313,6 +313,11 @@ class FBConnectPlugin extends Plugin
|
|||||||
$action->menuItem(common_local_url('peoplesearch'),
|
$action->menuItem(common_local_url('peoplesearch'),
|
||||||
_('Search'), _('Search for people or text'), false, 'nav_search');
|
_('Search'), _('Search for people or text'), false, 'nav_search');
|
||||||
|
|
||||||
|
// We are replacing the primary nav entirely; give other
|
||||||
|
// plugins a chance to handle it here.
|
||||||
|
|
||||||
|
Event::handle('EndPrimaryNav', array($action));
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user