From 04c9de731234cd42c7f31a3440dce6f7867d21b2 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 27 Jan 2022 11:04:30 +0100 Subject: Add deprecation notice to script & addScript func Signed-off-by: Louis Chemineau --- lib/private/legacy/OC_Util.php | 2 +- lib/private/legacy/template/functions.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/private') diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index c2846511774..4b53bbca3fc 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -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 diff --git a/lib/private/legacy/template/functions.php b/lib/private/legacy/template/functions.php index e28cf02f7a3..56c488d5abe 100644 --- a/lib/private/legacy/template/functions.php +++ b/lib/private/legacy/template/functions.php @@ -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)) { -- cgit v1.2.3