Commit 7a03d3fd524b1b020835821d2fa16542e3e3d4c8

Authored by kevin_fourie
1 parent 1f909a41

KTS-1510

"Orphaned folder dashlet not displaying correctly on dashboard"

Fixed to use new Dashlet code



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6120 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/browseabledashlet/BrowseableDashlet.php
... ... @@ -28,7 +28,12 @@ require_once(KT_LIB_DIR . '/browse/browseutil.inc.php');
28 28  
29 29 class BrowseableFolderDashlet extends KTBaseDashlet {
30 30 var $oUser;
31   -
  31 + var $sClass = "ktInfo";
  32 +
  33 + function BrowseableFolderDashlet() {
  34 + $this->sTitle = _kt('Orphaned Folders');
  35 + }
  36 +
32 37 function is_active($oUser) {
33 38 $this->oUser = $oUser;
34 39  
... ... @@ -45,10 +50,6 @@ class BrowseableFolderDashlet extends KTBaseDashlet {
45 50 $aFolders = array();
46 51 }
47 52  
48   - if (empty($aFolders)) {
49   - return;
50   - }
51   -
52 53 $aTemplateData = array(
53 54 'folders' => $aFolders,
54 55 );
... ...
plugins/browseabledashlet/templates/browseabledashlet/dashlet.smarty
1   -<h2>{i18n}Orphaned Folders{/i18n}</h2>
2   -
3 1 <p class="descriptiveText">{i18n}Since KnowledgeTree only shows you the folders and
4 2 documents you are allowed to see, there are some placed that you can view
5 3 but can't get to &mdash; for example, if they are in a folder you are not
... ...