}
I18nHandler::getInstance()->readValues();
+ $this->readButtonLabelFormParameter();
+ }
+
+ /**
+ * Reads the form parameter for the button label.
+ */
+ protected function readButtonLabelFormParameter() {
if (I18nHandler::getInstance()->isPlainValue('buttonLabel')) $this->buttonLabel = I18nHandler::getInstance()->getValue('buttonLabel');
}
* @see wcf\page\IPage::readParameters()
*/
public function readParameters() {
- parent::readParameters();
+ AbstractForm::readParameters();
if (isset($_REQUEST['id'])) $this->bbcodeID = intval($_REQUEST['id']);
$this->bbcode = new BBCode($this->bbcodeID);
}
}
+ /**
+ * @see wcf\acp\form\BBCodeAddForm::readButtonLabelFormParameter()
+ */
+ protected function readButtonLabelFormParameter() {
+ if (!in_array($this->bbcode->bbcodeTag, self::$nativeBBCodes)) {
+ parent::readButtonLabelFormParameter();
+ }
+ }
+
/**
* @see wcf\form\IForm::save()
*/