Browse code

Deeplink von Domain zu Mailinglisten nutzt den Filter

Bernd Wurst authored on 08/06/2018 13:57:16
Showing 1 changed files
... ...
@@ -91,7 +91,12 @@ if ($is_current_user) {
91 91
         $everused = true;
92 92
     }
93 93
     if (have_module('mailman') && mailman_subdomains($dom->id)) {
94
-        output("<div class=\"tile usage used\"><p><strong>".internal_link('../mailman/lists', "Mailinglisten")."</strong></p><p>Diese Domain wird für Mailinglisten verwendet</p></div>");
94
+        $mailmanhosts = mailman_subdomains($dom->id);
95
+        $hostname = $dom->fqdn;
96
+        if (count($mailmanhosts) == 1) {
97
+            $hostname = $mailmanhosts[0]['hostname'].'.'.$dom->fqdn;
98
+        }
99
+        output("<div class=\"tile usage used\"><p><strong>".internal_link('../mailman/lists', "Mailinglisten", 'filter='.$hostname)."</strong></p><p>Diese Domain wird für Mailinglisten verwendet</p></div>");
95 100
         $used = true;
96 101
         $everused = true;
97 102
     }