4
0

update 2023-07-21 12:55:41

This commit is contained in:
Robot 2023-07-21 12:55:41 +02:00
parent 23a28426de
commit e522837719
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
2 changed files with 14 additions and 14 deletions

View File

@ -173,7 +173,7 @@ final class Linker
elseif (!GuidHelper::valid($linker)) elseif (!GuidHelper::valid($linker))
{ {
return [ return [
'error' => Text::_('COM_GETBIBLE_INVALID_SESSION_VALUE') 'error' => Text::_('COM_GETBIBLE_INVALID_SESSION_KEY_VALUE')
]; ];
} }
@ -193,14 +193,14 @@ final class Linker
if (($guid = $this->getPassGuid($linker, $oldPass)) === null) if (($guid = $this->getPassGuid($linker, $oldPass)) === null)
{ {
return [ return [
'error' => Text::_('COM_GETBIBLE_PASSWORD_INCORRECT') 'error' => Text::_('COM_GETBIBLE_INCORRECT_FAVOURITE_VERSE_SELECTED')
]; ];
} }
if (!$this->setPassword($linker, $pass)) if (!$this->setPassword($linker, $pass))
{ {
return [ return [
'error' => Text::_('COM_GETBIBLE_PASSWORD_COULD_NOT_BE_CHANGED') 'error' => Text::_('COM_GETBIBLE_FAVOURITE_VERSE_COULD_NOT_BE_CHANGED')
]; ];
} }
@ -210,20 +210,20 @@ final class Linker
elseif (!$this->hasAccess($linker, $pass)) elseif (!$this->hasAccess($linker, $pass))
{ {
return [ return [
'error' => Text::_('COM_GETBIBLE_PASSWORD_INCORRECT') 'error' => Text::_('COM_GETBIBLE_INCORRECT_FAVOURITE_VERSE_SELECTED')
]; ];
} }
} }
elseif (!$this->setLinker($linker)) elseif (!$this->setLinker($linker))
{ {
return [ return [
'error' => Text::_('COM_GETBIBLE_SESSION_COULD_NOT_BE_STORED') 'error' => Text::_('COM_GETBIBLE_SESSION_KEY_COULD_NOT_BE_STORED')
]; ];
} }
elseif (!$this->setPassword($linker, $pass)) elseif (!$this->setPassword($linker, $pass))
{ {
return [ return [
'error' => Text::_('COM_GETBIBLE_PASSWORD_COULD_NOT_BE_STORED') 'error' => Text::_('COM_GETBIBLE_FAVOURITE_VERSE_COULD_NOT_BE_STORED')
]; ];
} }
elseif (($_linker = $this->load->item(['guid' => $linker],'linker')) === null) elseif (($_linker = $this->load->item(['guid' => $linker],'linker')) === null)
@ -232,7 +232,7 @@ final class Linker
} }
$_linker->published = 1; $_linker->published = 1;
$_linker->success = Text::_('COM_GETBIBLE_ACCESS_SUCCESSFULLY_SET'); $_linker->success = Text::_('COM_GETBIBLE_FAVOURITE_VERSE_SUCCESSFULLY_SET');
// add to session // add to session
$this->session->set('getbible_active_linker_guid', $linker); $this->session->set('getbible_active_linker_guid', $linker);

View File

@ -143,7 +143,7 @@
elseif (!GuidHelper::valid($linker)) elseif (!GuidHelper::valid($linker))
{ {
return [ return [
'error' => Text::_('Invalid session value.') 'error' => Text::_('Invalid session key value.')
]; ];
} }
@ -163,14 +163,14 @@
if (($guid = $this->getPassGuid($linker, $oldPass)) === null) if (($guid = $this->getPassGuid($linker, $oldPass)) === null)
{ {
return [ return [
'error' => Text::_('Password incorrect.') 'error' => Text::_('Incorrect favourite verse selected.')
]; ];
} }
if (!$this->setPassword($linker, $pass)) if (!$this->setPassword($linker, $pass))
{ {
return [ return [
'error' => Text::_('Password could not be changed.') 'error' => Text::_('Favourite verse could not be changed.')
]; ];
} }
@ -180,20 +180,20 @@
elseif (!$this->hasAccess($linker, $pass)) elseif (!$this->hasAccess($linker, $pass))
{ {
return [ return [
'error' => Text::_('Password incorrect.') 'error' => Text::_('Incorrect favourite verse selected.')
]; ];
} }
} }
elseif (!$this->setLinker($linker)) elseif (!$this->setLinker($linker))
{ {
return [ return [
'error' => Text::_('Session could not be stored.') 'error' => Text::_('Session key could not be stored.')
]; ];
} }
elseif (!$this->setPassword($linker, $pass)) elseif (!$this->setPassword($linker, $pass))
{ {
return [ return [
'error' => Text::_('Password could not be stored.') 'error' => Text::_('Favourite verse could not be stored.')
]; ];
} }
elseif (($_linker = $this->load->item(['guid' => $linker],'linker')) === null) elseif (($_linker = $this->load->item(['guid' => $linker],'linker')) === null)
@ -202,7 +202,7 @@
} }
$_linker->published = 1; $_linker->published = 1;
$_linker->success = Text::_('Access successfully set.'); $_linker->success = Text::_('Favourite verse successfully set.');
// add to session // add to session
$this->session->set('getbible_active_linker_guid', $linker); $this->session->set('getbible_active_linker_guid', $linker);