diff --git a/app/install/installer.php b/app/install/installer.php index 0e549e3..19f122a 100644 --- a/app/install/installer.php +++ b/app/install/installer.php @@ -511,7 +511,7 @@ UPDATE `%table_prefix%users` SET user_content_views = COALESCE((SELECT SUM(image ] ], '1.2.0' => [ - // 'imports' => [], // ADD TABLE + 'imports' => [], // ADD TABLE 'importing' => [], // ADD TABLE 'redirects' => [], // ADD TABLE 'images' => [ @@ -567,7 +567,7 @@ UPDATE `%table_prefix%users` SET user_content_views = COALESCE((SELECT SUM(image ], 'pages' => [ 'page_internal' => [ - 'op' => 'MODIFY', + 'op' => 'ADD', 'type' => 'varchar(191)', 'prop' => 'DEFAULT NULL', ], diff --git a/app/install/update/updater.php b/app/install/update/updater.php index d495f23..08ba1e2 100644 --- a/app/install/update/updater.php +++ b/app/install/update/updater.php @@ -116,11 +116,9 @@ try { break; case 'extract': $zip_file = $update_temp_dir . $_REQUEST['file']; - if (false === preg_match('/^(chevereto-chevereto-free)-([\d.]+)-\d+-g(.*)_.*$/i', $_REQUEST['file'], $matches)) { throw new Exception("Can't detect target zip file version"); } - $version = $matches[2]; $etag_short = $matches[3]; if (!is_readable($zip_file)) {