// search by language item
$conditions = new PreparedStatementConditionBuilder();
$conditions->add("languageID = ?", array(WCF::getLanguage()->languageID));
- $conditions->add("languageItem LIKE ?", array('wcf.acp.package.title.package%'));
+ $conditions->add("languageItem LIKE ?", array('wcf.acp.package.packageName.package%'));
$conditions->add("languageItemValue LIKE ?", array($query.'%'));
$conditions->add("packageID IN (?)", array(PackageDependencyHandler::getInstance()->getDependencies()));
$packageIDs = array();
while ($row = $statement->fetchArray()) {
- $packageIDs[] = str_replace('wcf.acp.package.title.package', '', $row['languageItem']);
+ $packageIDs[] = str_replace('wcf.acp.package.packageName.package', '', $row['languageItem']);
}
$conditions = new PreparedStatementConditionBuilder(false);
OR package LIKE ?
".(count($conditions->getParameters()) ? "OR ".$conditions : "");
$statement = WCF::getDB()->prepareStatement($sql);
- $statement->execute(array_merge($conditions->getParameters(), array(
+ $statement->execute(array_merge(array(
$query.'%',
$query.'%'
- )));
+ ), $conditions->getParameters()));
while ($package = $statement->fetchObject('wcf\data\package\Package')) {
$results[] = new ACPSearchResult($package->getName(), LinkHandler::getInstance()->getLink('PackageView', array(
<category name="wcf.acp.search">
<item name="wcf.acp.search.provider.com.woltlab.wcf.menuItem"><![CDATA[Seiten]]></item>
<item name="wcf.acp.search.provider.com.woltlab.wcf.option"><![CDATA[Optionen]]></item>
+ <item name="wcf.acp.search.provider.com.woltlab.wcf.package"><![CDATA[Pakete]]></item>
+ <item name="wcf.acp.search.provider.com.woltlab.wcf.user"><![CDATA[Benutzer]]></item>
<item name="wcf.acp.search.provider.com.woltlab.wcf.userGroupOption"><![CDATA[Berechtigungen]]></item>
</category>
<category name="wcf.acp.search">
<item name="wcf.acp.search.provider.com.woltlab.wcf.menuItem"><![CDATA[Pages]]></item>
<item name="wcf.acp.search.provider.com.woltlab.wcf.option"><![CDATA[Options]]></item>
+ <item name="wcf.acp.search.provider.com.woltlab.wcf.package"><![CDATA[Packages]]></item>
+ <item name="wcf.acp.search.provider.com.woltlab.wcf.user"><![CDATA[Users]]></item>
<item name="wcf.acp.search.provider.com.woltlab.wcf.userGroupOption"><![CDATA[Permissions]]></item>
</category>