Skip to content
Snippets Groups Projects
Commit 8c18a9e9 authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

remove studip_json-functions, closes #3814

Closes #3814

Merge request studip/studip!2679
parent 5d69b2c3
No related merge requests found
......@@ -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
-
-
......@@ -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').
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment