summaryrefslogtreecommitdiff
path: root/modules/slideshow/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/slideshow/helpers')
-rw-r--r--modules/slideshow/helpers/slideshow_event.php4
-rw-r--r--modules/slideshow/helpers/slideshow_installer.php3
2 files changed, 3 insertions, 4 deletions
diff --git a/modules/slideshow/helpers/slideshow_event.php b/modules/slideshow/helpers/slideshow_event.php
index 12765922..c6cd7dc7 100644
--- a/modules/slideshow/helpers/slideshow_event.php
+++ b/modules/slideshow/helpers/slideshow_event.php
@@ -19,10 +19,10 @@
*/
class slideshow_event_Core {
static function module_change($changes) {
- if (!module::is_installed("rss") || in_array("rss", $changes->uninstall)) {
+ if (!module::is_active("rss") || in_array("rss", $changes->deactivate)) {
site_status::warning(
t("The Slideshow module requires the RSS module. " .
- "<a href=\"%url\">Install the RSS module now</a>",
+ "<a href=\"%url\">Activate the RSS module now</a>",
array("url" => url::site("admin/modules"))),
"slideshow_needs_rss");
} else {
diff --git a/modules/slideshow/helpers/slideshow_installer.php b/modules/slideshow/helpers/slideshow_installer.php
index 959e9f55..b46f5471 100644
--- a/modules/slideshow/helpers/slideshow_installer.php
+++ b/modules/slideshow/helpers/slideshow_installer.php
@@ -25,8 +25,7 @@ class slideshow_installer {
}
}
- static function uninstall() {
- module::delete("slideshow");
+ static function deactivate() {
site_status::clear("slideshow_needs_rss");
}
}