summaryrefslogtreecommitdiff
path: root/lib/action.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-09-24 17:14:04 -0400
committerEvan Prodromou <evan@status.net>2009-09-24 17:14:04 -0400
commitd7e43c732efe2e3b6b4827c4d2286bc03507a31c (patch)
treef07ca837666ba940e4833080a31282bfb20d4dee /lib/action.php
parenta5ed805aeabab3930d066b2777dbab9663bc487f (diff)
Revert "move scripts to just before </body>, add event for scripts that need to be in <head>"
This reverts commit a5ed805aeabab3930d066b2777dbab9663bc487f. It shouldn't have gone on the stable branch.
Diffstat (limited to 'lib/action.php')
-rw-r--r--lib/action.php19
1 files changed, 8 insertions, 11 deletions
diff --git a/lib/action.php b/lib/action.php
index ebc812aca..670eb498c 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -120,16 +120,14 @@ class Action extends HTMLOutputter // lawsuit
{
// XXX: attributes (profile?)
$this->elementStart('head');
- 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->showTitle();
+ $this->showShortcutIcon();
+ $this->showStylesheets();
+ $this->showScripts();
+ $this->showOpenSearch();
+ $this->showFeeds();
+ $this->showDescription();
+ $this->extraHead();
$this->elementEnd('head');
}
@@ -354,7 +352,6 @@ class Action extends HTMLOutputter // lawsuit
Event::handle('EndShowFooter', array($this));
}
$this->elementEnd('div');
- $this->showScripts();
$this->elementEnd('body');
}