Skip to content

Commit 3db06f7

Browse files
committed
Added decoding of UTF-8 encoded localized titles
Closes #1
1 parent 8eb9366 commit 3db06f7

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

files/lib/data/woltlab/pluginstore/file/WoltlabPluginstoreFileAction.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use wcf\data\IToggleAction;
66
use wcf\system\language\I18nHandler;
77
use wcf\system\language\LanguageFactory;
8-
use wcf\util\HTTPRequest;
98
use wcf\system\WCF;
9+
use wcf\util\HTTPRequest;
1010

1111
/**
1212
* Provides actions for woltlab pluginstore files.
@@ -121,7 +121,7 @@ public function fetchLocalizedTitle() {
121121

122122
// manipulate $_POST as it is not possible
123123
// to use the I18nHandler in another way
124-
$_POST['pluginstoreFileTitle_i18n'][$language->getObjectID()] = $title;
124+
$_POST['pluginstoreFileTitle_i18n'][$language->getObjectID()] = utf8_decode($title);
125125
}
126126

127127
// save i18n values

package.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<packageinformation>
44
<packagename>WoltLab Vendor API</packagename>
55
<packagedescription><![CDATA[]]></packagedescription>
6-
<version>1.2.0 RC 1</version>
7-
<date>2017-01-13</date>
6+
<version>1.2.0</version>
7+
<date>2017-02-28</date>
88
</packageinformation>
99

1010
<authorinformation>
@@ -33,4 +33,9 @@
3333
<instruction type="sql">install.sql</instruction>
3434
<instruction type="template">templates.tar</instruction>
3535
</instructions>
36+
37+
<instructions type="update" fromversion="1.2.0 RC 1">
38+
<!-- files -->
39+
<instruction type="file">files.tar</instruction>
40+
</instructions>
3641
</package>

0 commit comments

Comments
 (0)