diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index c2846511774b5..4b53bbca3fc46 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -580,7 +580,7 @@ private static function generatePath($application, $directory, $file) { /** * 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 e28cf02f7a35c..56c488d5abe79 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)) {