summaryrefslogtreecommitdiffstats
path: root/application/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'application/layouts')
-rw-r--r--application/layouts/default.phtml8
1 files changed, 4 insertions, 4 deletions
diff --git a/application/layouts/default.phtml b/application/layouts/default.phtml
index f9de7ca..1932d5b 100644
--- a/application/layouts/default.phtml
+++ b/application/layouts/default.phtml
@@ -1,7 +1,7 @@
<?php
$bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap');
$config = $bootstrap->getOptions();
-$pbs2host = $this->config['pbs2']['host'];
+$pbs2host = $config['pbs2']['host'];
?>
<?php echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
@@ -65,7 +65,7 @@ echo $this->headScript()."\n";
<div id="head-titlebar">
<div style='float: right'><?php
if(Zend_Auth::getInstance()->hasIdentity()){
- echo 'Logged in as';
+ echo 'Logged in as ';
$userIDsNamespace = Zend_Session::namespaceGet('userIDs');
if(isset($userIDsNamespace['membershipID'])){
@@ -97,8 +97,8 @@ if(Zend_Auth::getInstance()->hasIdentity()){
}
if(isset($userIDsNamespace['groupID'])){
echo " in group ";
- $grouprequest = "groupid=" . $membership['groupID'];
- $groupApiResult = PostToHost($pbs2host, $config['pbs2']['getgroup'] . $membership['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', $grouprequest);
+ $grouprequest = "groupid=" . $userIDsNamespace['groupID'];
+ $groupApiResult = PostToHost($pbs2host, $config['pbs2']['getgroup'] . $userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 'poolctrl', $grouprequest);
$groupXMLString = $groupApiResult['http-body'];
if(strlen($groupXMLString) > 0) {
$groupXML = new SimpleXMLElement($groupXMLString);