Sounds/DetailPage

* fixed generating links to play via the WoW API
 * fixed usage of not yet available PlaySoundKitID() when selecting file from list
 * while internally it is pretty laissez-faire about cases in file paths, suddenly WoW DOES care, when it comes to its LUA API.
   so .. don't cast to lowercase when storing sounds in DB
This commit is contained in:
Sarjuuk
2018-06-11 23:17:55 +02:00
parent 04e183f5e3
commit 56ccc592a6
4 changed files with 12 additions and 9 deletions

View File

@@ -109,8 +109,8 @@ function sounds(/*array $ids = [] */)
$fileSets[] = array(
$soundFileIdx,
strtolower($s['soundFile'.$i]),
strtolower($s['path']),
$s['soundFile'.$i],
$s['path'],
SOUND_TYPE_OGG
);
$s['soundFile'.$i] = $soundFileIdx;
@@ -122,8 +122,8 @@ function sounds(/*array $ids = [] */)
$fileSets[] = array(
$soundFileIdx,
strtolower($s['soundFile'.$i]),
strtolower($s['path']),
$s['soundFile'.$i],
$s['path'],
SOUND_TYPE_MP3
);
$s['soundFile'.$i] = $soundFileIdx;