Commit 711dd53d authored by alexpott's avatar alexpott

Issue #1965894 by chx: Fixed Misleading variable name in BreakLockForm.

parent 0107faaf
......@@ -83,8 +83,8 @@ protected function getQuestion() {
*/
protected function getDescription() {
$locked = $this->tempStore->getMetadata($this->view->id());
$account = $this->entityManager->getStorageController('user')->load(array($locked->owner));
return t('By breaking this lock, any unsaved changes made by !user will be lost.', array('!user' => theme('username', array('account' => reset($account)))));
$accounts = $this->entityManager->getStorageController('user')->load(array($locked->owner));
return t('By breaking this lock, any unsaved changes made by !user will be lost.', array('!user' => theme('username', array('account' => reset($accounts)))));
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment