summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-01-27 17:34:13 +0100
committerGitHub <noreply@github.com>2022-01-27 17:34:13 +0100
commit363bf208a0bde0761bfad512b1f61ab70c9e9baa (patch)
treee90dab87e9914e30c33fb1e8f0356960461de65e /lib/private
parent34f425c1504a79ef81f400862232bbd6776f5f7a (diff)
parent04c9de731234cd42c7f31a3440dce6f7867d21b2 (diff)
downloadnextcloud-server-363bf208a0bde0761bfad512b1f61ab70c9e9baa.tar.gz
nextcloud-server-363bf208a0bde0761bfad512b1f61ab70c9e9baa.zip
Merge pull request #30876 from nextcloud/docs/deprecate_addScript
Add deprecation notice to script & addScript func
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)) {