Closed bhsmither closed 3 months ago
In settings.language.inc.php, lines 165-171, there is:
} else { $breadcrumb = $_REQUEST['type']; $strings = $GLOBALS['language']->getStrings($type); $definitions = $GLOBALS['language']->getDefinitions($_REQUEST['type']); $type = $_REQUEST['type']; $custom = $GLOBALS['language']->getCustom($type, $_GET['language']); }
Note that getStrings() is using $type before $type is defined.
getStrings()
$type
Suggest:
} else { $breadcrumb = $_REQUEST['type']; $definitions = $GLOBALS['language']->getDefinitions($_REQUEST['type']); $type = $_REQUEST['type']; $strings = $GLOBALS['language']->getStrings($type); $custom = $GLOBALS['language']->getCustom($type, $_GET['language']); }
And would $GLOBALS['language']->loadDefinitions() need to be called here?
$GLOBALS['language']->loadDefinitions()
But see #3565.
Not if everything's working as it is.
In settings.language.inc.php, lines 165-171, there is:
Note that
getStrings()
is using$type
before$type
is defined.Suggest:
And would
$GLOBALS['language']->loadDefinitions()
need to be called here?