forked from GNUsocial/gnu-social
[CORE][ENTITY] Rename 'Entity::getWithPK' to 'Entity::getByPK'
This commit is contained in:
@@ -64,7 +64,7 @@ class AnswerPoll
|
||||
{
|
||||
$user = Common::ensureLoggedIn();
|
||||
|
||||
$poll = Poll::getWithPk((int) $id);
|
||||
$poll = Poll::getByPk((int) $id);
|
||||
if ($poll == null) {
|
||||
throw new NotFoundException('Poll does not exist');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user