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