Skip to content

Commit

Permalink
Merge branch 'fix/php82-deprecations'
Browse files Browse the repository at this point in the history
  • Loading branch information
Simounet committed Jul 16, 2023
2 parents 65e635c + fa839a2 commit 0f03a24
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
3 changes: 1 addition & 2 deletions Event.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class Event extends MysqlEntity{

protected $id,$title,$guid,$content,$description,$pudate,$link,$feed,$category,$creator,$unread,$favorite;
protected $id,$title,$guid,$content,$description,$pubdate,$link,$feed,$category,$creator,$unread,$favorite,$syncId;
protected $TABLE_NAME = 'event';
protected $object_fields =
array(
Expand All @@ -21,7 +21,6 @@ class Event extends MysqlEntity{
'link'=>'longstring',
'unread'=>'integer',
'feed'=>'integer',
'unread'=>'integer',
'favorite'=>'integer',
'pubdate'=>'integer',
'syncId'=>'integer',
Expand Down
2 changes: 1 addition & 1 deletion Feed.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ protected function getEnclosureHtml($enclosure) {
: substr($enclosureName, strrpos($enclosureName,'.')+1);

$html ='<div class="enclosure"><h1>Fichier média :</h1>';
$enclosureType = $enclosure->get_type();
$enclosureType = $enclosure->get_type() ?? '';
if (strpos($enclosureType, 'image/') === 0) {
$html .= '<img src="' . $enclosure->link . '" />';
} elseif (strpos($enclosureType, 'audio/') === 0 || strpos($enclosureType, 'application/ogg') === 0) {
Expand Down
1 change: 1 addition & 0 deletions Install.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Install {
const DEFAULT_TABLES_PREFIX = 'leed__';
const CONSTANT_FILE = 'constant.php';
public $finished = false;
private $logger;
public $logs = array(
'errors' => array(),
'notices' => array()
Expand Down
4 changes: 4 additions & 0 deletions MysqlEntity.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
class MysqlEntity
{

protected $object_fields;
protected $TABLE_NAME;
protected $object_fields_index;
protected $object_fields_uniques;
protected $dbconnector = false;
private $debug = false;
private $debugAllQuery = false;
Expand Down
4 changes: 2 additions & 2 deletions Opml.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

class Opml {

private $folders;
// liens déjà connus, déjà abonnés, au moment de l'importation
public $alreadyKnowns = array();

/**
* Met à jour les données des flux.
*/
protected function update() {
global $feedManager, $folderManager;
$this->feeds = $feedManager->populate('name');
global $folderManager;
$this->folders = $folderManager->loadAll(array('parent'=>-1),'name');
}

Expand Down
8 changes: 5 additions & 3 deletions i18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ class Translation {
const DEFAULT_LANGUAGE = 'fr';

// tableau associatif des traductions
var $trans = array();
var $language = ''; // langue courante
var $translatedLanguages = array(); // langues traduites
private $trans = array();
public $languages = [];
public $language = ''; // langue courante
public $translatedLanguages = array(); // langues traduites
private $location = '';

/** @param location L'endroit où se trouve le dossier 'locale'
* @param languages Les langues demandées */
Expand Down

0 comments on commit 0f03a24

Please sign in to comment.