diff -r 86140ed9087d -r 3b4aef1efff6 functions.php --- a/functions.php Fri Aug 15 23:22:30 2008 -0400 +++ b/functions.php Fri Aug 15 23:31:37 2008 -0400 @@ -94,9 +94,12 @@ function rebuild_playlist() { // import what we need - global $homedir, $playlist; + global $playlist, $amarok_home; // sync and load the playlist file $playlist_file = dcop_action('playlist', 'saveCurrentPlaylist'); + // do we have amarok's home? + if ( !$amarok_home ) + $amarok_home = dirname($playlist_file); // check MD5 - if it's not changed, exit to save CPU cycles global $playlist_last_md5; $effective_md5 = md5_playlist_file($playlist_file);