Fixed application check for favicon output
authorAlexander Ebert <ebert@woltlab.com>
Tue, 27 Jun 2017 08:03:07 +0000 (10:03 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 27 Jun 2017 08:03:07 +0000 (10:03 +0200)
wcfsetup/install/files/lib/system/WCF.class.php

index 4e0a91e3e27b29c8bb27b3f5e796cccc4c135a0a..8b9100459db75a61cc64ba84c39fbdc409212774 100644 (file)
@@ -858,9 +858,9 @@ class WCF {
         */
        public function getFavicon() {
                $activeApplication = ApplicationHandler::getInstance()->getActiveApplication();
-               $primaryApplication = ApplicationHandler::getInstance()->getPrimaryApplication();
+               $wcf = ApplicationHandler::getInstance()->getWCF();
                
-               if ($activeApplication->domainName != $primaryApplication->domainName) {
+               if ($activeApplication->domainName !== $wcf->domainName) {
                        if (file_exists(WCF_DIR.'images/favicon.ico')) {
                                $favicon = file_get_contents(WCF_DIR.'images/favicon.ico');