From d2fd0282a3924b8f62d45f5746e639fac9af0549 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 22 Sep 2014 16:06:17 +0200 Subject: dont backport component --- templates/7.php | 17 ----------------- 1 file changed, 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 -- cgit v1.2.3