update 2023-07-21 12:55:41
This commit is contained in:
parent
23a28426de
commit
e522837719
@ -173,7 +173,7 @@ final class Linker
|
||||
elseif (!GuidHelper::valid($linker))
|
||||
{
|
||||
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)
|
||||
{
|
||||
return [
|
||||
'error' => Text::_('COM_GETBIBLE_PASSWORD_INCORRECT')
|
||||
'error' => Text::_('COM_GETBIBLE_INCORRECT_FAVOURITE_VERSE_SELECTED')
|
||||
];
|
||||
}
|
||||
|
||||
if (!$this->setPassword($linker, $pass))
|
||||
{
|
||||
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))
|
||||
{
|
||||
return [
|
||||
'error' => Text::_('COM_GETBIBLE_PASSWORD_INCORRECT')
|
||||
'error' => Text::_('COM_GETBIBLE_INCORRECT_FAVOURITE_VERSE_SELECTED')
|
||||
];
|
||||
}
|
||||
}
|
||||
elseif (!$this->setLinker($linker))
|
||||
{
|
||||
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))
|
||||
{
|
||||
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)
|
||||
@ -232,7 +232,7 @@ final class Linker
|
||||
}
|
||||
|
||||
$_linker->published = 1;
|
||||
$_linker->success = Text::_('COM_GETBIBLE_ACCESS_SUCCESSFULLY_SET');
|
||||
$_linker->success = Text::_('COM_GETBIBLE_FAVOURITE_VERSE_SUCCESSFULLY_SET');
|
||||
|
||||
// add to session
|
||||
$this->session->set('getbible_active_linker_guid', $linker);
|
||||
|
@ -143,7 +143,7 @@
|
||||
elseif (!GuidHelper::valid($linker))
|
||||
{
|
||||
return [
|
||||
'error' => Text::_('Invalid session value.')
|
||||
'error' => Text::_('Invalid session key value.')
|
||||
];
|
||||
}
|
||||
|
||||
@ -163,14 +163,14 @@
|
||||
if (($guid = $this->getPassGuid($linker, $oldPass)) === null)
|
||||
{
|
||||
return [
|
||||
'error' => Text::_('Password incorrect.')
|
||||
'error' => Text::_('Incorrect favourite verse selected.')
|
||||
];
|
||||
}
|
||||
|
||||
if (!$this->setPassword($linker, $pass))
|
||||
{
|
||||
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))
|
||||
{
|
||||
return [
|
||||
'error' => Text::_('Password incorrect.')
|
||||
'error' => Text::_('Incorrect favourite verse selected.')
|
||||
];
|
||||
}
|
||||
}
|
||||
elseif (!$this->setLinker($linker))
|
||||
{
|
||||
return [
|
||||
'error' => Text::_('Session could not be stored.')
|
||||
'error' => Text::_('Session key could not be stored.')
|
||||
];
|
||||
}
|
||||
elseif (!$this->setPassword($linker, $pass))
|
||||
{
|
||||
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)
|
||||
@ -202,7 +202,7 @@
|
||||
}
|
||||
|
||||
$_linker->published = 1;
|
||||
$_linker->success = Text::_('Access successfully set.');
|
||||
$_linker->success = Text::_('Favourite verse successfully set.');
|
||||
|
||||
// add to session
|
||||
$this->session->set('getbible_active_linker_guid', $linker);
|
||||
|
Loading…
x
Reference in New Issue
Block a user