diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-22 18:05:47 +0400 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-22 18:05:47 +0400 |
commit | cfd8513e97ad72c173b6fa613634678892b66401 (patch) | |
tree | 81017065b68a10092da03c20fdf9c010e238e77d | |
parent | 56f571e26bddeac9a7171df29fae3ea32274b92f (diff) |
use public util for backport
-rw-r--r-- | templates/7.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/7.php b/templates/7.php index 06c73b277..8450eca7c 100644 --- a/templates/7.php +++ b/templates/7.php @@ -12,10 +12,10 @@ function script($app, $file) { if(is_array($file)) { foreach($file as $f) { - OC_Util::addScript($app, $f); + \OCP\Util::addScript($app, $f); } } else { - OC_Util::addScript($app, $file); + \OCP\Util::addScript($app, $file); } } @@ -28,10 +28,10 @@ function script($app, $file) { function style($app, $file) { if(is_array($file)) { foreach($file as $f) { - OC_Util::addStyle($app, $f); + \OCP\Util::addStyle($app, $f); } } else { - OC_Util::addStyle($app, $file); + \OCP\Util::addStyle($app, $file); } } @@ -45,10 +45,10 @@ function component($app, $file) { if(is_array($file)) { foreach($file as $f) { $url = link_to($app, 'component/' . $f . '.html'); - OC_Util::addHeader('link', array('rel' => 'import', 'href' => $url)); + \OCP\Util::addHeader('link', array('rel' => 'import', 'href' => $url)); } } else { $url = link_to($app, 'component/' . $file . '.html'); - OC_Util::addHeader('link', array('rel' => 'import', 'href' => $url)); + \OCP\Util::addHeader('link', array('rel' => 'import', 'href' => $url)); } }
\ No newline at end of file |