summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-02-09 07:02:23 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-02-09 07:02:23 +0000
commit6fdd9ac8d2ebe14bf743c543825914ab3f04d656 (patch)
treefcaf8c386b8e85e2fdb97b149f85f2870a1f1e86
parentf4bd8ffecab6a060252c93379b3c6b1763ab6392 (diff)
downloadampache-6fdd9ac8d2ebe14bf743c543825914ab3f04d656.tar.gz
ampache-6fdd9ac8d2ebe14bf743c543825914ab3f04d656.tar.bz2
ampache-6fdd9ac8d2ebe14bf743c543825914ab3f04d656.zip
fix to user auth with xml-api (Thx purdyk) and fix update all not resetting album art cache
-rwxr-xr-xdocs/CHANGELOG4
-rw-r--r--lib/class/access.class.php4
-rw-r--r--lib/class/catalog.class.php2
-rw-r--r--lib/class/update.class.php2
4 files changed, 11 insertions, 1 deletions
diff --git a/docs/CHANGELOG b/docs/CHANGELOG
index fd21bec3..f42beba6 100755
--- a/docs/CHANGELOG
+++ b/docs/CHANGELOG
@@ -4,6 +4,10 @@
--------------------------------------------------------------------------
v.3.4-Beta2
+ - Fixed an issue with user auth in XML API always registering as
+ system (Thx purdyk)
+ - Fixed issue with Update All and multiple catalogs not correctly
+ reseting changed album set
- Added ability to filter disabled songs from duplicate check on
by default (Thx joh6nn)
- Added new rating images (Thx greengeek)
diff --git a/lib/class/access.class.php b/lib/class/access.class.php
index 462d5e71..e2ed73ec 100644
--- a/lib/class/access.class.php
+++ b/lib/class/access.class.php
@@ -192,6 +192,10 @@ class Access {
break;
case 'init-api':
$type = 'rpc';
+ if ($user) {
+ $client = User::get_from_username($user);
+ $user = $client->id;
+ }
case 'network':
case 'interface':
case 'stream':
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php
index b19a77d6..4c11abf8 100644
--- a/lib/class/catalog.class.php
+++ b/lib/class/catalog.class.php
@@ -665,6 +665,8 @@ class Catalog {
echo "\n</script>\n";
flush();
+ self::$_art_albums = array();
+
} // get_album_art
/**
diff --git a/lib/class/update.class.php b/lib/class/update.class.php
index 9bd67c81..58da8330 100644
--- a/lib/class/update.class.php
+++ b/lib/class/update.class.php
@@ -1135,7 +1135,7 @@ class Update {
$sql = "ALTER TABLE `playlist` CHANGE `date` `date` INT ( 11 ) UNSIGNED NOT NULL";
$db_results = Dba::query($sql);
- $sql = "ALTER TABLE `rating` CHANGE `rating` TINYINT ( 11 ) NOT NULL";
+ $sql = "ALTER TABLE `rating` CHANGE `rating` TINYINT ( 4 ) NOT NULL";
$db_results = Dba::query($sql);
self::set_version('db_version','340015');