From 94aadf03dadbfa01ba1744df60c97b6f3094ae88 Mon Sep 17 00:00:00 2001
From: shadlaws
Date: Wed, 20 Feb 2013 17:30:27 +0100
Subject: #2008 - Add warnings if some active modules are obsolete. - added
module::get_obsolete_modules_message function - put message on
admin/dashboard - put message on admin/modules - put message on upgrader -
updated unit test golden file xss_data
---
modules/gallery/views/admin_dashboard.html.php | 7 +++++++
modules/gallery/views/admin_modules.html.php | 6 ++++++
modules/gallery/views/upgrader.html.php | 9 +++++++++
3 files changed, 22 insertions(+)
(limited to 'modules/gallery/views')
diff --git a/modules/gallery/views/admin_dashboard.html.php b/modules/gallery/views/admin_dashboard.html.php
index f391547e..cf90ef28 100644
--- a/modules/gallery/views/admin_dashboard.html.php
+++ b/modules/gallery/views/admin_dashboard.html.php
@@ -31,6 +31,13 @@
});
});
+
+ if ($obsolete_modules_message): ?>
+
+ = $obsolete_modules_message ?>
+
+ endif ?>
+
= $blocks ?>
diff --git a/modules/gallery/views/admin_modules.html.php b/modules/gallery/views/admin_modules.html.php
index 5a7f7b6c..96576ae4 100644
--- a/modules/gallery/views/admin_modules.html.php
+++ b/modules/gallery/views/admin_modules.html.php
@@ -46,6 +46,12 @@
= t("Power up your Gallery by adding more modules! Each module provides new cool features.", array("url" => "http://codex.galleryproject.org/Category:Gallery_3:Modules")) ?>
+ if ($obsolete_modules_message): ?>
+
+ = $obsolete_modules_message ?>
+
+ endif ?>
+
endif ?>
+ if ($obsolete_modules_message): ?>
+
+
+ = t("Warning!") ?>
+ = $obsolete_modules_message ?>
+
+
+ endif ?>
+
">
| = t("Module name") ?> |
--
cgit v1.2.3