1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Error generated from a report of media in an album

Discussion in 'Media Gallery Resolved Bugs' started by Mike, Jul 27, 2015.

  1. Mike

    Mike XenForo Developer Staff Member

    The 1.0.9 release briefly included a mistake that could create a server error with old reports of media within albums. As of this post, the download has been patched to revert the incorrect fix. (This fix can also be applied to 1.1.0 Beta 2.)

    If you are affected, to fix, in library/XenGallery/ReportHander/Media.php, replace:
    Code:
            if (!empty($contentInfo['media']['album_id']))
            {
                return new XenForo_Phrase('xengallery_media_x_in_album_y', array('title' => XenForo_Helper_String::censorString($contentInfo['media']['media_title']), 'album' => $contentInfo['media']['album_title']));
            }
            else
            {
                return new XenForo_Phrase('xengallery_media_x_in_category_y', array('title' => XenForo_Helper_String::censorString($contentInfo['media']['media_title']), 'category' => $contentInfo['media']['category_title']));
            }
    with:
    Code:
            return new XenForo_Phrase('xengallery_media_x_in_category_y', array('title' => XenForo_Helper_String::censorString($contentInfo['media']['media_title']), 'category' => $contentInfo['media']['category_title']));
     
    batpool52! likes this.

Share This Page