From c530b6354d2bd965abe1763244dc055e92932f8b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 19 Aug 2021 12:32:02 +0200 Subject: [PATCH] Reorder the items in migration/wsc54/php --- docs/migration/wsc54/php.md | 74 ++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/docs/migration/wsc54/php.md b/docs/migration/wsc54/php.md index cb5ff1af..99634c0f 100644 --- a/docs/migration/wsc54/php.md +++ b/docs/migration/wsc54/php.md @@ -1,42 +1,5 @@ # Migrating from WSC 5.4 - PHP -## File Deletion Package Installation Plugin - -Three new package installation plugins have been added to delete ACP templates with [acpTemplateDelete](../../package/pip/acp-template-delete.md), files with [fileDelete](../../package/pip/file-delete.md), and templates with [templateDelete](../../package/pip/template-delete.md). - - -## Language Package Installation Plugin - -[WoltLab/WCF#4261](https://github.com/WoltLab/WCF/pull/4261) has added support for deleting existing phrases with the `language` package installation plugin. - -The current structure of the language XML files - -{jinja{ codebox( - language="xml", - title="language/en.xml", - filepath="migration/wsc54/en_old.xml", -) }} - -is deprecated and should be replaced with the new structure with an explicit `` element like in the other package installation plugins: - -{jinja{ codebox( - language="xml", - title="language/en.xml", - filepath="migration/wsc54/en_new.xml", -) }} - -Additionally, to now also support deleting phrases with this package installation plugin, support for a `` element has been added: - -{jinja{ codebox( - language="xml", - title="language/en.xml", - filepath="migration/wsc54/en_new_with_delete.xml", -) }} - -Note that when deleting phrases, the category does not have to be specified because phrase identifiers are unique globally. - -!!! warning "Mixing the old structure and the new structure is not supported and will result in an error message during the import!" - ## Events Historically, events were tightly coupled with a single class, with the event object being an object of this class, expecting the event listener to consume public properties and method of the event object. @@ -180,6 +143,43 @@ The use of `encrypt` is recommended, unless it is certain that the SMTP server d See [WoltLab/WCF#4398](https://github.com/WoltLab/WCF/pull/4398) for details. +## File Deletion Package Installation Plugin + +Three new package installation plugins have been added to delete ACP templates with [acpTemplateDelete](../../package/pip/acp-template-delete.md), files with [fileDelete](../../package/pip/file-delete.md), and templates with [templateDelete](../../package/pip/template-delete.md). + + +## Language Package Installation Plugin + +[WoltLab/WCF#4261](https://github.com/WoltLab/WCF/pull/4261) has added support for deleting existing phrases with the `language` package installation plugin. + +The current structure of the language XML files + +{jinja{ codebox( + language="xml", + title="language/en.xml", + filepath="migration/wsc54/en_old.xml", +) }} + +is deprecated and should be replaced with the new structure with an explicit `` element like in the other package installation plugins: + +{jinja{ codebox( + language="xml", + title="language/en.xml", + filepath="migration/wsc54/en_new.xml", +) }} + +Additionally, to now also support deleting phrases with this package installation plugin, support for a `` element has been added: + +{jinja{ codebox( + language="xml", + title="language/en.xml", + filepath="migration/wsc54/en_new_with_delete.xml", +) }} + +Note that when deleting phrases, the category does not have to be specified because phrase identifiers are unique globally. + +!!! warning "Mixing the old structure and the new structure is not supported and will result in an error message during the import!" + ## Miscellaneous Additions - [`ValueIntervalFormFieldDependency`](../../php/api/form_builder/dependencies.md#valueintervalformfielddependency) -- 2.20.1