1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 01:39:28 +02:00

Merge pull request #1375 from Phyks/Phyks-patch-1

Do not force write_playlists.php to be called from bin folder
This commit is contained in:
Afterster 2016-10-02 21:17:16 +02:00 committed by GitHub
commit 748a45ef0b

View file

@ -21,7 +21,10 @@
*/ */
define('NO_SESSION','1'); define('NO_SESSION','1');
require_once '../lib/init.php';
$path = dirname(__FILE__);
$prefix = realpath($path . '/../');
require_once($prefix . '/lib/init.php');
$valid_exts = array ('m3u', 'xspf', 'pls'); $valid_exts = array ('m3u', 'xspf', 'pls');