func_get_args() returns an array containing all the arguments passed to a function, including the ones declared in its parameters list.
A line like if ($args[0] == 'type') $type = $args[1]; (present in kaltura_preview_player()) is simply getting back the same value given to $no_js.
If the function is being called with two different types of parameters, then it would be better to use an empty parameters list, and use just the values given by func_get_args().
Comments
Comment #1
Zohar.Babin commentedfixed in 6.x-1.4 and 5.x-1.3, function removed since it was never even used
Comment #2
oferc commented