From 6f23208ff68d4a8bf2fc20b1fcad6b5e636fb584 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 30 Aug 2013 19:01:36 +0200 Subject: conditionally load in stylesheets for owncloud 6 to fix layout problems, fix #320 --- templates/main.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'templates') diff --git a/templates/main.php b/templates/main.php index 35c8e31a5..ab70caddf 100644 --- a/templates/main.php +++ b/templates/main.php @@ -18,6 +18,15 @@ \OCP\Util::addStyle('news', 'settings'); \OCP\Util::addStyle('news', 'showall'); +// stylesheets for different OC versions +$version = \OCP\Util::getVersion(); + +// owncloud 6 +if($version[0] > 5 || ($version[0] >= 5 && $version[1] >= 80)) { + \OCP\Util::addStyle('news', 'owncloud6'); +} + + ?>
-- cgit v1.2.3