mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
first_connexion to is_first_connection
This commit is contained in:
parent
502ef05df4
commit
d16380c3fa
3 changed files with 3 additions and 3 deletions
|
@ -1927,7 +1927,7 @@ function userprefs_get_param($param, $default_value=null)
|
|||
* @param int $user_id
|
||||
* @return bool true if first connexion else false
|
||||
*/
|
||||
function first_connexion($user_id)
|
||||
function is_first_connection($user_id)
|
||||
{
|
||||
$query = '
|
||||
SELECT COUNT(*)
|
||||
|
|
|
@ -1020,7 +1020,7 @@ function ws_users_generate_password_link($params, &$service)
|
|||
return new PwgError(403, 'You cannot perform this action');
|
||||
}
|
||||
|
||||
$first_login = first_connexion($params['user_id']);
|
||||
$first_login = is_first_connection($params['user_id']);
|
||||
$generate_link = generate_password_link($params['user_id'], $first_login);
|
||||
$send_by_mail_response = null;
|
||||
|
||||
|
|
|
@ -231,7 +231,7 @@ if (isset($_GET['key']) and !isset($_POST['submit']))
|
|||
$userdata = getuserdata($user_id, false);
|
||||
$page['username'] = $userdata['username'];
|
||||
$template->assign('key', $_GET['key']);
|
||||
$first_login = first_connexion($user_id);
|
||||
$first_login = is_first_connection($user_id);
|
||||
|
||||
if (!isset($page['action']))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue