From 08598b34a8621838ce64f4b8a3f2164072c3be1b Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sat, 10 May 2008 11:00:57 +0000 Subject: some rather major bug fixes, corrected a preference setting issue, as well as a preference update issue, fixed infinite plugin installing for fun and profit, also fixed updating the config file not regenerating the version correctly and the user creation allowing users with blank password, which does not work at the login --- lib/class/plugin.class.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'lib/class/plugin.class.php') diff --git a/lib/class/plugin.class.php b/lib/class/plugin.class.php index 37f707da..1ae18250 100644 --- a/lib/class/plugin.class.php +++ b/lib/class/plugin.class.php @@ -1,7 +1,7 @@ _plugin->install(); + $installed = $this->_plugin->install(); - $this->set_plugin_version($this->_plugin->version); + $version = $this->set_plugin_version($this->_plugin->version); + + if (!$installed OR !$version) { return false; } + + return true; } // install @@ -177,7 +181,7 @@ class Plugin { * at the end it removes the row from the update_info table to indicate * that it isn't installed */ - function uninstall() { + public function uninstall() { $this->_plugin->uninstall(); -- cgit