TickTackk
Well-known member
In XenGallery_Model_InlineMod_Media
should be
PHP:
public function undeleteMedia(array $mediaIds, array $options = array(), &$errorKey = '', array $viewingUser = null)
{
$media = $this->getMediaData($mediaIds);
if (empty($options['skipPermissions']) && !$this->canDeleteMediaData($media, $errorKey, $viewingUser))
{
return false;
}
$this->_updateMediaMediaState($media, 'visible', 'deleted');
return true;
}
PHP:
public function undeleteMedia(array $mediaIds, array $options = array(), &$errorKey = '', array $viewingUser = null)
{
$media = $this->getMediaData($mediaIds);
if (empty($options['skipPermissions']) && !$this->canDeleteMediaData($media, $options['delete_type'], $errorKey, $viewingUser))
{
return false;
}
$this->_updateMediaMediaState($media, 'visible', 'deleted');
return true;
}