diff --git a/web/zm_funcs.php b/web/zm_funcs.php index 015f3beb1..43ac1e09a 100644 --- a/web/zm_funcs.php +++ b/web/zm_funcs.php @@ -105,10 +105,10 @@ function getStreamSrc( $args ) { if ( version_compare( phpversion(), "4.1.0", "<") ) { - global $_SESSION; + global $_SESSION, $_SERVER; } - $stream_src = ZM_PATH_ZMS; + $stream_src = "http://".$_SERVER['HTTP_HOST'].ZM_PATH_ZMS; if ( ZM_OPT_USE_AUTH ) { @@ -979,4 +979,26 @@ function sidField()