summaryrefslogtreecommitdiffstats
path: root/application/controllers/ErrorController.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-11-14 17:51:28 +0100
committerBjörn Geiger2011-11-14 17:51:28 +0100
commit09389b149c05033f14708d7535dee851f3fce0d8 (patch)
treebe58c80945a5f04ece619c49d40b71e71425feab /application/controllers/ErrorController.php
parenttest (diff)
downloadpoolctrl-09389b149c05033f14708d7535dee851f3fce0d8.tar.gz
poolctrl-09389b149c05033f14708d7535dee851f3fce0d8.tar.xz
poolctrl-09389b149c05033f14708d7535dee851f3fce0d8.zip
EventController Cleaning: API in eigene Klasse ausgelagert
Diffstat (limited to 'application/controllers/ErrorController.php')
-rwxr-xr-xapplication/controllers/ErrorController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/application/controllers/ErrorController.php b/application/controllers/ErrorController.php
index 49ecdcf..1cca34f 100755
--- a/application/controllers/ErrorController.php
+++ b/application/controllers/ErrorController.php
@@ -4,6 +4,7 @@ class ErrorController extends Zend_Controller_Action
{
protected $config;
protected $pbs2host;
+ protected $pbs2Api;
protected $userIDsNamespace;
protected $acl;
@@ -12,6 +13,7 @@ class ErrorController extends Zend_Controller_Action
$bootstrap = $this->getInvokeArg('bootstrap');
$this->config = $bootstrap->getOptions();
$this->pbs2host = $this->config['pbs2']['host'];
+ $this->pbs2Api = new Poolctrl_Pbs2Api($this->config);
$this->userIDsNamespace = Zend_Session::namespaceGet('userIDs');
if(isset($this->userIDsNamespace['apikey'])) {
$this->acl = new Poolctrl_Acl($this->pbs2host, $this->config['pbs2']['checkright'] . $this->userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);