'htmlOpen' => $this->htmlOpen,
'htmlClose' => $this->htmlClose,
'isSourceCode' => ($this->isSourceCode ? 1 : 0),
- 'packageID' => PackageCache::getInstance()->getPackageID('com.woltlab.wcf.bbcode'),
+ 'packageID' => 1,
'showButton' => ($this->showButton ? 1 : 0),
'wysiwygIcon' => $this->wysiwygIcon
)));
if ($this->showButton && !I18nHandler::getInstance()->isPlainValue('buttonLabel')) {
$bbcodeID = $returnValues['returnValues']->bbcodeID;
- I18nHandler::getInstance()->save('buttonLabel', 'wcf.bbcode.buttonLabel'.$bbcodeID, 'wcf.bbcode', PackageCache::getInstance()->getPackageID('com.woltlab.wcf.bbcode'));
+ I18nHandler::getInstance()->save('buttonLabel', 'wcf.bbcode.buttonLabel'.$bbcodeID, 'wcf.bbcode', 1);
// update button label
$bbcodeEditor = new BBCodeEditor($returnValues['returnValues']);
$this->buttonLabel = I18nHandler::getInstance()->getValue('buttonLabel');
}
else {
- I18nHandler::getInstance()->save('buttonLabel', $this->buttonLabel, 'wcf.bbcode', PackageCache::getInstance()->getPackageID('com.woltlab.wcf.bbcode'));
+ I18nHandler::getInstance()->save('buttonLabel', $this->buttonLabel, 'wcf.bbcode', 1);
}
}
if (!I18nHandler::getInstance()->isPlainValue('label')) {
$returnValues = $this->objectAction->getReturnValues();
$labelID = $returnValues['returnValues']->labelID;
- I18nHandler::getInstance()->save('label', 'wcf.acp.label.label'.$labelID, 'wcf.acp.label', PackageCache::getInstance()->getPackageID('com.woltlab.wcf.label'));
+ I18nHandler::getInstance()->save('label', 'wcf.acp.label.label'.$labelID, 'wcf.acp.label', 1);
// update group name
$labelEditor = new LabelEditor($returnValues['returnValues']);
$this->label = 'wcf.acp.label.label'.$this->labelObj->labelID;
if (I18nHandler::getInstance()->isPlainValue('label')) {
- I18nHandler::getInstance()->remove($this->label, PackageCache::getInstance()->getPackageID('com.woltlab.wcf.label'));
+ I18nHandler::getInstance()->remove($this->label, 1);
$this->label = I18nHandler::getInstance()->getValue('label');
}
else {
- I18nHandler::getInstance()->save('label', $this->label, 'wcf.acp.label', PackageCache::getInstance()->getPackageID('com.woltlab.wcf.label'));
+ I18nHandler::getInstance()->save('label', $this->label, 'wcf.acp.label', 1);
}
// update label
parent::readData();
if (empty($_POST)) {
- I18nHandler::getInstance()->setOptions('label', PackageCache::getInstance()->getPackageID('com.woltlab.wcf.label'), $this->labelObj->label, 'wcf.acp.label.label\d+');
+ I18nHandler::getInstance()->setOptions('label', 1, $this->labelObj->label, 'wcf.acp.label.label\d+');
$this->label = $this->labelObj->label;
$this->cssClassName = $this->labelObj->cssClassName;
$this->smileyTitle = I18nHandler::getInstance()->getValue('smileyTitle');
}
else {
- I18nHandler::getInstance()->save('smileyTitle', $this->smileyTitle, 'wcf.smiley', PackageCache::getInstance()->getPackageID('com.woltlab.wcf.bbcode'));
+ I18nHandler::getInstance()->save('smileyTitle', $this->smileyTitle, 'wcf.smiley', 1);
}
// update bbcode
if (!I18nHandler::getInstance()->isPlainValue('rankTitle')) {
$returnValues = $this->objectAction->getReturnValues();
$rankID = $returnValues['returnValues']->rankID;
- I18nHandler::getInstance()->save('rankTitle', 'wcf.user.rank.userRank'.$rankID, 'wcf.user', PackageCache::getInstance()->getPackageID('com.woltlab.wcf.user'));
+ I18nHandler::getInstance()->save('rankTitle', 'wcf.user.rank.userRank'.$rankID, 'wcf.user', 1);
// update name
$rankEditor = new UserRankEditor($returnValues['returnValues']);
$this->rankTitle = 'wcf.user.rank.userRank'.$this->rank->rankID;
if (I18nHandler::getInstance()->isPlainValue('rankTitle')) {
- I18nHandler::getInstance()->remove($this->rankTitle, PackageCache::getInstance()->getPackageID('com.woltlab.wcf.user'));
+ I18nHandler::getInstance()->remove($this->rankTitle, 1);
$this->rankTitle = I18nHandler::getInstance()->getValue('rankTitle');
}
else {
- I18nHandler::getInstance()->save('rankTitle', $this->rankTitle, 'wcf.user', PackageCache::getInstance()->getPackageID('com.woltlab.wcf.user'));
+ I18nHandler::getInstance()->save('rankTitle', $this->rankTitle, 'wcf.user', 1);
}
// update label
parent::readData();
if (empty($_POST)) {
- I18nHandler::getInstance()->setOptions('rankTitle', PackageCache::getInstance()->getPackageID('com.woltlab.wcf.user'), $this->rank->rankTitle, 'wcf.user.rank.userRank\d+');
+ I18nHandler::getInstance()->setOptions('rankTitle', 1, $this->rank->rankTitle, 'wcf.user.rank.userRank\d+');
$this->rankTitle = $this->rank->rankTitle;
$this->cssClassName = $this->rank->cssClassName;
if (!in_array($this->cssClassName, $this->availableCssClassNames)) {