1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 11:36:08 +02:00

Fix all PHP 8.0 test failures

This commit is contained in:
Nick Liu
2020-11-27 17:00:32 +01:00
parent 072c1b3a90
commit f256b924ce
21 changed files with 103 additions and 34 deletions

View File

@@ -1414,7 +1414,7 @@ class lancheck
function checkLog($type='error',$count)
function checkLog($type='error',$count=1)
{
$lan = $this->transLanguage;
$_SESSION['lancheck'][$lan][$type] += $count;
@@ -1602,9 +1602,9 @@ class lancheck
// for plugins and themes - checkes what kind of language files directory structure we have
function check_lanfiles($mode,$comp_name,$base_lan="English",$target_lan)
function check_lanfiles($mode,$comp_name,$base_lan="English",$target_lan=null)
{
if (empty($target_lan)) throw new RuntimeException(__METHOD__ . ' requires non-empty $target_lan');
$tp = e107::getParser();