diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2011-08-24 15:22:49 -0700 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2011-08-24 15:22:49 -0700 |
commit | 2dace654a99396ab674f50829046ed703d3a36be (patch) | |
tree | 57add762814a2156eac54a2d50658a805be60ff9 /mod/categories/activate.php | |
parent | 9f13557c2e7422cb15ce109adbe5714d6d78fc9e (diff) | |
download | elgg-2dace654a99396ab674f50829046ed703d3a36be.tar.gz elgg-2dace654a99396ab674f50829046ed703d3a36be.tar.bz2 |
Refs #3746. Updated categories for 1.8. Still some deprecation notices, but functional.
Diffstat (limited to 'mod/categories/activate.php')
-rw-r--r-- | mod/categories/activate.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mod/categories/activate.php b/mod/categories/activate.php new file mode 100644 index 000000000..80159d089 --- /dev/null +++ b/mod/categories/activate.php @@ -0,0 +1,11 @@ +<?php +/** + * Prompt the user to add categories after activating + */ + +//categories_admin_notice_no_categories +$site = get_config('site'); +if (!$site->categories) { + $message = elgg_echo('categories:on_activate_reminder', array(elgg_normalize_url('admin/plugin_settings/categories'))); + elgg_add_admin_notice('categories_admin_notice_no_categories', $message); +}
\ No newline at end of file |