summaryrefslogtreecommitdiffstats
path: root/modules/plugins
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-05 07:13:25 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-05 07:13:25 +0000
commit83c7a25a76efaf74467c6654f20be3a8029040d9 (patch)
treeaa90f459c74d7d1ec8ba38fa4077873ed4f65dd8 /modules/plugins
parentedf482ff3d21c84d99f25b84884563a8781fa7ae (diff)
downloadampache-83c7a25a76efaf74467c6654f20be3a8029040d9.tar.gz
ampache-83c7a25a76efaf74467c6654f20be3a8029040d9.tar.bz2
ampache-83c7a25a76efaf74467c6654f20be3a8029040d9.zip
missed some requires, tweaked the lastfm class and removed an unused function from general
Diffstat (limited to 'modules/plugins')
-rw-r--r--modules/plugins/Lastfm.plugin.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/plugins/Lastfm.plugin.php b/modules/plugins/Lastfm.plugin.php
index cb833bea..d5020a2a 100644
--- a/modules/plugins/Lastfm.plugin.php
+++ b/modules/plugins/Lastfm.plugin.php
@@ -25,14 +25,14 @@ class AmpacheLastfm {
var $description ='Records your played songs to your Last.FM Account';
var $url ='';
var $version ='000001';
- var $min_ampache ='333001';
- var $max_ampache ='333005';
+ var $min_ampache ='334001';
+ var $max_ampache ='334005';
/**
* Constructor
* This function does nothing...
*/
- function PluginLastfm() {
+ public function __construct() {
return true;
@@ -43,16 +43,16 @@ class AmpacheLastfm {
* This is a required plugin function it inserts the required preferences
* into Ampache
*/
- function install() {
+ public function install() {
/* We need to insert the new preferences */
- $sql = "INSERT INTO preferences (`name`,`value`,`description`,`level`,`type`,`catagory`) " .
+ $sql = "INSERT INTO preference (`name`,`value`,`description`,`level`,`type`,`catagory`) " .
"VALUES ('lastfm_user',' ','Last.FM Username','25','string','options')";
- $db_results = mysql_query($sql,dbh());
+ $db_results = Dba::query($sql);
- $sql = "INSERT INTO preferences (`name`,`value`,`description`,`level`,`type`,`catagory`) " .
+ $sql = "INSERT INTO preference (`name`,`value`,`description`,`level`,`type`,`catagory`) " .
"VALUES ('lastfm_pass',' ','Last.FM Password','25','string','options')";
- $db_results = mysql_query($sql,dbh());
+ $db_results = Dba::query($sql);
fix_all_users_prefs();
@@ -66,8 +66,8 @@ class AmpacheLastfm {
function uninstall() {
/* We need to remove the preivously added preferences */
- $sql = "DELETE FROM preferences WHERE name='lastfm_pass' OR name='lastfm_user'";
- $db_results = mysql_query($sql,dbh());
+ $sql = "DELETE FROM preference WHERE name='lastfm_pass' OR name='lastfm_user'";
+ $db_results = Dba::query($sql);
fix_all_users_prefs();