openrat-cms

OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs | README

commit 90ba772db20c7c5f77580f9c52432d1245a17d27
parent 04ae563d9e4d6acdd1838a3907ca380858685e2c
Author: Jan Dankert <develop@jandankert.de>
Date:   Sat, 31 Oct 2020 02:41:43 +0100

Fix: Language key "new" is crashing in PHP 5.x.

Diffstat:
Mmodules/cms/ui/themes/default/html/views/file/compress.php | 2+-
Mmodules/cms/ui/themes/default/html/views/file/compress.tpl.src.xml | 2+-
Mmodules/cms/ui/themes/default/html/views/file/uncompress.php | 2+-
Mmodules/cms/ui/themes/default/html/views/file/uncompress.tpl.src.xml | 2+-
Mmodules/cms/ui/themes/default/html/views/folder/edit.php | 2+-
Mmodules/cms/ui/themes/default/html/views/folder/edit.tpl.src.xml | 2+-
Mmodules/cms/ui/themes/default/html/views/folder/show.php | 2+-
Mmodules/cms/ui/themes/default/html/views/folder/show.tpl.src.xml | 2+-
Mmodules/cms/ui/themes/default/html/views/grouplist/show.tpl.src.xml | 2+-
Mmodules/cms/ui/themes/default/html/views/image/compress.php | 2+-
Mmodules/cms/ui/themes/default/html/views/image/compress.tpl.src.xml | 2+-
Mmodules/cms/ui/themes/default/html/views/image/uncompress.tpl.src.xml | 2+-
Mmodules/cms/ui/themes/default/html/views/languagelist/show.php | 2+-
Mmodules/cms/ui/themes/default/html/views/languagelist/show.tpl.src.xml | 2+-
Mmodules/cms/ui/themes/default/html/views/modellist/show.tpl.src.xml | 2+-
Mmodules/cms/ui/themes/default/html/views/object/rights.php | 2+-
Mmodules/cms/ui/themes/default/html/views/object/rights.tpl.src.xml | 2+-
Mmodules/cms/ui/themes/default/html/views/projectlist/edit.tpl.src.xml | 4++--
Mmodules/cms/ui/themes/default/html/views/templatelist/show.tpl.src.xml | 2+-
Mmodules/cms/ui/themes/default/html/views/text/compress.php | 2+-
Mmodules/cms/ui/themes/default/html/views/text/compress.tpl.src.xml | 2+-
Mmodules/cms/ui/themes/default/html/views/text/uncompress.tpl.src.xml | 2+-
Mmodules/cms/ui/themes/default/html/views/userlist/show.php | 2+-
Mmodules/cms/ui/themes/default/html/views/userlist/show.tpl.src.xml | 2+-
Mmodules/language/Language_CN.class.php | 1-
Mmodules/language/Language_DE.class.php | 1-
Mmodules/language/Language_EN.class.php | 1-
Mmodules/language/Language_ES.class.php | 1-
Mmodules/language/Language_FR.class.php | 1-
Mmodules/language/Language_IT.class.php | 1-
Mmodules/language/Language_RU.class.php | 1-
Mmodules/language/Messages.class.php | 1-
Mmodules/language/language.yml | 3---
33 files changed, 25 insertions(+), 36 deletions(-)

