diff options
| author | wn_ <invalid@email.com> | 2025-05-22 17:58:35 +0000 |
|---|---|---|
| committer | wn_ <invalid@email.com> | 2025-05-22 18:05:02 +0000 |
| commit | 25d86552149830235a7f3908fa17fdb9d0b0dc5f (patch) | |
| tree | 4441c6eedf3fe2bde5493507250515642aa8f939 /classes/RSSUtils.php | |
| parent | 3783d987e5cd78613bdc080fa9db3dcac6f466bd (diff) | |
Drop legacy feed icon storage migration and unused 'Config::ICONS_DIR'.
Diffstat (limited to 'classes/RSSUtils.php')
| -rw-r--r-- | classes/RSSUtils.php | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/classes/RSSUtils.php b/classes/RSSUtils.php index c0012afcb..d1c55d2fd 100644 --- a/classes/RSSUtils.php +++ b/classes/RSSUtils.php @@ -1656,33 +1656,6 @@ class RSSUtils { $tmph->run_hooks(PluginHost::HOOK_HOUSE_KEEPING); } - /** - * migrates favicons from legacy storage in feed-icons/ to cache/feed-icons/using new naming (sans .ico suffix) - * @todo Remove this and Config::ICONS_DIR at some point - */ - static function migrate_feed_icons() : void { - $old_dir = Config::get(Config::ICONS_DIR); - - $dh = opendir($old_dir); - - $cache = DiskCache::instance('feed-icons'); - - if ($dh) { - while (($old_filename = readdir($dh)) !== false) { - if (str_ends_with($old_filename, ".ico")) { - $new_filename = str_replace(".ico", "", $old_filename); - $old_full_path = "$old_dir/$old_filename"; - - if (is_file($old_full_path) && $cache->put($new_filename, file_get_contents($old_full_path))) { - unlink($old_full_path); - } - } - } - - closedir($dh); - } - } - /** Init all system tasks which are run periodically by updater in housekeeping_common() */ static function init_housekeeping_tasks() : void { Debug::log('Registering scheduled tasks for housekeeping...'); @@ -1714,14 +1687,6 @@ class RSSUtils { } ); - $scheduler->add_scheduled_task('migrate_feed_icons', Config::get(Config::SCHEDULE_MIGRATE_FEED_ICONS), - function() { - self::migrate_feed_icons(); - - return 0; - } - ); - $scheduler->add_scheduled_task('cleanup_feed_icons', Config::get(Config::SCHEDULE_CLEANUP_FEED_ICONS), function() { self::cleanup_feed_icons(); |