From: Matthias Schmidt Date: Wed, 9 Jan 2013 21:36:01 +0000 (+0100) Subject: Reinserts comments X-Git-Tag: 2.0.0_Beta_1~573^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3eed377b3692ecbb822a3001493ce28e9a023daa;p=GitHub%2FWoltLab%2FWCF.git Reinserts comments --- diff --git a/wcfsetup/install/files/lib/system/clipboard/action/AbstractClipboardAction.class.php b/wcfsetup/install/files/lib/system/clipboard/action/AbstractClipboardAction.class.php index 0190301e48..ab8765f0d4 100644 --- a/wcfsetup/install/files/lib/system/clipboard/action/AbstractClipboardAction.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/action/AbstractClipboardAction.class.php @@ -45,11 +45,14 @@ abstract class AbstractClipboardAction implements IClipboardAction { $item = new ClipboardEditorItem(); $item->setName($this->getTypeName().'.'.$actionName); + + // set action class-related data if (in_array($actionName, $this->actionClassActions)) { $item->addParameter('actionName', $actionName); $item->addParameter('className', $this->getClassName()); } + // validate objects if relevant method exists and set valid object ids $methodName = 'validate'.ucfirst($actionName); if (method_exists($this, $methodName)) { $objectIDs = $this->$methodName();