mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #30876 from nextcloud/docs/deprecate_addScript
Add deprecation notice to script & addScript func
This commit is contained in:
commit
363bf208a0
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue