From fc856c5667953cb044c2fac0fe4e668abaa4300d Mon Sep 17 00:00:00 2001 From: Jonas L Date: Wed, 27 Jul 2022 09:51:14 +0200 Subject: [PATCH] fix(legacy): get local logo file (#1999) Load logo content from the local file instead of the public location. --- legacy/application/models/Preference.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/application/models/Preference.php b/legacy/application/models/Preference.php index 2e96cdd3b..eb9145a99 100644 --- a/legacy/application/models/Preference.php +++ b/legacy/application/models/Preference.php @@ -626,7 +626,7 @@ class Application_Model_Preference } // We return the Airtime logo if no logo is set in the database. // airtime_logo.png is stored under the public directory - $image = @file_get_contents(Config::getPublicUrl() . DEFAULT_LOGO_FILE); + $image = @file_get_contents(ROOT_PATH . '/public/' . DEFAULT_LOGO_FILE); return base64_encode($image); }