remove unneeded if condition
This commit is contained in:
parent
996b1e80c6
commit
68369ebb86
|
@ -19,13 +19,9 @@ class OC_Defaults {
|
||||||
private static $defaultSlogan = "web services under your control";
|
private static $defaultSlogan = "web services under your control";
|
||||||
|
|
||||||
private function themeExist($method) {
|
private function themeExist($method) {
|
||||||
if (OC_Util::getTheme() !== '' &&
|
if (OC_Util::getTheme() !== '' && method_exists('OC_Theme', $method)) {
|
||||||
//class_exists('OC_Theme') &&
|
|
||||||
method_exists('OC_Theme', $method)) {
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue