From 4d574866b1c22ec7d3d9dbbd3af4b762f767fd79 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 2 Feb 2014 09:56:37 +0100 Subject: [PATCH] Support for the Diaspora App in Firefox. --- index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 26bc800f78..335547d74b 100644 --- a/index.php +++ b/index.php @@ -191,6 +191,10 @@ if(strlen($a->module)) { if ($a->module == "stream") $a->module = "network"; + // Compatibility with the Firefox App + if (($a->module == "users") AND ($a->cmd == "users/sign_in")) + $a->module = "login"; + $privateapps = get_config('config','private_addons'); if(is_array($a->plugins) && in_array($a->module,$a->plugins) && file_exists("addon/{$a->module}/{$a->module}.php")) { @@ -461,7 +465,7 @@ if ($_GET["mode"] == "raw") { exit; } elseif (get_pconfig(local_user(),'system','infinite_scroll') - AND ($_GET["q"] == "network") AND ($_GET["mode"] != "minimal")) { + AND ($a->module == "network") AND ($_GET["mode"] != "minimal")) { if (is_string($_GET["page"])) $pageno = $_GET["page"]; else -- 2.39.5