From 67fd06887b1659569a6c2b61f2c700560bb71cd5 Mon Sep 17 00:00:00 2001 From: xgizzmo Date: Wed, 1 Aug 2007 03:33:40 +0000 Subject: Replace references to old code with new code --- albums.php | 6 +++--- lib/class/ajax.class.php | 4 ++-- templates/show_album_art.inc.php | 5 +++-- templates/show_artist.inc.php | 4 ++-- templates/show_get_albumart.inc.php | 4 +--- templates/show_song_row.inc.php | 2 +- templates/sidebar_home.inc.php | 3 ++- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/albums.php b/albums.php index ef5b0aa5..b3c43ca0 100644 --- a/albums.php +++ b/albums.php @@ -49,7 +49,7 @@ switch ($_REQUEST['action']) { // If we got something back insert it if ($image_data) { $album->insert_art($image_data,$_FILES['file']['type']); - show_confirmation(_('Album Art Inserted'),'',"/albums.php?action=show&album=" . $album->id); + show_confirmation(_('Album Art Inserted'),'',"/albums.php?action=show&album=" . $album->id); } // Else it failed else { @@ -77,7 +77,7 @@ switch ($_REQUEST['action']) { if ($image_data) { $album->insert_art($image_data,$upload['0']['mime']); - show_confirmation(_('Album Art Inserted'),'',"/albums.php?action=show&album=" . $_REQUEST['album_id']); + show_confirmation(_('Album Art Inserted'),'',"/albums.php?action=show&album=" . $_REQUEST['album_id']); break; } // if image data @@ -152,7 +152,7 @@ switch ($_REQUEST['action']) { $album->insert_art($image,$mime); - show_confirmation(_('Album Art Inserted'),'',"/albums.php?action=show&album=$album_id"); + show_confirmation(_('Album Art Inserted'),'',"/albums.php?action=show&album=$album_id"); break; case 'update_from_tags': // Make sure they are a 'power' user at least diff --git a/lib/class/ajax.class.php b/lib/class/ajax.class.php index cb734edf..b3d35f07 100644 --- a/lib/class/ajax.class.php +++ b/lib/class/ajax.class.php @@ -42,9 +42,9 @@ class Ajax { */ public static function observe($source,$method,$action) { - $observe = "\n"; + $observe .= "-->\n"; return $observe; diff --git a/templates/show_album_art.inc.php b/templates/show_album_art.inc.php index 49e92809..dc7afc47 100644 --- a/templates/show_album_art.inc.php +++ b/templates/show_album_art.inc.php @@ -38,7 +38,7 @@ while ($i <= $rows) { ?> -
+ Album Art

[Select] @@ -48,7 +48,8 @@ while ($i <= $rows) { } // end else $j++; } // end while cells - echo "\n"; + if($i < $rows) { echo "\n"; } + else { echo ""; } $i++; } // end while ?> diff --git a/templates/show_artist.inc.php b/templates/show_artist.inc.php index 6756ae05..17558b42 100644 --- a/templates/show_artist.inc.php +++ b/templates/show_artist.inc.php @@ -42,10 +42,10 @@ foreach ($albums as $album_id) { - + - + diff --git a/templates/show_get_albumart.inc.php b/templates/show_get_albumart.inc.php index 7d2bd475..67335e14 100644 --- a/templates/show_get_albumart.inc.php +++ b/templates/show_get_albumart.inc.php @@ -21,10 +21,8 @@ */ ?> -

+ - - diff --git a/templates/sidebar_home.inc.php b/templates/sidebar_home.inc.php index 694fdc3c..24b0f0c0 100644 --- a/templates/sidebar_home.inc.php +++ b/templates/sidebar_home.inc.php @@ -13,6 +13,7 @@
+ @@ -42,7 +43,7 @@
---> +--> */ ?>


-- cgit
  diff --git a/templates/show_song_row.inc.php b/templates/show_song_row.inc.php index cc6668ec..350e0874 100644 --- a/templates/show_song_row.inc.php +++ b/templates/show_song_row.inc.php @@ -20,7 +20,7 @@ */ ?> - id,'add',_('Add'),'add_' . $song->id); ?> + id,'add',_('Add'),'add_' . $song->id); ?> f_link; ?> f_artist_link; ?>