ajout du support pout php 8.2 en supprimant la création de propriétés dynamiques

This commit is contained in:
leosw
2025-07-13 14:14:16 +02:00
parent 8490877990
commit 36be8018b4
2 changed files with 10 additions and 1 deletions

View File

@@ -38,6 +38,13 @@ class User
public $visit_date = NULL;
public $register_date = NULL;
public $date_format;
public $datetime_format;
public $datetimeshort_format;
public $locale_obj;
public $locale_loaded = false;
/*****
** Connect to correct account using ID and stores its ID
*****/
@@ -119,7 +126,7 @@ class User
return '<span class="userrole" style="color: '.$ranks[$this->rank][2].';">'.$ranks[$this->rank][1].'</span>';
}
public function get_locale() {
if( isset($this->locale_loaded) ) {
if( $this->locale_loaded) {
return $this->locale_obj->display_name;
}
else {