]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Revert "move scripts to just before </body>, add event for scripts that need to be...
authorEvan Prodromou <evan@status.net>
Thu, 24 Sep 2009 21:14:04 +0000 (17:14 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 24 Sep 2009 21:14:04 +0000 (17:14 -0400)
This reverts commit a5ed805aeabab3930d066b2777dbab9663bc487f.

It shouldn't have gone on the stable branch.

EVENTS.txt
lib/action.php

index dfaf34a66e5e1b1da89b66508e4abadbac6dbd6f..68cb28603b644ea092a58a18fe91877c4c4d26af 100644 (file)
@@ -134,9 +134,3 @@ StartAddressData: Allows the site owner to provide additional information about
 
 EndAddressData: At the end of <address>
 - $action: the current action
-
-StartShowHeadElements: Right after the <head> tag
-- $action: the current action
-
-EndShowHeadElements: Right before the </head> tag; put <script>s here if you need them in <head>
-- $action: the current action
index ebc812acaa215ee26e685d3af0f68bd7af77436b..670eb498c1a63375af9c37b882c4a61b87f8af45 100644 (file)
@@ -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');
     }