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

Fixed Media Gallery Alert Error

Mike

XenForo developer
Staff member
#3
Note that I have just updated XFMG's download to fix this, but you can fix it by changing library/XenGallery/ControllerPublic/Comment.php's line:
Code:
$page = floor($commentsWithPosition[$commentId]['position'] / XenForo_Application::getOptions()->xengalleryMaxMediaCommentsPerPage) + 1;
to:
Code:
$page = floor($commentsWithPosition[$commentId]['position'] / XenForo_Application::getOptions()->xengalleryMaxCommentsPerPage) + 1;
 

tommydamic68

Well-known member
#4
Note that I have just updated XFMG's download to fix this, but you can fix it by changing library/XenGallery/ControllerPublic/Comment.php's line:
Code:
$page = floor($commentsWithPosition[$commentId]['position'] / XenForo_Application::getOptions()->xengalleryMaxMediaCommentsPerPage) + 1;
to:
Code:
$page = floor($commentsWithPosition[$commentId]['position'] / XenForo_Application::getOptions()->xengalleryMaxCommentsPerPage) + 1;
Do I need to upload all files again for this fix?