Permalink
Browse files

only add head elements where they are actually used

  • Loading branch information...
flack committed Aug 19, 2018
1 parent 26ff445 commit 52cffbc62c85935c801f30b9a169243b8c5efc9f
Showing with 3 additions and 5 deletions.
  1. +3 −0 lib/org/openpsa/documents/handler/document/view.php
  2. +0 −5 lib/org/openpsa/documents/viewer.php
@@ -9,6 +9,7 @@
use midcom\datamanager\datamanager;
use midcom\grid\provider\client;
use midcom\grid\provider;
use midcom\grid\grid;
/**
* org.openpsa.documents document handler and viewer class.
@@ -160,6 +161,8 @@ public function _handler_view($handler_id, array $args, array &$data)
org_openpsa_widgets_ui::enable_ui_tab();
org_openpsa_widgets_contact::add_head_elements();
org_openpsa_widgets_tree::add_head_elements();
grid::add_head_elements();
midcom::get()->head->set_pagetitle($this->_document->title);
@@ -6,8 +6,6 @@
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License
*/
use midcom\grid\grid;
/**
* org.openpsa.documents site interface class.
*
@@ -25,8 +23,5 @@ public function _on_handle($handler, array $args)
// Always run in uncached mode
midcom::get()->cache->content->no_cache();
grid::add_head_elements();
org_openpsa_widgets_tree::add_head_elements();
}
}

0 comments on commit 52cffbc

Please sign in to comment.