<packagedescription>Free CMS and web-framework, designed for awesome websites and communities.</packagedescription>
<packagedescription language="de">Freies CMS und Web-Framework, das eindrucksvolle Websites und Communities ermöglicht.</packagedescription>
<isapplication>1</isapplication>
- <version>5.3.3</version>
- <date>2021-01-29</date>
+ <version>5.3.4</version>
+ <date>2021-02-01</date>
</packageinformation>
<authorinformation>
<instruction type="script">acp/update_com.woltlab.wcf_5.3_packageServer.php</instruction>
</instructions>
-
- <!-- Run update_com.woltlab.wcf_5.3.3_style.php for 5.3.2 -> 5.3.3 -->
- <!-- Run update_com.woltlab.wcf_5.3.3_db.php for 5.3.2 -> 5.3.3 -->
- <instructions type="update" fromversion="5.3.2">
- <instruction type="acpTemplate">acptemplates_update.tar</instruction>
+ <instructions type="update" fromversion="5.3.3">
<instruction type="file">files_update.tar</instruction>
-
- <instruction type="language" />
-
- <instruction type="script" run="standalone">acp/update_com.woltlab.wcf_5.3.3_style.php</instruction>
- <instruction type="script" run="standalone">acp/update_com.woltlab.wcf_5.3.3_db.php</instruction>
</instructions>
</package>
+++ /dev/null
-<?php
-
-use wcf\system\database\table\column\EnumDatabaseTableColumn;
-use wcf\system\database\table\DatabaseTableChangeProcessor;
-use wcf\system\database\table\PartialDatabaseTable;
-use wcf\system\package\plugin\ScriptPackageInstallationPlugin;
-use wcf\system\WCF;
-
-/**
- * Updates the database table layout from WoltLab Suite Core 5.3.2 to 5.3.3.
- *
- * @author Matthias Schmidt
- * @copyright 2001-2021 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- */
-
-$tables = [
- PartialDatabaseTable::create('wcf1_event_listener')
- ->columns([
- EnumDatabaseTableColumn::create('environment')
- ->enumValues(['user', 'admin', 'all'])
- ]),
-];
-
-(new DatabaseTableChangeProcessor(
-/** @var ScriptPackageInstallationPlugin $this */
- $this->installation->getPackage(),
- $tables,
- WCF::getDB()->getEditor())
-)->process();
+++ /dev/null
-<?php
-
-use wcf\data\style\StyleEditor;
-use wcf\data\style\StyleList;
-use wcf\util\FileUtil;
-
-/**
- * @author Tim Duesterhus
- * @copyright 2001-2020 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package WoltLabSuite\Core
- */
-
-$styleList = new StyleList();
-$styleList->readObjects();
-
-foreach ($styleList as $style) {
- $styleEditor = new StyleEditor($style);
-
- // Fix the style preview.
- if (!$style->image) {
- $basename = 'stylePreview';
-
- // Check all possible extensions for preview images on the file system.
- $files = [];
- foreach ([
- 'png',
- 'gif',
- 'jpg',
- 'jpeg',
- 'svg',
- ] as $extension) {
- $fileName = $style->getAssetPath().$basename.'.'.$extension;
- if (is_readable($fileName)) {
- $files[$extension] = filemtime($fileName);
- }
- }
-
- // Sort by modification time in descending order.
- arsort($files);
-
- if (!empty($files)) {
- // This loop will pick the newest file first.
- foreach ($files as $extension => $unused) {
- $newName = $basename.'.'.$extension;
-
- $styleEditor->update([
- 'image' => FileUtil::getRelativePath(WCF_DIR.'images/', $style->getAssetPath()).$newName,
- ]);
-
- // break after handling the newest file, simulating
- // array_key_first().
- break;
- }
- }
- }
-
- if (!$style->image2x) {
- $basename = 'stylePreview@2x';
-
- $files = [];
- foreach ([
- 'png',
- 'gif',
- 'jpg',
- 'jpeg',
- 'svg',
- ] as $extension) {
- $fileName = $style->getAssetPath().$basename.'.'.$extension;
- if (is_readable($fileName)) {
- $files[$extension] = filemtime($fileName);
- }
- }
- arsort($files);
-
- if (!empty($files)) {
- foreach ($files as $extension => $unused) {
- $newName = $basename.'.'.$extension;
-
- $styleEditor->update([
- 'image2x' => FileUtil::getRelativePath(WCF_DIR.'images/', $style->getAssetPath()).$newName,
- ]);
-
- break;
- }
- }
- }
-}
}
// define current woltlab suite version
-define('WCF_VERSION', '5.3.3');
+define('WCF_VERSION', '5.3.4');
// define current API version
// @deprecated 5.2