* @param integer $time
* @param integer|null $userID
* @param string|null $username
+ * @param integer $hidden
* @return ModificationLog
*/
- public function createLog($action, $objectID, $parentObjectID = null, array $additionalData = [], $time = TIME_NOW, $userID = null, $username = null) {
+ public function createLog($action, $objectID, $parentObjectID = null, array $additionalData = [], $time = TIME_NOW, $userID = null, $username = null, $hidden = 1) {
// set default user data
if ($userID === null) {
if (WCF::getUser()->userID) {
'userID' => $userID,
'username' => $username,
'time' => $time,
+ 'hidden' => $hidden,
'additionalData' => serialize($additionalData)
]
]);
username VARCHAR(255) NOT NULL DEFAULT '',
time INT(10) NOT NULL DEFAULT 0,
action VARCHAR(80) NOT NULL,
- hidden TINYINT(1) NOT NULL DEFAULT 0,
+ hidden TINYINT(1) NOT NULL DEFAULT 1,
additionalData MEDIUMTEXT,
KEY objectTypeAndID (objectTypeID, objectID)