aboutsummaryrefslogtreecommitdiff
path: root/mod/categories/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/categories/start.php')
-rw-r--r--mod/categories/start.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/categories/start.php b/mod/categories/start.php
index bc272274f..9ff729b25 100644
--- a/mod/categories/start.php
+++ b/mod/categories/start.php
@@ -58,7 +58,9 @@ function categories_save($event, $object_type, $object) {
/**
* Add a reminder to set default categories.
*/
-function categories_on_enable() {
+function categories_on_activate() {
+ $site = elgg_get_site_entity();
+
if (!$site->categories) {
$url = elgg_normalize_url('pg/admin/plugin_settings/categories');
$message = elgg_echo('categories:on_enable_reminder', array($url));
@@ -70,6 +72,6 @@ function categories_on_enable() {
/**
* Clean up admin notices on disable.
*/
-function categories_on_disable() {
+function categories_on_deactivate() {
elgg_delete_admin_notice('categories_admin_notice_no_categories');
}