access 'expandFolderTree' via params[] array

do not add new class variable anymore
This commit is contained in:
Uwe Steinmann 2013-09-09 06:43:04 +02:00
parent ac7bd8cbdc
commit 472ca6bd0f

View File

@ -78,7 +78,6 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
$orderby = $this->params['orderby'];
$enableFolderTree = $this->params['enableFolderTree'];
$enableClipboard = $this->params['enableClipboard'];
$expandFolderTree = $this->params['expandFolderTree'];
$showtree = $this->params['showtree'];
$cachedir = $this->params['cachedir'];
$workflowmode = $this->params['workflowmode'];
@ -123,7 +122,11 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
}
</script>
<?php
$this->printNewTreeNavigation($folderid, M_READ, 0, '', $expandFolderTree == 2);
/*
* access expandFolderTree with $this->params because it can
* be changed by preContent hook.
*/
$this->printNewTreeNavigation($folderid, M_READ, 0, '', $this->params['expandFolderTree'] == 2);
$this->contentContainerEnd();
} else {
$this->contentHeading("<a href=\"../out/out.ViewFolder.php?folderid=". $folderid."&showtree=1\"><i class=\"icon-plus-sign\"></i></a>", true);