diff --git a/modules/cms/ui/themes/default/html/views/file/compress.php b/modules/cms/ui/themes/default/html/views/file/compress.php @@ -42,7 +42,7 @@ <br /><?php echo O::escapeHtml('') ?> <input type="<?php echo O::escapeHtml('radio') ?>" name="<?php echo O::escapeHtml('replace') ?>" value="<?php echo O::escapeHtml('') ?>" <?php if(@$replace=='0'){ ?>checked="<?php echo O::escapeHtml('checked') ?>"<?php } ?> class="<?php echo O::escapeHtml('or-form-radio') ?>" /><?php echo O::escapeHtml('') ?> <label class="<?php echo O::escapeHtml('or-label') ?>"><?php echo O::escapeHtml('') ?> - <span><?php echo O::escapeHtml(''.@O::lang('new').'') ?> + <span><?php echo O::escapeHtml(''.@O::lang('add').'') ?> </span> </label> </div> diff --git a/modules/cms/ui/themes/default/html/views/file/compress.tpl.src.xml b/modules/cms/ui/themes/default/html/views/file/compress.tpl.src.xml @@ -17,7 +17,7 @@ <newline/> <radio name="replace" value="0"/> <label for="replace_0"> - <text value="${message:new}"/> + <text value="${message:add}"/> </label> </part> </fieldset> diff --git a/modules/cms/ui/themes/default/html/views/file/uncompress.php b/modules/cms/ui/themes/default/html/views/file/uncompress.php @@ -34,7 +34,7 @@ <br /><?php echo O::escapeHtml('') ?> <input type="<?php echo O::escapeHtml('radio') ?>" name="<?php echo O::escapeHtml('replace') ?>" value="<?php echo O::escapeHtml('') ?>" <?php if(@$replace=='0'){ ?>checked="<?php echo O::escapeHtml('checked') ?>"<?php } ?> class="<?php echo O::escapeHtml('or-form-radio') ?>" /><?php echo O::escapeHtml('') ?> <label class="<?php echo O::escapeHtml('or-label') ?>"><?php echo O::escapeHtml('') ?> - <span><?php echo O::escapeHtml(''.@O::lang('new').'') ?> + <span><?php echo O::escapeHtml(''.@O::lang('add').'') ?> </span> </label> </div> diff --git a/modules/cms/ui/themes/default/html/views/file/uncompress.tpl.src.xml b/modules/cms/ui/themes/default/html/views/file/uncompress.tpl.src.xml @@ -13,7 +13,7 @@ <newline/> <radio name="replace" value="0"/> <label for="replace_0"> - <text value="${message:new}"/> + <text value="${message:add}"/> </label> </part> </fieldset> diff --git a/modules/cms/ui/themes/default/html/views/folder/edit.php b/modules/cms/ui/themes/default/html/views/folder/edit.php @@ -70,7 +70,7 @@ <a target="<?php echo O::escapeHtml('_self') ?>" data-type="<?php echo O::escapeHtml('dialog') ?>" data-action="<?php echo O::escapeHtml('folder') ?>" data-method="<?php echo O::escapeHtml('create') ?>" data-id="<?php echo O::escapeHtml('') ?>" data-extra-dialogAction="<?php echo O::escapeHtml('folder') ?>" data-extra-dialogMethod="<?php echo O::escapeHtml('create') ?>" data-extra="<?php echo O::escapeHtml('{\'dialogAction\':\'folder\',\'dialogMethod\':\'create\'}') ?>" href="<?php echo O::escapeHtml('#/folder') ?>" class="<?php echo O::escapeHtml('or-link or-btn') ?>"><?php echo O::escapeHtml('') ?> <i class="<?php echo O::escapeHtml('or-image-icon or-image-icon--action-new') ?>"><?php echo O::escapeHtml('') ?> </i> - <span><?php echo O::escapeHtml(''.@O::lang('new').'') ?> + <span><?php echo O::escapeHtml(''.@O::lang('add').'') ?> </span> </a> </div> \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/edit.tpl.src.xml b/modules/cms/ui/themes/default/html/views/folder/edit.tpl.src.xml @@ -51,7 +51,7 @@ <part class="act-clickable"> <link type="dialog" action="folder" subaction="create" class="btn"> <image action="new"/> - <text value="${message:new}"/> + <text value="${message:add}"/> </link> </part> </output> diff --git a/modules/cms/ui/themes/default/html/views/folder/show.php b/modules/cms/ui/themes/default/html/views/folder/show.php @@ -65,7 +65,7 @@ <a target="<?php echo O::escapeHtml('_self') ?>" data-type="<?php echo O::escapeHtml('view') ?>" data-action="<?php echo O::escapeHtml('folder') ?>" data-method="<?php echo O::escapeHtml('create') ?>" data-id="<?php echo O::escapeHtml('') ?>" data-extra="<?php echo O::escapeHtml('[]') ?>" href="<?php echo O::escapeHtml('#/folder') ?>" class="<?php echo O::escapeHtml('or-link or-btn') ?>"><?php echo O::escapeHtml('') ?> <i class="<?php echo O::escapeHtml('or-image-icon or-image-icon--action-new') ?>"><?php echo O::escapeHtml('') ?> </i> - <span><?php echo O::escapeHtml(''.@O::lang('new').'') ?> + <span><?php echo O::escapeHtml(''.@O::lang('add').'') ?> </span> </a> </div> \ No newline at end of file diff --git a/modules/cms/ui/themes/default/html/views/folder/show.tpl.src.xml b/modules/cms/ui/themes/default/html/views/folder/show.tpl.src.xml @@ -47,7 +47,7 @@ <part class="act-clickable"> <link type="view" action="folder" subaction="create" class="btn"> <image action="new"/> - <text value="${message:new}"/> + <text value="${message:add}"/> </link> </part> </output> diff --git a/modules/cms/ui/themes/default/html/views/grouplist/show.tpl.src.xml b/modules/cms/ui/themes/default/html/views/grouplist/show.tpl.src.xml @@ -19,7 +19,7 @@ <column colspan="2" class="act-clickable"> <link type="dialog" subaction="add" name="${message:menu_add}"> <image method="add"/> - <text value="${message:new}"/> + <text value="${message:add}"/> </link> </column> </row> diff --git a/modules/cms/ui/themes/default/html/views/image/compress.php b/modules/cms/ui/themes/default/html/views/image/compress.php @@ -42,7 +42,7 @@ <br /><?php echo O::escapeHtml('') ?> <input type="<?php echo O::escapeHtml('radio') ?>" name="<?php echo O::escapeHtml('replace') ?>" value="<?php echo O::escapeHtml('') ?>" <?php if(@$replace=='0'){ ?>checked="<?php echo O::escapeHtml('checked') ?>"<?php } ?> class="<?php echo O::escapeHtml('or-form-radio') ?>" /><?php echo O::escapeHtml('') ?> <label class="<?php echo O::escapeHtml('or-label') ?>"><?php echo O::escapeHtml('') ?> - <span><?php echo O::escapeHtml(''.@O::lang('new').'') ?> + <span><?php echo O::escapeHtml(''.@O::lang('add').'') ?> </span> </label> </div> diff --git a/modules/cms/ui/themes/default/html/views/image/compress.tpl.src.xml b/modules/cms/ui/themes/default/html/views/image/compress.tpl.src.xml @@ -16,7 +16,7 @@ <newline/> <radio name="replace" value="0"/> <label for="replace_0"> - <text value="${message:new}"/> + <text value="${message:add}"/> </label> </part> </fieldset> diff --git a/modules/cms/ui/themes/default/html/views/image/uncompress.tpl.src.xml b/modules/cms/ui/themes/default/html/views/image/uncompress.tpl.src.xml @@ -13,7 +13,7 @@ <newline/> <radio name="replace" value="0"/> <label for="replace_0"> - <text value="${message:new}"/> + <text value="${message:add}"/> </label> </part> </fieldset> diff --git a/modules/cms/ui/themes/default/html/views/languagelist/show.php b/modules/cms/ui/themes/default/html/views/languagelist/show.php @@ -62,7 +62,7 @@ <a target="<?php echo O::escapeHtml('_self') ?>" data-type="<?php echo O::escapeHtml('dialog') ?>" data-action="<?php echo O::escapeHtml('') ?>" data-method="<?php echo O::escapeHtml('add') ?>" data-id="<?php echo O::escapeHtml('') ?>" data-extra-dialogAction="<?php echo O::escapeHtml('') ?>" data-extra-dialogMethod="<?php echo O::escapeHtml('add') ?>" data-extra="<?php echo O::escapeHtml('{\'dialogAction\':null,\'dialogMethod\':\'add\'}') ?>" href="<?php echo O::escapeHtml('') ?>" class="<?php echo O::escapeHtml('or-link') ?>"><?php echo O::escapeHtml('') ?> <i class="<?php echo O::escapeHtml('or-image-icon or-image-icon--method-add') ?>"><?php echo O::escapeHtml('') ?> </i> - <span><?php echo O::escapeHtml(''.@O::lang('new').'') ?> + <span><?php echo O::escapeHtml(''.@O::lang('add').'') ?> </span> </a> </td> diff --git a/modules/cms/ui/themes/default/html/views/languagelist/show.tpl.src.xml b/modules/cms/ui/themes/default/html/views/languagelist/show.tpl.src.xml @@ -47,7 +47,7 @@ <column colspan="3" class="act-clickable"> <link type="dialog" subaction="add"> <image method="add"/> - <text value="${message:new}"/> + <text value="${message:add}"/> </link> </column> </row> diff --git a/modules/cms/ui/themes/default/html/views/modellist/show.tpl.src.xml b/modules/cms/ui/themes/default/html/views/modellist/show.tpl.src.xml @@ -42,7 +42,7 @@ <column colspan="2" class="act-clickable"> <link type="dialog" subaction="add"> <image method="add"/> - <text value="${message:new}"/> + <text value="${message:add}"/> </link> </column> </row> diff --git a/modules/cms/ui/themes/default/html/views/object/rights.php b/modules/cms/ui/themes/default/html/views/object/rights.php @@ -86,7 +86,7 @@ <a target="<?php echo O::escapeHtml('_self') ?>" date-name="<?php echo O::escapeHtml(''.@O::lang('menu_aclform').'') ?>" name="<?php echo O::escapeHtml(''.@O::lang('menu_aclform').'') ?>" data-type="<?php echo O::escapeHtml('dialog') ?>" data-action="<?php echo O::escapeHtml('') ?>" data-method="<?php echo O::escapeHtml('aclform') ?>" data-id="<?php echo O::escapeHtml('') ?>" data-extra-dialogAction="<?php echo O::escapeHtml('') ?>" data-extra-dialogMethod="<?php echo O::escapeHtml('aclform') ?>" data-extra="<?php echo O::escapeHtml('{\'dialogAction\':null,\'dialogMethod\':\'aclform\'}') ?>" href="<?php echo O::escapeHtml('') ?>" class="<?php echo O::escapeHtml('or-link') ?>"><?php echo O::escapeHtml('') ?> <i class="<?php echo O::escapeHtml('or-image-icon or-image-icon--method-add') ?>"><?php echo O::escapeHtml('') ?> </i> - <span><?php echo O::escapeHtml(''.@O::lang('new').'') ?> + <span><?php echo O::escapeHtml(''.@O::lang('add').'') ?> </span> </a> </td> diff --git a/modules/cms/ui/themes/default/html/views/object/rights.tpl.src.xml b/modules/cms/ui/themes/default/html/views/object/rights.tpl.src.xml @@ -65,7 +65,7 @@ <column colspan="99" class="act-clickable"> <link type="dialog" name="${message:menu_aclform}" subaction="aclform"> <image method="add"/> - <text value="${message:new}"/> + <text value="${message:add}"/> </link> </column> </row> diff --git a/modules/cms/ui/themes/default/html/views/projectlist/edit.tpl.src.xml b/modules/cms/ui/themes/default/html/views/projectlist/edit.tpl.src.xml @@ -17,9 +17,9 @@ </list> <row class="data"> <column class="act-clickable"> - <link type="dialog" subaction="add" name="${message:new}"> + <link type="dialog" subaction="add" name="${message:add}"> <image method="add"/> - <text value="${message:new}"/> + <text value="${message:add}"/> </link> </column> </row> diff --git a/modules/cms/ui/themes/default/html/views/templatelist/show.tpl.src.xml b/modules/cms/ui/themes/default/html/views/templatelist/show.tpl.src.xml @@ -24,7 +24,7 @@ <column colspan="1" class="act-clickable"> <link type="dialog" subaction="add"> <image method="add"/> - <text value="${message:new}"/> + <text value="${message:add}"/> </link> </column> </row> diff --git a/modules/cms/ui/themes/default/html/views/text/compress.php b/modules/cms/ui/themes/default/html/views/text/compress.php @@ -42,7 +42,7 @@ <br /><?php echo O::escapeHtml('') ?> <input type="<?php echo O::escapeHtml('radio') ?>" name="<?php echo O::escapeHtml('replace') ?>" value="<?php echo O::escapeHtml('') ?>" <?php if(@$replace=='0'){ ?>checked="<?php echo O::escapeHtml('checked') ?>"<?php } ?> class="<?php echo O::escapeHtml('or-form-radio') ?>" /><?php echo O::escapeHtml('') ?> <label class="<?php echo O::escapeHtml('or-label') ?>"><?php echo O::escapeHtml('') ?> - <span><?php echo O::escapeHtml(''.@O::lang('new').'') ?> + <span><?php echo O::escapeHtml(''.@O::lang('add').'') ?> </span> </label> </div> diff --git a/modules/cms/ui/themes/default/html/views/text/compress.tpl.src.xml b/modules/cms/ui/themes/default/html/views/text/compress.tpl.src.xml @@ -16,7 +16,7 @@ <newline/> <radio name="replace" value="0"/> <label for="replace_0"> - <text value="${message:new}"/> + <text value="${message:add}"/> </label> </part> </fieldset> diff --git a/modules/cms/ui/themes/default/html/views/text/uncompress.tpl.src.xml b/modules/cms/ui/themes/default/html/views/text/uncompress.tpl.src.xml @@ -13,7 +13,7 @@ <newline/> <radio name="replace" value="0"/> <label for="replace_0"> - <text value="${message:new}"/> + <text value="${message:add}"/> </label> </part> </fieldset> diff --git a/modules/cms/ui/themes/default/html/views/userlist/show.php b/modules/cms/ui/themes/default/html/views/userlist/show.php @@ -55,7 +55,7 @@ <a target="<?php echo O::escapeHtml('_self') ?>" date-name="<?php echo O::escapeHtml(''.@O::lang('add').'') ?>" name="<?php echo O::escapeHtml(''.@O::lang('add').'') ?>" data-type="<?php echo O::escapeHtml('dialog') ?>" data-action="<?php echo O::escapeHtml('') ?>" data-method="<?php echo O::escapeHtml('add') ?>" data-id="<?php echo O::escapeHtml('') ?>" data-extra-dialogAction="<?php echo O::escapeHtml('') ?>" data-extra-dialogMethod="<?php echo O::escapeHtml('add') ?>" data-extra="<?php echo O::escapeHtml('{\'dialogAction\':null,\'dialogMethod\':\'add\'}') ?>" href="<?php echo O::escapeHtml('') ?>" class="<?php echo O::escapeHtml('or-link') ?>"><?php echo O::escapeHtml('') ?> <i class="<?php echo O::escapeHtml('or-image-icon or-image-icon--method-add') ?>"><?php echo O::escapeHtml('') ?> </i> - <span><?php echo O::escapeHtml(''.@O::lang('new').'') ?> + <span><?php echo O::escapeHtml(''.@O::lang('add').'') ?> </span> </a> </td> diff --git a/modules/cms/ui/themes/default/html/views/userlist/show.tpl.src.xml b/modules/cms/ui/themes/default/html/views/userlist/show.tpl.src.xml @@ -39,7 +39,7 @@ <column colspan="3" class="act-clickable"> <link type="dialog" subaction="add" name="${message:add}"> <image method="add"/> - <text value="${message:new}"/> + <text value="${message:add}"/> </link> </column> </row> diff --git a/modules/language/Language_CN.class.php b/modules/language/Language_CN.class.php @@ -1323,6 +1323,5 @@ Thank you.', 'TEXT'=>'Text', 'APPLY'=>'Apply', 'URL'=>'URL', -'NEW'=>'New', ];} } \ No newline at end of file diff --git a/modules/language/Language_DE.class.php b/modules/language/Language_DE.class.php @@ -1328,6 +1328,5 @@ Vielen Dank.', 'TEXT'=>'Text', 'APPLY'=>'√úbernehmen', 'URL'=>'Url', -'NEW'=>'Neu', ];} } \ No newline at end of file diff --git a/modules/language/Language_EN.class.php b/modules/language/Language_EN.class.php @@ -1323,6 +1323,5 @@ Thank you.', 'TEXT'=>'Text', 'APPLY'=>'Apply', 'URL'=>'URL', -'NEW'=>'New', ];} } \ No newline at end of file diff --git a/modules/language/Language_ES.class.php b/modules/language/Language_ES.class.php @@ -1348,6 +1348,5 @@ MENU_INDEX_ADMINISTRATION_DESC =', 'TEXT'=>'Text', 'APPLY'=>'Apply', 'URL'=>'URL', -'NEW'=>'New', ];} } \ No newline at end of file diff --git a/modules/language/Language_FR.class.php b/modules/language/Language_FR.class.php @@ -1324,6 +1324,5 @@ Merci.', 'TEXT'=>'Text', 'APPLY'=>'Apply', 'URL'=>'URL', -'NEW'=>'New', ];} } \ No newline at end of file diff --git a/modules/language/Language_IT.class.php b/modules/language/Language_IT.class.php @@ -1324,6 +1324,5 @@ Gracias.', 'TEXT'=>'Text', 'APPLY'=>'Apply', 'URL'=>'URL', -'NEW'=>'New', ];} } \ No newline at end of file diff --git a/modules/language/Language_RU.class.php b/modules/language/Language_RU.class.php @@ -1324,6 +1324,5 @@ if you do not know where this mail comes from, please ignore it.', 'TEXT'=>'Text', 'APPLY'=>'Apply', 'URL'=>'URL', -'NEW'=>'New', ];} } \ No newline at end of file diff --git a/modules/language/Messages.class.php b/modules/language/Messages.class.php @@ -1284,5 +1284,4 @@ class Messages { const TEXT = 'TEXT'; const APPLY = 'APPLY'; const URL = 'URL'; - const NEW = 'NEW'; } \ No newline at end of file diff --git a/modules/language/language.yml b/modules/language/language.yml @@ -6427,6 +6427,3 @@ APPLY: URL: en: URL de: Url -NEW: - en: New - de: Neu