Merge branch '0.8.x' into 0.9.x
Conflicts: EVENTS.txt
This commit is contained in:
commit
93b7e60115
@ -909,7 +909,8 @@ class Notice extends Memcached_DataObject
|
|||||||
$qry .= '('.$id.', '.$this->id.', '.$source.", '".$this->created. "') ";
|
$qry .= '('.$id.', '.$this->id.', '.$source.", '".$this->created. "') ";
|
||||||
$cnt++;
|
$cnt++;
|
||||||
if (rand() % NOTICE_INBOX_SOFT_LIMIT == 0) {
|
if (rand() % NOTICE_INBOX_SOFT_LIMIT == 0) {
|
||||||
Notice_inbox::gc($id);
|
// FIXME: Causes lag in replicated servers
|
||||||
|
// Notice_inbox::gc($id);
|
||||||
}
|
}
|
||||||
if ($cnt >= MAX_BOXCARS) {
|
if ($cnt >= MAX_BOXCARS) {
|
||||||
$inbox = new Notice_inbox();
|
$inbox = new Notice_inbox();
|
||||||
|
@ -120,16 +120,14 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
{
|
{
|
||||||
// XXX: attributes (profile?)
|
// XXX: attributes (profile?)
|
||||||
$this->elementStart('head');
|
$this->elementStart('head');
|
||||||
if (Event::handle('StartShowHeadElements', array($this))) {
|
$this->showTitle();
|
||||||
$this->showTitle();
|
$this->showShortcutIcon();
|
||||||
$this->showShortcutIcon();
|
$this->showStylesheets();
|
||||||
$this->showStylesheets();
|
$this->showScripts();
|
||||||
$this->showOpenSearch();
|
$this->showOpenSearch();
|
||||||
$this->showFeeds();
|
$this->showFeeds();
|
||||||
$this->showDescription();
|
$this->showDescription();
|
||||||
$this->extraHead();
|
$this->extraHead();
|
||||||
Event::handle('EndShowHeadElements', array($this));
|
|
||||||
}
|
|
||||||
$this->elementEnd('head');
|
$this->elementEnd('head');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -354,7 +352,6 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
Event::handle('EndShowFooter', array($this));
|
Event::handle('EndShowFooter', array($this));
|
||||||
}
|
}
|
||||||
$this->elementEnd('div');
|
$this->elementEnd('div');
|
||||||
$this->showScripts();
|
|
||||||
$this->elementEnd('body');
|
$this->elementEnd('body');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user