Merge pull request #30876 from nextcloud/docs/deprecate_addScript

Add deprecation notice to script & addScript func
This commit is contained in:
Vincent Petry 2022-01-27 17:34:13 +01:00 committed by GitHub
commit 363bf208a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -580,7 +580,7 @@ class OC_Util {
/**
* add a javascript file
*
* @deprecated 24.0.0
* @deprecated 24.0.0 - Use \OCP\Util::addScript
*
* @param string $application application id
* @param string|null $file filename

View file

@ -118,10 +118,11 @@ function print_unescaped($string) {
* they are coming from a template registration.
* Please consider moving them into the relevant controller
*
* @deprecated 24.0.0 - Use \OCP\Util::addScript
*
* @param string $app the appname
* @param string|string[] $file the filename,
* if an array is given it will add all scripts
* @deprecated 23.1.0
*/
function script($app, $file = null) {
if (is_array($file)) {