summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-01-27 11:04:30 +0100
committerLouis Chemineau <louis@chmn.me>2022-01-27 11:04:30 +0100
commit04c9de731234cd42c7f31a3440dce6f7867d21b2 (patch)
treec870133067549cf75fd6f22bbe2e6385939e3c56 /lib/private
parent3500d8b9805555211438509885b34e5ba60a9c8e (diff)
downloadnextcloud-server-04c9de731234cd42c7f31a3440dce6f7867d21b2.tar.gz
nextcloud-server-04c9de731234cd42c7f31a3440dce6f7867d21b2.zip
Add deprecation notice to script & addScript func
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/legacy/OC_Util.php2
-rw-r--r--lib/private/legacy/template/functions.php3
2 files changed, 3 insertions, 2 deletions
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)) {