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

Fixed canRevertContent does not call _canRevertContent

Rigel Kentaurus

Well-known member
In XenForo_EditHistoryHandler_Abstract, canRevertContent is implemented as
public function canRevertContent(array $content, array $viewingUser = null)
    return $this->_canViewHistoryAndContent($content, $viewingUser);
Since the handler has a _canRevertContent method, it would make sense that it called that method, instead of canViewHistoryAndContent. As it stands now, the implemented abstract method is unused.