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 $visit_date = NULL;
public $register_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 ** 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>'; return '<span class="userrole" style="color: '.$ranks[$this->rank][2].';">'.$ranks[$this->rank][1].'</span>';
} }
public function get_locale() { public function get_locale() {
if( isset($this->locale_loaded) ) { if( $this->locale_loaded) {
return $this->locale_obj->display_name; return $this->locale_obj->display_name;
} }
else { else {

View File

@@ -30,6 +30,8 @@ class WikiPage
public $name = NULL; public $name = NULL;
public $content = NULL; public $content = NULL;
public $content_html;
/***** /*****
** Checks if a page at this ermalink exists and return the populated element ** Checks if a page at this ermalink exists and return the populated element
*****/ *****/