mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 03:39:57 +03:00
fixes #2281 rename function for better clarity
first_connexion to is_first_connection
This commit is contained in:
parent
34296598d4
commit
f6a3d0749f
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
|
* @param int $user_id
|
||||||
* @return bool true if first connexion else false
|
* @return bool true if first connexion else false
|
||||||
*/
|
*/
|
||||||
function first_connexion($user_id)
|
function is_first_connection($user_id)
|
||||||
{
|
{
|
||||||
$query = '
|
$query = '
|
||||||
SELECT COUNT(*)
|
SELECT COUNT(*)
|
||||||
|
|
|
@ -1020,7 +1020,7 @@ function ws_users_generate_password_link($params, &$service)
|
||||||
return new PwgError(403, 'You cannot perform this action');
|
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);
|
$generate_link = generate_password_link($params['user_id'], $first_login);
|
||||||
$send_by_mail_response = null;
|
$send_by_mail_response = null;
|
||||||
|
|
||||||
|
|
|
@ -231,7 +231,7 @@ if (isset($_GET['key']) and !isset($_POST['submit']))
|
||||||
$userdata = getuserdata($user_id, false);
|
$userdata = getuserdata($user_id, false);
|
||||||
$page['username'] = $userdata['username'];
|
$page['username'] = $userdata['username'];
|
||||||
$template->assign('key', $_GET['key']);
|
$template->assign('key', $_GET['key']);
|
||||||
$first_login = first_connexion($user_id);
|
$first_login = is_first_connection($user_id);
|
||||||
|
|
||||||
if (!isset($page['action']))
|
if (!isset($page['action']))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue