diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-22 16:06:17 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-22 16:06:17 +0200 |
commit | d2fd0282a3924b8f62d45f5746e639fac9af0549 (patch) | |
tree | 3fd0a8e9e3045bf5c3d4b8f297399582c88b2e23 | |
parent | cfd8513e97ad72c173b6fa613634678892b66401 (diff) |
dont backport component
-rw-r--r-- | templates/7.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/templates/7.php b/templates/7.php index 8450eca7c..0e2355fd3 100644 --- a/templates/7.php +++ b/templates/7.php @@ -35,20 +35,3 @@ function style($app, $file) { } } -/** - * Shortcut for HTML imports - * @param string $app the appname - * @param string|string[] $file the path relative to the app's component folder, - * if an array is given it will add all components - */ -function component($app, $file) { - if(is_array($file)) { - foreach($file as $f) { - $url = link_to($app, 'component/' . $f . '.html'); - \OCP\Util::addHeader('link', array('rel' => 'import', 'href' => $url)); - } - } else { - $url = link_to($app, 'component/' . $file . '.html'); - \OCP\Util::addHeader('link', array('rel' => 'import', 'href' => $url)); - } -}
\ No newline at end of file |