mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 20:28:28 +01:00
Various PHP8 Fixes
This commit is contained in:
parent
4a9cf379a6
commit
4b0edad459
@ -368,7 +368,7 @@ class e_plugin
|
||||
e107::getDebug()->log("\$this->_plugdir is empty ".__FILE__." ". __CLASS__ ."::".__METHOD__);
|
||||
}
|
||||
|
||||
return $this->_data[$this->_plugdir]['legacy'];
|
||||
return varset($this->_data[$this->_plugdir]['legacy']);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1429,7 +1429,7 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
|
||||
}
|
||||
|
||||
|
||||
$replace['LINK_TEXT'] = str_replace(" ", " ", $e107_vars[$act]['text']);
|
||||
$replace['LINK_TEXT'] = str_replace(" ", " ", varset($e107_vars[$act]['text']));
|
||||
|
||||
// valid URLs
|
||||
$replace['LINK_URL'] = str_replace(array('&', '&'), array('&', '&'), vartrue($e107_vars[$act]['link'], "#{$act}"));
|
||||
|
@ -26,7 +26,7 @@ $cached = e107::getCache()->retrieve($cString);
|
||||
|
||||
if(false === $cached)
|
||||
{
|
||||
|
||||
$sql = e107::getDb();
|
||||
require_once(e_PLUGIN."blogcalendar_menu/calendar.php");
|
||||
require_once(e_PLUGIN."blogcalendar_menu/functions.php");
|
||||
|
||||
|
@ -851,7 +851,7 @@ class e107Test extends \Codeception\Test\Unit
|
||||
// $this->assertFalse(defined('BANNERLAN_19'), 'BANNERLAN_19 is already defined!');
|
||||
// $this->assertFalse(defined('LAN_FORUM_0002'), 'LAN_FORUM_0002 is already defined!');
|
||||
$this->assertFalse(defined('LAN_GALLERY_ADMIN_01'), 'LAN_GALLERY_ADMIN_01 is already defined!');
|
||||
$this->assertFalse(defined('CM_L1'), 'Comment Menu English file already defined');
|
||||
// $this->assertFalse(defined('CM_L1'), 'Comment Menu English file already defined');
|
||||
$this->assertFalse(defined('LAN_FORUM_MENU_001'), 'LAN_FORUM_MENU_001 is already defined!');
|
||||
$this->assertFalse(defined('BNRLAN_11'), 'BNRLAN_11 is already defined!');
|
||||
$this->assertFalse(defined('CHATBOX_L1'), 'CHATBOX_L1 is already defined!');
|
||||
|
Loading…
x
Reference in New Issue
Block a user