summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2014-07-16 10:12:52 +0200
committerBjörn Schießle <schiessle@owncloud.com>2014-07-16 10:12:52 +0200
commit7d8a8e78fa7afad6a004341b67cab19f7a4eccf8 (patch)
tree13188e8463891ef1624922b700a332083097d780 /lib
parent015532622786b5bb1fca35646eded25243e05fc9 (diff)
parent6967d328e22f713e81d7ca32131002077c1ba4ae (diff)
downloadnextcloud-server-7d8a8e78fa7afad6a004341b67cab19f7a4eccf8.tar.gz
nextcloud-server-7d8a8e78fa7afad6a004341b67cab19f7a4eccf8.zip
Merge pull request #9640 from owncloud/fix_9627
make sure that 'OC_Theme' exists before checking if the method exists
Diffstat (limited to 'lib')
-rw-r--r--lib/private/defaults.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/defaults.php b/lib/private/defaults.php
index c039c30fbb9..a439bf0d6db 100644
--- a/lib/private/defaults.php
+++ b/lib/private/defaults.php
@@ -48,7 +48,7 @@ class OC_Defaults {
* @param string $method
*/
private function themeExist($method) {
- if (OC_Util::getTheme() !== '' && method_exists('OC_Theme', $method)) {
+ if (isset($this->theme) && method_exists($this->theme, $method)) {
return true;
}
return false;