From ce5ad7e7f48751b25ef9dd377fbbface2adb30b4 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Tue, 23 May 2017 15:20:54 +0200 Subject: Prefer custom theme over theming app MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/theming/lib/Util.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'apps/theming/lib') diff --git a/apps/theming/lib/Util.php b/apps/theming/lib/Util.php index 286756a4849..1df16ea4976 100644 --- a/apps/theming/lib/Util.php +++ b/apps/theming/lib/Util.php @@ -199,4 +199,17 @@ class Util { return $svg; } + /** + * Check if a custom theme is set in the server configuration + * + * @return bool + */ + public function isAlreadyThemed() { + $theme = $this->config->getSystemValue('theme', ''); + if ($theme !== '') { + return true; + } + return false; + } + } -- cgit v1.2.3