diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-16 12:37:44 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-16 12:37:44 +0200 |
commit | d5cb2ff75dd6734d5de50fe27a6bc224b1809b15 (patch) | |
tree | 0a3db690c2375cc98068eb5da1b19d3eb6c3ce48 /templates/index.php | |
parent | ad701076c12795609d0c6ae0cb9b40a001726dea (diff) |
backport 7 fixes
Diffstat (limited to 'templates/index.php')
-rw-r--r-- | templates/index.php | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/templates/index.php b/templates/index.php index 4e40cfc04..3d277dbbf 100644 --- a/templates/index.php +++ b/templates/index.php @@ -1,4 +1,15 @@ <?php +// owncloud 7 backported style sheets +$version = \OCP\Util::getVersion(); + +if ($version[0] === 7 && $version[1] === 0 && $version[2] < 3) { + require_once __DIR__ . '/7.php'; +} + +if($version[0] > 7 && $version[1] <= 8) { + style('news', '7'); +} + script('news', [ 'vendor/es6-shim/es6-shim.min', 'vendor/angular/angular.min', @@ -15,12 +26,6 @@ style('news', [ 'settings', 'custom' ]); - -// owncloud 7 backported style sheets -$version = \OCP\Util::getVersion(); -if($version[0] > 7 && $version[1] <= 8) { - style('news', '7'); -} ?> |