summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-14 06:51:38 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-14 06:51:38 +0000
commitdf2f009920f2ed128eea364870f4df94d9b89486 (patch)
tree73bb6560cb3db510f64141a0f826a51db420224b /modules
parent6983cb8e0cdb661053c9f6336518f2549cfb13a5 (diff)
downloadampache-df2f009920f2ed128eea364870f4df94d9b89486.tar.gz
ampache-df2f009920f2ed128eea364870f4df94d9b89486.tar.bz2
ampache-df2f009920f2ed128eea364870f4df94d9b89486.zip
fixed lastfm for reals this time, I think also fixed not being able to re-enable users
Diffstat (limited to 'modules')
-rw-r--r--modules/plugins/Lastfm.plugin.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/plugins/Lastfm.plugin.php b/modules/plugins/Lastfm.plugin.php
index 59fca6d6..c0896b71 100644
--- a/modules/plugins/Lastfm.plugin.php
+++ b/modules/plugins/Lastfm.plugin.php
@@ -66,6 +66,10 @@ class AmpacheLastfm {
"VALUES ('lastfm_url',' ','Last.FM Submission url','5','string','internal')";
$db_results = Dba::query($sql);
+ $sql = "INSERT INTO preference (`name`,`value`,`description`,`level`,`type`,`catagory`) " .
+ "VALUES ('lastfm_challenge',' ','Last.FM Submission Challenge','5','string','internal')";
+ $db_results = Dba::query($sql);
+
} // install
/**
@@ -77,7 +81,7 @@ class AmpacheLastfm {
/* We need to remove the preivously added preferences */
$sql = "DELETE FROM `preference` WHERE `name`='lastfm_pass' OR `name`='lastfm_user' " .
- "OR `name`='lastfm_url' OR `name`='lastfm_host' OR `name`='lastfm_port'";
+ "OR `name`='lastfm_url' OR `name`='lastfm_host' OR `name`='lastfm_port' OR `name`='lastfm_challenge'";
$db_results = Dba::query($sql);
} // uninstall