]> git.wh0rd.org - tt-rss.git/blobdiff - modules/popup-dialog.php
rework no daemon warning
[tt-rss.git] / modules / popup-dialog.php
index 8a3478c8c2e3368b25b5ca1475c5eeee6545f96e..414e01006e211585d1ad574063491671b23c1e4b 100644 (file)
@@ -3,6 +3,29 @@
                $id = $_GET["id"];
                $param = db_escape_string($_GET["param"]);
 
+               if ($id == "explainError") {
+
+                       print "<div id=\"infoBoxTitle\">Error message</div>";
+                       print "<div class=\"infoBoxContents\">";
+
+                       if ($param == 1) {
+                               print _("Update daemon is enabled in configuration, but daemon
+                                       process is not running, which prevents all feeds from updating. Please
+                                       start the daemon process or contact instance owner.");
+                       }
+
+                       print "</div>";
+
+                       print "<div align='center'>";
+
+                       print "<input class=\"button\"
+                               type=\"submit\" onclick=\"return closeInfoBox()\" 
+                               value=\"Close\">";
+
+                       print "</div>";
+
+               }
+
                if ($id == "quickAddFeed") {
 
                        print "<div id=\"infoBoxTitle\">Subscribe to feed</div>";