Fixed canRevertContent does not call _canRevertContent

Rigel Kentaurus

Well-known member
In XenForo_EditHistoryHandler_Abstract, canRevertContent is implemented as
PHP:
public function canRevertContent(array $content, array $viewingUser = null)
{
    $this->standardizeViewingUserReference($viewingUser);
    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.
 
Top Bottom