diff options
author | momo-i <momo-i@ampache> | 2009-03-13 07:11:26 +0000 |
---|---|---|
committer | momo-i <momo-i@ampache> | 2009-03-13 07:11:26 +0000 |
commit | 83c2553c8bb4ce765c2cdae2aec3ccb965f94413 (patch) | |
tree | 3328107ac022be2e93b9ce998a19f3c5f8cb1df5 /playlist.php | |
parent | a6e171869ba8e09592ec1b1c3b610c7f056e37b4 (diff) | |
download | ampache-83c2553c8bb4ce765c2cdae2aec3ccb965f94413.tar.gz ampache-83c2553c8bb4ce765c2cdae2aec3ccb965f94413.tar.bz2 ampache-83c2553c8bb4ce765c2cdae2aec3ccb965f94413.zip |
Fixed: if playlist imported successful, next page is showing playlist. if not imported, next page is import page.
Diffstat (limited to 'playlist.php')
-rw-r--r-- | playlist.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/playlist.php b/playlist.php index c4824e41..dda1a157 100644 --- a/playlist.php +++ b/playlist.php @@ -84,11 +84,12 @@ switch ($_REQUEST['action']) { $catalog = new Catalog(); $result = $catalog->import_m3u($filename); - $url = Config::get('web_path') . '/playlist.php?action=show_playlist&playlist_id='.$playlist_id; if($result == false) { + $url = Config::get('web_path') . '/playlist.php?action=show_import_playlist'; $title = _('Playlist Not Imported'); $body = $reason; } else { + $url = Config::get('web_path') . '/playlist.php?action=show_playlist&playlist_id='.$playlist_id; $title = _('Playlist Imported'); $body = basename($_FILES['filename']['name']); $body .= "<br />"; |