From 3fd3af916dba303f77438823c8385905775c7bce Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Thu, 7 Jan 2010 09:07:31 +0000
Subject: [PATCH] Wrong use of the htmlinject hook... now supports better more
 than one module that uses htmlinject

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2078 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/portal/hooks/hook_htmlinject.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/portal/hooks/hook_htmlinject.php b/modules/portal/hooks/hook_htmlinject.php
index 7ea115ad0..4254aa1ea 100644
--- a/modules/portal/hooks/hook_htmlinject.php
+++ b/modules/portal/hooks/hook_htmlinject.php
@@ -38,11 +38,11 @@ function portal_hook_htmlinject(&$hookinfo) {
 	$hookinfo['jquery']['version'] = '1.6';
 
 	// Header
-	$hookinfo['pre'][0]  = '<div id="portalmenu" class="ui-tabs ui-widget ui-widget-content ui-corner-all">' . 
+	$hookinfo['pre'][]  = '<div id="portalmenu" class="ui-tabs ui-widget ui-widget-content ui-corner-all">' . 
 		$portal->getMenu($hookinfo['page']) . 
 		'<div id="portalcontent" class="ui-tabs-panel ui-widget-content ui-corner-bottom">';
 
 	// Footer
-	$hookinfo['post'][0] = '</div></div>';
+	$hookinfo['post'][] = '</div></div>';
 	
 }
-- 
GitLab