X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=tests%2FListTest%2F2%2Findex.php;fp=tests%2FListTest%2F2%2Findex.php;h=bbfb491613ecef328fefa41cafdde643dd1c503e;hb=cddb534e0d25487c62a3cf4b2a5493b0abfb8dcc;hp=d7043ab94e8dd35a386aea36ee36d83aa135bb05;hpb=76cd77d6fd37222cce6dd0551c272828a3aaf44c;p=gosa.git diff --git a/tests/ListTest/2/index.php b/tests/ListTest/2/index.php index d7043ab94..bbfb49161 100644 --- a/tests/ListTest/2/index.php +++ b/tests/ListTest/2/index.php @@ -1,3 +1,9 @@ + @@ -37,7 +43,6 @@ /* This is good for testing... */ error_reporting (E_ALL | E_STRICT); - function get_smarty() { echo "Smarty fake in each ./tests/ListTest[1-9]/index.php"; @@ -61,8 +66,6 @@ function normalizePreg($input) /* Initiate autoloader... */ -require_once("../../../include/autoload.inc"); -restore_error_handler(); try { /* Get new test instance of the Configuration */ @@ -70,7 +73,10 @@ try { $cr->load("../../../gosa.conf"); /* Get a new test instance of ObjectListViewports */ - $vp= new ObjectListViewport("plugin/sample"); + if(!isset($_SESSION['vp'])){ + $_SESSION['vp'] = new ObjectListViewport("plugin/sample"); + } + $vp = $_SESSION['vp']; if(isset($_GET['d']) && preg_match("/f/",$_GET['d'])){ $vp->enableFooter(FALSE); }