Fix image header URL in advert details, update CV access message, enhance image ratio alerts in profile edit, modify registration titles and agreement checkbox behavior.
This commit is contained in:
@@ -496,7 +496,7 @@ class GlobelusFirms
|
||||
return false;
|
||||
|
||||
$result = \front\factory\GlobelusFirms::advert_enable( $g_user['id'], \S::get( 'advert-id' ), $g_user['email'] );
|
||||
\S::set_alert_prompt( 'Informacja', $result['msg'] );
|
||||
// \S::set_alert_prompt( 'Informacja', $result['msg'] );
|
||||
|
||||
header( 'Location: /panel-pracodawcy/ogloszenia' );
|
||||
exit;
|
||||
|
||||
@@ -19,7 +19,7 @@ class GlobelusUser
|
||||
|
||||
public static function delete_account()
|
||||
{
|
||||
global $lang;
|
||||
global $lang, $g_user;
|
||||
|
||||
if ( !\front\factory\Globelus::permissions_check( $g_user = \S::get_session( 'g_user' ), __CLASS__ . "\\" . __FUNCTION__ ) )
|
||||
return false;
|
||||
@@ -27,7 +27,11 @@ class GlobelusUser
|
||||
if ( \front\factory\GlobelusUser::delete_account( $g_user['id'] ) )
|
||||
\S::set_alert_prompt( 'Informacja', $lang[ 'usuwanie-konta-email' ] );
|
||||
|
||||
header( 'Location: /panel-kandydata/profil' );
|
||||
if ( $g_user['type'] )
|
||||
header( 'Location: /panel-pracodawcy/profil' );
|
||||
else
|
||||
header( 'Location: /panel-kandydata/profil' );
|
||||
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -991,7 +991,7 @@ class GlobelusFirms
|
||||
|
||||
if ( $mdb -> get( 'globelus_adverts', 'old', [ 'id' => $advert_id ] ) )
|
||||
{
|
||||
$mdb->update('globelus_adverts', [ 'old' => 0, 'active_to' => date( 'Y-m-d', strtotime('+' . $globelus_settings['ogloszenie-ilosc-dni-waznosci'] . ' days', time())), 'date_add' => date( 'Y-m-d H:i:s' ) ], [ 'id' => $advert_id ]);
|
||||
$mdb->update('globelus_adverts', [ 'old' => 0, 'active_to' => date( 'Y-m-d', strtotime('+' . $globelus_settings['ogloszenie-ilosc-dni-waznosci'] . ' days', time())), 'date_add' => date( 'Y-m-d H:i:s' ), 'last_refresh' => date( 'Y-m-d H:i:s' ) ], [ 'id' => $advert_id ]);
|
||||
}
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user