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>
remotes/origin/stable
Artur Duque de Souza 16 years ago
parent 1fd39a52fa
commit 09cbe1301e
  1. 2
      plugins/audioplayer/audioplayer.js

@ -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');

Loading…
Cancel
Save