From 15e17a6075fe2c847e9d7278d7bf2e91fe8aa341 Mon Sep 17 00:00:00 2001 From: Sebijk Date: Fri, 13 Oct 2023 21:21:03 +0200 Subject: [PATCH] Port some changes from MBuchalik fork --- src/admin/templates/admins.edit.tpl | 4 +-- src/admin/templates/logs.tpl | 10 +++--- src/admin/templates/msg.tpl | 6 ++-- src/admin/templates/plugins.list.tpl | 2 +- src/admin/templates/prefs.languages.texts.tpl | 6 ++-- src/serverlib/calendar.class.php | 2 +- src/serverlib/common.inc.php | 4 +-- src/serverlib/mailbox.class.php | 2 +- src/serverlib/string.inc.php | 6 +++- src/serverlib/user.class.php | 2 +- .../modern/li/email.folders.edit.tpl | 35 +++++++++---------- .../modern/li/organizer.addressbook.edit.tpl | 18 +++++----- .../modern/li/organizer.calendar.showdate.tpl | 27 +++++++------- .../modern/li/organizer.todo.edit.tpl | 24 ++++++------- .../modern/li/organizer.todo.list.tpl | 10 +++--- .../modern/li/prefs.signatures.edit.tpl | 14 ++++---- src/templates/modern/li/search.details.tpl | 16 ++++----- src/templates/modern/li/webdisk.folder.tpl | 11 +++--- 18 files changed, 97 insertions(+), 102 deletions(-) diff --git a/src/admin/templates/admins.edit.tpl b/src/admin/templates/admins.edit.tpl index 5eac201..d34dc41 100644 --- a/src/admin/templates/admins.edit.tpl +++ b/src/admin/templates/admins.edit.tpl @@ -36,7 +36,7 @@ {lng p="areas"}: {foreach from=$permsTable item=permTitle key=permName} - +
{/foreach} @@ -45,7 +45,7 @@ {lng p="plugins"}: {foreach from=$pluginList item=pluginTitle key=pluginName} - +
{/foreach} diff --git a/src/admin/templates/logs.tpl b/src/admin/templates/logs.tpl index 2abe1e6..0888c08 100644 --- a/src/admin/templates/logs.tpl +++ b/src/admin/templates/logs.tpl @@ -46,19 +46,19 @@ {lng p="priority"}: - +   - +   - +   - +   - + diff --git a/src/admin/templates/msg.tpl b/src/admin/templates/msg.tpl index 096fff6..cf2ea84 100644 --- a/src/admin/templates/msg.tpl +++ b/src/admin/templates/msg.tpl @@ -23,10 +23,8 @@ {/if} -{if isset($reloadMenu)} +{if isset($reloadMenu) && $reloadMenu} -{/if} +{/if} \ No newline at end of file diff --git a/src/admin/templates/plugins.list.tpl b/src/admin/templates/plugins.list.tpl index e22a02c..a9e2802 100644 --- a/src/admin/templates/plugins.list.tpl +++ b/src/admin/templates/plugins.list.tpl @@ -47,7 +47,7 @@ -{if $reloadMenu} +{if isset($reloadMenu)} - - - - + + + + + @@ -52,11 +49,11 @@ {lng p="reminder"}:   - + {lng p="repeating"}:   - + @@ -102,4 +99,4 @@ - + \ No newline at end of file diff --git a/src/templates/modern/li/organizer.todo.edit.tpl b/src/templates/modern/li/organizer.todo.edit.tpl index 86f2733..6910e0d 100644 --- a/src/templates/modern/li/organizer.todo.edit.tpl +++ b/src/templates/modern/li/organizer.todo.edit.tpl @@ -6,17 +6,17 @@
-
+ - + @@ -30,21 +30,21 @@ @@ -62,9 +62,9 @@ @@ -83,4 +83,4 @@
{if $task}{lng p="edittask"}{else}{lng p="addtask"}{/if} {if isset($task)}{lng p="edittask"}{else}{lng p="addtask"}{/if}
*
{lng p="begin"}: - {html_select_date prefix="beginn" time=$task.beginn end_year="+5" start_year="-5" field_order="DMY" field_separator="."}, - {html_select_time prefix="beginn" time=$task.beginn display_seconds=false} + {html_select_date prefix="beginn" time=$task.beginn|default:0 end_year="+5" start_year="-5" field_order="DMY" field_separator="."}, + {html_select_time prefix="beginn" time=$task.beginn|default:0 display_seconds=false}
{lng p="due"}: - {html_select_date prefix="faellig" time=$task.faellig end_year="+5" start_year="-5" field_order="DMY" field_separator="."}, - {html_select_time prefix="faellig" time=$task.faellig display_seconds=false} + {html_select_date prefix="faellig" time=$task.faellig|default:0 end_year="+5" start_year="-5" field_order="DMY" field_separator="."}, + {html_select_time prefix="faellig" time=$task.faellig|default:0 display_seconds=false}
* - % + %
-
+ \ No newline at end of file diff --git a/src/templates/modern/li/organizer.todo.list.tpl b/src/templates/modern/li/organizer.todo.list.tpl index 34172a5..f7d0af8 100644 --- a/src/templates/modern/li/organizer.todo.list.tpl +++ b/src/templates/modern/li/organizer.todo.list.tpl @@ -7,7 +7,7 @@ {lng p="title"} - + {lng p="due"} @@ -18,12 +18,12 @@ -   +    {lng p="undonetasks"} - + {foreach from=$todoList key=taskID item=task}{if $task.akt_status!=64} {cycle values="listTableTD,listTableTD2" assign="class"} @@ -67,7 +67,7 @@ - {if $haveDoneTasks} + {if isset($haveDoneTasks)}   @@ -140,4 +140,4 @@ enableTodoDragTargets(); EBID('newTaskText').focus(); //--> - + \ No newline at end of file diff --git a/src/templates/modern/li/prefs.signatures.edit.tpl b/src/templates/modern/li/prefs.signatures.edit.tpl index 0bb1fc1..d5e3102 100644 --- a/src/templates/modern/li/prefs.signatures.edit.tpl +++ b/src/templates/modern/li/prefs.signatures.edit.tpl @@ -1,27 +1,27 @@
- {if $signature}{lng p="editsignature"}{else}{lng p="addsignature"}{/if} + {if isset($signature)}{lng p="editsignature"}{else}{lng p="addsignature"}{/if}
-
+ - + @@ -32,12 +32,10 @@ @@ -52,4 +50,4 @@
{if $signature}{lng p="editsignature"}{else}{lng p="addsignature"}{/if} {if isset($signature)}{lng p="editsignature"}{else}{lng p="addsignature"}{/if}
* - +
- +
-
+ \ No newline at end of file diff --git a/src/templates/modern/li/search.details.tpl b/src/templates/modern/li/search.details.tpl index 5b5aa50..5c488f1 100644 --- a/src/templates/modern/li/search.details.tpl +++ b/src/templates/modern/li/search.details.tpl @@ -22,20 +22,20 @@  
{lng p="title"} - {if $sortColumn=='title'}{/if} + {if isset($sortColumn) && $sortColumn=='title'}{/if} {lng p="date"} - {if $sortColumn=='date'}{/if} + {if isset($sortColumn) && $sortColumn=='date'}{/if} {lng p="size"} - {if $sortColumn=='size'}{/if} + {if isset($sortColumn) && $sortColumn=='size'}{/if} {lng p="relevance"} - {if $sortColumn=='score'}{/if} + {if isset($sortColumn) && $sortColumn=='score'}{/if} - {if $results} + {if isset($results)} {foreach from=$results item=resultCat key=resultCatID} - +   @@ -47,7 +47,7 @@ {cycle values="listTableTR,listTableTR2" assign="class"} - + @@ -65,7 +65,7 @@ {if !empty($result.score)}{$result.score} %{else}-{/if} {/foreach} - {if $resultCat.massActions} + {if isset($resultCat.massActions) && $resultCat.massActions} diff --git a/src/templates/modern/li/webdisk.folder.tpl b/src/templates/modern/li/webdisk.folder.tpl index fcd41bb..825a592 100644 --- a/src/templates/modern/li/webdisk.folder.tpl +++ b/src/templates/modern/li/webdisk.folder.tpl @@ -25,7 +25,7 @@
- {if $upload} + {if isset($upload)}
{lng p="uploadfiles"} @@ -119,21 +119,20 @@ {hook id="webdisk.folder.tpl:foot"} - {if !$smarty.post.inline} + {if !isset($smarty.post.inline)} {/if} @@ -143,4 +142,4 @@ + \ No newline at end of file