Skip to content

Commit

Permalink
Added missing properties to fix "Dynamic properties are deprecated"
Browse files Browse the repository at this point in the history
errors under PHP 8.2
  • Loading branch information
azett committed Oct 28, 2023
1 parent f8f6b56 commit 107f6d9
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 7 deletions.
2 changes: 2 additions & 0 deletions admin/panels/entry/admin.entry.write.php
Expand Up @@ -40,6 +40,8 @@ class admin_entry_write extends AdminPanelActionValidated {
);

var $draft = false;

var $id = null;

function _makePreview($arr, $id = null) {
if (!$id) {
Expand Down
1 change: 1 addition & 0 deletions admin/panels/maintain/admin.maintain.php
Expand Up @@ -37,6 +37,7 @@ function _checkFile($directory, $file) {
class s_entry_crawler extends fs_filelister {

var $_directory = CONTENT_DIR;
var $index;

function __construct() {
$this->index = entry_init();
Expand Down
4 changes: 4 additions & 0 deletions admin/panels/plugin/admin.plugin.php
Expand Up @@ -40,6 +40,10 @@ class admin_plugin_default extends AdminPanelAction {
);

var $errors = array();

var $pluginid;

var $fp_plugins;

function setup() {
$this->pluginid = isset($_GET ['plugin']) ? $_GET ['plugin'] : null;
Expand Down
1 change: 1 addition & 0 deletions admin/panels/static/admin.static.delete.php
Expand Up @@ -17,6 +17,7 @@
class admin_static_delete extends AdminPanelAction {

var $events = array('delete', 'cancel');
var $page;

function setup() {
$this->page = @($_REQUEST['page']);
Expand Down
16 changes: 11 additions & 5 deletions fp-includes/core/core.bplustree.class.php
Expand Up @@ -542,6 +542,8 @@ class BPlusTree_Node {
* @var int number of valid keys in $keys
*/
var $validkeys;

var $storage;

/**
* constructor
Expand Down Expand Up @@ -1558,6 +1560,8 @@ class BPlusTree {
* @var bool true if fifo is enabled
*/
var $fifo_enabled = false;

var $file = null;

/**
* constructor
Expand Down Expand Up @@ -2376,14 +2380,14 @@ function dump() {
class BPlusWalker {

var $tree;

var $keylower;

var $includelower;

var $keyupper;

var $includeupper;
var $startnode;
var $node;
var $node_index;
var $valid;

function __construct(&$tree, &$keylower, $includelower = null, $keyupper = null, $includeupper = null) {
$this->tree = & $tree;
Expand Down Expand Up @@ -2572,8 +2576,10 @@ function delitem($key) {
class SBPlusTree extends BPlusTree {

var $maxstring;

var $stringfile;
var $nodesize;
var $keylen;
var $position;

function __construct($infile, $stringfile, $maxstring = 256, $pos = null, $nodesize = null, $keylen = null) {
parent::__construct($infile, $pos, $nodesize, $keylen);
Expand Down
2 changes: 2 additions & 0 deletions fp-includes/core/core.entry.php
Expand Up @@ -38,6 +38,8 @@ class entry_index {
var $_keysize = 12;

var $_lock_file = null;

var $catlist = null;

function __construct() {
$this->_lock_file = CACHE_DIR . 'bpt.lock';
Expand Down
7 changes: 7 additions & 0 deletions fp-includes/core/core.fpdb.class.php
Expand Up @@ -159,6 +159,13 @@ class FPDB_Query {
var $secondary_idx = null;

var $walker = null;

var $prevkey = null;

var $nextkey = null;

var $comments = null;


function __construct($params, $ID) {
global $current_query;
Expand Down
2 changes: 2 additions & 0 deletions fp-plugins/bbcode/inc/stringparser.class.php
Expand Up @@ -208,6 +208,8 @@ class StringParser {
* @var bool
*/
var $_recentlyReparsed = false;

var $_output;

/**
* Constructor
Expand Down
7 changes: 7 additions & 0 deletions fp-plugins/bbcode/inc/stringparser_bbcode.class.php
Expand Up @@ -150,6 +150,11 @@ class StringParser_BBCode extends StringParser {
* @var bool
*/
var $_validateAgain = false;

var $_savedName;
var $_quoting;
var $_savedCloseCount;
var $_savedValue;

/**
* Add a code
Expand Down Expand Up @@ -1634,6 +1639,8 @@ class StringParser_BBCode_Node_Element extends StringParser_Node {
* @var bool
*/
var $_paragraphHandled = false;

var $_codeInfo = null;

// ////////////////////////////////////////////////

Expand Down
6 changes: 4 additions & 2 deletions fp-plugins/blockparser/plugin.blockparser.php
Expand Up @@ -77,9 +77,11 @@ class admin_widgets_blockparser extends AdminPanelAction {
'disable'
);

var $bp_enabled;

function doenable($id) {
$success = -1;
$enabled = & $this->bp_enabled;
$enabled = &$this->bp_enabled;
if (static_exists($id)) {
if (!$enabled) {
$enabled = array();
Expand All @@ -98,7 +100,7 @@ function doenable($id) {

function dodisable($id) {
$success = -2;
$enabled = & $this->bp_enabled;
$enabled = &$this->bp_enabled;
if ($enabled && is_numeric($v = array_search($id, $enabled))) {
unset($enabled [$v]);
@sort($enabled);
Expand Down
2 changes: 2 additions & 0 deletions fp-plugins/commentcenter/inc/admin.php
Expand Up @@ -43,6 +43,8 @@ class admin_entry_commentcenter extends AdminPanelAction {
'commdelok_2',
'ccancel_2'
);

var $plugin;

/**
* This function is used as a callback when the panel is loaded.
Expand Down

0 comments on commit 107f6d9

Please sign in to comment.