fix(legacy): get local logo file (#1999)

Load logo content from the local file instead of the public location.
This commit is contained in:
Jonas L 2022-07-27 09:51:14 +02:00 committed by GitHub
parent 57d1f3a953
commit fc856c5667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}