Download all files FTP

This commit is contained in:
2026-04-13 15:50:16 +02:00
parent d8382136b2
commit cb5b386424
6906 changed files with 1956223 additions and 40713 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace WebPExpress;
use \WebPExpress\Config;
use \WebPExpress\Messenger;
use \WebPExpress\Option;
use \WebPExpress\Paths;
function webpexpress_migrate17() {
// Update migrate version right away to minimize risk of running the update twice in a multithreaded environment
Option::updateOption('webp-express-migration-version', '17');
if (PlatformInfo::isNginx()) {
$configMigrateSuccess = Config::checkAndMigrateConfigIfNeeded();
if ($configMigrateSuccess) {
$config = Config::loadConfigAndFix(false); // false means we do not need the check if quality detection is supported
if (($config['enable-redirection-to-webp-realizer']) || ($config['enable-redirection-to-converter'])) {
DismissableGlobalMessages::addDismissableMessage('0.25.12/nginx-rewrites-needs-updating');
}
}
}
}
webpexpress_migrate17();