From: hickert Date: Wed, 13 Oct 2010 11:31:30 +0000 (+0000) Subject: Updated display for folderPath and folderName, do not show replacement {%cn} in folde... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=227eee6de06f42eb2ff87a343b168bc3f99297b6;p=gosa.git Updated display for folderPath and folderName, do not show replacement {%cn} in folder Names git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20027 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderEditDialog.tpl b/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderEditDialog.tpl index d7270b94e..a6d41fd80 100644 --- a/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderEditDialog.tpl +++ b/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderEditDialog.tpl @@ -15,11 +15,11 @@ - + - +
{t}Name{/t}: {$folderItem.name}{$folderName}
{t}Path{/t}: {$folderItem.path}{$folderPath}
{/if} diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderEditDialog.inc b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderEditDialog.inc index e4e3ab87e..006bd227a 100644 --- a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderEditDialog.inc +++ b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderEditDialog.inc @@ -27,7 +27,13 @@ class FolderEditDialog extends plugin function execute() { - $smarty = get_smarty(); + $smarty = get_smarty(); + + // Prepare folder name and path + $smarty->assign('folderName', preg_replace("/\{%cn\}/", "Group name", $this->folderItem['name'])); + $smarty->assign('folderPath', preg_replace("/\{%cn\}/", "Group name", $this->folderItem['path'])); + + $smarty->assign('folderItem', $this->folderItem); $smarty->assign('permissions', $this->permissions); $smarty->assign('permissionCnt', count($this->permissions));