Code

Made it read from "test"
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sat, 3 Nov 2007 13:42:07 +0000 (13:42 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sat, 3 Nov 2007 13:42:07 +0000 (13:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-playground@7724 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_ObjectListViewport.inc
test

index 414d45ba464145676c0349b1e455fbdbf0665f25..09cdc47f852e714cacfc4e82248e3b1d30e2be9f 100644 (file)
@@ -50,7 +50,7 @@ class ObjectListViewport {
 
     /* Dummy here */
     $cr= Registry::getInstance("ConfigManager");
-    $cr->setSection("plugin/sample");
+    $cr->setSection($config);
     $this->headline= $cr->getValue("headline");
     $this->footer= $cr->getValue("footer");
     $this->entryFormat= $cr->getValue("entryFormat");
diff --git a/test b/test
index 6101c399f63801216f2d2861c1731c1431a88be5..ff8262398ce563211f22cb1ca5bcc0af7b54c145 100755 (executable)
--- a/test
+++ b/test
@@ -14,7 +14,7 @@ try {
        $cr->load("gosa.conf");
 
        /* Get a new test instance of ObjectListViewports */
-       $vp= new ObjectListViewport(array("dummy", "dummy"));
+       $vp= new ObjectListViewport("plugin/sample");
        echo $vp->render();
 
 } catch (Exception $e) {