mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
file_inspector::inspect() optional arguments
file_inspector::inspect() now works in PHP 7 because pass-by-reference variables are optional now as they were intended. Fixes: #3013
This commit is contained in:
4
e107_admin/fileinspector.php
Normal file → Executable file
4
e107_admin/fileinspector.php
Normal file → Executable file
@@ -569,7 +569,7 @@ class file_inspector {
|
|||||||
// $dir
|
// $dir
|
||||||
// &$tree_end
|
// &$tree_end
|
||||||
// &$parent_expand
|
// &$parent_expand
|
||||||
function inspect($list, $deprecated, $level, $dir, &$tree_end, &$parent_expand)
|
function inspect($list, $deprecated, $level, $dir, &$tree_end = null, &$parent_expand = null)
|
||||||
{
|
{
|
||||||
global $coredir;
|
global $coredir;
|
||||||
|
|
||||||
@@ -1707,4 +1707,4 @@ i.fa-folder-open-o, i.fa-times-circle-o { cursor:pointer }
|
|||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user