summaryrefslogtreecommitdiffstats
path: root/lib/class/plugin.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-06 01:57:29 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-06 01:57:29 +0000
commitfb5c43b2df8a190fecfe4bf04bcd64aa1bad9c2d (patch)
tree86cee2ea4acaaf51dae5f4732d13e54213f12137 /lib/class/plugin.class.php
parent573c3014b982bd52f0b6959f51d65dfc86ae35c0 (diff)
downloadampache-fb5c43b2df8a190fecfe4bf04bcd64aa1bad9c2d.tar.gz
ampache-fb5c43b2df8a190fecfe4bf04bcd64aa1bad9c2d.tar.bz2
ampache-fb5c43b2df8a190fecfe4bf04bcd64aa1bad9c2d.zip
proof of concept, nothing one should actually use
Diffstat (limited to 'lib/class/plugin.class.php')
-rw-r--r--lib/class/plugin.class.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/class/plugin.class.php b/lib/class/plugin.class.php
index e5b9c485..37f707da 100644
--- a/lib/class/plugin.class.php
+++ b/lib/class/plugin.class.php
@@ -147,13 +147,13 @@ class Plugin {
/**
* is_installed
- * This checks to see if the current plugin is currently installed in the
+ * This checks to see if the specified plugin is currently installed in the
* database, it doesn't check the files for integrity
*/
- function is_installed() {
+ public static function is_installed($plugin_name) {
/* All we do is check the version */
- return $this->get_plugin_version();
+ return self::get_plugin_version($plugin_name);
} // is_installed
@@ -187,11 +187,11 @@ class Plugin {
/**
* get_plugin_version
- * This returns the version of the currently installed plugin
+ * This returns the version of the specified plugin
*/
- function get_plugin_version() {
+ public static function get_plugin_version($plugin_name) {
- $name = Dba::escape('Plugin_' . $this->_plugin->name);
+ $name = Dba::escape('Plugin_' . $plugin_name);
$sql = "SELECT * FROM `update_info` WHERE `key`='$name'";
$db_results = Dba::query($sql);