]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Theme.php
Merge pull request #6381 from MrPetovan/bug/2800-fix-accordion-ios
[friendica.git] / src / Core / Theme.php
index 7e5b89d2f9c506146c2f8c96fd788c4627a0602f..1524c29bacfe2a8cd878f51ad01e2944d88839d5 100644 (file)
@@ -6,10 +6,9 @@
 
 namespace Friendica\Core;
 
+use Friendica\Core\Logger;
 use Friendica\Core\System;
 
-require_once 'boot.php';
-
 /**
  * Some functions to handle themes
  */
@@ -106,7 +105,7 @@ class Theme
        // install and uninstall theme
        public static function uninstall($theme)
        {
-               logger("Addons: uninstalling theme " . $theme);
+               Logger::log("Addons: uninstalling theme " . $theme);
 
                include_once "view/theme/$theme/theme.php";
                if (function_exists("{$theme}_uninstall")) {
@@ -123,7 +122,7 @@ class Theme
                        return false;
                }
 
-               logger("Addons: installing theme $theme");
+               Logger::log("Addons: installing theme $theme");
 
                include_once "view/theme/$theme/theme.php";
 
@@ -132,7 +131,7 @@ class Theme
                        $func();
                        return true;
                } else {
-                       logger("Addons: FAILED installing theme $theme");
+                       Logger::log("Addons: FAILED installing theme $theme");
                        return false;
                }
        }