From 8c18a9e90c7f68c1bdb24fbc6d07f11a2ccc3c5f Mon Sep 17 00:00:00 2001 From: David Siegfried <david.siegfried@uni-vechta.de> Date: Fri, 15 Mar 2024 17:02:35 +0000 Subject: [PATCH] remove studip_json-functions, closes #3814 Closes #3814 Merge request studip/studip!2679 --- RELEASE-NOTES.md | 10 +++++----- lib/functions.php | 30 ------------------------------ 2 files changed, 5 insertions(+), 35 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 0eda6442900..733f116966e 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -4,7 +4,7 @@ ## Neue Features -- +- ## Breaking changes @@ -14,16 +14,16 @@ - Die Funktion `transformBeforeSave()` wurde entfernt. Sie kann ersatzlos entfernt werden. ([Issue #3159](https://gitlab.studip.de/studip/studip/-/issues/3159)) - Die schon lange nicht mehr genutzten Methoden zum Setzen, Auslesen und Enfernen von Schmuckgrafiken von Bildern für die Sidebar wurde entfernt. Die Methoden `Sidebar::setImage()`, `Sidebar::getImage()` sowie `Sidebar::removeImage()` müssen ersatzlos entfernt werden. ([Issue #3157](https://gitlab.studip.de/studip/studip/-/issues/3157)) - Der zweite Parameter für die Methode `Navigation::setImage()` wurde entfernt. Der Parameter schien sich auf das Bild zu beziehen, hat aber Attribute an dem Link gesetzt. Stattdessen muss die Methode `Navigation::setLinkAttributes()` verwendet werden. ([Issue #3578](https://gitlab.studip.de/studip/studip/-/issues/3578)) -- Die Unterstützung für LESS-Stylsheets in Plugins wurde entfernt. Als Alternative wird SCSS unterstützt. ([Issue #2720](https://gitlab.studip.de/studip/studip/-/issues/2720)) - +- Die Unterstützung für LESS-Stylsheets in Plugins wurde entfernt. Als Alternative wird SCSS unterstützt. ([Issue #2720](https://gitlab.studip.de/studip/studip/-/issues/2720)) +- Die Funktionen `studip_json_encode()` und `studip_json_decode()` wurden entfernt. Stattdessen müssen die Methode `json_encode()` und `json_decode()` verwendet werden. ([Issue #3814](https://gitlab.studip.de/studip/studip/-/issues/3814)) ## Security related issues - ## Deprecated Features -- +- ## Known Issues -- +- diff --git a/lib/functions.php b/lib/functions.php index 1fad95d5c71..90d4499c529 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -1087,36 +1087,6 @@ function legacy_studip_utf8decode($data) } } -/** - * Special stud.ip version of json_decode() that also converts the data - * from utf8 and creates an associative array by default (this differs - * from the default behavior of json_decode() !). - * - * @param String $json - * @param bool $assoc - * @param int $depth - * @param int $options - * @deprecated since Stud.IP 5.0 - */ -function studip_json_decode($json, $assoc = true, $depth = 512, $options = 0) -{ - return json_decode($json, $assoc, $depth, $options); -} - -/** - * Special stud.ip version of json_decode() that also converts the data - * to utf8. - * - * @param mixed $data - * @param int $options - * @param int $depth - * @deprecated since Stud.IP 5.0 - */ -function studip_json_encode($data, $options = 0) -{ - return json_encode($data, $options); -} - /** * Encode an HTTP header parameter (e.g. filename for 'Content-Disposition'). * -- GitLab