diff options
author | Sarven Capadisli <csarven@status.net> | 2009-10-04 11:12:42 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2009-10-04 11:12:42 +0000 |
commit | 54e8f583ace8d22291f3bb42d2fb6556517d3ab6 (patch) | |
tree | 0514cb3cd965660b7ba4a3379e6ae5bf261d298c /lib/action.php | |
parent | f344a49b11607d4dbb64ab6935237cd5185a06b4 (diff) | |
parent | affe00276a008038e8a8b37b3812215e382fe98e (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x-mobile
Diffstat (limited to 'lib/action.php')
-rw-r--r-- | lib/action.php | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/action.php b/lib/action.php index 71ceffe20..1b2f73752 100644 --- a/lib/action.php +++ b/lib/action.php @@ -120,14 +120,16 @@ class Action extends HTMLOutputter // lawsuit { // XXX: attributes (profile?) $this->elementStart('head'); - $this->showTitle(); - $this->showShortcutIcon(); - $this->showStylesheets(); - $this->showScripts(); - $this->showOpenSearch(); - $this->showFeeds(); - $this->showDescription(); - $this->extraHead(); + if (Event::handle('StartShowHeadElements', array($this))) { + $this->showTitle(); + $this->showShortcutIcon(); + $this->showStylesheets(); + $this->showOpenSearch(); + $this->showFeeds(); + $this->showDescription(); + $this->extraHead(); + Event::handle('EndShowHeadElements', array($this)); + } $this->elementEnd('head'); } @@ -352,6 +354,7 @@ class Action extends HTMLOutputter // lawsuit Event::handle('EndShowFooter', array($this)); } $this->elementEnd('div'); + $this->showScripts(); $this->elementEnd('body'); } |