diff --git a/bin/write_playlists.inc b/bin/write_playlists.inc index 624eb264..af1313ec 100644 --- a/bin/write_playlists.inc +++ b/bin/write_playlists.inc @@ -21,7 +21,10 @@ */ 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');