<dt><label for="searchAuthor">{lang}wcf.search.author{/lang}</label></dt>
<dd>
<input type="text" id="searchAuthor" name="username" value="" class="medium" maxlength="255" autocomplete="off">
- <label><input type="checkbox" name="nameExactly" value="1"> {lang}wcf.search.matchExactly{/lang}</label>
{* deprecated *}{event name='authorOptions'}
</dd>
</dl>
$this->readString('q', true);
$this->readString('type', true);
$this->readString('username', true);
- $this->readBoolean('nameExactly', true);
$this->readBoolean('subjectOnly', true);
$this->readString('startDate', true);
$this->readString('endDate', true);
if (!empty($this->parameters['username'])) {
$sql = "SELECT userID
FROM wcf" . WCF_N . "_user
- WHERE username " . (!empty($this->parameters['nameExactly']) ? "= ?" : "LIKE ?");
+ WHERE username = ?";
$statement = WCF::getDB()->prepareStatement($sql, 100);
- $statement->execute([$this->parameters['username'] . (empty($this->parameters['nameExactly']) ? '%' : '')]);
+ $statement->execute([$this->parameters['username']]);
$this->userIDs = $statement->fetchAll(\PDO::FETCH_COLUMN);
}
'additionalData' => $this->getAdditionalData(),
'sortField' => $this->parameters['sortField'] ?? '',
'sortOrder' => $this->parameters['sortOrder'] ?? '',
- 'nameExactly' => $this->parameters['nameExactly'] ?? '',
'subjectOnly' => $this->parameters['subjectOnly'] ?? '',
'startDate' => $this->parameters['startDate'] ?? '',
'endDate' => $this->parameters['endDate'] ?? '',
<category name="wcf.search">
<item name="wcf.search.author"><![CDATA[Suche nach Autor]]></item>
<item name="wcf.search.extended"><![CDATA[Erweiterte Suche]]></item>
- <item name="wcf.search.matchExactly"><![CDATA[Exakter Treffer]]></item>
<item name="wcf.search.period"><![CDATA[Im Zeitraum]]></item>
<item name="wcf.search.sortBy"><![CDATA[Sortierung]]></item>
<item name="wcf.search.sortBy.relevance"><![CDATA[Relevanz]]></item>
<item name="wcf.user.profile.customization" />
<item name="wcf.acp.option.enable_desktop_notifications"/>
<item name="wcf.acp.option.enable_desktop_notifications.description"/>
+ <item name="wcf.search.matchExactly" />
</delete>
</language>
<category name="wcf.search">
<item name="wcf.search.author"><![CDATA[Search by Author]]></item>
<item name="wcf.search.extended"><![CDATA[More Options]]></item>
- <item name="wcf.search.matchExactly"><![CDATA[Exact match]]></item>
<item name="wcf.search.period"><![CDATA[Time Period]]></item>
<item name="wcf.search.sortBy"><![CDATA[Sort by]]></item>
<item name="wcf.search.sortBy.relevance"><![CDATA[Relevance]]></item>
<item name="wcf.user.profile.customization" />
<item name="wcf.acp.option.enable_desktop_notifications"/>
<item name="wcf.acp.option.enable_desktop_notifications.description"/>
+ <item name="wcf.search.matchExactly" />
</delete>
</language>