diff --git a/locale/function.php b/locale/function.php index 34d4f162dd10..fdf74fff3b79 100644 --- a/locale/function.php +++ b/locale/function.php @@ -10,6 +10,9 @@ function includeLangFile() { global $t, $global; + if(empty($_SESSION)){ + _session_start(); + } $_SESSION['language'] = str_replace('../', '', $_SESSION['language']); setSiteLang(); @include_once "{$global['systemRootPath']}locale/{$_SESSION['language']}.php"; diff --git a/objects/playlist.php b/objects/playlist.php index 201e6eba52fc..41ba5bd54a0b 100644 --- a/objects/playlist.php +++ b/objects/playlist.php @@ -1171,7 +1171,7 @@ public static function showPlayListSelector($playListArray) return false; } - public static function getAll($status = '', $playlists_id = 0) + public static function getAll($status = '', $playlists_id = 0, $users_id = 0) { global $global; if (!static::isTableInstalled()) { diff --git a/plugin/Cache/Objects/CachesInDB.php b/plugin/Cache/Objects/CachesInDB.php index 226e873701bf..70973af71539 100644 --- a/plugin/Cache/Objects/CachesInDB.php +++ b/plugin/Cache/Objects/CachesInDB.php @@ -312,7 +312,7 @@ public static function set_innodb_lock_wait_timeout($timeout = 2) */ return $global['mysqli']->query($sql); } - + public static function _deleteCacheStartingWith($name) { global $global; diff --git a/plugin/Gallery/view/BigVideoLive.php b/plugin/Gallery/view/BigVideoLive.php index 0e9968b675a1..c4511d935a97 100644 --- a/plugin/Gallery/view/BigVideoLive.php +++ b/plugin/Gallery/view/BigVideoLive.php @@ -8,8 +8,8 @@ return ''; } } -$url = "{$global['webSiteRootURL']}liveNow?muted=1&GalleryType="; -$url = addQueryStringParameter($url, 'muted', 1); +$urlLiveNow = "{$global['webSiteRootURL']}liveNow?muted=1&GalleryType="; +$urlLiveNow = addQueryStringParameter($urlLiveNow, 'muted', 1); ?>