Skip to content
Browse files

Stopped script path from being hardcoded

  • Loading branch information...
1 parent 710fc39 commit 670fcb2b07e8f386344cee9935dff42c4d613404 @NeilCrosby committed Aug 15, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 playlist/index.php
View
4 playlist/index.php
@@ -31,7 +31,9 @@
//$playlist = filter_var($playlist, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW + FILTER_FLAG_STRIP_HIGH)
//exec("osascript -s s /Users/neilcrosby/Sites/playlist/playlist.scpt", $json);
-exec("/Users/neilcrosby/Sites/itunes-helpers/playlist/playlist.sh '$playlist'", $json);
+
+$info = pathinfo(__FILE__);
+exec($info['dirname']."/playlist.sh '$playlist'", $json);
$json = implode($json);
$json = str_replace('{', '[', $json);

0 comments on commit 670fcb2

Please sign in to comment.
Something went wrong with that request. Please try again.