Skip to content

Commit 048d6f4

Browse files
committed
define variables
1 parent 48f3b66 commit 048d6f4

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

class/LanguageHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ public function getByName($name, $isBase=false)
126126
*/
127127
public function getAll($isBase = true)
128128
{
129+
$array = [];
129130
$prefix = $isBase ? 'xlanguage_base' : 'xlanguage_ext';
130131
$ret = [];
131132
if (isset($this->cachedConfig[$prefix])) {

class/Utility.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ public static function showSelectedLanguage($options = null)
345345
public static function getPreferredLanguage()
346346
{
347347
$langs = [];
348+
$lang = '';
348349
// if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
349350
if (\Xmf\Request::hasVar('HTTP_ACCEPT_LANGUAGE', 'SERVER')) {
350351
// break up string into pieces (languages and q factors)

0 commit comments

Comments
 (0)