X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Faction.php;h=9612a82b716342efc3c69050ada5f563baa0fe55;hb=fc3d52c120f219a1cdc57b9d2f7646c7231155f3;hp=38685f928a39732e62b96e0c9b4acf1b830d0e5b;hpb=9948523c33ea0d02681ff1e0cd4fcb839dc9df96;p=quix0rs-gnu-social.git diff --git a/lib/action.php b/lib/action.php index 38685f928a..9612a82b71 100644 --- a/lib/action.php +++ b/lib/action.php @@ -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