[Pkg-owncloud-commits] [owncloud] 31/59: make sure that 'OC_Theme' exists before checking if the method exists

David Prévot taffit at moszumanska.debian.org
Fri Jul 18 16:19:27 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit cca04f35145df1a769fd340a13611ef5c6ad374a
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date:   Tue Jul 15 15:39:44 2014 +0200

    make sure that 'OC_Theme' exists before checking if the method exists
---
 lib/private/defaults.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/defaults.php b/lib/private/defaults.php
index c039c30..a439bf0 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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list