]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/action.php
disable routes that aren't available in single-user mode
[quix0rs-gnu-social.git] / lib / action.php
index 38685f928a39732e62b96e0c9b4acf1b830d0e5b..9612a82b716342efc3c69050ada5f563baa0fe55 100644 (file)
@@ -324,8 +324,12 @@ class Action extends HTMLOutputter // lawsuit
                     $this->script('xbImportNode.js');
                     $this->script('geometa.js');
                 }
-                $this->inlineScript('var _peopletagAC = "' .
-                    common_local_url('peopletagautocomplete') . '";');
+                // This route isn't available in single-user mode.
+                // Not sure why, but it causes errors here.
+                if (!common_config('singleuser', 'enabled')) {
+                    $this->inlineScript('var _peopletagAC = "' .
+                                        common_local_url('peopletagautocomplete') . '";');
+                }
                 $this->showScriptMessages();
                 // Anti-framing code to avoid clickjacking attacks in older browsers.
                 // This will show a blank page if the page is being framed, which is