summaryrefslogtreecommitdiff
path: root/modules/user/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-22 13:28:23 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-22 13:28:23 -0700
commit6b51de49c5c6a4030505ff1f979e3e14da06c457 (patch)
tree1aaaa241bdd9c1e7a674014ee05928ef177176b4 /modules/user/helpers
parent1cb6e3950d82d5f0c03f066a4cb7d27619114970 (diff)
Change the modifier on activate and deactivate methods to static as they are in a helper class.
Diffstat (limited to 'modules/user/helpers')
-rw-r--r--modules/user/helpers/user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user/helpers/user.php b/modules/user/helpers/user.php
index ec4f56ae..5f154313 100644
--- a/modules/user/helpers/user.php
+++ b/modules/user/helpers/user.php
@@ -27,7 +27,7 @@ class user_Core {
/**
* Initialize the provider so it is ready to use
*/
- public function activate() {
+ static function activate() {
$db = Database::instance();
$db->query("CREATE TABLE IF NOT EXISTS {users} (
`id` int(9) NOT NULL auto_increment,
@@ -93,7 +93,7 @@ class user_Core {
/**
* Cleanup up this provider so it is unavailable for use and won't conflict with the current driver
*/
- public function deactivate() {
+ static function deactivate() {
// Delete all users and groups so that we give other modules an opportunity to clean up
foreach (ORM::factory("user")->find_all() as $user) {
$user->delete();