mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-10 19:12:42 +00:00
access 'expandFolderTree' via params[] array
do not add new class variable anymore
This commit is contained in:
parent
ac7bd8cbdc
commit
472ca6bd0f
|
@ -78,7 +78,6 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
||||||
$orderby = $this->params['orderby'];
|
$orderby = $this->params['orderby'];
|
||||||
$enableFolderTree = $this->params['enableFolderTree'];
|
$enableFolderTree = $this->params['enableFolderTree'];
|
||||||
$enableClipboard = $this->params['enableClipboard'];
|
$enableClipboard = $this->params['enableClipboard'];
|
||||||
$expandFolderTree = $this->params['expandFolderTree'];
|
|
||||||
$showtree = $this->params['showtree'];
|
$showtree = $this->params['showtree'];
|
||||||
$cachedir = $this->params['cachedir'];
|
$cachedir = $this->params['cachedir'];
|
||||||
$workflowmode = $this->params['workflowmode'];
|
$workflowmode = $this->params['workflowmode'];
|
||||||
|
@ -123,7 +122,11 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?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();
|
$this->contentContainerEnd();
|
||||||
} else {
|
} else {
|
||||||
$this->contentHeading("<a href=\"../out/out.ViewFolder.php?folderid=". $folderid."&showtree=1\"><i class=\"icon-plus-sign\"></i></a>", true);
|
$this->contentHeading("<a href=\"../out/out.ViewFolder.php?folderid=". $folderid."&showtree=1\"><i class=\"icon-plus-sign\"></i></a>", true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user