diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-22 13:28:23 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-22 13:28:23 -0700 |
commit | 6b51de49c5c6a4030505ff1f979e3e14da06c457 (patch) | |
tree | 1aaaa241bdd9c1e7a674014ee05928ef177176b4 | |
parent | 1cb6e3950d82d5f0c03f066a4cb7d27619114970 (diff) |
Change the modifier on activate and deactivate methods to static as they are in a helper class.
-rw-r--r-- | modules/gallery/tests/No_Direct_ORM_Access_Test.php (renamed from modules/gallery/tests/No_Direct_Access_Test.php) | 0 | ||||
-rw-r--r-- | modules/user/helpers/user.php | 4 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/tests/No_Direct_Access_Test.php b/modules/gallery/tests/No_Direct_ORM_Access_Test.php index c6d8df95..c6d8df95 100644 --- a/modules/gallery/tests/No_Direct_Access_Test.php +++ b/modules/gallery/tests/No_Direct_ORM_Access_Test.php 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(); |