Browse Source

Adapts the theming util to the new core logo image path

Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
pull/10898/head
Michael Weimann 7 years ago
parent
commit
044ab0cbec
No known key found for this signature in database GPG Key ID: 34F0524D4DA694A1
  1. 4
      apps/theming/lib/Util.php
  2. 2
      apps/theming/tests/UtilTest.php

4
apps/theming/lib/Util.php

@ -161,7 +161,7 @@ class Util {
}
} catch (NotFoundException $e) {}
}
return \OC::$SERVERROOT . '/core/img/logo.svg';
return \OC::$SERVERROOT . '/core/img/logo/logo.svg';
}
/**
@ -223,7 +223,7 @@ class Util {
/**
* Check if a custom theme is set in the server configuration
*
*
* @return bool
*/
public function isAlreadyThemed() {

2
apps/theming/tests/UtilTest.php

@ -139,7 +139,7 @@ class UtilTest extends TestCase {
public function dataGetAppIcon() {
return [
['user_ldap', \OC_App::getAppPath('user_ldap') . '/img/app.svg'],
['noapplikethis', \OC::$SERVERROOT . '/core/img/logo.svg'],
['noapplikethis', \OC::$SERVERROOT . '/core/img/logo/logo.svg'],
['comments', \OC_App::getAppPath('comments') . '/img/comments.svg'],
];
}

Loading…
Cancel
Save