Fix the audio player

If we don't use the ".php" extension the audio won't play because
it cant find the file.

Signed-off-by: Artur Duque de Souza <asouza@kde.org>
This commit is contained in:
Artur Duque de Souza 2011-02-22 11:15:58 -03:00
parent 1fd39a52fa
commit 09cbe1301e

View file

@ -1,7 +1,7 @@
OC_AudioPlayer = new Object();
OC_AudioPlayer.playAudio = function(dir, file, type) {
var path = WEBROOT + '/files/api?action=get&dir='+encodeURIComponent(dir)+'&file='+encodeURIComponent(file);
var path = WEBROOT + '/files/api.php?action=get&dir='+encodeURIComponent(dir)+'&file='+encodeURIComponent(file);
OC_AudioPlayer.audioFrame = document.createElement('div');
OC_AudioPlayer.audioFrame.setAttribute('id', 'audioframe');